Statistics
| Branch: | Revision:

root / hw @ 2558e0a6

# Date Author Comment
2558e0a6 02/17/2012 01:13 pm Peter Maydell

hw/vexpress.c: Make motherboard peripheral memory map table-driven

Pull the addresses used for mapping motherboard peripherals into
memory out into a table. This will allow us to simply provide a
second table to implement the "Cortex-A Series" memory map used by...

5d782e08 02/17/2012 01:13 pm Peter Maydell

hw/a15mpcore.c: Add Cortex-A15 private peripheral model

Add a model of the Cortex-A15 memory mapped private peripheral
space. This is fairly simple because the only memory mapped
bit of the A15 is the GIC.

Note that we don't currently model a VGIC and therefore don't...

30628cb1 02/17/2012 01:13 pm Mitsyanko Igor

Exynos4210: added display controller implementation

Exynos4210 display controller (FIMD) has 5 hardware windows with alpha and
chroma key blending functions.

Signed-off-by: Mitsyanko Igor <>
Signed-off-by: Evgeny Voevodin <>...

2c2c6496 02/17/2012 01:13 pm Evgeny Voevodin

hw/exynos4210.c: Add LAN support for SMDKC210.

SMDKC210 uses lan9215 chip, but lan9118 in 16-bit mode seems to
be enough.

Signed-off-by: Evgeny Voevodin <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Peter Maydell <>

1248f8d4 02/17/2012 01:13 pm Evgeny Voevodin

hw/lan9118: Add basic 16-bit mode support.

Signed-off-by: Evgeny Voevodin <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Peter Maydell <>

12c775db 02/17/2012 01:13 pm Evgeny Voevodin

ARM: exynos4210: MCT support.

Signed-off-by: Evgeny Voevodin <>
Signed-off-by: Peter Maydell <>

df91b48f 02/17/2012 01:13 pm Maksim Kozlov

ARM: exynos4210: basic Power Management Unit implementation

Patch adds basic model for Exynos4210 SoC PMU.
This model implements PMU registers just as a bulk of memory. Currently,
the only reason this device exists is that secondary CPU boot loader
uses PMU INFORM5 register as a holding pen....

62db8bf3 02/17/2012 01:13 pm Evgeny Voevodin

ARM: exynos4210: PWM support.

Signed-off-by: Evgeny Voevodin <>
Signed-off-by: Peter Maydell <>

e5a4914e 02/17/2012 01:13 pm Maksim Kozlov

ARM: exynos4210: UART support

Add basic support of exynos4210 UART

Signed-off-by: Maksim Kozlov <>
Signed-off-by: Evgeny Voevodin <>
Signed-off-by: Peter Maydell <>

0caa7113 02/17/2012 01:12 pm Evgeny Voevodin

ARM: Samsung exynos4210-based boards emulation

Add initial support of NURI and SMDKC210 boards

Signed-off-by: Evgeny Voevodin <>
Signed-off-by: Peter Maydell <>

8e03cf1e 02/17/2012 01:12 pm Evgeny Voevodin

ARM: exynos4210: IRQ subsystem support.

Signed-off-by: Evgeny Voevodin <>
Signed-off-by: Peter Maydell <>

761c9eb0 02/17/2012 09:30 am Stefan Weil

hw/arm: Remove redundant arguments from set_kernel_args*

The parameters initrd_size and base are already included
in the info parameter, so there is no need to pass them
separately.

Signed-off-by: Stefan Weil <>
Signed-off-by: Andrzej Zaborowski <>,

4f56da61 02/17/2012 09:25 am Vasily Khoruzhick

pxa2xx_lcd: SRAM is valid location for the framebuffer

Signed-off-by: Vasily Khoruzhick <>
Signed-off-by: Andrzej Zaborowski <>

dd4427a6 02/17/2012 08:42 am Paolo Bonzini

nseries: attach monitor powerdown request to menelaus

I noticed some unused code in the twl92230, probably from before
qdev-ification. This patch makes the machine use the chip's pwrbtn
signal.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Andrzej Zaborowski <>

6c263e26 02/16/2012 02:41 am Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

  • qemu-kvm/uq/master:
    apic: Fix legacy vmstate loading for KVM
    kvm: Implement kvm_irqchip_in_kernel like kvm_enabled
    kvm: Allow to set shadow MMU size
7718564b 02/16/2012 01:25 am Anthony Liguori

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

  • kraxel/usb.38: (28 commits)
    xhci: handle USB_RET_NAK
    xhci: remote wakeup support
    xhci: kill port arg from xhci_setup_packet
    xhci: stop on errors
    xhci: add trb type name lookup support....
65b31cc2 02/16/2012 01:18 am Anthony Liguori

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

  • kwolf/for-anthony:
    AHCI: Masking of IRQs actually masks them
    sheepdog: fix co_recv coroutine context
    AHCI: Fix port reset race
    rewrite QEMU_BUILD_BUG_ON
    qcow2: Keep unknown header extension when rewriting header...
83f7d43a 02/15/2012 05:39 pm Andreas Färber

qom: Unify type registration

Replace device_init() with generalized type_init().

While at it, unify naming convention: type_init([$prefix_]register_types)
Also, type_init() is a function, so add preceding blank line where
necessary and don't put a semicolon after the closing brace....

b2d4b3f7 02/15/2012 05:39 pm Anthony Liguori

device_add: don't add a /peripheral link until init is complete

Otherwise we end up with a dangling reference which causes qdev_free() to fail.

Reported-by: Michael Tsirkin <>
Signed-off-by: Anthony Liguori <>

59f971d4 02/14/2012 08:57 pm Paolo Bonzini

qdev: print error message before aborting

qdev_prop_set_* functions are always called by machine init functions
that should know what they're doing, so they abort on error. Still,
an assert(!errp) does not aid debugging. Print an error before aborting....

0a54a0ce 02/14/2012 08:57 pm Paolo Bonzini

qdev: allow setting properties to NULL

SPARC and PPC set properties to NULL. This can be done with an
empty string value.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

bda254da 02/11/2012 12:58 pm Jan Kiszka

cfi02: Fix lazy ROMD switching - once again

The conversion to memory regions broke lazy ROMD switching by forgetting
to update the rom_mode state variable.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Blue Swirl <>

734781c9 02/11/2012 12:39 pm Jan Kiszka

vga: Fix full updates in graphic mode

This fixes the regression introduced by cd7a45c95e: We lost the or'ing
with the full_update flag.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Blue Swirl <>

d1f3dd34 02/11/2012 12:39 pm Blue Swirl

Fix memory dirty getting API change fallout

Fix confusion in length calculation in commit
cd7a45c95ecf2404810f3c6becb7cb83c5010ad8.

Reported-by: Jan Kiszka <>
Signed-off-by: Blue Swirl <>

b819d716 02/10/2012 01:16 pm Gerd Hoffmann

xhci: kill port arg from xhci_setup_packet

Unused argument, remove it.

Signed-off-by: Gerd Hoffmann <>

8c735e43 02/10/2012 01:16 pm Gerd Hoffmann

xhci: remote wakeup support

Signed-off-by: Gerd Hoffmann <>

7c605a23 02/10/2012 01:16 pm Gerd Hoffmann

xhci: handle USB_RET_NAK

Add a field to XHCITransfer to correctly keep track of NAK'ed usb
packets. Retry transfers when the endpoint is kicked again. Implement
wakeup_endpoint bus op so we can kick the endpoint when needed.

With this patch applied the emulated hid devices are working correctly...

7567b51f 02/10/2012 01:16 pm Gerd Hoffmann

usb: pass USBEndpoint to usb_wakeup

Devices must specify which endpoint has data to transfer now.
The plan is to use the usb_wakeup() not only for remove wakeup support,
but for "data ready" signaling in general, so we can move away from
constant polling to event driven usb device emulation....

37f32f0f 02/10/2012 01:16 pm Gerd Hoffmann

usb: add USBBusOps->wakeup_endpoint

Add usb bus op which is called whenever a usb endpoint becomes ready,
so the host adapter emulation can react on that event.

Signed-off-by: Gerd Hoffmann <>

606352b7 02/10/2012 01:16 pm Gerd Hoffmann

xhci: signal low- and fullspeed support

Signed-off-by: Gerd Hoffmann <>

f10de44e 02/10/2012 01:16 pm Gerd Hoffmann

xhci: add trb type name lookup support.

When logging TRBs add a the type name for more readable debug output.

Signed-off-by: Gerd Hoffmann <>

3c4866e0 02/10/2012 01:16 pm Gerd Hoffmann

xhci: stop on errors

When some error happened we'll have to stop processing the endpoint.

Signed-off-by: Gerd Hoffmann <>

db4be873 02/10/2012 01:16 pm Gerd Hoffmann

usb: maintain async packet list per endpoint

Maintain a list of async packets per endpoint. With the current code
the list will never receive more than a single item. I think you can
guess what the future plan is though ;)

Signed-off-by: Gerd Hoffmann <>

06c75088 02/10/2012 12:31 pm Gerd Hoffmann

usb-hub: implement find_device

Implement the find_device callback for the usb hub. It'll loop over all
ports, calling usb_find_device for all enabled ports until it finds a
matching device.

Signed-off-by: Gerd Hoffmann <>

98861f51 02/10/2012 12:31 pm Gerd Hoffmann

usb: handle dev == NULL in usb_handle_packet()

Allow passing in a NULL pointer, return USB_RET_NODEV in that case.
Removes the burden to to a NULL pointer check from the callers.

Signed-off-by: Gerd Hoffmann <>

461700c1 02/10/2012 12:31 pm Gerd Hoffmann

usb-uhci: switch to usb_find_device()

Switch over UHCI to use the new usb_find_device()
function for device lookup.

Signed-off-by: Gerd Hoffmann <>

828143c6 02/10/2012 12:31 pm Gerd Hoffmann

usb-ehci: switch to usb_find_device()

Switch over EHCI to use the new usb_find_device()
function for device lookup.

Signed-off-by: Gerd Hoffmann <>

993048bb 02/10/2012 12:31 pm Gerd Hoffmann

usb-ohci: switch to usb_find_device()

Switch over OHCI to use the new usb_find_device()
function for device lookup.

Signed-off-by: Gerd Hoffmann <>

87e043f1 02/10/2012 12:31 pm Gerd Hoffmann

usb-musb: switch to usb_find_device()

Switch over musb to use the new usb_find_device()
function for device lookup.

Signed-off-by: Gerd Hoffmann <>

e74495e3 02/10/2012 12:31 pm Gerd Hoffmann

usb-xhci: switch to usb_find_device()

Switch over xHCI to use the new usb_find_device()
function for device lookup.

Signed-off-by: Gerd Hoffmann <>

7f74a56b 02/10/2012 12:31 pm Gerd Hoffmann

usb: kill handle_packet callback

All drivers except usb-hub use usb_generic_handle_packet. The only
reason the usb hub has its own function is that it used to be called
with packets which are intended for downstream devices. With the new,
separate device lookup step this doesn't happen any more, so the need...

1977f93d 02/10/2012 12:31 pm Gerd Hoffmann

usb: fold usb_generic_handle_packet into usb_handle_packet

There is no reason to have a separate usb_generic_handle_packet function
any more, fold it into usb_handle_packet(). Also call the do_token_*
functions which handle control transfer emulation for control pipe...

f53c398a 02/10/2012 12:31 pm Gerd Hoffmann

usb: USBPacket: add status, rename owner -> ep

Add enum to track the status of USBPackets, use that instead of the
owner pointer to figure whenever a usb packet is currently in flight
or not. Add some more packet status sanity checks. Also rename the
USBEndpoint pointer from "owner" to "ep"....

63095ab5 02/10/2012 12:31 pm Gerd Hoffmann

usb: add USBEndpoint->{nr,pid}

Add a "nr" and "pid" fields to USBEndpoint so you can easily figure the
endpoint number and direction of any given endpoint.

Signed-off-by: Gerd Hoffmann <>

079d0b7f 02/10/2012 12:31 pm Gerd Hoffmann

usb: Set USBEndpoint in usb_packet_setup().

With the separation of the device lookup (via usb_find_device) and
packet processing we can lookup device and endpoint before setting up
the usb packet. So we can initialize USBPacket->ep early and keep it
valid for the whole lifecycle of the USBPacket. Also the devaddr and...

73796fe6 02/10/2012 12:31 pm Gerd Hoffmann

usb: add usb_find_device()

Add usb_find_device(). This function will check whenever a device with
a specific address is connected to the specified port. Usually this
will just check state and address of the device hooked up to the port,
but in case of a hub it will ask the hub to check all hub ports for a...

f76e1d81 02/10/2012 12:12 pm Hans de Goede

usb-ehci: Clear the portstatus powner bit on device disconnect

According to the EHCI spec port ownership should revert to the EHCI controller
on device disconnect. This fixes the problem of a port getting stuck on USB 1
when using redirection and plugging in a USB 2 device after a USB 1 device...

d1f8b536 02/10/2012 12:12 pm Gerd Hoffmann

usb: kill USB_MSG_{ATTACH,DETACH}

The USB subsystem pipes internal attach/detach notifications through
usb_handle_packet() with a special magic PID. This indirection is a
pretty pointless excercise as it ends up being handled by
usb_generic_handle_packet anyway. Remove it....

d28f4e2d 02/10/2012 12:12 pm Gerd Hoffmann

usb: kill USB_MSG_RESET

The USB subsystem pipes internal reset notifications through
usb_handle_packet() with a special magic PID. This indirection
is a pretty pointless excercise as it ends up being handled by
usb_generic_handle_packet anyway.

Replace the USB_MSG_RESET with a usb_device_reset() function...

70fc20d4 02/10/2012 12:12 pm Gerd Hoffmann

usb: kill usb_send_msg

No users left. Zap it.

Signed-off-by: Gerd Hoffmann <>

3200d108 02/10/2012 12:11 pm Gerd Hoffmann

usb-uhci: implement bandwidth management

The OS is allowed to make the UHCI Controller run in circles. That is
usually done to serve multiple connected USB devices in a robin-round
fashion, so the available USB bandwidth is evenly distributed between
devices....

c9b308d2 02/09/2012 05:17 pm Alexander Graf

AHCI: Fix port reset race

bdrv_aio_cancel() can trigger bdrv_aio_flush() which makes all aio
that is currently in flight finish. So what we do is:

port reset
detect ncq in flight
cancel ncq
delete ncq sg list

at which point we have double freed the sg list. Instead, with this...

b8676728 02/09/2012 05:17 pm Alexander Graf

AHCI: Masking of IRQs actually masks them

When masking IRQ lines, we should actually mask them out and not declare
them active anymore. Once we mask them in again, they are allowed to trigger
again.

Signed-off-by: Alexander Graf <>
Signed-off-by: Kevin Wolf <>

7a65c8cc 02/09/2012 02:10 pm Peter Maydell

ARM devboards: Set arm_sysctl properties before init, not after

The ARM devboard models (vexpress-a9, realview, versatilepb, etc)
were accidentally trying to set one of the arm_sysctl properties
after device init. This has now become a fatal error; set the property...

a4aecd28 02/08/2012 07:57 pm Jan Kiszka

apic: Fix legacy vmstate loading for KVM

Also in case of loading pre-vmstate machines, we also need to open-code
the reading of the timer expires value and instead call the post_load
callback to apply it (or not). This fixes loading of legacy states into...

3d4b2649 02/08/2012 07:57 pm Jan Kiszka

kvm: Implement kvm_irqchip_in_kernel like kvm_enabled

To both avoid that kvm_irqchip_in_kernel always has to be paired with
kvm_enabled and that the former ends up in a function call, implement it
like the latter. This means keeping the state in a global variable and...

a6421530 02/08/2012 03:24 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/qdev-props-for-anthony' into staging

  • bonzini/qdev-props-for-anthony: (25 commits)
    qdev: remove unused fields from PropertyInfo
    qdev: initialize properties via QOM
    qdev: inline qdev_prop_set into qdev_prop_set_ptr...
dc717bfd 02/08/2012 03:23 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/for-upstream' into staging

  • aneesh/for-upstream:
    hw/9pfs: Remove O_NOATIME flag from 9pfs open() calls in readonly mode
    hw/9pfs: Update MAINTAINERS file
    fsdev: Fix parameter parsing for proxy helper
    hw/9pfs: Fix crash when mounting with synthfs...
cf4dc461 02/07/2012 08:11 pm malc

Restore consistent formatting

Signed-off-by: malc <>

dd0ba250 02/07/2012 02:52 pm Paolo Bonzini

qdev: let QOM free properties

Drop the special free callback. Instead, register a "regular"
release method in the non-legacy property.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

6350b090 02/07/2012 02:52 pm Paolo Bonzini

qdev: fix off-by-one

Integer properties did not work.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

9b170e60 02/07/2012 02:52 pm Paolo Bonzini

qdev: access properties via QOM

Do not poke anymore in the struct when accessing qdev properties.
Instead, ask the object to set the right value.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

7a7aae21 02/07/2012 02:52 pm Paolo Bonzini

qdev: inline qdev_prop_set into qdev_prop_set_ptr

qdev_prop_set is not needed anymore except for hacks, simplify it and
inline it.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

4f2d3d70 02/07/2012 02:52 pm Paolo Bonzini

qdev: initialize properties via QOM

Similarly, use the object properties also to set the default
values of the qdev properties. This requires reordering
registration and initialization.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

a3d4a1b0 02/07/2012 02:52 pm Paolo Bonzini

qdev: remove unused fields from PropertyInfo

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

d822979b 02/07/2012 02:52 pm Paolo Bonzini

qdev: remove direct calls to print/parse

There's no need to call into ->parse and ->print manually. The
QOM legacy properties do that for us.

Furthermore, in some cases legacy and static properties have exactly
the same behavior, and we could drop the legacy properties right away....

68ee3569 02/07/2012 02:52 pm Paolo Bonzini

qdev: allow reusing get/set for legacy property

In some cases, a legacy property does need a special print method
but not a special parse method. In this case, we can reuse the get/set
from the static (non-legacy) property.

If neither parse nor print is needed, though, do not register the...

acbac4a1 02/07/2012 02:52 pm Paolo Bonzini

qdev: remove parse method for string properties

We need the print method to put double quotes, but parsing is not special.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

1ce05125 02/07/2012 02:52 pm Paolo Bonzini

qdev: remove print/parse methods from LostTickPolicy properties

Also generalize the code so that we can have more enum properties
in the future.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

e39e5d60 02/07/2012 02:52 pm Paolo Bonzini

qdev: remove parse/print methods for mac properties

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

b403298a 02/07/2012 02:52 pm Paolo Bonzini

qdev: make the non-legacy pci address property accept an integer

PCI addresses are set with qdev_prop_uint32. Thus we make the QOM
property accept a device and function encoded in an 8-bit integer,
instead of the magic dd.f hex string.

Reviewed-by: Anthony Liguori <>...

7b009e5d 02/07/2012 02:52 pm Paolo Bonzini

qdev: remove parse/print methods for pointer properties

Pointer properties (except for PROP_PTR of course) should not need a
legacy counterpart. In the future, relative paths will ensure that
QEMU will support the same syntax as now for drives etc..

Reviewed-by: Anthony Liguori <>...

e87f7fc6 02/06/2012 07:16 pm Anthony Liguori

s390x: fix qom-ification fall-out

Tested-by: Andreas Faerber <>
Signed-off-by: Anthony Liguori <>

4cafe606 02/06/2012 06:17 pm Jan Kiszka

KVM: Fix breakages of QOM conversion

KVM APIC and PIC require instance sizes.

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

cd7a45c9 02/04/2012 02:45 pm Blue Swirl

memory: change dirty getting API to take a size

Instead of each device knowing or guessing the guest page size,
just pass the desired size of dirtied memory area.

Signed-off-by: Blue Swirl <>

94d7b483 02/04/2012 02:45 pm Blue Swirl

vga: move Cirrus VGA template to its own file

Standard VGA does not use vga_draw_cursor_line_* functions.
Move the template to cirrus_vga_template.h.

Signed-off-by: Blue Swirl <>

b134886a 02/04/2012 02:45 pm Blue Swirl

Add vga.h unmodified from Linux

Signed-off-by: Blue Swirl <>

0dad6c35 02/04/2012 02:45 pm Blue Swirl

vga.h: remove unused stuff and reformat

Signed-off-by: Blue Swirl <>

5e55efc9 02/04/2012 02:45 pm Blue Swirl

vga: use constants from vga.h

Signed-off-by: Blue Swirl <>

47c012e2 02/04/2012 02:45 pm Blue Swirl

vga: improve documentation

Add links to chipset docs and FreeVGA site.

Signed-off-by: Blue Swirl <>

9674bfe4 02/03/2012 06:41 pm Anthony Liguori

qdev: split out common init to instance_init

This gets us closer to being able to object_new() a qdev type and have a
functioning object verses having to call qdev_create().

Signed-off-by: Anthony Liguori <>

9fbe6127 02/03/2012 06:41 pm Anthony Liguori

qdev: refactor away qdev_create_from_info

Note that the FIXME gets fixed in series 4/4. We need to convert BusState to
QOM before we can make parent_bus a link.

Signed-off-by: Anthony Liguori <>

ee46d8a5 02/03/2012 06:41 pm Anthony Liguori

qdev: split out UI portions into a new function

qdev-monitor.c deals with the -device, device_add, and info qdm/qtree
interfaces.

Signed-off-by: Anthony Liguori <>

0beb4942 02/03/2012 06:41 pm Anthony Liguori

qdev: nuke qdev_init_chardev()

I'm sure the intentions were good here, but there's no reason this should be in
qdev. Move it to qemu-char where it belongs.

Signed-off-by: Anthony Liguori <>

57c9fafe 02/03/2012 06:41 pm Anthony Liguori

qom: move properties from qdev to object

This is mostly code movement although not entirely. This makes properties part
of the Object base class which means that we can now start using Object in a
meaningful way outside of qdev.

Signed-off-by: Anthony Liguori <>

60adba37 02/03/2012 06:41 pm Anthony Liguori

qdev: implement cleanup logic in finalize

Signed-off-by: Anthony Liguori <>

d03d6b4e 02/03/2012 06:41 pm Anthony Liguori

info qdm: do not require a parent_bus to be set

Signed-off-by: Anthony Liguori <>

8b45d447 02/03/2012 06:41 pm Anthony Liguori

container: make a decendent of Object

Signed-off-by: Anthony Liguori <>
---
v1 -> v2
- Add license (Paolo)

6acbe4c6 02/03/2012 06:41 pm Anthony Liguori

qdev: remove baked in notion of aliases (v2)

Limit them to the device_add functionality. Device aliases were a hack based
on the fact that virtio was modeled the wrong way. The mechanism for aliasing
is very limited in that only one alias can exist for any device....

212ad111 02/03/2012 06:41 pm Anthony Liguori

qdev: kill off DeviceInfo list

Teach the various bits of code that need to walk through available devices to
do so via QOM.

Signed-off-by: Anthony Liguori

39bffca2 02/03/2012 06:41 pm Anthony Liguori

qdev: register all types natively through QEMU Object Model

This was done in a mostly automated fashion. I did it in three steps and then
rebased it into a single step which avoids repeatedly touching every file in
the tree.

The first step was a sed-based addition of the parent type to the subclass...

d307af79 02/03/2012 06:41 pm Anthony Liguori

qdev: kill off DeviceInfo

It is no longer used in the tree since everything is done natively through
QEMU Object Model.

Signed-off-by: Anthony Liguori <>

6e008585 02/03/2012 06:41 pm Anthony Liguori

qdev: remove info from class

Now DeviceInfo is no longer used after object construction. All of the
relevant members have been moved to DeviceClass.

Signed-off-by: Anthony Liguori <>

d253e096 02/03/2012 06:41 pm Anthony Liguori

qdev: allow classes to overload qdev functions

This allows us to drop per-Device registration functions by allowing the
class_init functions to overload qdev methods.

Signed-off-by: Anthony Liguori <>

18b6dade 02/03/2012 06:41 pm Anthony Liguori

qdev: refactor device creation to allow bus_info to be set only in class

As we use class_init to set class members, DeviceInfo no longer holds this
information.

Signed-off-by: Anthony Liguori <>

4be9f0d1 02/03/2012 06:41 pm Anthony Liguori

qdev: make DeviceInfo private

Introduce accessors and remove any code that directly accesses DeviceInfo
members.

Signed-off-by: Anthony Liguori <>

7f595609 02/03/2012 06:41 pm Anthony Liguori

usb-hid: simplify class initialization a bit

We can probably model USBHidDevice as a base class to get even better code
sharing but for now, just use a common function to initialize the common class
members.

Signed-off-by: Anthony Liguori <>

ba02430f 02/03/2012 06:41 pm Anthony Liguori

usb: separate out legacy usb registration from type registration

Type registeration is going to get turned into a QOM call so decouple the
legacy support.

Signed-off-by: Anthony Liguori <>

069ab0eb 02/02/2012 12:24 am Gerhard Wiesinger

hw/vmmouse.c: Disable vmmouse after reboot

Bugfix after reboot when vmmouse was enabled and another OS which uses e.g. PS/2
mouse.

Details:
When a guest activated the vmmouse followed by a reboot the vmmouse was still
enabled and the PS/2 mouse was therefore unsusable. When another guest is then...

433acf0d 02/01/2012 10:45 pm Jan Kiszka

mc146818rtc: Use lost_tick_policy property

Allow to configure the MC146818 RTC via the new lost tick policy
property and replace rtc_td_hack with this mechanism.

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