Statistics
| Branch: | Revision:

root / hw @ d6f4ade2

# Date Author Comment
d6f4ade2 03/17/2010 06:14 pm Paolo Bonzini

disentangle tcg and deadline calculation

Just tell main_loop_wait whether to be blocking or nonblocking, so that
there is no need to call qemu_cpus_have_work from the timer subsystem.
Instead, tcg_cpu_exec can say "we want the main loop not to block because...

6d0ee850 03/17/2010 05:42 pm Adam Litke

balloon: Do not save VM state wrt asynchronous virtio operations

When working with the VM state (for loadvm/savevm and migration), it is not
valid to load and store pointers since the validity of those pointers cannot be
assured in the new qemu address space. Therefore, virtio_balloon_save() and...

8cfacf07 03/17/2010 05:42 pm Christoph Hellwig

block: add logical_block_size property

Add a logical block size attribute as various guest side tools only
increase the filesystem sector size based on it, not the advisory
physical block size.

For scsi we already have support for a different logical block size...

702f3e0f 03/17/2010 05:42 pm Jan Kiszka

Avoid crash on '-usbdevice <device>' without parameters

Many usbdevice_init implementors assume params is non-NULL.

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

4a39943b 03/17/2010 04:44 pm Anthony Liguori

Merge remote branch 'markus/qerror' into staging

7d834c74 03/17/2010 04:42 pm Anthony Liguori

Merge remote branch 'mst/pci' into staging

d4c430a8 03/17/2010 04:44 am Paul Brook

Large page TLB flush

QEMU uses a fixed page size for the CPU TLB. If the guest uses large
pages then we effectively split these into multiple smaller pages, and
populate the corresponding TLB entries on demand.

When the guest invalidates the TLB by virtual address we must invalidate...

c7e4e8ce 03/16/2010 06:45 pm Markus Armbruster

monitor: Use argument type 'O' for device_add

While there, improve the params help text.

8bc27249 03/16/2010 06:45 pm Markus Armbruster

monitor: convert do_device_add() to QObject

fc98eb43 03/16/2010 06:45 pm Markus Armbruster

qdev: Relax parsing of bus option

Treat multiple successive slashes as a one slash. Ignore trailing
slashes. This is how POSIX pathnames work.

ac8dae67 03/16/2010 06:45 pm Markus Armbruster

qdev: Convert qbus_find() to QError

3801cf8a 03/16/2010 06:45 pm Markus Armbruster

Revert "qdev: Use QError for 'device not found' error"

This reverts commit 3ced9f7a36189aed94d8bf86f3f5087a53012455.

The next commit will convert all of qdev_device_add() to QError, and
it'll be clearer with this partial conversion reverted.

0204276b 03/16/2010 06:45 pm Markus Armbruster

error: Convert do_device_add() to QError

Conversion to QObject is still missing.

8212c64f 03/16/2010 06:45 pm Markus Armbruster

qemu-option: Move the implied first name into QemuOptsList

We sometimes permit omitting the first option name, for example
-device foo is short for -device driver=foo. The name to use
("driver" in the example) is passed as argument to qemu_opts_parse()....

fdcfa190 03/16/2010 06:45 pm Markus Armbruster

qdev: convert setting device properties to QError

036f7166 03/16/2010 06:01 pm Markus Armbruster

qdev: Hide "ptr" properties from users

Users can't set them, so qdev_device_help() shouldn't list them. Fix
that. Also make qdev_prop_parse() hide them instead of printing a
meaningless "has no parser" error message.

Their value means nothing to users, so qdev_print_props() shouldn't...

1ecda02b 03/16/2010 05:58 pm Markus Armbruster

error: Replace qemu_error() by error_report()

error_report() terminates the message with a newline. Strip it it
from its arguments.

This fixes a few error messages lacking a newline:
net_handle_fd_param()'s "No file descriptor named %s found", and
tap_open()'s "vnet_hdr=1 requested, but no kernel support for...

ab5b027e 03/16/2010 05:58 pm Markus Armbruster

error: Rename qemu_error_new() to qerror_report()

327867b6 03/16/2010 05:58 pm Markus Armbruster

qdev: Fix -device and device_add to handle unsuitable bus gracefully

"device_add isa-serial,bus=pci.0" kills QEMU. Not good.

0c17542d 03/16/2010 05:58 pm Markus Armbruster

qdev: Factor qdev_create_from_info() out of qdev_create()

To make it obvious that -device and device_add can't die in
hw_error().

c64eafaf 03/16/2010 05:58 pm Markus Armbruster

qdev: Hide "no_user" devices from users

Users can't create them, so qdev_device_help() shouldn't list them.
Fix that.

Also make qdev_device_add() pretend they don't exist. Before, it
rejected them with a "can't be added via command line" message, which...

6fdb03d5 03/16/2010 05:55 pm Markus Armbruster

error: Don't abuse qemu_error() for non-error in scsi_hot_add()

Commit 30d335d6 converted an informational message from
monitor_printf() to qemu_error(), probably because the latter doesn't
need a mon argument. A later commit will make qemu_error() print...

8ad00f84 03/16/2010 05:55 pm Markus Armbruster

pc: Fix error reporting for -boot once

Commit 0ecdffbb created pc_boot_set() for use from monitor command
"boot_set", via qemu_boot_set(). pc_boot_set() reports errors to
cur_mon, which works fine for monitor code.

Commit e0f084bf reused the function int reset handler...

d9346e81 03/16/2010 05:55 pm Markus Armbruster

pc: Factor common code out of pc_boot_set() and cmos_init()

Code duplicated in commit 0ecdffbb. The two versions are similar, but
not identical:

  • cmos_init() reports errors to stderr, pc_boot_set() via
    qemu_error(). The latter is fine for both, so pick that for the...
a4426488 03/16/2010 05:55 pm Markus Armbruster

block: Simplify usb_msd_initfn() test for "can read bdrv key"

The old test assumes that "hotplugged" implies "we have a current
monitor for reading the key". This is in fact true, but it's not
obviously true.

Aside: if it were false, we could pass a null pointer to...

2f792016 03/16/2010 05:55 pm Markus Armbruster

error: Move qemu_error & friends into their own header

8a9662ca 03/16/2010 05:55 pm Markus Armbruster

error: Don't abuse qemu_error() for non-error in qdev_device_help()

qdev_device_help() prints device information with qemu_error(). A
later commit will make qemu_error() print additional stuff that is
only appropriate for proper errors, and then this will break. Use...

53db16b5 03/16/2010 05:55 pm Markus Armbruster

error: Don't abuse qemu_error() for non-error in qbus_find()

qbus_find() adds an informational line to error messages, and prints
both lines with one qemu_error(). Use error_printf() for the
informational line instead.

While there, simplify: instead of printing buffers filled by...

409dbce5 03/16/2010 09:38 am Aurelien Jarno

load_elf: replace the address addend by a translation function

A few machines need to translate the ELF header addresses into physical
addresses. Currently the only possibility is to add a value to the
addresses.

This patch replaces the addend argument by and a translation function...

7a7e5db9 03/15/2010 01:52 pm Michael S. Tsirkin

pcnet: make subsystem vendor id match hardware

Real pcnet device (AT2450) apparently has subsystem
device and vendor id set to 0, this is out of spec
(which requires that vendor id is obtained from PCI SIG)
but windows xp driver seems to need this in order...

15e89f59 03/15/2010 01:52 pm Michael S. Tsirkin

eepro100: address pci todo's, use pci_set_xx

eepro100 uses macros which rely on a specific
local variable name (pci_conf) which is scary.
Some of the uses are wrong or unnecessary,
remove them. The rest are small in number, open-code
them using pci_set_xx functions....

7b9cbadb 03/15/2010 12:30 am Aurelien Jarno

mips: add header to mips_int.c and mips_timer.c

Signed-off-by: Aurelien Jarno <>

66c80e75 03/14/2010 10:52 am Vagrant Cascadian

spelling typo (compatibilty) in hw/fw_cfg.c

here's a trivial patch to fix the spelling of "compatibility":

Signed-off-by: Vagrant Cascadian <>
Signed-off-by: Blue Swirl <>

995bf0ca 03/13/2010 01:14 pm Gerd Hoffmann

fdc: fix drive property handling.

Fix the floppy controller init wrappers to set the drive properties
only in case the DriveInfo pointers passed in are non NULL. This allows
to set the properties using -global.

Signed-off-by: Gerd Hoffmann <>...

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 <>

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 <>

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 <>

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" [...] }...

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 <>

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 <>

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 <>...

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 <>

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 <>...

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)...

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 <>

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

eepro100: Support RNR interrupt

The RNR interrupt is triggered under these conditions:

  • the RU is not ready to receive a frame due to missing resources
  • the RU is ready and a RU abort command was requested

Signed-off-by: Stefan Weil <>...

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

eepro100: Replace variable name to fix a compiler warning

When compiling with -Wshadow, gcc gives a warning
which is fixed by renaming stat -> status.

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

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

eepro100: Use symbolic names for bits in EEPROM id

V2 - Use UPPER_CASE for enum values

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

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

eepro100: Remove old unused code

This code is no longer needed.

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

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

eepro100: Use symbolic names and BIT macros in binary operations

Instead of magic numbers like 0x8000, symbolic names are used
for the SCB command and status bits.

There are too many configuration bits to use symbolic names
there, too. Using the BIT macro is a little help when comparing...

762401e2 03/03/2010 01:33 pm Stefan Weil

eepro100: Add device descriptions

Add descriptions for all devices.
These descriptions are shown when users call
qemu -device ?

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

230a167c 03/03/2010 01:33 pm Stefan Weil

eepro100: Update copyright notice

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

ba19f2de 03/03/2010 01:33 pm Stefan Weil

eepro100: Add TODO list

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

da51e79b 03/03/2010 01:33 pm Stefan Weil

eepro100: Support gpxe boot for all eepro100 devices

Only two boot ROM files are needed for all devices.

  • Add these GPXE ROM files using new naming convention
    (as discussed on qemu-devel). Both files were created
    with http://rom-o-matic.net/, PCI vendor / device ids...
6cded3a4 03/03/2010 01:33 pm Stefan Weil

eepro100: Fix PXE boot

The phy handling was wrong for PXE, GPXE boot:
GPXE's eepro100 driver did not detect a valid link.

This is fixed here.

V2 - Use UPPER_CASE for enum values

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

0908bba1 03/03/2010 01:33 pm Stefan Weil

eepro100: Add missing SCB register names

Some system control block registers were addressed
using their offset value. Use symbolic names now
and clean the documentation.

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

ce0e58b3 03/03/2010 01:33 pm Stefan Weil

eepro100: Fix compiler errors from debug messages

When debug output was enabled (by defining DEBUG_EEPRO100),
some debug messages resulted in a compiler error.

This is fixed here.

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

35bed8ee 03/01/2010 05:29 am Paul Brook

Move ioport.h out of cpu-all.h

Only include ioport.h where it is actually needed.

Signed-off-by: Paul Brook <>

6049f4f8 02/28/2010 06:54 pm Richard Henderson

alpha-linux-user: Implement signals.

Move userland PALcode handling into linux-user main loop so that
we can send signals from there. This also makes alpha_palcode.c
system-level only, so don't build it for userland. Add defines
for GENTRAP PALcall mapping to signals....

75bb6589 02/27/2010 08:48 pm Liu Yu

powerpc/e500: adjust fdt and ramdisk loading addr

Since kernel uimage is getting bigger,
old fixed loading bases will result in regions overlap.

Add pad for fdt and ramdisk, so that they won't overlap with uimage.

Signed-off-by: Liu Yu <>...

dbf916d8 02/27/2010 08:47 pm Aurelien Jarno

powerpc: fix compilation with CONFIG_FDT undefined

Signed-off-by: Aurelien Jarno <>

04088adb 02/27/2010 05:30 pm Liu Yu

powerpc/booke: move fdt loading to rom infrastructure

It's convinent to use rom to checking overlap, to reset etc.
And uImage and ramdisk loading has already moved to it.

Also, after we add fdt to rom, free it.

Signed-off-by: Liu Yu <>...

c4963817 02/27/2010 05:21 pm Liu Yu

target-ppc: add synchronize register for booke init

So that the following registers init could be flushed back to kvm.

Signed-off-by: Liu Yu <>
Acked-by: Hollis Blanchard <>
Signed-off-by: Aurelien Jarno <>

d44168ff 02/25/2010 03:29 pm Paul Brook

Fix -usbdevice crash

If -usbdevice is used on a machine with no USB busses, usb_create
will fail and return NULL. Patch below handles this failure gracefully
rather than crashing when we try to init the device.

Signed-off-by: Paul Brook <>

05447803 02/23/2010 09:23 pm Frediano Ziglio

rewrote timer implementation for rtl8139.

Add a QEMU timer only when needed (timeout status not set, timeout
irq wanted and timer set).

This patch is required for Darwin. Patch has been tested under
FreeBSD, Darwin and Linux.

Signed-off-by: Frediano Ziglio <>...

71e605f8 02/23/2010 12:16 am Justin T. Gibbs

Fix lost serial TX interrupts. Report receive overruns.

o Implement receive overrun status. The FreeBSD uart driver
relies on this status in it's probe routine to determine the size
of the FIFO supported.
o As per the 16550 spec, do not overwrite the RX FIFO on an RX overrun....

63e6f31d 02/22/2010 11:23 pm Michael S. Tsirkin

apc_pci: simplify using rwhandler

Use rwhandler to simplify apb_pci.

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Blue Swirl <>

8414f45c 02/22/2010 11:02 pm Michael S. Tsirkin

apb_pci: minor cleanup

pci_data_write ignores high 8 bit in address,
so there seems to be no need to set them
in apb_pci.

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Blue Swirl <>

f21126df 02/22/2010 10:42 pm Blue Swirl

Fix arm-softmmu compile

cc1: warnings being treated as errors
/src/qemu/hw/pl181.c: In function 'pl181_fifo_run':
/src/qemu/hw/pl181.c:185: error: 'value' may be used uninitialized in this function

Signed-off-by: Blue Swirl <>

bc3b26f5 02/22/2010 05:33 pm Paul Brook

PL181 write fix

The PL181 data transfer loop incorrectly terminates after the last FIFO
word is popped, discarding the last 3 bytes of data on a write transfer.

Signed-off-by: Paul Brook <>

4fc8d671 02/20/2010 10:29 am Blue Swirl

Fix warning on mingw32

/src/qemu/hw/ide/core.c: In function 'ide_drive_pre_save':
/src/qemu/hw/ide/core.c:2740: warning: comparison is always false due to limited range of data type

Signed-off-by: Blue Swirl <>

4c5b10b7 02/19/2010 11:53 pm Jes Sorensen

QEMU e820 reservation patch

Hi,

Kevin and I have agreed on the approach for this one now. So here is
the latest version of the patch for QEMU, submitting e820 reservation
entries via fw_cfg.

Cheers,
Jes

Use qemu-cfg to provide the BIOS with an optional table of e820 entries....

0f853a38 02/19/2010 11:53 pm Kevin Wolf

qdev: Free opts on failed do_device_add

If the device can't be created, don't leak the QemuOpts and release the id of
the device that should have been added by the failed device_add.

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

ed487bb1 02/19/2010 11:33 pm Marcelo Tosatti

ide save/restore pio/atapi cmd transfer fields and io buffer

Save/restore information necessary to continue in progress PIO/ATAPI CMD
transfers.

This includes the IO buffer.

Signed-off-by: Marcelo Tosatti <>
Signed-off-by: Anthony Liguori <>

68735b6c 02/19/2010 11:32 pm Kevin O'Connor

USB HID does not support Set_Idle

I found that the QEMU USB keyboard support does not work properly with
the Set_Idle command. Once a non-zero value is given to Set_Idle,
then the keyboard reports an event on every poll - not based on the
time issued in the Set_Idle command....

d76fa62d 02/19/2010 11:32 pm Amit Shah

pc: Bump up pc version to 0.13 and add a 0.12 compat version

The version 0.13 will be the new default and compatibility options will
be added to the 0.12 version.

Signed-off-by: Amit Shah <>
Signed-off-by: Anthony Liguori <>

8bfbde6d 02/19/2010 11:32 pm Amit Shah

pc: Add backward compatibility options for virtio-serial

virtio-serial-pci can support multiple ports in the current development
version that will become 0.13. Add compatibility options for the 0.12
and 0.11 pc machine types.

Signed-off-by: Amit Shah <>...

ee4d45be 02/19/2010 11:32 pm Michael S. Tsirkin

virtio-serial: don't set MULTIPORT for 1 port dev

Since commit 98b19252cf1bd97c54bc4613f3537c5ec0aae263, all
serial devices declare MULTIPORT feature.
To allow 0.12 compatibility, we should clear this when
max_nr_ports is 1.

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

7b665b66 02/19/2010 11:32 pm Amit Shah

virtio-serial: pci: Allow MSI to be disabled

Michael noted we don't allow disabling of MSI for the virtio-serial-pci
device. Fix that.

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

053801bc 02/19/2010 11:18 pm Luiz Capitulino

Monitor: Convert pci_device_hot_remove() to cmd_new_ret()

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