Statistics
| Branch: | Revision:

root @ 65850a02

# Date Author Comment
65850a02 03/13/2010 11:52 am Blue Swirl

Fix Sparc host build breakage

Fix error:
CC sparc-bsd-user/op_helper.o
In file included from /src/qemu/tcg/tcg.c:158:
/src/qemu/tcg/sparc/tcg-target.c:728:5: "TARGET_PHYS_ADDR_BITS" is not defined

Signed-off-by: Blue Swirl <>

338e9e6c 03/13/2010 11:48 am Blue Swirl

Fix more wrong usermode virtual address types

Fixes warning:
CC sparc-bsd-user/exec.o
/src/qemu/exec.c: In function `page_check_range':
/src/qemu/exec.c:2375: warning: comparison is always true due to limited range of data type

Signed-off-by: Blue Swirl <>

b480d9b7 03/13/2010 01:25 am Paul Brook

Fix usermode virtual address type

Usermode virtual addresses are abi_ulong, not target_ulong.

Signed-off-by: Paul Brook <>

4836a2b0 03/13/2010 12:14 am Juergen Lock

FreeBSD ppc_init_cacheline_sizes(): add missing #includes

This fixes commit e4ee916d3f9a93df06bd498c92767c1558d59a0b.
(The bug was mine actually...)

Submitted by: Andreas Tobler <>

Signed-off-by: Juergen Lock <>
Signed-off-by: malc <>

35f6b599 03/12/2010 11:27 pm malc

tcg/ppc64: Only define addend load helpers in softmmu case

Signed-off-by: malc <>

b1aa27c4 03/12/2010 08:45 pm Paul Brook

Remove userspace target_phys_addr_t

TARGET_PHYS_ADDR_BITS isn't meaningful for userspace emulation, so don't
define it.

Signed-off-by: Paul Brook <>

3c7b48b7 03/12/2010 08:44 pm Paul Brook

Target specific usermode cleanup

Disable various target specific code that is only relevant to system emulation.

Signed-off-by: Paul Brook <>

b3755a91 03/12/2010 08:34 pm Paul Brook

Disable phsyical memory handling in userspace emulation.

Code to handle physical memory access is not meaningful in usrmode emulation,
so disable it.

Signed-off-by: Paul Brook <>

4fcc562b 03/12/2010 08:34 pm Paul Brook

Remove cpu_get_phys_page_debug from userspace emulation

cpu_get_phys_page_debug makes no sense for userspace emulation, so remove it.

Signed-off-by: Paul Brook <>

20cb400d 03/12/2010 08:34 pm Paul Brook

Remove TLB from userspace

Remove TLB from userspace CPU structure.

Signed-off-by: Paul Brook <>

41c1b1c9 03/12/2010 07:23 pm Paul Brook

Add tb_page_addr_t

The page tracking code in exec.c is used by both userspace and system
emulation. Userspace emulation uses it to track virtual pages, and
system emulation to track ram pages. Introduce a new type to hold this
kind of address.

Signed-off-by: Paul Brook <>

376a7909 03/12/2010 06:31 pm Richard Henderson

Fix last page errors in page_check_range and page_set_flags.

The addr < end comparison prevents iterating over the last
page in the guest address space; an iteration based on
length avoids this problem.

At the same time, assert that the given address is in the...

5cd2c5b6 03/12/2010 06:31 pm Richard Henderson

Implement multi-level page tables.

Define L1_MAP_ADDR_SPACE_BITS to be either the virtual address size
(in user mode) or physical address size (in system mode), and use
that to size l1_map. This rewrites page_find_alloc, page_flush_tb,
and walk_memory_regions....

14f24e14 03/12/2010 06:29 pm Richard Henderson

linux-user: Fix mmap_find_vma returning invalid addresses.

Don't return addresses that aren't properly aligned for the guest,
e.g. when the guest has a larger page size than the host. Don't
return addresses that are outside the virtual address space for the...

7bc7b099 03/12/2010 06:29 pm Richard Henderson

linux-user: Use h2g_valid in qemu_vmalloc.

Signed-off-by: Richard Henderson <>

b9f83121 03/12/2010 06:28 pm Richard Henderson

Use TARGET_VIRT_ADDR_SPACE_BITS in h2g_valid.

Previously, only 32-bit guests had a proper check for the
validity of the virtual address. Extend that check to 64-bit
guests with a restricted virtual address space.

Signed-off-by: Richard Henderson <>

52705890 03/12/2010 06:28 pm Richard Henderson

Move TARGET_PHYS_ADDR_SPACE_BITS to target-*/cpu.h.

Removes a set of ifdefs from exec.c.

Introduce TARGET_VIRT_ADDR_SPACE_BITS for all targets other
than Alpha. This will be used for page_find_alloc, which is
supposed to be using virtual addresses in the first place....

0aef4261 03/11/2010 10:29 pm Aurelien Jarno

target-ppc: fix evsrwu and evsrws (second try)

Signed-off-by: Aurelien Jarno <>

26b14dc4 03/11/2010 10:22 pm Aurelien Jarno

target-ppc: fix evsrwu and evsrws

Signed-off-by: Aurelien Jarno <>

e29ef9fa 03/11/2010 10:14 pm Aurelien Jarno

target-ppc: fix evslw instruction

Signed-off-by: Aurelien Jarno <>

ad483a51 03/11/2010 05:28 pm malc

audio: fix comment

Signed-off-by: malc <>

81d9b784 03/10/2010 05:06 pm Luiz Capitulino

QMP: Really move the RESET event to qemu_system_reset()

Something bad has happened in the merge of commit 0ee44250, as
the log message says it's supposed to be in qemu_system_reset()
but it is do_vm_stop().

Possibly, it was a problem with the conflict resolution with...

b16f827b 03/10/2010 09:43 am Aurelien Jarno

target-i386: fix SIB decoding with index = 4

A SIB byte with an index of 4 means "no scaled index", even if the scale
value is not 0. In 64-bit mode, if REX.X is used, an index of 4 selects
%r12. This is correctly handled by the computation of the index variable,...

24ac07de 03/09/2010 07:23 pm Juan Quintela

slirp: check system() success

we shouldn't call W*() macros until we check that fork worked.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

bef57da5 03/09/2010 07:23 pm Juan Quintela

qcow2: return errno instead of -1

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

98c2b2f4 03/09/2010 07:23 pm Juan Quintela

qcow: return errno instead of -1

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

b781cce5 03/09/2010 07:23 pm Juan Quintela

vmdk: return errno instead of -1

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

53c2e716 03/09/2010 07:23 pm Juan Quintela

vmdk: make vmdk_snapshot_create return -errno

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

a161329b 03/09/2010 07:23 pm Juan Quintela

vmdk: fix double free

fail_gd error case would also free rgd_buf that was already freed

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

3829cb46 03/09/2010 07:23 pm Juan Quintela

vmdk: share cleanup code

cleanup code is identical for error/success cases. Only difference
are goto labels.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

3e7896de 03/09/2010 07:23 pm Juan Quintela

block: print errno on error

Now that we changed all create calls to return errno, just print it.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

1298cb68 03/09/2010 07:23 pm Juan Quintela

documentation: qemu_write_full don't work with non-blocking fd's

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

48b66db9 03/09/2010 07:22 pm Juan Quintela

cow: return errno instead of -1

Remove not needed ret = 0 assignment.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

e53dbee0 03/09/2010 05:04 pm Kevin Wolf

qemu-img rebase: Add -f option

Allow the user to specify the format of the image to rebase.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Anthony Liguori <>

f8aa6c7b 03/09/2010 05:03 pm Stefan Weil

configure: Fix wrong stderr redirection

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

37116c89 03/09/2010 05:03 pm Stefan Weil

configure: Fix code which creates config.mak files

These files are created by configure and grow
unnecessarily at each new call of configure:

roms/seabios/config.mak
roms/vgabios/config.mak
libhw32/config.mak
libhw64/config.mak

libhw32/config.mak and libhw64/config.mak set...

7ffb82ca 03/09/2010 04:47 pm Gerd Hoffmann

kbd keds: vnc

Use led status notification support in vnc.

The qemu vnc server keeps track of the capslock and numlock states based
on the key presses it receives from the vnc client. But this fails in
case the guests idea of the capslock and numlock state changes for other...

2d753894 03/09/2010 04:47 pm Shahar Havivi

Restore terminal attributes for tty based monitor

Patch http://permalink.gmane.org/gmane.comp.emulators.qemu/63472 handle
close when using tty devices (like /dev/ttyS0),
yet tty based monitor are not restoring terminal attributes (as done
with stdio based monitor), when closing qemu after that command:...

9eedeb3b 03/09/2010 04:47 pm Luiz Capitulino

QMP: Introduce WATCHDOG event

It's emitted whenever the watchdog device's timer expires. The action
taken is provided in the 'data' member.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

27f3f8a3 03/09/2010 04:47 pm Markus Armbruster

qdev: Catch attempt to attach more than one device to a netdev

Guest device and host netdev are peers, i.e. it's a 1:1 relation.
However, we fail to enforce that:

$ qemu -nodefaults --nographic -netdev user,id=net0 -device e1000,netdev=net0 -device virtio-net-pci,netdev=net0 -monitor stdio...
32bb404a 03/09/2010 04:47 pm Markus Armbruster

scsi: Make device scsi-disk reject /dev/sg*

You're supposed to use scsi-generic for that. Which rejects anything
but /dev/sg*.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

03a23a85 03/09/2010 04:47 pm Gerd Hoffmann

kbd leds: infrastructure

Adds infrastructure for keyboard led status tracking to qemu.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

6937b376 03/09/2010 04:47 pm Gerd Hoffmann

kbd leds: ps/2 kbd

Add led status notification support to the ps/2 kbd driver.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

bd87813e 03/09/2010 04:47 pm Gerd Hoffmann

kbd leds: usb kbd

Add led status notification support to the usb kbd driver.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

6bf38816 03/09/2010 04:47 pm Markus Armbruster

qdev: Improve diagnostics for bad property values

Property "vlan" reports "failed to parse" even when the value parses
just fine, but the result doesn't name an existing VLAN.

Similarly, properties "drive", "chr" and "netdev" misleadingly report
"failed to parse" when the value doesn't name an existing host device....

80cd3478 03/08/2010 07:30 pm Luiz Capitulino

QMP: Introduce RTC_CHANGE event

Emitted whenever the RTC time changes.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

cf602c7b 03/08/2010 07:30 pm Izik Eidus

adding helper pci functions

Signed-off-by: Izik Eidus <>
Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

de7890db 03/08/2010 07:30 pm Gerd Hoffmann

move x509 file name defines to qemu-x509.h

Want share them with vnc and spice.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

1a8e2aaa 03/08/2010 07:30 pm Chris Kilgour

pcnet APROMWE bit location (retry)

According to AMD document 21485D pp.141, APROMWE is bit 8 of BCR2.

Signed-off-by: Christopher Kilgour <>
Signed-off-by: Anthony Liguori <>

75422b0d 03/08/2010 07:30 pm Amit Shah

qdev: Add a DEV_NVECTORS_UNSPECIFIED enum for unspecified nr of MSI vectors

net.c used a constant to signify no MSI vectors were specified. Extend
that to all qdev devices.

Signed-off-by: Amit Shah <>
Reported-by: "Michael S. Tsirkin" <>...

573fb60c 03/08/2010 07:30 pm Amit Shah

virtio-pci: Use DEV_NVECTORS_UNSPECIFIED instead of -1 for virtio-serial

Use the named constant instead of -1.

Signed-off-by: Amit Shah <>
Reported-by: "Michael S. Tsirkin" <>
Signed-off-by: Anthony Liguori <>

0ee44250 03/08/2010 07:30 pm Luiz Capitulino

QMP: Move RESET event into qemu_system_reset()

Nothing will change as that function is currently only called by
the main loop code, but it's the right place for the RESET event,
as it's where the reset is actually performed.

Signed-off-by: Luiz Capitulino <>...

51a3bd71 03/08/2010 07:30 pm Luiz Capitulino

QMP: Drop DEBUG event

This event has been introduced in the first round of QMP commits,
turns out that it's based on the usage of the EXCP_DEBUG macro,
which has discussable semantics when exposed through QMP.

As libvirt doesn't use this, let's just drop it....

d74c7dfd 03/08/2010 07:30 pm Luiz Capitulino

QMP: Revamp the qmp-events.txt file

Now we can say it's useful, the following changes have been made:

- Put events in alphabetical order
- Add examples to all events
- Document all 'data' members
- Small corrections and cleanups

Signed-off-by: Luiz Capitulino <>...

554a310b 03/08/2010 07:30 pm Luiz Capitulino

block: Emit BLOCK_IO_ERROR before vm_stop() call

The next commit will move the STOP event into do_vm_stop(), to
have the expected event sequence we need to emit the I/O error
event before calling vm_stop().

The expected sequence is:

{ "event": "BLOCK_IO_ERROR" [...] }...

6b8f8fff 03/08/2010 07:30 pm Luiz Capitulino

QMP: Move STOP event into do_vm_stop()

I've introduced the STOP event in the main loop, this is wrong
as it will be only emitted if the io thread is enabled.

This fixes that by moving the STOP event to do_vm_stop().

Signed-off-by: Luiz Capitulino <>...

93d67ee6 03/08/2010 07:29 pm Adam Litke

Fix hanging user monitor when using balloon command

This patch application failed. My patch adds a cb() call in
do_balloon(), but the change in git has added the cb() call to
do_info_balloon(). That is causing qemu segfaults. Applying the
following should correct the damage. Thanks....

4e75b342 03/08/2010 06:59 pm Anthony Liguori

sdl: improve grab exiting instructions

It might not be obvious what "grab" is.

Reported-by: Ingo Molnar <>
Signed-off-by: Anthony Liguori <>

921e169d 03/08/2010 01:31 pm Aurelien Jarno

ppc: don't define bamboo-0.13 as the default machine

It has been broken by commit 977b6b91cee1132f8c7b12d22f4b273091598e44.

Signed-off-by: Aurelien Jarno <>

70539e18 03/07/2010 05:48 pm Blue Swirl

Update to a hopefully more future proof FSF address

See also 8167ee883931cb20c6264fc19d040ce2dc6ceaaa,
530e7615ce3c01882e582c84dc6304ab98a3d5c5 and
fad6cb1a565bb73f83fc0e2654489457b489e436.

Signed-off-by: Blue Swirl <>

bef75aa5 03/07/2010 03:56 pm Blue Swirl

i386-dis: remove dead assignments, spotted by clang

Value stored to 'mask' is never read.

Signed-off-by: Blue Swirl <>

ed086f3d 03/07/2010 03:49 pm Blue Swirl

softfloat: remove dead assignments, spotted by clang

Value stored to 'bSign' is never read.

Signed-off-by: Blue Swirl <>

7071ff32 03/07/2010 03:45 pm Blue Swirl

slirp: remove dead initialization, spotted by clang

Value stored during initialization is never read.

Signed-off-by: Blue Swirl <>

b0e04867 03/07/2010 03:45 pm Blue Swirl

slirp: remove dead nested assignment, spotted by clang

Although the value stored to 'r' is used in the enclosing expression,
the value is never actually read from 'r'.

Signed-off-by: Blue Swirl <>

369c86e7 03/07/2010 03:45 pm Blue Swirl

slirp: remove dead increments, spotted by clang

Value stored is never read.

Signed-off-by: Blue Swirl <>

aca9fcd2 03/07/2010 03:13 pm Blue Swirl

slirp: remove dead assignments, spotted by clang

Value stored is never read.

Signed-off-by: Blue Swirl <>

a990f58f 03/07/2010 12:22 am Adam Lackorzynski

target-arm: Fix missing 'return' in SRS handling.

There's a return missing in the srs handling which leads to srs always being
treated an an invalid op.

Signed-off-by: Adam Lackorzynski <>
Signed-off-by: Aurelien Jarno <>

44bb61c8 03/07/2010 12:15 am Samuel Thibault

Fix curses interaction with keymaps

The combination of keymap support (-k option) and curses is currently
very broken. The patch below fixes it by first extending keymap support
to interpret the shift, ctrl, altgr and addupper keywords in keymaps,
and to fix curses into properly using keymaps....

9d0706e4 03/07/2010 12:09 am Paolo Bonzini

use absolute URLs for .gitmodules

The relative URLs do not work when cloning a fork of qemu or when
cloning from the Savannah URL.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Aurelien Jarno <>

01668d98 03/07/2010 12:07 am Stefan Weil

Documentation: Modify rule for html output (better looking output format)

To create html output from texi input, texi2html was used.
Output from makeinfo looks cleaner, so replace the old rule
and use makeinfo now.

For those who want to use their own variant of html output,...

99aba0c4 03/07/2010 12:05 am Christoph Hellwig

scsi: update comment on the standards revision

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Aurelien Jarno <>

bba7be96 03/07/2010 12:03 am Ryota Ozaki

qemu-nbd: Fix wrong description in qemu-nbd.texi

-c option needs argument <dev> but it's missing now.
This patch fixes it.

Signed-off-by: Ryota Ozaki <>
Signed-off-by: Aurelien Jarno <>

7b234475 03/07/2010 12:02 am Kevin Wolf

Build usb-ohci for PCs

The OHCI emulation isn't obviously broken and there are people who want to use
it. Let's build it by default so that it can be enabled via -device.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Aurelien Jarno <>

21be440c 03/06/2010 11:56 pm Amit Shah

ppc440_bamboo: Disable new virtio-serial features for 0.12 machine type

Disable the MULTIPORT feature and MSI vectors for the 0.12 machine
types; those features are added only for 0.13 onwards.

Signed-off-by: Amit Shah <>
Signed-off-by: Aurelien Jarno <>

977b6b91 03/06/2010 11:56 pm Amit Shah

ppc440_bamboo: Add 0.12 and 0.13 machine types for backward compat

Add a 0.12 machine type for compatibility with older versions. Mark the
default one as 0.13.

Signed-off-by: Amit Shah <>
Signed-off-by: Aurelien Jarno <>

ad509737 03/06/2010 11:55 pm Amit Shah

s390-virtio: Fix compile error for virtio-block init

Commit 428c149b0be790b440e1cbee185b152cdb22feec modified the argument
that virtio_blk_init takes. Update the s390 bus code that calls this
function.

Signed-off-by: Amit Shah <>
CC: Christoph Hellwig <>...

d758d90f 03/06/2010 11:32 pm Kevin Wolf

json-parser: Fix segfault on malformed input

If the parser fails to parse the key in parse_pair, it will access a NULL
pointer. A simple way to trigger this is sending {foo} via QMP. This patch
turns the segfault into a syntax error reply.

Signed-off-by: Kevin Wolf <>...

cdee7bdf 03/06/2010 11:28 pm Aurelien Jarno

hw/serial.c: fix THRE interrupt clearing

UART_IIR_THRI is not a mask, but a possible value for the IIR ID.
Use UART_IIR_ID to extract this value.

Broken by commit 71e605f80313a632cc6714cde7bd240042dbdd95.

Signed-off-by: Aurelien Jarno <>

2f4f22bd 03/06/2010 09:23 pm Aurelien Jarno

hw/serial.c: fix indentation

Signed-off-by: Aurelien Jarno <>

d8714436 03/06/2010 08:37 pm takasi-y@ops.dti.ne.jp

linux-user: Save/restore fpu registers to signal context on sh4

As "todo" comment in source code.
And modify restore_sigcontext() to have three args as kernel's does.

Signed-off-by: Takashi YOSHII <>
Signed-off-by: Aurelien Jarno <>

597c0212 03/06/2010 08:35 pm takasi-y@ops.dti.ne.jp

linux-user: Fix syscall pipe2() retval on sh4

On linux/sh4
pipe() return values by r0:r1 as SH C calling convention.
pipe2() return values on memory as traditional unix way.

Signed-off-by: Takashi YOSHII <>
Signed-off-by: Aurelien Jarno <>

41b1e61f 03/06/2010 08:20 pm malc

target-i386: Fix long jumps/calls in long mode with REX.W set

Signed-off-by: malc <>
Signed-off-by: Aurelien Jarno <>

c2254920 03/06/2010 07:33 pm Aurelien Jarno

target-i386: fix lddqu SSE instruction

This instruction load data from memory to register and not the reverse.

Signed-off-by: Aurelien Jarno <>

a0acb46c 03/06/2010 05:45 am Anthony Liguori

Update to latest SeaBIOS

- 8f469b9 Dynamically allocate ata_channel info; introduce custom atadrive_s struct.
- 575ffc8 Cleanup - build drive description in temp memory during init.

Signed-off-by: Anthony Liguori <>

5309e5fb 03/04/2010 10:54 pm Stefan Weil

Makefile: Fix names of GPXE ROM files

da51e79b7ff2126cc2448749d657a4f6e3b1270f added two new ROM files
and removed an old one for eepro100.c.

These changes were missing in Makefile (which resulted
in a broken "make install").

Reported by Lucas Meneghel Rodrigues, thanks....

deb4203d 03/04/2010 06:42 pm Aurelien Jarno

target-mips: use newer logical ops

Signed-off-by: Aurelien Jarno <>

f374e826 03/04/2010 05:14 pm Anthony Liguori

Merge remote branch 'qemu-kvm/uq/master' into pulls

6cb2996c 03/04/2010 05:29 am Jan Kiszka

x86: Extend validity of bsp_to_cpu

As we hard-wire the BSP to CPU 0 anyway and cpuid_apic_id equals
cpu_index, bsp_to_cpu can also be based on the latter directly. This
will help an early user of it: KVM while initializing mp_state.

Signed-off-by: Jan Kiszka <>...

ea643051 03/04/2010 05:29 am Jan Kiszka

KVM: x86: Restrict writeback of VCPU state

Do not write nmi_pending, sipi_vector, and mpstate unless we at least go
through a reset. And TSC as well as KVM wallclocks should only be
written on full sync, otherwise we risk to drop some time on state
read-modify-write....

ea375f9a 03/04/2010 05:29 am Jan Kiszka

KVM: Rework VCPU state writeback API

This grand cleanup drops all reset and vmsave/load related
synchronization points in favor of four(!) generic hooks:

- cpu_synchronize_all_states in qemu_savevm_state_complete
(initial sync from kernel before vmsave)...

b0b1d690 03/04/2010 05:29 am Jan Kiszka

KVM: Rework of guest debug state writing

So far we synchronized any dirty VCPU state back into the kernel before
updating the guest debug state. This was a tribute to a deficite in x86
kernels before 2.6.33. But as this is an arch-dependent issue, it is
better handle in the x86 part of KVM and remove the writeback point for...

c902760f 03/04/2010 05:28 am Marcelo Tosatti

Add option to use file backed guest memory

Port qemu-kvm's -mem-path and -mem-prealloc options. These are useful
for backing guest memory with huge pages via hugetlbfs.

Signed-off-by: Marcelo Tosatti <>
CC: john cooper <>

60e4c631 03/04/2010 05:28 am Avi Kivity

Allocate memory below 4GB as one chunk

Instead of allocating a separate chunk for the first 640KB and another
for 1MB+, allocate one large chunk. This plays well in terms of alignment
and size with large pages.

Signed-off-by: Avi Kivity <>...

78728c92 03/03/2010 01:47 pm Stefan Weil

eepro100: Keep includes sorted

I always try to keep standard includes sorted
and add a comment why they are there (so they
can be removed when they are no longer needed).

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael S. Tsirkin <>

e7493b25 03/03/2010 01:47 pm Stefan Weil

eepro100: Remove C++ comments

C++ comments are unwanted, so this is fixed here.

  • Replace C++ comments by C comments.
  • Put code which was deactivated by a C++ comment in #if 0...#endif.

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael S. Tsirkin <>

f80a7fc3 03/03/2010 01:44 pm Stefan Weil

eepro100: Add diagnose command

Real hardware would run an internal self-test.
The emulation just returns a passed status.

Original patch was from Reimar Döffinger, thanks.

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael S. Tsirkin <>

3d0f4b9b 03/03/2010 01:44 pm Stefan Weil

eepro100: New function for reading command block

Move code which reads the command block to the
new function read_cb. The patch also fixes some
endianess issues related to the command block
and moves declarations of local variables to
the beginning of the block....

ec1d02d8 03/03/2010 01:34 pm Stefan Weil

eepro100: Use tx.status

There is no need for a local variable "status".
Using tx.status makes it clearer which status
is addressed.

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael S. Tsirkin <>

cc02c66c 03/03/2010 01:34 pm Stefan Weil

eepro100: Prettify code (no functional changes)

  • Fix indentation.

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael S. Tsirkin <>

cb25a3fb 03/03/2010 01:34 pm Stefan Weil

eepro100: Fix CU Start command

CU Start is allowed when the CU is in the idle or suspended state.

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael S. Tsirkin <>