Statistics
| Branch: | Revision:

root / hw @ 356c7ff4

# Date Author Comment
356c7ff4 07/17/2009 01:28 am Naphtali Sprei

fix for bad macaddr of e1000 in Windows 2003 server with original MS driver

The sequence of reading from eeprom is "offset by one" moved because of a false
detection of a clock cycle after an eeprom reset. Keeping the last clock value
after a reset keeps it in sync....

ccb63de3 07/17/2009 01:28 am Gerd Hoffmann

qdev: add user-specified identifier to devices.

Add id field to DeviceState. Make "info qtree" print it.

This helps users and management apps identifying devices in monitor
output, which is especially useful with otherwise identical devices
such as two virtio disks....

ab73ff29 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-blk-pci 0.10 compatibility.

Add class property to virtio-blk-pci allowing to specify the PCI class.
Add compat property to pc-0.10 to set the old PCI class.

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

eb54b6dc 07/17/2009 01:28 am Gerd Hoffmann

qdev: add id= support for pci nics.

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

d6beee99 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-console-pci 0.10 compatibility.

Add class property to virtio-console-pci allowing to specify the PCI class.
Add compat property to pc-0.10 to set the old PCI class.

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

8ad12514 07/17/2009 01:28 am Gerd Hoffmann

qdev: print device id in "info pci".

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

a1e0fea5 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-net-pci 0.10 compatibility.

Add vectors property, allowing to turn off msi by setting vectors=0.
Add compat property to pc-0.10 disabling msi.

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

f3519986 07/17/2009 01:28 am Gerd Hoffmann

qdev: es1370+ac97 description

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

81ebb98b 07/17/2009 01:28 am Gerd Hoffmann

qdev: factor out driver search to qdev_find_info()

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

b6b61144 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: compat property infrastructure.

This add support for switching devices into a compatibility mode
using device properties. Machine types can have a list of properties
for specific devices attached to allow the easy creation of machine
types compatible to older qemu versions....

3320e56e 07/17/2009 01:28 am Gerd Hoffmann

qdev: add no_user, alias and desc

no_user: prevent users from adding certain devices.
desc: description of the device.
alias: to allow user friendly shortcuts on the command line, i.e.
-device usbmouse instead of -device "QEMU USB Mouse" or
-device lsi instead of -device lsi53c895a...

96cc1810 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: add pc-0.10 machine type.

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

ef74679a 07/17/2009 01:28 am Dinesh Subhraveti

Initialize PS2 keyboard / mouse state on reset

Currently only common PS2 state is initialized, leaving keyboard and
mouse specific state to contain stale values.

Signed-off-by: Dinesh Subhraveti <>
Signed-off-by: Anthony Liguori <>

ee6847d1 07/17/2009 01:28 am Gerd Hoffmann

qdev: rework device properties.

This patch is a major overhaul of the device properties. The properties
are saved directly in the device state struct now, the linked list of
property values is gone.

Advantages: * We don't have to maintain the list with the property values....

15239b2e 07/17/2009 01:28 am Gerd Hoffmann

cleanup: drop unused struct elements from VirtIOPCIProxy.

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

bf4e5d92 07/17/2009 01:28 am Pascal Terjan

Handle vga= in -append

Here is a patch I had sent twice to the list 2 years ago.
Hopefuly this time someone will be interested

It adds support for passing vga mode to linux kernel through
vga= option in -append

Signed-off-by: Pascal Terjan <>...

7d93b1fa 07/17/2009 01:28 am Beth Kon

Reset HPET config register on hpet_reset

Without this, after system reset, hpet does not detect transition from
non-legacy to legacy mode.

Signed-off-by: Beth Kon <>
Signed-off-by: Anthony Liguori <>

8167ee88 07/16/2009 11:47 pm Blue Swirl

Update to a hopefully more future proof FSF address

Signed-off-by: Blue Swirl <>

a1961a4b 07/16/2009 05:15 pm Blue Swirl

Sparc32: convert slavio interrupt controller to qdev

Also increase QDEV_MAX_IRQ.

Signed-off-by: Blue Swirl <>

666713c0 07/16/2009 04:48 pm Blue Swirl

Sparc32: refactor CPU init

Signed-off-by: Blue Swirl <>

a350db85 07/16/2009 04:48 pm Blue Swirl

Sparc32: convert memory to qdev

Signed-off-by: Blue Swirl <>

f48f6569 07/16/2009 04:48 pm Blue Swirl

Sparc32: convert boot prom to qdev

Signed-off-by: Blue Swirl <>

5f750b2e 07/16/2009 04:47 pm Blue Swirl

Sparc32: convert iommu to qdev

Signed-off-by: Blue Swirl <>

fa28ec52 07/16/2009 04:47 pm Blue Swirl

Sparc32: convert cs4231 to qdev

Signed-off-by: Blue Swirl <>

d3ffcafe 07/16/2009 04:45 pm Blue Swirl

Sparc32: fix SDL zooming with TCX

Signed-off-by: Blue Swirl <>

d8d2e079 07/16/2009 04:28 pm Isaku Yamahata

pci.c: remove unnecessary #ifdef DEBUG_PCI.

remove unnecessary #ifdef DEBUG_PCI.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

76e30d0f 07/16/2009 04:28 pm Jan Kiszka

Move boot_set callback backend

Move registration function for the boot_set callback handler and provide
qemu_boot_set so that it can also be used outside the monitor code.

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

dda9b29f 07/16/2009 04:28 pm Jan Kiszka

Add qemu_unregister_reset

Will be used by '-boot once=...', and should also help in other use
cases.

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

95387491 07/16/2009 04:28 pm Jan Kiszka

Add boot menu control via command line switch

Disable the lengthy BIOS prompt for selecting a boot device by default,
but let the user reenable it via '-boot menu=on'.

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

e8b2a1c6 07/16/2009 04:28 pm Mark McLoughlin

Add a pc-0-10 machine type for compatibility with 0.10.x

Add a pc-0-10 machine type to allow a pc machine to be created with
virtio block and console devices compatibility with qemu-0.10.x.

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

5c634ef3 07/16/2009 04:28 pm Mark McLoughlin

Change default PCI class of virtio-blk to PCI_CLASS_STORAGE_SCSI

Windows virtio driver cannot pass DTM (certification) tests while the
storage class is PCI_CLASS_STORAGE_UNKNOWN.

A new qdev type is introduced to allow devices using the old class
to be created for compatibility with qemu-0.10.x....

21d58b57 07/16/2009 04:28 pm Mark McLoughlin

Change default PCI class of virtio-console to PCI_CLASS_SERIAL_OTHER

We're using PCI_CLASS_DISPLAY_OTHER now, but qemu-kvm.git is using
PCI_CLASS_OTHERS because:

"As a PCI_CLASS_DISPLAY_OTHER, it reduces primary display somehow on
Windows XP (possibly Windows disables acceleration since it fails...
6f6260c7 07/15/2009 11:45 pm Blue Swirl

Sparc32: convert sparc32_dma to qdev

Signed-off-by: Blue Swirl <>

f64ab228 07/15/2009 05:41 pm Blue Swirl

Convert fdc to qdev

Signed-off-by: Blue Swirl <>

c70c59ee 07/15/2009 11:53 am Blue Swirl

Sparc32: convert slavio timers to qdev

Signed-off-by: Blue Swirl <>

6c319c82 07/15/2009 11:51 am Blue Swirl

Sparc32/PPC: convert escc to qdev

Signed-off-by: Blue Swirl <>

2582cfa0 07/13/2009 07:51 pm Blue Swirl

Sparc32: convert slavio_misc to qdev

Signed-off-by: Blue Swirl <>

325f2747 07/13/2009 07:11 pm Blue Swirl

Sparc32: convert idreg to qdev

Signed-off-by: Blue Swirl <>

f55e9d9a 07/13/2009 12:32 am Tristan Gingold

target-ppc: fix typo in _cpu_ppc_load_decr

Use parameter 'next' to fix the hdecr case.
Also pass 'next' by value instead of pointer (more easy to read and no
performance issue for an always_inline function).

Signed-off-by: Tristan Gingold <>...

d27cf0ae 07/12/2009 11:07 pm Blue Swirl

Sparc32/Sparc64/PPC: convert m48txx to qdev

Signed-off-by: Blue Swirl <>

f40070c3 07/12/2009 10:28 pm Blue Swirl

Sparc32: convert tcx to qdev

Also increase QDEV_MAX_MMIO.

Signed-off-by: Blue Swirl <>

798b721e 07/12/2009 09:43 pm Blue Swirl

Sparc32: use the OpenFirmware name for ecc

Signed-off-by: Blue Swirl <>

53e3c4f9 07/12/2009 11:54 am Blue Swirl

Sparc64: convert ebus to qdev

Signed-off-by: Blue Swirl <>

49e66373 07/12/2009 11:16 am Blue Swirl

Sparc32: convert eccmemctl to qdev

Signed-off-by: Blue Swirl <>

7d55273f 07/12/2009 10:43 am Igor Kovalenko

sparc64: really initialize irq

Allocate irq just before passing it to pci bridge initialization
and actually use it to initialize pci bridge.

Signed-off-by:

--
Kind regards,
Igor V. Kovalenko

616cbc78 07/12/2009 12:46 am Paul Brook

Fix PCI IRQ breakage

Zero initialize the PCI bus irq count.

Signed-off-by: Paul Brook <>

110c50fd 07/11/2009 11:38 am Blue Swirl

Revert "Fix the PCI header type of APB"

This reverts commit e8d2a88755b849bdadaf80d19e342eade3c017bc.

ac47a60b 07/11/2009 11:20 am Blue Swirl

Fix APB by reverting 16eaedf2668e9b347a59d73346fcc4c764c58348 partially

Signed-off-by: Blue Swirl <>

0c3271c5 07/10/2009 11:32 pm Anthony Liguori

Indent ac97 and es1370 according to audio formatting

For the sake of consistency. I pulled in the wrong patches from Gerd when
he did the qdev conversion.

Signed-off-by: Anthony Liguori <>

4bfd1712 07/10/2009 09:44 pm Michael S. Tsirkin

qemu/msi: clean used vectors state on load

Clean up msix vector usage state on load. Since guest might have control
over it through the device, the device will have to load this state from
file.

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

72755a70 07/10/2009 09:44 pm Michael S. Tsirkin

qemu/msi: missing braces

MSIX present bit is tested incorrectly, and only happens to work because
the bit we are testing is 0x1. Add braces to fix this.

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

e6da7680 07/10/2009 09:44 pm Michael S. Tsirkin

qemu/virtio: mark msi vectors used on load

Usage of msi vectors is controlled by the guest and so needs to be
restored on load. Do this for msi vectors used by the virtio device.

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

1fa63e43 07/10/2009 09:41 pm Michael Buesch

usb-ohci: Fix endianness issue

This fixes a possible endianness issue in the usb-ohci hw module.
hcca.frame and ohci->frame_number are 16bit, so use cpu_to_le16().

Signed-off-by: Michael Buesch <>
Signed-off-by: Anthony Liguori <>

391354f1 07/10/2009 12:58 am Mark McLoughlin

Unregister savevm callback in eeprom93xx_free()

Otherwise if you hot remove an eepro100 NIC and then migrate,
you get:

Unknown savevm section or instance 'eeprom' 0

on the destination side.

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

9a3e12c8 07/10/2009 12:58 am Michael S. Tsirkin

fix segfault in msix_save

This fixes segfault reported by Kevin Wolf,
and simplifies the code in msix_save.

Reported-by: Kevin Wolf <>
Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Anthony Liguori <>

dca61621 07/10/2009 12:58 am Michael S. Tsirkin

qemu: remove control vector save

control vector is saved/restored by virtio-pci,
it does not belong in virtio.

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

ae50b274 07/10/2009 12:58 am Mark McLoughlin

Don't leak VLANClientState on PCI hot remove

destroy_nic() requires that NICInfo::private by a PCIDevice pointer,
but then goes on to require that the same pointer matches
VLANClientState::opaque.

That is no longer the case for virtio-net since qdev and wasn't...

d56dd6cf 07/10/2009 12:06 am Isaku Yamahata

use constant IOPORTS_MASK instead of 0xffff.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

32993977 07/10/2009 12:06 am Isaku Yamahata

split out ioport related stuffs from vl.c into ioport.c.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

10c4c98a 07/09/2009 03:07 pm Gerd Hoffmann

qdev: replace bus_type enum with bus_info struct.

BusInfo is filled with name and size (pretty much like I did for
DeviceInfo as well). There is also a function pointer to print
bus-specific device information to the monitor. sysbus is hooked
up there, I've also added a print function for PCI....

042f84d0 07/09/2009 03:07 pm Gerd Hoffmann

qdev: remove DeviceType

The only purpose DeviceType serves is creating a linked list of
DeviceInfo structs. This removes DeviceType and add a next field to
DeviceInfo instead, so the DeviceInfo structs can be changed that way.
Elimitates a pointless extra level of indirection....

16eaedf2 07/09/2009 03:07 pm Gerd Hoffmann

qdev/pci: misc fixes.

  • fix secondary bus setup. * use base->name instead of "FIXME" for device name.
    Yes, the device name is redundant. Only for drivers converted
    to qdev already though. Once all drivers are converted we can
    and should kill it....
6806e595 07/09/2009 03:07 pm Gerd Hoffmann

qdev: convert es1370.

Signed-off-by: Gerd Hoffmann <>

d88a76d1 07/09/2009 03:07 pm Gerd Hoffmann

qdev: convert ac97.

Signed-off-by: Gerd Hoffmann <>

0aab0d3a 07/09/2009 03:07 pm Gerd Hoffmann

qdev: update pci device registration.

Makes pci_qdev_register take a PCIDeviceInfo struct instead of a bunch
of parameters. Also adds config_read and config_write callbacks to
PCIDeviceInfo, so drivers needing these can be converted to the qdev
device API too....

e8d2a887 07/05/2009 11:33 pm Blue Swirl

Fix the PCI header type of APB

Signed-off-by: Blue Swirl <>

98846d73 07/05/2009 11:11 am Blue Swirl

Fix Sparse warning

Signed-off-by: Blue Swirl <>

a08d4367 06/29/2009 10:18 pm Jan Kiszka

Revert "Introduce reset notifier order"

This reverts commit 8217606e6edb49591b4a6fd5a0d1229cebe470a9 (and
updates later added users of qemu_register_reset), we solved the
problem it originally addressed less invasively.

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

3a31f36a 06/29/2009 10:18 pm Jan Kiszka

x86: Factor out pc_new_cpu

At this point, this refactoring looks like overkill. But we will need it
for CPU hotplugging, and qemu-kvm already carries it. Merging it early
would help qemu-kvm when rebasing against upstream.

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

7d4c3d53 06/29/2009 10:18 pm Markus Armbruster

Replace -no-virtio-balloon by -balloon

We want to do (at least) two things to the virtio-balloon device:
suppress it, and control its PCI address. Option -no-virtio-balloon
lets us do only the former. To get the latter, replace
-no-virtio-balloon with
...

e9283f8b 06/29/2009 10:18 pm Jan Kiszka

monitor: Drop pci_addr prefix from hotplug commands

The "pci_addr=" prefix currently required by pci_add/remove and
drive_add has no practical use. Drop it, but still silently accept it
for backward compatibility.

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

8d2ba1fb 06/29/2009 10:18 pm Jan Kiszka

kvm: Rework VCPU synchronization

During startup and after reset we have to synchronize user space to the
in-kernel KVM state. Namely, we need to transfer the VCPU registers when
they change due to VCPU as well as APIC reset.

This patch refactors the required hooks so that kvm_init_vcpu registers...

a62acdc0 06/29/2009 10:18 pm Jan Kiszka

monitor: Make pci_add device options truely optional

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

1d108d97 06/29/2009 09:52 pm Alexander Graf

Change bochs bios init order

For multiboot support, we need bochs_bios_init to happen before
load_linux, so we get the fw_cfg device.

Signed-off-by: Alexander Graf <>
Signed-off-by: Anthony Liguori <>

bf483392 06/29/2009 09:52 pm Alexander Graf

Expose fw_cfg v2

Multiboot passes options to the option rom using the fw_cfg device.
Right now, that device is local to the bochs_bios_init function.

Let's change that and expose it, so everyone may put data in there.

Signed-off-by: Alexander Graf <>...

f16408df 06/29/2009 09:52 pm Alexander Graf

Multiboot support v5

This patch implements support for Multiboot on x86 for -kernel.
Multiboot is a "new" approach to get rid of different bootloaders, providing
a unified interface for the kernel. It supports command line options and
kernel modules.

The two probably best known projects using multiboot are Xen and GNU Hurd....

1a609520 06/29/2009 04:52 pm Jan Kiszka

net: Provide VLAN client lookup helper

Introduce qemu_find_vlan_client_by_name for VLANClientState lookup based
on VLAN ID and client name. This is useful for monitor commands.

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

ff24bd58 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/virtio: virtio save/load bindings

Implement bindings for virtio save/load. Use them in virtio pci.

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

64d50b8b 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/pci: add pci_get/set_byte

Add pci_get/set_byte to keep *_word and *_long access functions company.
They are unused for now.

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

566e2d3e 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/net: request 3 vectors in virtio-net

Request up to 3 vectors in virtio-net. Actual bindings might supply
less.

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

ffe6370c 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/net: flag to control the number of vectors a nic has

Add an option to specify the number of MSI-X vectors for PCI NIC cards. This
can also be used to disable MSI-X, for compatibility with old qemu. This
option currently only affects virtio cards.

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

bf011293 06/24/2009 05:09 pm john cooper

Add serial number support for virtio_blk

[brought forward to current qemu-kvm.git]

This patch implements the missing qemu logic to
interpret a '-drive .. serial=XYZ ..' flag for
a virtio_blk device.

The serial number string is contained in a
skeletal IDENTIFY DEVICE data structure and...

b7ee1603 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/pci: make default_write_config use mask table

Change much of hw/pci to use symbolic constants and a table-driven
design: add a mask table with writable bits set and readonly bits unset.
Detect change by comparing original and new registers.

This makes it easy to support capabilities where read-only/writeable...

14e12559 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/pci: helper routines for pci access

Add inline routines for convenient access to pci devices
with correct (little) endianness. Will be used by MSI-X support.

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

6f4cbd39 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/pci: add routines to manage PCI capabilities

Add routines to manage PCI capability list. First user will be MSI-X.

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

bd4b65ee 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/pci: check constant registers on load

Add "cmask" table of constant register masks: if a bit is not writeable
and is set in cmask table, this bit is checked on load. An attempt to
load an image that would change such a register causes load to fail....

02eb84d0 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/pci: MSI-X support functions

Add functions implementing MSI-X support. First user will be virtio-pci.
Note that platform must set a flag to declare MSI supported: this
is a safety measure to avoid breaking platforms which should support
MSI-X but currently lack this in the interrupt controller emulation....

54c96da7 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/apic: minimal MSI/MSI-X implementation for PC

Implement MSI support in APIC. Note that MSI and MMIO APIC registers
are at the same memory location, but actually not on the global bus: MSI
is on PCI bus, APIC is connected directly to the CPU. We map them on the...

7055e687 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/virtio: virtio support for many interrupt vectors

Extend virtio to support many interrupt vectors, and rearrange code in
preparation for multi-vector support (mostly move reset out to bindings,
because we will have to reset the vectors in transport-specific code)....

aba800a3 06/24/2009 05:09 pm Michael S. Tsirkin

qemu/virtio: MSI-X support in virtio PCI

This enables actual support for MSI-X in virtio PCI.
First user will be virtio-net.

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

6d53bfd1 06/23/2009 09:04 pm Igor V. Kovalenko

sparc64 follow pci_nic_init change

sun4u.c: correct pci_nic_init arguments following
commit 5607c38820366954c38dd702e979499486057481

Signed-off-by: Igor V. Kovalenko <>

6243375f 06/22/2009 06:15 pm Mark McLoughlin

virtio-net: implement async packet sending

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

9391e4b8 06/22/2009 06:15 pm Isaku Yamahata

vmware_vga: clean up

use NULL instead of 0 for pci_register_device() argument
for consistency. Any other caller uses NULL.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

07b7d053 06/22/2009 06:15 pm Markus Armbruster

Fix do_pci_register_device() to reject devfn already in use

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

5607c388 06/22/2009 06:15 pm Markus Armbruster

Support addr=... in option argument of -net nic

Make net_client_init() accept addr=, put the value into struct
NICinfo. Use it in pci_nic_init(), and remove arguments bus and
devfn.

Don't support addr= in third argument of monitor command pci_add,
because that clashes with its first argument. Admittedly unelegant....

1f5f6638 06/22/2009 06:15 pm Markus Armbruster

Make first argument of monitor command pci_add work

Simply pass the PCI address through qemu_pci_hot_add_nic() to
pci_nic_init() and through qemu_pci_hot_add_storage() to pci_create().

Before, pci_device_hot_add() passed along the PCI bus to use, and
ignored any user-specified slot....

c2cc47a4 06/22/2009 06:15 pm Markus Armbruster

Support addr=... in option argument of -drive if=virtio

Make drive_init() accept addr=, put the value into struct DriveInfo.
Use it in all the places that create virtio-blk-pci devices:
pc_init1(), bamboo_init(), mpc8544ds_init().

Don't support addr= in third argument of monitor command pci_add and...

cd57c0f3 06/22/2009 06:15 pm Gleb Natapov

Don't register cpu reset handler for cpu with APIC.

APIC reset handler already resets cpu, no need to reset it twice.
Also register cpu_reset handler directly to make it impossible to
add additional code to main_cpu_reset() by mistake.

Signed-off-by: Gleb Natapov <>...

9d5e77a2 06/22/2009 06:15 pm Isaku Yamahata

acpi.c: make qemu_system_device_hot_add piix independent.

introruce piix4_device_hot_add() for piix4 specific code
and make qemu_system_device_hot_add() generic.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

e16044ef 06/22/2009 06:15 pm Mark McLoughlin

virtio-net: enable mergeable receive buffers

When virtio-net was merged in from qemu-kvm.git, the VNET_HDR related
features were dropped from the code.

However, VIRTIO_NET_F_MRG_RXBUF appears to have accidentally been
dropped too. Re-instate that now.

Reported-by: Michael S. Tsirkin <>...