Statistics
| Branch: | Revision:

root @ e3f5ec2b

# Date Author Comment
7c3370d4 06/09/2009 01:38 pm Jan Kiszka

slirp: Avoid zombie processes after fork_exec

Slirp uses fork_exec for spawning service processes, and QEMU uses this
for running smbd. As SIGCHLD is not handled, these processes become
zombies on termination. Fix this by installing a proper signal handler,...

cda94b27 06/09/2009 01:38 pm Mark McLoughlin

Revert "Fix output of uninitialized strings"

This reverts commit 8cf07dcbe7691dbe4f47563058659dba6ef66b05.

This is a sorry saga.

This commit:

8e4416af45 net: Add parameter checks for VLAN clients

broken '-net socket' and this commit:

ffad4116b9 net: Fix -net socket parameter checks...
0aa7a205 06/09/2009 01:38 pm Jan Kiszka

net: Real fix for check_params users

OK, last try: 8e4416af45 broke -net socket, ffad4116b9 tried to fix it
but broke error reporting of invalid parameters. So this patch widely
reverts ffad4116b9 again and intead fixes those callers of check_params
that originally suffered from overwritten buffers by using separate...

c8decae2 06/09/2009 01:38 pm Mark McLoughlin

net: fix error reporting for some net parameter checks

A small bit of confusion between buffers is causing errors like:

qemu: invalid parameter '10' in 'script=/etc/qemu-ifup,fd=10'

instead of:

qemu: invalid parameter 'script' in 'script=/etc/qemu-ifup,fd=10'...
10ae5a7a 06/09/2009 01:38 pm Jan Kiszka

net: Improve parameter error reporting

As host network devices can also be instantiated via the monitor, errors
should then be reported to the related monitor instead of stderr. This
requires larger refactoring, so this patch starts small with introducing...

b8e8af38 06/09/2009 01:38 pm Jan Kiszka

slirp: Reorder initialization

This patch reorders the initialization of slirp itself as well as its
associated features smb and redirection. So far the first reference to
slirp triggered the initialization, independent of the actual -net user
option which may carry additional parameters. Now we save any request to...

5a6d8815 06/09/2009 01:38 pm Mark McLoughlin

net: factor tap_read_packet() out of tap_send()

Move portability clutter out into its own function.

Signed-off-by: Mark McLoughlin <>

5b01e886 06/09/2009 01:38 pm Mark McLoughlin

net: move the tap buffer into TAPState

KVM uses a 64k buffer for reading from tapfd (for GSO support)
and allocates the buffer with TAPState rather than on the stack.

Not allocating it on the stack probably makes sense for qemu
anyway, so merge it in advance of GSO support....

2e1e0641 06/09/2009 01:38 pm Mark McLoughlin

net: vlan clients with no fd_can_read() can always receive

If a vlan client has no fd_can_read(), that means it can
always receive packets. The current code assumes it can never
receive packets.

Signed-off-by: Mark McLoughlin <>

3471b757 06/09/2009 01:38 pm Mark McLoughlin

net: only read from tapfd when we can send

Reduce the number of packets dropped under heavy network
traffic by only reading a packet from the tapfd when a
client can actually handle it.

Signed-off-by: Mark McLoughlin <>

463af534 06/09/2009 01:38 pm Mark McLoughlin

net: add fd_readv() handler to qemu_new_vlan_client() args

This, apparently, is the style we prefer - all VLANClientState
should be an argument to qemu_new_vlan_client().

Signed-off-by: Mark McLoughlin <>

cda9046b 06/09/2009 01:38 pm Mark McLoughlin

net: re-name vc->fd_read() to vc->receive()

VLANClientState's fd_read() handler doesn't read from file
descriptors, it adds a buffer to the client's receive queue.

Re-name the handlers to make things a little less confusing.

Signed-off-by: Mark McLoughlin <>

e3f5ec2b 06/09/2009 01:38 pm Mark McLoughlin

net: pass VLANClientState* as first arg to receive handlers

Give static type checking a chance to catch errors.

Signed-off-by: Mark McLoughlin <>

c8aa237c 06/09/2009 01:38 pm Jan Kiszka

net: Don't deliver to disabled interfaces in qemu_sendv_packet

Signed-off-by: Jan Kiszka <>
Signed-off-by: Mark McLoughlin <>

c27ff608 06/09/2009 01:38 pm Jan Kiszka

net: Fix and improved ordered packet delivery

Fix a race in qemu_send_packet when delivering deferred packets and
add proper deferring also to qemu_sendv_packet.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Mark McLoughlin <>

98ba2632 06/08/2009 08:36 pm Gerd Hoffmann

qdev: c99 initilaizers for bus_type_names

Signed-off-by: Gerd Hoffmann <>

682aea0e 06/08/2009 08:02 pm Gerd Hoffmann

xen nic: use XC_PAGE_SIZE instead of PAGE_SIZE.

Signed-off-by: Gerd Hoffmann <>

7105b056 06/08/2009 08:01 pm Gerd Hoffmann

xen nic: use qemu_malloc

Signed-off-by: Gerd Hoffmann <>

168ccc11 06/07/2009 04:40 pm Jan Kiszka

kvm: Improve upgrade notes when facing unsupported kernels

Users complained that it is not obvious what to do when kvm refuses to
build or run due to an unsupported host kernel, so let's improve the
hints.

Signed-off-by: Jan Kiszka <>

4ca1a9c6 06/07/2009 04:29 pm Blue Swirl

Fix generation of CONFIG_KVM

When configuring for several targets, some with KVM and some without, CONFIG_KVM was accidentally disabled for some of the targets.

Signed-off-by: Blue Swirl <>

153859be 06/07/2009 09:59 am Stuart Brady

Use hxtool for qemu-img command list

Use hxtool to generate the 'command syntax' section of qemu-img's help
message, and the corresponding section of the texinfo documentation.

This has the side-effect of adding 'check' to this list of commands in
the texinfo documentation....

3a2eeac0 06/06/2009 07:22 pm Stefan Weil

doc: Update information on supported network adapters.

  • There are no ISA PCI network adapters.
  • MIPS Malta is supported with any PCI network card.

Signed-off-by: Stefan Weil <>

6379840f 06/06/2009 06:48 pm Gerd Hoffmann

xen: net backend doesn't need linux headers.

Drop them to make qemu build on OpenSolaris.

Cc: Andreas Färber <>
Signed-off-by: Gerd Hoffmann <>

eff44266 06/06/2009 06:39 pm Kevin Wolf

Document changes in qemu-img interface

Update the documentation to reflect the introduction of format specific options
with -o. Don't advertise -e or -6 any more, they exist only for compatibility
reasons and can be replaced by the corresponding -o options....

db08adf5 06/06/2009 06:38 pm Kevin Wolf

qemu-img: Print available options with -o ?

This patch adds a small help text to each of the options in the block drivers
which can be displayed by using qemu-img create -f fmt -o ?

Signed-off-by: Kevin Wolf <>

f425c278 06/06/2009 06:17 pm Stefan Weil

Fix spelling in comment.

Signed-off-by: Stefan Weil <>

2313086a 06/06/2009 11:22 am Blue Swirl

Use hxtool to generate monitor documentation and C structures

Signed-off-by: Blue Swirl <>

25517f99 06/06/2009 04:54 am Paul Brook

Use correct type for SPARC cpu_cc_op

Signed-off-by: Paul Brook <>

db241f40 06/06/2009 04:49 am Paul Brook

Fix typo

Signed-off-by: Paul Brook <>

cae4956e 06/05/2009 05:53 pm Gerd Hoffmann

qdev: add monitor command to dump the tree.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Paul Brook <>

1431b6a1 06/05/2009 05:52 pm Paul Brook

Record device property types

Record device property types, and provide a list of properties at device
registration time.

Add a "device" property type that holds a reference to annother device.

Signed-off-by: Paul Brook <>

fd93a799 06/05/2009 05:16 pm Paul Brook

Fix elf loader range checking

The ELF loader tracks the range of addresses used by a binary.
However this incorrectly assumes zero is not a valid address.

Signed-off-by: Paul Brook <>

bdb11366 06/04/2009 03:12 pm Paul Brook

Remove ARM NVIC initialization hack

The ARMv7-M NVIC device pokes itself into the CPU state. Now we have a
proper device model we can have the CPU/SoC code do this.

Signed-off-by: Paul Brook <>

f3d08ee6 06/04/2009 01:41 pm Paul Brook

Add --enable-debug

New configure option for debug builds.

Signed-off-by: Paul Brook <>

aca312af 06/04/2009 01:24 pm Gerd Hoffmann

qdev: kill DeviceState->name

is redundant with DeviceState->type->name

Signed-off-by: Gerd Hoffmann <>

1e9fa730 06/04/2009 12:04 pm Nathan Froyd

fix gdbstub support for multiple threads in usermode, v3

When debugging multi-threaded programs, QEMU's gdb stub would report the
correct number of threads (the qfThreadInfo and qsThreadInfo packets).
However, the stub was unable to actually switch between threads (the T...

4548eaea 06/03/2009 11:48 pm Edgar E. Iglesias

CRIS: Remove duplicated flag defines.

Signed-off-by: Edgar E. Iglesias <>

4b0c7aa3 06/03/2009 10:54 pm Edgar E. Iglesias

microblaze: Fix loading of petalogix s3adsp1800 dtb.

Provide a petalogix-s3adsp1800.dtb blob.
Correct loading of the petalogix dtb.

Signed-off-by: Edgar E. Iglesias <>

40905a6a 06/03/2009 05:16 pm Paul Brook

Stellaris qdev conversion

Signed-off-by: Paul Brook <>

2c6554bc 06/02/2009 05:30 pm Paul Brook

Implement multiple samplers on stellaris ADC

Signed-off-by: Paul Brook <>

5cea8590 05/30/2009 03:59 am Paul Brook

Use relative path for bios

Look for bios and other support files relative to qemu binary, rather than
a hardcoded prefix.

Signed-off-by: Paul Brook <>

abc07545 05/28/2009 03:00 pm Edgar E. Iglesias

Update maintainer list.

Add myself as maintainer for the microblaze cpu and boards.
Update list of CRIS machines.

Signed-off-by: Edgar E. Iglesias <>

79fd42aa 05/28/2009 11:11 am Anthony Liguori

Install keymaps from new location

Signed-off-by: Anthony Liguori <>

1c6ed9f3 05/28/2009 10:14 am Alexander Graf

User networking: Show active connections

In case you're wondering what connections exactly you have open
or maybe redir'ed in the past, you can't really find out from qemu
right now.

This patch enables you to see all current connections the host
only networking holds open, so you can kill them using the previous...

de65fe0f 05/28/2009 10:14 am Sebastian Herbszt

Add detection of pthread library name

Try to detect the name of the pthread library.
Currently it looks for "-pthread" and "-pthreadGC2".

Signed-off-by: Sebastian Herbszt <>
Signed-off-by: Anthony Liguori <>

9fa06385 05/28/2009 10:14 am Jan Kiszka

kvm: Mark full address range dirty on live migration start

As Avi correctly noted, last_ram_offset does not mark the last physical
RAM address the guest may see (due to non-continuous memory regions).
Ensure that we catch them all by marking the full possible address range...

f452095e 05/28/2009 10:14 am Anthony Liguori

Move keymaps into pc-bios

This isn't the most ideal layout, but it makes -L /path/to/git/pc-bios Just
Work which is very convenient.

Signed-off-by: Anthony Liguori <>

f9e96436 05/28/2009 10:14 am Christoph Hellwig

vvfat: one more missing BlockDriver C99 initializer conversion

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Anthony Liguori <>

c1261d8d 05/27/2009 05:46 pm Alexander Graf

User Networking: Enable removal of redirections

Using the new host_net_redir command you can easily create redirections
on the fly while your VM is running.

While that's great, it's missing the removal of redirections, in case you
want to have a port closed again at a later point in time....

8a43b1ea 05/27/2009 05:46 pm Chris Lalancette

Allow monitor interaction when using migrate -exec

All,
I've recently been playing around with migration via exec. Unfortunately,
when starting the incoming qemu process with "-incoming exec:cmd", it suffers
the same problem that -incoming tcp used to suffer; namely, that you can't...

c16b5a2c 05/27/2009 05:46 pm Christoph Hellwig

fully split aio_pool from BlockDriver

Now that we have a separate aio pool structure we can remove those
aio pool details from BlockDriver.

Every driver supporting AIO now needs to declare a static AIOPool
with the aiocb size and the cancellation method. This cleans up the...

ad53089b 05/27/2009 05:45 pm Christoph Hellwig

qcow: add qcow_aio_setup helper

[this one is required for [PATCH] fully split aio_pool from BlockDriver,
sorry for not sending it out earlier]

Add a qcow_aio_setup helper to qcow to shared common code between
the aio_readv and aio_writev methods. Based on the function with...

4099df58 05/27/2009 05:45 pm Christoph Hellwig

raw-posix: fix hdev_create

We do need hdev_create unconditionally on all platforms so that qemu-img
create support for host device works on all platforms.

Also relax the check to allow character devices in addition to block
devices. On many Unix platforms block devices have buffered block...

94c6d6d8 05/27/2009 05:45 pm Christoph Hellwig

fix raw_pread_aligned return value

raw_pread_aligned currently returns the raw return value from
lseek/read, which is always -1 in case of an error. But the
callers higher up the stack expect it to return the negated
errno just like raw_pwrite_aligned.
...

afd32160 05/27/2009 05:45 pm Stefan Weil

VNC: Fix memory allocation (wrong structure size).

Pointer vs addresses a VncDisplay structure,
so it is sufficient to allocate sizeof(VncDisplay)
or sizeof(*vs) bytes instead of the much larger
sizeof(VncState).

Maybe the misleading name should be fixed, too:...

91a073a9 05/27/2009 05:45 pm Kevin Wolf

Drop bdrv_create2

This patch converts the remaining users of bdrv_create2 to bdrv_create and
removes the now unused function.

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

a980c98c 05/27/2009 05:45 pm Kevin Wolf

qcow2: Update multiple refcounts at once

Don't write each single changed refcount block entry to the disk after it is
written, but update all entries of the block and write all of them at once.

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

44ff42de 05/27/2009 05:45 pm Kevin Wolf

qcow2: Refactor update_refcount

This is a preparation patch with no functional changes. It moves the allocation
of new refcounts block to a new function and makes update_cluster_refcount (for
one cluster) call update_refcount (for multiple clusters) instead the other way...

ade40677 05/27/2009 05:45 pm Kevin Wolf

qcow/qcow2: Drop synchronous qcow_write()

There is only one (internal) user left and it can be switched to the normal
emulation provided in block.c

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

cab3c825 05/27/2009 05:45 pm Kevin Wolf

e1000: Ignore reset command

When a reset is requested, the current e1000 emulation never clears the
reset bit which may cause a driver to hang. This patch masks the reset
bit out when setting the control registert, so the reset is immediately
completed.
...

8cf07dcb 05/27/2009 05:44 pm Kevin Wolf

Fix output of uninitialized strings

Commit ffad4116b96e29e0fbe892806f97c0a6c903d30d removed the "scratch buffer"
from check_params, but didn't care for the error messages which actually
included this string to tell the user which option was wrong. Now this string...

7696d1ec 05/27/2009 11:49 am Edgar E. Iglesias

microblaze: Conditionalize FDT features.

If libfdt is not available, disable the fdt manipulation features.

Signed-off-by: Edgar E. Iglesias <>

48c50a62 05/27/2009 02:34 am Edgar E. Iglesias

doc: Briefly mention CRIS and MicroBlaze.

Signed-off-by: Edgar E. Iglesias <>

d0f3654f 05/27/2009 02:19 am Edgar E. Iglesias

microblaze: Make writes to MMU_ZPR flush the TLB.

Signed-off-by: Edgar E. Iglesias <>

6b2fce90 05/27/2009 02:10 am Edgar E. Iglesias

microblaze: Correct typo.

Signed-off-by: Edgar E. Iglesias <>

d74d6a99 05/26/2009 10:11 pm Edgar E. Iglesias

microblaze: Add GDB stub support.

Signed-off-by: Edgar E. Iglesias <>

72b675ca 05/26/2009 10:11 pm Edgar E. Iglesias

microblaze: Hook into the build-system.

Signed-off-by: Edgar E. Iglesias <>

6a8b1ae2 05/26/2009 10:10 pm Edgar E. Iglesias

microblaze: Add petalogix s3a1800dsp MMU linux ref-design.

This setup was designed by petalogix and is supported by upstream linux.
The design targets a xilinx spartan-3a-1800 dsp board with MMU.

Signed-off-by: Edgar E. Iglesias <>

b43848a1 05/26/2009 10:10 pm Edgar E. Iglesias

xilinx: Add ethlite emulation.

Signed-off-by: Edgar E. Iglesias <>

ee118d95 05/26/2009 10:10 pm Edgar E. Iglesias

xilinx: Add uartlite emulation.

Signed-off-by: Edgar E. Iglesias <>

388f60b1 05/26/2009 10:10 pm Edgar E. Iglesias

xilinx: Add OPB timer.

Signed-off-by: Edgar E. Iglesias <>

1f07fd1f 05/26/2009 10:10 pm Edgar E. Iglesias

microblaze: Add CPU interrupt wrapper logic.

Signed-off-by: Edgar E. Iglesias <>

17628bc6 05/26/2009 10:10 pm Edgar E. Iglesias

xilinx: Add interrupt controller.

Signed-off-by: Edgar E. Iglesias <>

afeeceb0 05/26/2009 10:10 pm Edgar E. Iglesias

microblaze: Add MMU emulation.

Signed-off-by: Edgar E. Iglesias <>

b779e29e 05/26/2009 10:10 pm Edgar E. Iglesias

microblaze: linux-user support.

Signed-off-by: Edgar E. Iglesias <>

e90e390c 05/26/2009 10:10 pm Edgar E. Iglesias

microblaze: Add disassembler.

Signed-off-by: Edgar E. Iglesias <>

8dfbe4e8 05/26/2009 10:10 pm Edgar E. Iglesias

microblaze: Add syscall, signal and termbits defs for linux-user.

Signed-off-by: Edgar E. Iglesias <>

4acb54ba 05/26/2009 10:10 pm Edgar E. Iglesias

microblaze: Add translation routines.

Signed-off-by: Edgar E. Iglesias <>

370ab986 05/26/2009 05:07 pm Paul Brook

Remove temporary config-host.h

Signed-off-by: Paul Brook <>

067a3ddc 05/26/2009 04:56 pm Paul Brook

Remove qdev irq sink handling

We have both IRQ sinks and GPIO inputs. These are in principle exactly
the same thing, so remove the former.

Signed-off-by: Paul Brook <>

c2fb2637 05/25/2009 08:56 pm Paul Brook

Add dummy command to submakefiles

Add a dummy command to the all: rule in sub-makefiles.
This avoids "Nothing to be done for `all'." messages from make.

Signed-off-by: Paul Brook <>

3c80c6fe 05/24/2009 11:24 pm Paul Brook

Remove unused variable

Signed-off-by: Paul Brook <>

3cb5a223 05/23/2009 10:43 pm Stefan Weil

ETRAX: Removed unused struct entry and fixed Windows build.

"struct timeval last" caused a compilation error with mingw32
(missing header for struct timeval).

It is unused, so it was possible to remove it.

Acked-by: Edgar E. Iglesias <>...

02e2da45 05/23/2009 02:13 am Paul Brook

Add common BusState

Implement and use a common device bus state. The main side-effect is
that creating a bus and attaching it to a parent device are no longer
separate operations. For legacy code we allow a NULL parent, but that
should go away eventually....

4856fcff 05/22/2009 07:44 pm Paul Brook

Fix lance segfaults

Signed-off-by: Paul Brook <>

52368552 05/22/2009 07:22 pm Paul Brook

Avoid errors when curl-config does not exist

Signed-off-by: Paul Brook <>

a2397807 05/22/2009 06:50 pm Jan Kiszka

x86: Add support for resume flag

Signed-off-by: Jan Kiszka <>

00070396 05/22/2009 06:50 pm Anthony Liguori

bios: Use the correct mask to size the PCI option ROM BAR

Bit 0 is the enable bit, which we not only don't want to set, but
it will stick and make us think it's an I/O port resource.

Signed-off-by: Alex Williamson <>
Signed-off-by: Anthony Liguori <>

37cb6fc3 05/22/2009 06:50 pm Jan Kiszka

net: Fix dump time stamps

Signed-off-by: Jan Kiszka <>

40ff1624 05/22/2009 06:50 pm Jason Wessel

serial: fix lost character after sysrq

After creating an automated regression test to test the sysrq
responses while running a linux image in qemu, I found that the
simulated uart was eating the character right after the sysrq about
75% of the time.

The problem is that the qemu sets the LSR_DR (data ready) bit on a...

d55ebf55 05/22/2009 06:50 pm Jason Wessel

USB serial device support

Add in a workaround to allow the usb serial devices to work with the
usb pass through mechanism. The ioctl() to request an alternate
interface will always return < 0 for a usb-serial device based on the
kernel driver. This means there is no alternate interface end point....

769ce76d 05/22/2009 06:50 pm Alexander Graf

Add HTTP protocol using curl v6

Currently Qemu can read from posix I/O and NBD. This patch adds a
third protocol to the game: HTTP.

In certain situations it can be useful to access HTTP data directly,
for example if you want to try out an http provided OS image, but...

8217606e 05/22/2009 06:50 pm Jan Kiszka

Introduce reset notifier order

Add the parameter 'order' to qemu_register_reset and sort callbacks on
registration. On system reset, callbacks with lower order will be
invoked before those with higher order. Update all existing users to the
standard order 0....

d33a1810 05/22/2009 06:50 pm Jan Kiszka

kvm: Rework VCPU reset

Use standard callback with highest order to synchronize VCPU on reset
after all device callbacks were execute. This allows to remove the
special kvm hook in qemu_system_reset.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

f8d926e9 05/22/2009 06:50 pm Jan Kiszka

kvm: x86: Save/restore KVM-specific CPU states

Save and restore all so far neglected KVM-specific CPU states. Handling
the TSC stabilizes migration in KVM mode. The interrupt_bitmap and
mp_state are currently unused, but will become relevant for in-kernel...

0928a95f 05/22/2009 06:50 pm Jan Kiszka

slirp: Reassign same address to same DHCP client

In case a client restarts a DHCP recovery without releasing its old
address, reassign the same address to prevent consuming free addresses
and moving away from the standard client address.

Signed-off-by: Jan Kiszka <>

7e57f049 05/22/2009 06:50 pm Jason Wessel

usb-serial: implement break event.

Implement the serial break via usb serial.

The second data byte in ftdi status packet contains the break status.
The values were already defined in usb-serial.c so it was a matter of
making use of the event_trigger to form a urb to send over to the host...

151f7749 05/22/2009 06:50 pm Jan Kiszka

kvm: Rework dirty bitmap synchronization

Extend kvm_physical_sync_dirty_bitmap() so that is can sync across
multiple slots. Useful for updating the whole dirty log during
migration. Moreover, properly pass down errors the whole call chain.

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

b0a46a33 05/22/2009 06:50 pm Jan Kiszka

kvm: Add missing bits to support live migration

This patch adds the missing hooks to allow live migration in KVM mode.
It adds proper synchronization before/after saving/restoring the VCPU
states (note: PPC is untested), hooks into
cpu_physical_memory_set_dirty_tracking() to enable dirty memory logging...

93102fd6 05/22/2009 06:50 pm Jan Kiszka

kvm: Fix framebuffer dirty log sync

kvm_physical_sync_dirty_bitmap() takes the end address as second
argument, not the region size. Moverover, the kvm API should not be used
directly here, but cpu_physical_sync_dirty_bitmap().

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