Statistics
| Branch: | Revision:

root / hw @ 1e04d4d6

# Date Author Comment
1e04d4d6 08/08/2011 06:15 pm Avi Kivity

cirrus: simplify mmio BAR access functions

Make use of the memory API's ability to satisfy multi-byte accesses via
multiple single-byte accesses.

Reviewed-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

16a96f28 08/08/2011 06:15 pm Avi Kivity

pci: add API to get a BAR's mapped address

Some (hacky) devices that have a back-channel to read this
address back outside the normal configuration mechanisms, such
as VMware svga.

Reviewed-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>...

7b619b9a 08/08/2011 06:15 pm Avi Kivity

vmsvga: don't remember pci BAR address in callback any more

We're going to remove the callback, so we can't use it to save the
address. Use the pci API instead.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>...

b1950430 08/08/2011 06:15 pm Avi Kivity

vga: convert vga and its derivatives to the memory API

Convert all vga memory to the memory API. Note we need to fall back to
get_system_memory(), since the various buses don't pass the vga window
as a memory region.

We no longer need to sync the dirty bitmap of the cirrus mapped memory...

2da8bb92 08/05/2011 06:57 pm Isaku Yamahata

qdev: Eliminate duplicate reset

qbus_reset_all_fn was registered twice, so a lot of device reset
functions were also called twice when QEMU started.
Which was introduced by 80376c3fc2c38fdd45354e4b0eb45031f35587ed
This patch fixes it by making the main_system_bus creation not register...

257a7375 08/05/2011 06:57 pm David Gibson

Check fread() results to avoid gcc 4.6 warnings

When compiling with gcc 4.6, some code in fw_cfg.c complains that fop_ret
is assigned but not used (which is true). However, it looks like the
meaningless assignments to fop_ret were done to suppress other gcc warnings...

81e34a24 08/05/2011 01:15 am Anthony Liguori

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

dfa79e8a 08/05/2011 01:13 am Anthony Liguori

Merge remote-tracking branch 'spice/spice.v40' into staging

5df0a2a5 08/05/2011 01:10 am Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.22' into staging

47bf05d7 08/05/2011 12:45 am Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

855d7e25 08/05/2011 12:43 am Amit Shah

virtio-balloon: Add exit handler, fix memleaks

Add an exit handler that will free up RAM after a virtio-balloon device
is unplugged.

Signed-off-by: Amit Shah <>
Reviewed-by: Markus Armbruster <>
Acked-by: Michael S. Tsirkin <>

ac720400 08/05/2011 12:43 am Amit Shah

virtio-balloon: Unregister savevm section on device unplug

Migrating after unplugging a virtio-balloon device resulted in an error
message on the destination:

Unknown savevm section or instance '0000:00:04.0/virtio-balloon' 0
load of migration failed

Fix this by unregistering the section on device unplug....

dce911c7 08/05/2011 12:43 am Amit Shah

virtio-balloon: Separate status handling into separate function

Separate out the code to retrieve balloon info from the code that sets
balloon values.

This will be used to separate the two callbacks from balloon.c and help
cope with 'balloon 0' on the monitor. Currently, 'balloon 0' causes a...

30fb2ca6 08/05/2011 12:43 am Amit Shah

balloon: Separate out stat and balloon handling

Passing on '0' as ballooning target to indicate retrieval of stats is
bad API. It also makes 'balloon 0' in the monitor cause a segfault.
Have two different functions handle the different functionality instead....

d4443cb6 08/05/2011 12:43 am Amit Shah

virtio-balloon: Fix header comment; add Copyright

Signed-off-by: Amit Shah <>

f76f6655 08/05/2011 12:43 am Amit Shah

virtio-balloon: Check if balloon registration failed

Multiple balloon registrations are not allowed; check if the
registration with the qemu balloon api succeeded. If not, fail the
device init.

Signed-off-by: Amit Shah <>
Reviewed-by: Markus Armbruster <>...

0d878eec 08/04/2011 04:51 pm Gerd Hoffmann

usb-hid: create & use HIDState

First step in separating out the HID emulation code from usb-hid, so it
can be reused without creating a dummy usb device like bluetooth does.

This creates a HIDState struct, moves the non-usbish fields from
USBHIDStruct there. Renames non-usbish structs, defines and functions...

8bde6805 08/04/2011 04:51 pm Gerd Hoffmann

usb-hid: add event callback

Add callback for event notification, which allows to un-usbify more
functions. Also split separate hid_* functions for reset and release.

Signed-off-by: Gerd Hoffmann <>

38931fa8 08/04/2011 04:51 pm Gerd Hoffmann

usb-hid: add hid_has_events()

Add hid_has_events function, use it to figure whenever there are pending
events instead of checking and updating USBHIDState->changed.

Setting ->changed to 1 on init is removed, that should have absolutely
no effect as the initial state of ->idle is 0 so we report hid state...

dcfda673 08/04/2011 04:51 pm Gerd Hoffmann

usb-hid: split hid code to hw/hid.[ch]

Almost pure code motion. Unstatic hid interface functions and add
them to the header file. Some renames. Some code style cleanups.

Signed-off-by: Gerd Hoffmann <>

b069d348 08/04/2011 04:51 pm Gerd Hoffmann

hid: move idle+protocol from usb-hid to hid too.

Signed-off-by: Gerd Hoffmann <>

fb8f4cee 08/04/2011 04:51 pm Gerd Hoffmann

bluetooth: kill dummy usb device, use hid code directly.

Signed-off-by: Gerd Hoffmann <>

29c74f76 08/04/2011 04:51 pm Gerd Hoffmann

usb-storage: iovec support

Add full iovec support to usb-storage.

Signed-off-by: Gerd Hoffmann <>

df5e66ee 08/04/2011 04:51 pm Gerd Hoffmann

uhci: remove buffer

Map guest memory and pass on a direct pointer instead of copying
the bits to a indirect buffer.

Signed-off-by: Gerd Hoffmann <>

0ce668bc 08/04/2011 04:51 pm Gerd Hoffmann

ehci: iovec support, remove buffer

Map guest memory and pass on a direct pointer instead of copying
the bits to a indirect buffer. EHCI transfer descriptors can
reference multiple (physical guest) pages so we'll actually start
seeing usb packets wich carry iovec with more than one element....

9440b7e5 08/04/2011 04:51 pm Gerd Hoffmann

usb-serial: iovec support

Add full support for iovecs to usb-serial.

Signed-off-by: Gerd Hoffmann <>

4f4321c1 08/04/2011 04:51 pm Gerd Hoffmann

usb: use iovecs in USBPacket

Zap data pointer from USBPacket, add a QEMUIOVector instead.
Add a bunch of helper functions to manage USBPacket data.
Switch over users to the new interface.

Note that USBPacket->len was used for two purposes: First to
pass in the buffer size and second to return the number of...

a6f4e09d 08/04/2011 02:14 am Michael Walle

lm32: softusb: claim to support full speed

The QEMU keyboard and mouse reports themselves as full speed devices,
though they are actually low speed devices. Until this is fixed, claim that
we are supporting full speed devices.

Acked-by: Gerd Hoffmann <>...

cb4b4fde 08/03/2011 06:00 pm Michael S. Tsirkin

vhost: remove an incorrect assert

The 'to' can go negative when the first region gets removed
(it gets incremented by to 0 immediately afterward), which
makes the assertion fail. Nothing breaks if
to < 0 here so just remove the assert.

Tested-by: David Ahern <>...

3e16b9c5 08/03/2011 01:03 pm Alon Levy

qxl: add QXL_IO_FLUSH_{SURFACES,RELEASE} for guest S3&S4 support

Add two new IOs.
QXL_IO_FLUSH_SURFACES - equivalent to update area for all surfaces, used
to reduce vmexits from NumSurfaces to 1 on guest S3, S4 and resolution change (windows
driver implementation is such that this is done on each of those occasions)....

9197a7c8 08/03/2011 01:03 pm Gerd Hoffmann

qxl: bump pci rev

Inform guest drivers about the new features I/O commands we have
now (async commands, S3 support) if building with newer spice, i.e.
if SPICE_INTERFACE_QXL_MINOR >= 1.

sneaked in some 81+ column line spliting.

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

5ff4e36c 08/03/2011 01:03 pm Alon Levy

qxl: async io support using new spice api

Some of the QXL port i/o commands are waiting for the spice server to
complete certain actions. Add async versions for these commands, so we
don't block the vcpu while the spice server processses the command.
Instead the qxl device will raise an IRQ when done....

5c59d118 08/01/2011 01:43 pm Gerd Hoffmann

spice: add worker wrapper functions.

Add wrapper functions for all spice worker calls.

Signed-off-by: Gerd Hoffmann <>

a963f876 08/01/2011 01:43 pm Gerd Hoffmann

spice: add qemu_spice_display_init_common

Factor out SimpleSpiceDisplay initialization into
qemu_spice_display_init_common() and call it from
both qxl.c (for vga mode) and spice-display.c

Signed-off-by: Gerd Hoffmann <>

aee32bf3 08/01/2011 01:43 pm Gerd Hoffmann

spice/qxl: move worker wrappers

Move the wrapper functions which are used by qxl only to qxl.c.
Rename them from qemu_spice_* to qxl_spice_*. Also pass in a
qxl state pointer instead of a SimpleSpiceDisplay pointer.

Signed-off-by: Gerd Hoffmann <>

14898cf6 08/01/2011 01:43 pm Gerd Hoffmann

qxl: fix surface tracking & locking

Surface tracking needs proper locking since it is used from vcpu and spice
worker threads, add it. Also reset the surface counter when zapping all
surfaces.

Signed-off-by: Gerd Hoffmann <>

8b92e298 08/01/2011 01:43 pm Alon Levy

qxl: add io_port_to_string

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

2bce0400 08/01/2011 01:43 pm Gerd Hoffmann

qxl: error handling fixes and cleanups.

Add qxl_guest_bug() function which is supposed to be called in case
sanity checks of guest requests fail. It raises an error IRQ and
logs a message in case guest debugging is enabled.

Make PANIC_ON() abort instead of exit. That macro should be used...

7635392c 08/01/2011 01:43 pm Alon Levy

qxl: make qxl_guest_bug take variable arguments

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

e21a298a 08/01/2011 01:43 pm Alon Levy

qxl: only disallow specific io's in vga mode

Since the driver is still in operation even after moving to UNDEFINED, i.e.
by destroying primary in any way.

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

5f71d32f 08/01/2011 01:10 pm Hannes Reinecke

scsi-disk: Codingstyle fixes

Replace tabs with spaces.

Signed-off-by: Hannes Reinecke <>
Signed-off-by: Kevin Wolf <>

3790372c 08/01/2011 01:10 pm Hannes Reinecke

scsi: Remove references to SET_WINDOW

SET_WINDOW command is vendor-specific only.
So we shouldn't try to emulate it.

Signed-off-by: Hannes Reinecke <>
Signed-off-by: Kevin Wolf <>

8bd3e139 08/01/2011 01:10 pm Hannes Reinecke

scsi: Remove REZERO_UNIT emulation

REZERO_UNIT command is obsolete. Remove support for it.

Signed-off-by: Hannes Reinecke <>
Signed-off-by: Kevin Wolf <>

5e30a07d 08/01/2011 01:10 pm Hannes Reinecke

scsi: Sanitize command definitions

Sanitize SCSI command definitions.
Add _10 suffix to READ_CAPACITY, WRITE_VERIFY, VERIFY, READ_LONG,
WRITE_LONG, and WRITE_SAME.
Add new command definitions for LOCATE_10, UNMAP, VARLENGTH_CDB,
WRITE_FILEMARKS_16, EXTENDED_COPY, ATA_PASSTHROUGH, ACCESS_CONTROL_IN,...

f37bd73b 08/01/2011 01:10 pm Hannes Reinecke

scsi-disk: Remove 'drive_kind'

Instead of using its own definitions scsi-disk should
be using the device type of the parent device.

Signed-off-by: Hannes Reinecke <>
Signed-off-by: Kevin Wolf <>

3e457172 07/30/2011 12:41 pm Blue Swirl

exec.h cleanup

Move softmmu_exec.h include directives from target-*/exec.h to
target-*/op_helper.c. Move also various other stuff only used in
op_helper.c there.

Define global env in dyngen-exec.h.

For i386, move wrappers for segment and FPU helpers from user-exec.c...

104bf02e 07/30/2011 12:33 pm Michael Tokarev

revamp acpitable parsing and allow to specify complete (headerful) table

This patch almost rewrites acpi_table_add() function
(but still leaves it using old get_param_value() interface).
The result is that it's now possible to specify whole table
(together with a header) in an external file, instead of just...

5e37141b 07/30/2011 08:26 am Vincent Palatin

sd: do not add one sector to the disk size

This leads to random off-by-one error.
When the size of the SD is exactly 1GB, the emulation was returning a
wrong SDHC CSD descriptor.

Signed-off-by: Vincent Palatin <>
Signed-off-by: Andrzej Zaborowski <>

8534b8ba 07/30/2011 08:18 am Jan Kiszka

usb-hid: Fix 0/0 position for Windows in tablet mode

For unknown reasons, Windows drivers (tested with XP and Win7) ignore
usb-tablet events that move the pointer to 0/0. So always report 0/0 as
1/0.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Andrzej Zaborowski <>

3bf11207 07/30/2011 08:08 am Vasily Khoruzhick

Add support for Zipit Z2 machine

Zipit Z2 is small PXA270 based handheld.

Signed-off-by: Vasily Khoruzhick <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

63efb1d9 07/30/2011 07:53 am Andrzej Zaborowski

onenand: Add missing brace.

Signed-off-by: Andrzej Zaborowski <>

f1588dd2 07/30/2011 07:42 am Juha Riihimäki

hw/onenand: program actions can only clear bits

The program actions onenand_prog_main() and onenand_prog_spare()
can only set bits.

This implies a rewrite of onenand_erase() to not use the program
functions, since erase does need to set bits.

Signed-off-by: Juha Riihimäki <>...

5923ba42 07/30/2011 07:42 am Juha Riihimäki

onenand: Handle various ID fields separately

Handle the manufacturer, device and version IDs separately rather than
smooshing them all together into a single uint32_t. Note that the ID
registers are actually 16 bit, even though typically the top bits are 0...

af5a75f4 07/30/2011 07:42 am Peter Maydell

onenand: Pass BlockDriverState to init function

Pass the BlockDriverState to the onenand init function so it doesn't
need to look up the drive itself.

Signed-off-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

d4220389 07/30/2011 07:21 am Juha Riihimäki

hw/nand: qdevify

Qdevify the NAND device.

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <>
[Peter Maydell: More fixes and cleanups for upstream submission]...

89f640bc 07/30/2011 07:11 am Peter Maydell

hw/nand: Writing to NAND can only clear bits

Writing to a NAND device cannot set bits, it can only clear them;
implement this rather than simply copying the data.

Signed-off-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

d72245fb 07/30/2011 07:10 am Juha Riihimäki

hw/nand: Support multiple reads following READ STATUS

After receiving READ STATUS command all subsequent IO reads should return
the status register value until another command is issued.

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]...

48197dfa 07/30/2011 07:09 am Juha Riihimäki

hw/nand: Support devices wider than 8 bits

Support NAND devices which are wider than 8 bits.

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <>
[Peter Maydell: More fixes and cleanups for upstream submission]...

ac2466cd 07/30/2011 07:01 am Andrzej Zaborowski

nand: Bump vmstate version after changing structure.

Signed-off-by: Andrzej Zaborowski <>

d5f2fd58 07/30/2011 07:00 am Juha Riihimäki

hw/nand: Support large NAND devices

Add support for NAND devices of over 1Gb.

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <>
[Peter Maydell: More fixes and cleanups for upstream submission]...

522f253c 07/30/2011 07:00 am Peter Maydell

hw/nand: Pass block device state to init function

Pass the BlockDeviceState to the nand_init() function rather
than having it look it up via drive_get() itself.

Signed-off-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

c4f05c8c 07/30/2011 07:00 am Peter Maydell

lm832x: Take DeviceState pointer in lm832x_key_event()

Since lm832x has been qdev'ified, its users will generally
have a DeviceState pointer rather than an i2c_slave pointer,
so adjust lm832x_key_event's prototype to suit.

This allows the n810 (its only user) to actually pass a correct...

77831c20 07/30/2011 07:00 am Juha Riihimäki

hw/omap_gpio.c: Convert to qdev

Convert the OMAP GPIO module to qdev.

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <>
[Peter Maydell: More fixes and cleanups for upstream submission]...

0a34f966 07/30/2011 07:00 am Peter Maydell

hw/omap_clk: Add the clock for the OMAP2430-specific fifth GPIO module

The OMAP2430 has a fifth GPIO module which earlier OMAP2 models lack; add
the clock definition for it.

Signed-off-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

f9049203 07/30/2011 07:00 am Juha Riihimäki

hw/omap_l4.c: Add helper function omap_l4_region_base

Add helper function omap_l4_region_base() to return the base address
of a particular region of an L4 target agent.

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]...

3046c984 07/29/2011 05:42 pm Anthony Liguori

Merge remote-tracking branch 'agraf/xen-next' into staging

e3745602 07/29/2011 05:39 pm Anthony Liguori

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

6b8273a1 07/29/2011 05:33 pm Göran Weinholt

multiboot: Fix bss segment support

Multiboot images can specify a bss segment. The boot loader must clear
the memory of the bss and ensure that no modules or structures are
allocated inside it. Several fields are provided in the Multiboot
header that were previously not used properly. The header is now used...

33fa8234 07/29/2011 05:33 pm Dr. David Alan Gilbert

Fix last sector write on sd card

When writing the last sector of an SD card using WRITE_MULTIPLE_BLOCK
QEmu throws an error saying that we've run off the end, and leaves
itself in the wrong state.
Tested on ARM Vexpress model.

Signed-off-by: Dr. David Alan Gilbert <>...

4aa63af1 07/29/2011 04:25 pm Avi Kivity

pc: grab system_memory

While eventually this should come from the machine initialization function,
take a short cut to avoid converting all machines now.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

00cb2a99 07/29/2011 04:25 pm Avi Kivity

pc: convert pc_memory_init() to memory API

Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

6bd10515 07/29/2011 04:25 pm Avi Kivity

pc: move global memory map out of pc_init1() and into its callers

Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

1e39101c 07/29/2011 04:25 pm Avi Kivity

pci: pass address space to pci bus when created

This is now done sloppily, via get_system_memory(). Eventually callers
will be converted to stop using that.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

79ff8cb0 07/29/2011 04:25 pm Avi Kivity

pci: add MemoryRegion based BAR management API

Allow registering a BAR using a MemoryRegion. Once all users are converted,
pci_register_bar() and pci_register_bar_simple() will be removed.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>...

ec3bb837 07/29/2011 04:25 pm Avi Kivity

sysbus: add MemoryRegion based memory management API

Allow registering sysbus device memory using a MemoryRegion. Once all users
are converted, sysbus_init_mmio() and sysbus_init_mmio_cb() will be removed.

Reviewed-by: Anthony Liguori <>...

6da48311 07/29/2011 04:25 pm Avi Kivity

usb-ohci: convert to MemoryRegion

Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

3d3b8303 07/29/2011 04:25 pm wayne

showing a splash picture when start

Added options to let qemu transfer two configuration files to bios:
"bootsplash.bmp" and "etc/boot-menu-wait", which could be specified by command
-boot splash=P,splash-time=T
P is jpg/bmp file name or an absolute path, T have a max value of 0xffff, unit...
5ab28c83 07/29/2011 04:17 pm Jan Kiszka

qdev: Reset hot-plugged devices

Device models rely on the core invoking their reset handlers after init.
We do this in the cold-plug case, but so far we miss this step after
hot-plug.

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

43e86c8f 07/29/2011 08:01 am Isaku Yamahata

pcie_host: verify mmcfg address range

For a conventional pci device behind
a pcie-to-pci bridge, pci_host handlers get confused by
an out of bounds access in the range [256, 4K).

Check for such an access and make it have no effect.

Signed-off-by: Isaku Yamahata <>...

845f85fa 07/27/2011 08:19 pm Amit Shah

virtio: Plug memleak by freeing vdev

virtio_common_init() allocates RAM for the vdev struct (and any
additional memory, depending on the size passed to the function). This
memory wasn't being freed until now.

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

b52dfd71 07/27/2011 08:18 pm Amit Shah

virtio-net: don't use vdev after virtio_cleanup

virtio_cleanup() will be changed by the following patch to remove the
VirtIONet struct that gets allocated via virtio_common_init(). Ensure
we don't dereference the structure after calling the cleanup function....

d92551f2 07/27/2011 08:08 pm Amit Shah

virtio-blk: Fix memleak on exit

Calling virtio_cleanup() will free up memory allocated in
virtio_common_init().

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

1129714f 07/27/2011 08:08 pm Michael S. Tsirkin

virtio-pci: use generic logic for command access

In practice, guests don't generate config requests
that cross a word boundary, so the logic to
detect command word access is correct because
PCI_COMMAND is 0x4. But depending on this is
tricky, further, it will break with guests...

42e4126b 07/27/2011 10:57 am Jan Kiszka

pci: Common overflow prevention

Introduce pci_config_read/write_common helpers to prevent passing
accesses down the callback chain that go beyond the config space limits.
Adjust length assertions as they are no longer correct (cutting may
generate valid 3 byte accesses)....

679f4f8b 07/26/2011 08:02 am Stefano Stabellini

xen: implement unplug protocol in xen_platform

The unplug protocol is necessary to support PV drivers in the guest: the
drivers expect to be able to "unplug" emulated disks and nics before
initializing the Xen PV interfaces.
It is responsibility of the guest to make sure that the unplug is done...

59d21e53 07/26/2011 07:43 am Alexander Graf

xen: make xen_enabled even more clever

When using xen_enabled() we're currently only checking if xen is enabled
at all during the build. But what if you want to build multiple targets
out of which only one can potentially run xen code?

That means that for generic code we'll still have to fall back to the...

30ab6125 07/26/2011 07:43 am Anthony PERARD

xen: Fix xen_enabled().

Use the "host" CONFIG_ define instead of the "target" one.

Signed-off-by: Anthony PERARD <>
Acked-by: Paolo Bonzini <>
Signed-off-by: Alexander Graf <>

aad04cd0 07/24/2011 05:48 pm Blue Swirl

Fix chrdev return value conversion

6e1db57b2ac9025c2443c665a0d9e78748637b26 didn't
convert brlapi or win32 chrdevs, breaking build for those.

Fix by converting the chrdevs.

Acked-by: Kevin Wolf <>
Signed-off-by: Blue Swirl <>

17604dac 07/23/2011 07:26 pm Jan Kiszka

mc146818rtc: Handle host clock resets

Make use of the new clock reset notifier to update the RTC whenever
rtc_clock is the host clock and that happens to jump backward. This
avoids that the RTC stalls for the period the host clock was set back.

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

8e31bf38 07/23/2011 07:26 pm Matthew Fernandez

Correct spelling of licensed

Correct typos of "licenced" to "licensed".

Reviewed-by: Stefan Weil <>
Reviewed-by: Andreas F=E4rber <>
Signed-off-by: Matthew Fernandez <>
Signed-off-by: Anthony Liguori <>

9e8dd451 07/23/2011 07:26 pm Jan Kiszka

notifier: Pass data argument to callback

This allows to pass additional information to the notifier callback
which is useful if sender and receiver do not share any other distinct
data structure.

Will be used first for the clock reset notifier.

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

e0e8384d 07/23/2011 07:21 pm Markus Armbruster

ide: Turn properties any IDE device must have into bus properties

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

d6cca4b0 07/23/2011 07:20 pm Markus Armbruster

virtio-serial: Turn props any virtio-serial-bus device must have into bus props

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

1cc2428c 07/23/2011 07:20 pm Markus Armbruster

usb-ccid: Drop unused CCIDCardInfo callback print()

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

021a1318 07/23/2011 07:20 pm Markus Armbruster

virtio-serial: Clean up virtser_bus_dev_print() output

Old version looks like this in info qtree (last four lines):

dev: virtconsole, id "" 
dev-prop: is_console = 1
dev-prop: nr = 0
dev-prop: chardev = &lt;null&gt;...
0fe28e0d 07/23/2011 07:19 pm Richard Henderson

vga: Fix type of lfb/map_addr/end.

These addresses have been passed through pci_to_cpu_addr,
and thus need to be full target_phys_addr_t.

Acked-by: Jan Kiszka <>
Signed-off-by: Richard Henderson <>
Cc: Jan Kiszka <>...

6e1db57b 07/23/2011 07:18 pm Kevin Wolf

qemu-char: Print strerror message on failure

The only way for chardev drivers to communicate an error was to return a NULL
pointer, which resulted in an error message that said that something went
wrong, but not why.

This patch changes the interface to return 0/-errno and updates...

6141dbfe 07/23/2011 06:56 pm Paolo Bonzini

report serial devices created with -device in the PIIX4 config space

Serial and parallel devices created with -device are not reported in
the PIIX4 configuration space, and are hence not picked up by the DSDT.
This upsets Windows, which hides them altogether from the guest....

49e40b66 07/23/2011 06:56 pm Adam Lackorzynski

multiboot: Support commas in module parameters

Support commas in the parameter list of multiboot modules as well as for the
kernel command line, by using double commas (via get_opt_value()).

Signed-off-by: Adam Lackorzynski <>
Reviewed-by: Kevin Wolf <>...

6eed1856 07/23/2011 06:19 pm Jan Kiszka

net: Consistently use qemu_macaddr_default_if_unset

Drop the open-coded MAC assignment from net_init_nic and replace it with
standard qemu_macaddr_default_if_unset which is also used by qdev. That
avoid creating colliding MACs when instantiating NICs via different...