Statistics
| Branch: | Revision:

root / hw @ 82ca8912

# Date Author Comment
82ca8912 04/01/2013 10:34 pm Alex Williamson

vfio-pci: Add extra debugging

Often when debugging it's useful to be able to disable bypass paths
so no interactions with the device are missed. Add some extra debug
options to do this. Also add device info on read/write BAR accesses,
which is useful when debugging more than one assigned device. A...

7076eabc 04/01/2013 10:34 pm Alex Williamson

qemu vfio-pci: Graphics device quirks

Graphics cards have a number of different backdoors. Some of these
are alternative ways to get PCI BAR addresses, some of them are
complete mirrors of PCI config space available through MMIO and
I/O port access. These quirks cover a number of ATI Radeon and...

f15689c7 04/01/2013 10:33 pm Alex Williamson

qemu vfio-pci: Add support for VGA MMIO and I/O port access

Most VGA cards need some kind of quirk to fully operate since they
hide backdoors to get to other registers outside of PCI config space
within the registers, but this provides the base infrastructure. If...

4b5d5e87 04/01/2013 08:50 pm Alex Williamson

vfio-pci: Generalize PCI config mangling

Kernel-side vfio virtualizes all of config space, but some parts are
unique to Qemu. For instance we may or may not expose the ROM BAR,
Qemu manages MSI/MSIX, and Qemu manages the multi-function bit so that
single function devices can appear as multi-function and vica versa....

96adc5c7 04/01/2013 08:50 pm Alex Williamson

vfio-pci: Add PCIe capability mangling based on bus type

Windows seems to pay particular interest to the PCIe header type of
devices and will fail to load drivers if we attach Endpoint devices or
Legacy Endpoint devices to the Root Complex. We can use
pci_bus_is_express and pci_bus_is_root to determine the bus type and...

c7b4c367 04/01/2013 06:36 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  1. By Dunrong Huang (1) and others
  2. Via Stefan Hajnoczi
    • stefanha/trivial-patches:
      hw/tcx: Remove unused 'addr' field and the property that sets it
      hw/i386/pc: format load_linux function...
4ce5dae8 04/01/2013 05:08 pm Peter Maydell

sysbus: make SysBusDeviceClass::init optional

Make the SysBusDeviceClass::init optional, for devices which
genuinely don't need to do anything here. In particular, simple
devices which can do all their initialization in their
instance_init method don't need either a DeviceClass::realize...

a86f200a 04/01/2013 05:08 pm Peter Maydell

musicpal: qdevify musicpal-misc

Make musicpal-misc into its own (trivial) qdev device, so we
can get rid of the abuse of sysbus_add_memory().

Signed-off-by: Peter Maydell <>
Reviewed-by: Peter Crosthwaite <>...

20cf850c 04/01/2013 05:08 pm Peter Maydell

milkymist-minimac2: Just expose buffers as a sysbus mmio region

Just expose the register buffers memory as a standard sysbus mmio
region which the creator of the device can map, rather than
providing a qdev property which the creator has to set to the
base address and then doing the mapping in the device's own...

c34e1205 04/01/2013 05:08 pm Peter Maydell

milkymist-softusb: Don't map RAM memory regions in the device itself

Don't map the pmem and dmem RAM memory regions in the milkymist-softusb
device itself. Instead just expose them as sysbus mmio regions which
the device creator can map appropriately. This allows us to drop the...

c31bc98e 04/01/2013 05:08 pm Peter Maydell

hw/milkymist-softusb: set buffer in softusb_read_{dmem, pmem} error path

Make sure we set the buffer to something in the softusb_read_{dmem,pmem}
error paths, since the caller will use the buffer unconditionally.
(Newer gcc is smart enough to spot this and complain about 'may be...

e63d28d7 04/01/2013 05:08 pm Peter Maydell

sysbus: Remove sysbus_add_memory and sysbus_del_memory

Remove the sysbus_add_memory and sysbus_del_memory functions. These
are trivial wrappers for mapping a memory region into the system
memory space, and have no users now. Sysbus devices should never map...

d93a8a43 03/28/2013 07:59 pm David Woodhouse

piix_pci: Use DEVICE and ISA_BUS()

Signed-off-by: David Woodhouse <>
Reviewed-by: Andreas Färber <>
Tested-by: Laszlo Ersek <>
Reviewed-by: Laszlo Ersek <>
Message-id: ...

c9721215 03/28/2013 07:59 pm David Woodhouse

piix_pci: Fix C99 comments

Signed-off-by: David Woodhouse <>
Reviewed-by: Andreas Färber <>
Tested-by: Laszlo Ersek <>
Reviewed-by: Laszlo Ersek <>
Message-id: ...

57a0f0c6 03/28/2013 07:59 pm David Woodhouse

piix_pci: Clean up i440FX object handling

Define and use I440FX_PCI_DEVICE() instead of using DO_UPCAST().

Signed-off-by: David Woodhouse <>
Reviewed-by: Andreas Färber <>
Tested-by: Laszlo Ersek <>...

1ab461b5 03/28/2013 07:57 pm KONRAD Frederic

virtio-balloon: add the virtio-balloon device.

Create virtio-balloon which extends virtio-device, so it can be connected on
virtio-bus.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

e378e88d 03/28/2013 07:57 pm KONRAD Frederic

virtio-balloon-pci: switch to the new API.

Here the virtio-balloon-pci is modified for the new API. The device
virtio-balloon-pci extends virtio-pci. It creates and connects a
virtio-balloon during the init. The properties are not changed.

Signed-off-by: KONRAD Frederic <>...

30bff6a0 03/28/2013 07:57 pm KONRAD Frederic

virtio-balloon-ccw: switch to the new API.

Here the virtio-balloon-ccw is modified for the new API. The device
virtio-balloon-ccw extends virtio-ccw-device as before. It creates and
connects a virtio-balloon during the init. The properties are not modified....

5c7d0962 03/28/2013 07:57 pm KONRAD Frederic

virtio-balloon: cleanup: init and exit function.

This remove old init and exit function as they are no longer needed.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

c96caced 03/28/2013 07:57 pm KONRAD Frederic

virtio-balloon: cleanup: QOM casts.

As the virtio-balloon-pci is switched to the new API, we can use QOM
casts.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

2900af59 03/28/2013 07:57 pm KONRAD Frederic

virtio-balloon: cleanup: remove qdev field.

The qdev field is no longer needed, just drop it.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

b0d62a3d 03/28/2013 11:32 am Peter Maydell

hw/tcx: Remove unused 'addr' field and the property that sets it

Remove the 'addr' field from TCXState (since it is completely unused),
also the qdev property which sets it. This seems to be a relic from
many years past; devices don't need to know where they are mapped....

0f9d76e5 03/28/2013 11:27 am liguang

hw/i386/pc: format load_linux function

Signed-off-by: liguang <>
Signed-off-by: Stefan Hajnoczi <>

b2c1394a 03/27/2013 05:26 pm Hans de Goede

virtio-serial: Consolidate guest_open/guest_close into set_guest_connected

Signed-off-by: Hans de Goede <>
Message-id:
Signed-off-by: Anthony Liguori <>

bc6b815d 03/27/2013 05:26 pm Alon Levy

virtio-serial: propagate guest_connected to the port on post_load

When migrating a host with with a spice agent running the mouse becomes
non operational after the migration due to the agent state being
inconsistent between the guest and the client.

After migration the spicevmc backend on the destination has never been notified...

19083228 03/27/2013 05:26 pm Hans de Goede

qemu-char: Automatically do fe_open / fe_close on qemu_chr_add_handlers

Most frontends can't really determine if the guest actually has the frontend
side open. So lets automatically generate fe_open / fe_close as soon as a
frontend becomes ready (as signalled by calling qemu_chr_add_handlers) /...

8e25daa8 03/27/2013 05:26 pm Hans de Goede

qemu-char: Cleanup: consolidate fe_open/fe_close into fe_set_open

Signed-off-by: Hans de Goede <>
Message-id:
Signed-off-by: Anthony Liguori <>

85d91e32 03/27/2013 05:26 pm Hans de Goede

qemu-char: Move incrementing of avail_connections to qdev-properties-system

The decrement of avail_connections is done in qdev-properties-system move
the increment there too for proper balancing of the calls.

Signed-off-by: Hans de Goede <>...

16665b94 03/27/2013 05:26 pm Hans de Goede

qemu-char: Rename opened to be_open

Rename the opened variable to be_open to reflect that it contains the
opened state of the backend.

Signed-off-by: Hans de Goede <>
Message-id:
Signed-off-by: Anthony Liguori <>

404e7a4f 03/26/2013 11:16 pm Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

virtio,pci,qom

Work by Alex to support VGA assignment,
pci and virtio fixes by Stefan, Jason and myself, and a
new qmp event for hotplug support by myself.

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

6214e73c 03/26/2013 09:02 pm Alex Williamson

pcie: Add endpoint capability initialization wrapper

Fix the awkward API of mangling the caller specified PCIe type and
just provide an interface to initialize an endpoint device. This
will pick either a regular endpoint or integrated endpoint based on
the bus and return pcie_cap_init to doing exactly what is asked....

3a861c46 03/26/2013 09:02 pm Alex Williamson

pci: Create and register a new PCI Express TypeInfo

This will allow us to differentiate Express and Legacy buses.

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

cf09458d 03/26/2013 09:02 pm Alex Williamson

pci: Move PCI and PCIE type defines

Move these so that we can reference them from a more common header
instead of including pci_bus.h everywhere.

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

60a0e443 03/26/2013 09:02 pm Alex Williamson

pci: Allow PCI bus creation interfaces to specify the type of bus

No change to any types.

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

afb661eb 03/26/2013 09:02 pm Alex Williamson

pci: Q35, Root Ports, and Switches create PCI Express buses

Convert q35, ioh3420, xio3130_upstream, and xio3130_downstream to
use the new TYPE_PCIE_BUS.

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

8c0bf9e2 03/26/2013 09:02 pm Alex Williamson

pci: Create pci_bus_is_express helper

For testing the bus type.

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

0889464a 03/26/2013 09:02 pm Alex Williamson

pci: Create and use API to determine root buses

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

eb28cb1b 03/26/2013 09:02 pm Alex Williamson

pcie: Mangle types to match topology

Windows will fail to start drivers for devices with an Endpoint type
PCIe capability attached to a Root Complex (code 10 - Device cannot
start). The proper type for such a device is Root Complex Integrated
Endpoint. Devices don't care which they are, so do this conversion...

ba7d8515 03/26/2013 09:02 pm Alex Williamson

pci: Teach PCI Bridges about VGA routing

Each PCI Bridge has a set of implied VGA regions that are enabled when
the VGA bit is set in the bridge control register. This allows VGA
devices behind bridges. Unfortunately with VGA Enable, which we
formerly allowed but didn't back, comes along some required VGA...

45eb768c 03/26/2013 09:02 pm Michael S. Tsirkin

pci_bridge: factor out common code

Reuse common code in pcie_port, override the hardwired-to-0
bits per PCI Express spec.
No functional change but makes the code easier to follow.

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

600d05b9 03/26/2013 09:02 pm Michael S. Tsirkin

pci_bridge: drop formatting from source

We use the same formatting for all files, it
doesn't make sense to have formatting directives only
in pci bridge header.

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

e5368f0d 03/26/2013 09:02 pm Alex Williamson

pci: Fix INTx routing notifier recursion

For some reason we recurse to fire the INTx routing notifier for each
child of a bus, for each possible device of a bus. That means that if
we add a root port, the notifier gets called for that bridge 256
times. If we add an upstream switch behind that root port, 256^2. But...

659fefee 03/26/2013 09:02 pm Alex Williamson

pci_bridge: Use a default map_irq function

The PCI bridge spec defines a default swizzle for translating INTx
IRQs from secondary bus to primary. Use this by default for any
bridge that doesn't set a function.

Signed-off-by: Alex Williamson <>...

ea7cfed6 03/26/2013 09:02 pm Alex Williamson

pci_bridge: Remove duplicate IRQ swizzle function

pci_bridge_dev_map_irq_fn() is identical to pci_swizzle_map_irq_fn(),
which is now the default for all PCI bridges. We can therefore remove
this function and the pci_bridge_map_irq() call that used it.

Signed-off-by: Alex Williamson <>...

8c7f3dd0 03/26/2013 09:02 pm Stefan Hajnoczi

pci: refuse empty ROM files

A zero size ROM file is invalid and should produce a warning.
Attempting to use a zero size file ends up hitting an assertion
qemu_ram_set_idstr() because RAMBlocks with duplicate addresses are
allocated - due to zero size the allocator doesn't increment the next...

15054fce 03/26/2013 09:02 pm Michael S. Tsirkin

qmp: add path to device_deleted event

Add QOM path to device deleted event. It now becomes useful to report
it for devices which don't have an ID assigned.

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

f8f7c533 03/26/2013 09:02 pm Jason Wang

virtio-net: remove layout assumptions for mq ctrl

Following commit 921ac5d0f3a0df869db5ce4edf752f51d8b1596a (virtio-net:
remove layout assumptions for ctrl vq), this patch makes multiqueue ctrl
handling not rely on the layout of descriptors.

Signed-off-by: Jason Wang <>...

a38b2c49 03/26/2013 09:02 pm Michael S. Tsirkin

virtio-pci: guest notifier mask without non-irqfd

non-irqfd setups are currently broken with vhost:
we start up masked and nothing unmasks the interrupts.
Fix by using mask notifiers, same as the irqfd path.

Sharing irqchip/non irqchip code is always a good thing,...

e01fd687 03/26/2013 09:02 pm Alex Williamson

pci: Add PCI VGA helpers

Allow devices to register VGA memory regions for handling PCI spec
defined VGA I/O port and MMIO areas. PCI will attach these to the
bus address spaces and enable them according to the device command
register value.

Signed-off-by: Alex Williamson <>...

18501ae6 03/26/2013 08:38 pm Anthony Liguori

Merge remote-tracking branch 'quintela/migration.next' into staging

  1. By Peter Lieven (9) and others
  2. Via Juan Quintela
    • quintela/migration.next: (22 commits)
      Use qemu_put_buffer_async for guest memory pages
      Add qemu_put_buffer_async
      Use writev ops if available...
b57ed9bf 03/26/2013 07:04 pm Cornelia Huck

virtio-ccw: Queue sanity check for notify hypercall.

Verify that the virtio-ccw notify hypercall passed a reasonable
value for queue.

Cc:
Reported-by: Alexander Graf <>
Signed-off-by: Cornelia Huck <>

e769bdc2 03/26/2013 04:27 pm Peter Maydell

hw/qdev: Abort rather than ignoring errors adding device properties

Instead of ignoring any errors that occur when adding properties
to a new device in device_initfn(), check for them and abort if any
occur. The most likely cause is accidentally adding a duplicate...

b000dfbd 03/26/2013 04:26 pm Peter Maydell

hw/qdev-properties.c: Improve diagnostic for setting property after realize

Now we have error_setg() we can improve the error message emitted if
you attempt to set a property of a device after the device is realized
(the previous message was "permission denied" which was not very...

3ab1dfdd 03/26/2013 04:26 pm KONRAD Frederic

virtio-scsi: add the virtio-scsi device.

Create virtio-scsi which extends virtio-device, so it can be connected on
virtio-bus.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

bc7b90a0 03/26/2013 04:26 pm KONRAD Frederic

virtio-scsi-pci: switch to new API.

Here the virtio-scsi-pci is modified for the new API. The device virtio-scsi-pci
extends virtio-pci. It creates and connects a virtio-scsi during the init.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>...

9ef13d8f 03/26/2013 04:26 pm KONRAD Frederic

virtio-scsi-s390: switch to the new API.

Here the virtio-scsi-s390 is modified for the new API. The device
virtio-scsi-s390 extends virtio-s390-device as before. It creates and
connects a virtio-scsi during the init. The properties are not modified.

Signed-off-by: KONRAD Frederic <>...

c908ea10 03/26/2013 04:26 pm KONRAD Frederic

virtio-scsi-ccw: switch to new API

Here the virtio-scsi-ccw is modified for the new API. The device
virtio-scsi-ccw extends virtio-ccw-device as before. It creates and
connects a virtio-scsi during the init. The properties are not modified.

Signed-off-by: KONRAD Frederic <>...

0ac8e139 03/26/2013 04:26 pm KONRAD Frederic

virtio-scsi: cleanup: use QOM casts.

As the virtio-scsi-pci and virtio-scsi-s390 are switched to the new API,
we can use QOM casts.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

763684be 03/26/2013 04:26 pm KONRAD Frederic

virtio-scsi: cleanup: init and exit functions.

This remove old init and exit function as they are no longer needed.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

c19f806e 03/26/2013 04:26 pm KONRAD Frederic

virtio-scsi: cleanup: remove qdev field.

The qdev field is no longer needed. Just drop it.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

4bfeb18a 03/26/2013 04:26 pm KONRAD Frederic

virtio-scsi: moving host_features from properties to transport properties.

host_features field is part of the transport device. So move all the
host_features related properties into transport device.

Signed-off-by: KONRAD Frederic <>...

394e2e4c 03/26/2013 04:26 pm KONRAD Frederic

virtio-scsi: don't use pointer for configuration.

The configuration field must not be a pointer as it will be used for virtio-scsi
properties. So *conf is replaced by conf.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>...

22219527 03/26/2013 04:26 pm KONRAD Frederic

virtio-scsi: allocate cmd_vqs array separately.

Allocate/Free the cmd_vqs array separately to have a fixed size device.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Cornelia Huck <>
Reviewed-by: Peter Maydell <>...

d58f5598 03/26/2013 02:30 pm David Gibson

savevm: Add VMSTATE_UINTTL_EQUAL helper

This adds an _EQUAL VMSTATE helper for target_ulongs, defined in terms of
VMSTATE_UINT32_EQUAL or VMSTATE_UINT64_EQUAL as appropriate.

Signed-off-by: David Gibson <>
Signed-off-by: Juan Quintela <>

75020a70 03/25/2013 12:13 pm Dmitry Fleytman

Common definitions for VMWARE devices

Signed-off-by: Dmitry Fleytman <>
Signed-off-by: Yan Vugenfirer <>
Signed-off-by: Stefan Hajnoczi <>

e263cd49 03/25/2013 12:13 pm Dmitry Fleytman

Packet abstraction for VMWARE network devices

Signed-off-by: Dmitry Fleytman <>
Signed-off-by: Yan Vugenfirer <>
Signed-off-by: Stefan Hajnoczi <>

786fd2b0 03/25/2013 12:13 pm Dmitry Fleytman

VMXNET3 device implementation

Signed-off-by: Dmitry Fleytman <>
Signed-off-by: Yan Vugenfirer <>
Signed-off-by: Stefan Hajnoczi <>

fe6344a0 03/24/2013 12:30 pm Anthony Green

Remove device_tree.o from hw/moxie/Makefile.objs.

Here's a fix for the build problem identified by Aurelien Jarno here:
http://lists.gnu.org/archive/html/qemu-devel/2013-03/msg04177.html

Signed-off-by: Anthony Green <>
Signed-off-by: Aurelien Jarno <>

a360d965 03/23/2013 04:25 pm Anthony Green

Add sample moxie system

Signed-off-by: Anthony Green <>
Signed-off-by: Blue Swirl <>

f7c61bf8 03/23/2013 04:23 pm Blue Swirl

Merge branch 'for-upstream' of git://github.com/mwalle/qemu

  • 'for-upstream' of git://github.com/mwalle/qemu:
    configure: rename OpenGL feature to GLX
    configure: proper OpenGL/GLX probe
    target-lm32: use HELPER macro
    target-lm32: flush tlb after clearing env...
d76bb735 03/22/2013 10:43 pm Aurelien Jarno

Merge branch 'ppc-for-upstream' of git://github.com/agraf/qemu

  • 'ppc-for-upstream' of git://github.com/agraf/qemu: (58 commits)
    target-ppc: Use NARROW_MODE macro for tlbie
    target-ppc: Use NARROW_MODE macro for addresses
    target-ppc: Use NARROW_MODE macro for comparisons...
cecd77ae 03/22/2013 08:05 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  1. By liguang (2) and others
  2. Via Stefan Hajnoczi
    • stefanha/trivial-patches:
      qdev: remove redundant abort()
      gitignore: ignore more files
      Use proper term in TCG README
      serial: Fix debug format strings...
01ed1d52 03/22/2013 05:09 pm liguang

qdev: remove redundant abort()

Reviewed-by: Andreas Färber <>
Signed-off-by: liguang <>
Signed-off-by: Stefan Hajnoczi <>

d5aea6f3 03/22/2013 04:28 pm David Gibson

mmu-hash*: Add header file for definitions

Currently cpu.h contains a number of definitions relating to the 64-bit
hash MMU. Some are used in the MMU emulation code, but some are only used
in the spapr MMU management hcall implementations.

This patch moves these definitions (except for a few that are needed...

dffdaf61 03/22/2013 04:28 pm David Gibson

mmu-hash*: Add hash pte load/store helpers

On real hardware the ppc hash page table is stored in memory; accordingly
our mmu emulation code can read a hash page table in guest memory. But,
when paravirtualized under PAPR, the real hash page table is in host...

a4e044c3 03/22/2013 04:28 pm David Gibson

pseries: Fix breakage in CPU QOM conversion

Commit 259186a7d2f7184efc96ae99bc5658e6159f53ad "cpu: Move halted and
interrupt_request fields to CPUState" broke the pseries machine. That's
because it uses CPU instead of ENV_GET_CPU() to convert from the global...

89dfd6e1 03/22/2013 04:28 pm David Gibson

pseries: Remove "busname" property for PCI host bridge

Currently the "spapr-pci-host-bridge" device has a "busname" property which
can be used to override the default assignment of qbus names for the bus
subordinate to the PHB. We use that for the default primary PCI bus, to...

7b565160 03/22/2013 04:28 pm David Gibson

pseries: Move XICS initialization before cpu initialization

Currently, the pseries machine initializes the cpus, then the XICS
interrupt controller. However, to support the upcoming in-kernel XICS
implementation we will need to initialize the irq controller before the...

8b4a8988 03/22/2013 02:30 pm Kevin Wolf

serial: Fix debug format strings

This fixes the build of hw/serial.c with DEBUG_SERIAL enabled.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

085d8134 03/22/2013 02:25 pm Peter Maydell

Fix typos and misspellings

Fix various typos and misspellings. The bulk of these were found with
codespell.

Signed-off-by: Peter Maydell <>
Reviewed-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

fe42d7fb 03/20/2013 09:27 am Cornelia Huck

virtio-ccw, s390-virtio: Use generic virtio-blk macro.

Now that virtio-ccw and s390-virtio define all common properties
for virtio-blk, we can switch to using the generic
DEFINE_VIRTIO_BLK_PROPERTIES macro.

CC: Alexander Graf <>
Signed-off-by: Cornelia Huck <>

da0a58b9 03/20/2013 09:22 am Cornelia Huck

s390-virtio, virtio-ccw: Add config_wce for virtio-blk.

There's no reason why we wouldn't want to make the cache mode
configurable.

Acked-by: Alexander Graf <>
Signed-off-by: Cornelia Huck <>

131cd737 03/20/2013 09:21 am Cornelia Huck

virtio-ccw: Add missing blk chs properties.

Signed-off-by: Cornelia Huck <>

f7d42093 03/19/2013 03:01 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/ipxe.2' into staging

  1. By Gerd Hoffmann
  2. Via Gerd Hoffmann
    • kraxel/ipxe.2:
      Switch to efi-enabled nic roms by default
      Add efi rom binaries
      Add Makefile rules to build nic rom binaries with efi support
      Update ipxe submodule to latest master...
a8e5cc0c 03/19/2013 12:48 pm Dunrong Huang

virtio-blk: Do not segfault fault if failed to initialize dataplane

$ ~/usr/bin/qemu-system-x86_64 -enable-kvm -m 1024 -drive if=none,id=drive0,cache=none,aio=native,format=raw,file=/root/Image/centos-6.4.raw -device virtio-blk-pci,drive=drive0,scsi=off,x-data-plane=on,config-wce=on # make dataplane fail to initialize...

44ac582d 03/18/2013 08:40 pm Michael Walle

milkymist-uart: fix receive buffering

Inform qemu-char when more input data can be received.

Signed-off-by: Michael Walle <>

562f5f5d 03/18/2013 08:40 pm Michael Walle

lm32_uart: fix receive buffering

Inform qemu-char when more input data can be received.

Signed-off-by: Michael Walle <>

b1e5fff4 03/18/2013 08:40 pm Michael Walle

configure: rename OpenGL feature to GLX

As the probe now actually checks for the availability of GLX, rename it
accordingly. The only user of this feature is the milkymist-tmu2 model.

Signed-off-by: Michael Walle <>

1cc91b7d 03/18/2013 08:08 pm KONRAD Frederic

virtio-blk: cleanup: QOM cast

Use QOM casts inside virtio-blk.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Peter Maydell <>
Message-id:
Signed-off-by: Anthony Liguori <>

2d62a957 03/18/2013 08:08 pm KONRAD Frederic

virtio-blk: cleanup: remove qdev field.

The qdev field is no longer needed, just drop it.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Peter Maydell <>
Message-id: ...

1c028ddf 03/18/2013 08:08 pm KONRAD Frederic

virtio-blk: add the virtio-blk device.

Create virtio-blk which extends virtio-device, so it can be connected on
virtio-bus.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Peter Maydell <>
Message-id: ...

653ced07 03/18/2013 08:08 pm KONRAD Frederic

virtio-blk-pci: switch to new API.

Here the virtio-blk-pci is modified for the new API. The device
virtio-blk-pci extends virtio-pci. It creates and connects a virtio-blk
during the init. The properties are not changed.

Signed-off-by: KONRAD Frederic <>...

55d11e01 03/18/2013 08:08 pm KONRAD Frederic

virtio-blk-s390: switch to the new API.

Here the virtio-blk-s390 is modified for the new API. The device
virtio-blk-s390 extends virtio-s390-device as before. It creates and
connects a virtio-blk during the init. The properties are not modified.

Signed-off-by: KONRAD Frederic <>...

3400c455 03/18/2013 08:08 pm KONRAD Frederic

virtio-blk-ccw switch to new API.

Here the virtio-ccw-s390 is modified for the new API. The device
virtio-ccw-s390 extends virtio-ccw-device as before. It creates and
connects a virtio-ccw during the init. The properties are not modified.

Signed-off-by: KONRAD Frederic <>...

05ff6865 03/18/2013 08:08 pm KONRAD Frederic

virtio-blk: cleanup: init and exit functions.

As all virtio-blk-* are switched to the new API, we can remove the separate
init/exit for the old API.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Peter Maydell <>...

f1b24e84 03/18/2013 08:08 pm KONRAD Frederic

virtio: make virtio device's structures public.

These structures must be made public to avoid two memory allocations for
refactored virtio devices.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Andreas Färber <>...

cbd19063 03/18/2013 08:08 pm KONRAD Frederic

virtio-x-bus: fix allow_hotplug assertion.

This set allow_hotplug for each existing virtio-x-bus, allowing the
refactored devices to be hot pluggable.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

10479a80 03/18/2013 08:08 pm KONRAD Frederic

virtio-pci: fix hot unplug.

Hot unplug failed because it tried to free the virtio device two times.

This fix the issue by removing the call to virtio_bus_destroy_device.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

da3dcefa 03/18/2013 08:08 pm KONRAD Frederic

virtio-blk: don't use pointer for configuration.

The configuration field must not be a pointer as it will be used for virtio-blk
properties. So *blk is replaced by blk in VirtIOBlock structure.

Signed-off-by: KONRAD Frederic <>
Reviewed-by: Peter Maydell <>...

c78f7137 03/18/2013 11:21 am Gerd Hoffmann

console: stop using DisplayState in gfx hardware emulation

Use QemuConsole instead. Updates interfaces in console.[ch] and adapts
gfx hardware emulation code.

Signed-off-by: Gerd Hoffmann <>