Statistics
| Branch: | Revision:

root @ d9b09f13

# Date Author Comment
ae255e52 12/22/2011 12:53 pm Paolo Bonzini

nbd: switch to asynchronous operation

Signed-off-by: Paolo Bonzini <>

d9b09f13 12/22/2011 12:53 pm Paolo Bonzini

nbd: split requests

qemu-nbd has a limit of slightly less than 1M per request. Work
around this in the nbd block driver.

Signed-off-by: Paolo Bonzini <>

8c5135f9 12/22/2011 12:53 pm Paolo Bonzini

sheepdog: move coroutine send/recv function to generic code

Outside coroutines, avoid busy waiting on EAGAIN by temporarily
making the socket blocking.

The API of qemu_recvv/qemu_sendv is slightly different from
do_readv/do_writev because they do not handle coroutines. It...

993295fe 12/21/2011 04:00 pm Paolo Bonzini

add qemu_send_full and qemu_recv_full

Signed-off-by: Paolo Bonzini <>

3799ce4a 12/21/2011 06:04 am Andrzej Zaborowski

sd: Remember to reset .expecting_acmd on reset.

Signed-off-by: Andrzej Zaborowski <>

fcfa9351 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Clear status bits when read via response r6

Response format r6 includes a subset of the status bits;
clear the clear-on-read bits which are read by an r6 response.

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

1d06cb7a 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Correct handling of APP_CMD status bit

Fix some bugs in our implementation of the APP_CMD status bit: * the response to an ACMD should have APP_CMD set, not cleared * if an illegal ACMD is sent then the next command should be
handled as a normal command...

10a412da 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Correct handling of type B SD status bits

Correct how we handle the type B ("cleared on valid command")
status bits. In particular, the CURRENT_STATE bits in a response
should be the state of the card when it received that command,
not the state when it received the preceding command. (This is...

5b08bfe2 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Set ILLEGAL_COMMAND for ACMDs in invalid state

App commands in an invalid state should set ILLEGAL_COMMAND, not
merely return a zero response.

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

b1f517ed 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Handle CRC and locked-card errors in normal code path

Handle returning CRC and locked-card errors in the same code path
we use for other responses. This makes no difference in behaviour
but means that these error responses will be printed by the debug...

53bb8cc4 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Handle illegal commands in sd_do_command

Add an extra sd_illegal value to the sd_rsp_type_t enum so that
sd_app_command() and sd_normal_command() can tell sd_do_command()
that the command was illegal. This is needed so we can do things
like reset certain status bits only on receipt of a valid command....

e30d5938 12/21/2011 06:01 am Peter Maydell

hw/sd.c: When setting ADDRESS_ERROR bit, don't clear everything else

Fix a typo that meant that ADDRESS_ERRORs setting or clearing write
protection would clear every other bit in the status register.

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

abda1f37 12/21/2011 06:01 am Peter Maydell

hw/sd.c: On CRC error, set CRC error status bit rather than clearing it

If we fail to validate the CRC for an SD command we should be setting
COM_CRC_ERROR, not clearing it. (This bug actually has no effect currently
because sd_req_crc_validate() always returns success.)...

b8d334c8 12/21/2011 06:01 am Peter Maydell

hw/sd.c: Add comment regarding CARD_STATUS_* defines

Add a clarifying comment about what the CARD_STATUS_[ABC]
macros are defining.

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

25881d33 12/21/2011 05:59 am Peter Maydell

hw/sd.c: Fix the set of commands which are failed when card is locked

Fix bugs in the code determining whether to accept a command when the
SD card is locked. Most notably, we had the condition completely
reversed, so we would accept all the commands we should refuse and...

d3c68e4f 12/20/2011 11:44 pm Hervé Poussineau

isa: always use provided ISA bus in isa_bus_irqs()

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

4a0f031d 12/20/2011 11:44 pm Hervé Poussineau

audio: remove unused parameter isa_pic

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

42ed3727 12/20/2011 11:44 pm Alon Levy

g_thread_init users: don't call it if glib >= 2.31

since commit f9b29ca03 included in release 2.31 (docs below say 2.32 but
that is not correct) and onwards g_thread_init is deprecated and calling
it is not required:

http://developer.gnome.org/glib/unstable/glib-Deprecated-Thread-APIs.html#g-thread-init...
e114fead 12/20/2011 11:44 pm Peter Maydell

hw/sysbus.c: Remove unnecessary conditionals

Now that all sysbus MMIO regions are MemoryRegions, mmio[n].memory
is never NULL, and we can remove some unnecessary conditionals.

Signed-off-by: Peter Maydell <>
Signed-off-by: Anthony Liguori <>

0fa29915 12/20/2011 11:44 pm Hervé Poussineau

net: store guest timestamp in dump file instead of time since guest startup

Stored dates are no more 1970-01-01 (+ run time), but have a real meaning.
If someone wants to have comparable timestamps accross boots, it is
possible to start qemu with -rtc to give the startup date....

48a18b3c 12/20/2011 11:44 pm Hervé Poussineau

isa: give ISABus/ISADevice to isa_create(), isa_bus_irqs() and isa_get_irq() functions

NULL is a valid bus/device, so there is no change in behaviour.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

d1a1be18 12/20/2011 11:44 pm Hervé Poussineau

isa: move ISABus structure definition to header file

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

a811f53c 12/20/2011 11:44 pm Hervé Poussineau

i8259: give ISA device to isa_register_ioport()

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

60573079 12/20/2011 11:44 pm Hervé Poussineau

pc: give ISA bus to ISA methods

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

71baa303 12/20/2011 11:44 pm Hervé Poussineau

alpha: give ISA bus to ISA methods

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

ab953e28 12/20/2011 11:44 pm Hervé Poussineau

sun4u: give ISA bus to ISA methods

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

c9940edb 12/20/2011 11:44 pm Hervé Poussineau

fulong2e: give ISA bus to ISA methods

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

142e9787 12/20/2011 11:44 pm Hervé Poussineau

malta: give ISA bus to ISA methods

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

75782268 12/20/2011 11:44 pm Hervé Poussineau

isa: always use provided ISA bus when creating an isa device

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

6514ed52 12/20/2011 11:44 pm Hervé Poussineau

net: truncate output file when using dump backend

This prevents data of a previous run to be seen in the new dump file.

Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Hervé Poussineau <>
Signed-off-by: Anthony Liguori <>

bc7c9ecc 12/20/2011 04:12 pm Paolo Bonzini

i440fx: remove piix3 field

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

1de81d28 12/20/2011 12:39 am Anthony Liguori

qdev: fix hotplug when no -device is specified

The peripheral[-anon] containers are initialized lazily but since they sit on
sysbus, they can not be created after realize. This was causing an abort() to
occur during hotplug if no -device option was used....

8c106233 12/19/2011 09:36 pm Benoît Canet

sh_pci: remove sysbus_init_mmio_cb2 usage

The isa region is not exposed as a sysbus region because the iobr
register contains its address and use it to remap dynamically
the region. (Peter Maydell's idea)

Reviewed-by: Peter Maydell <>...

cb4e15c7 12/19/2011 09:36 pm Benoît Canet

ppce500_pci: remove sysbus_init_mmio_cb2 usage

Expose only one container MemoryRegion to sysbus.
(Peter Maydell's idea)

Reviewed-by: Peter Maydell <>
Signed-off-by: Benoît Canet <>
Signed-off-by: Anthony Liguori <>

ab0115e1 12/19/2011 09:36 pm Benoît Canet

sysbus: remove sysbus_init_mmio_cb2

This function is not longer in use so remove it.

Signed-off-by: Benoît Canet <>
Signed-off-by: Anthony Liguori <>

6aced82c 12/19/2011 06:27 pm Paolo Bonzini

qom: introduce QERR_PROPERTY_VALUE_OUT_OF_RANGE

This will be used when reject invalid values for integer fields that
are less than 64-bits wide.

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

80e555c2 12/19/2011 06:27 pm Paolo Bonzini

qom: introduce get/set methods for Property

This patch adds a visitor interface to Property. This way, QOM will be
able to expose Properties that access a fixed field in a struct without
exposing also the everything-is-a-string "feature" of qdev properties....

cafe5bdb 12/19/2011 06:27 pm Paolo Bonzini

qom: distinguish "legacy" property type name from QOM type name

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

ca2cc788 12/19/2011 06:27 pm Paolo Bonzini

qom: register qdev properties also as non-legacy properties

Push legacy properties into a "legacy-..." namespace, and make them
available with correct types too.

For now, all properties come in both variants. This need not be the
case for string properties. We will revisit this after -device is...

77bd1119 12/19/2011 06:27 pm Michael Ellerman

vl.c: Move option generation logic into a wrapper file

In vl.c and qemu-options.h we define macros and include qemu-options.def
in order to generate different content. Move the bulk of the def'ing and
undef'ing into a wrapper, this will make it cleaner when we add another...

a3adb7ad 12/19/2011 06:27 pm Michael Ellerman

vl.c: In qemu -h output, only print options for the arch we are running as

Only print options in the help output that are accepted by our arch.
This is less confusing for users and also for other programs that
consume the help output.

The options affected are:...

b1746ddd 12/19/2011 06:27 pm Michael Ellerman

Documentation: Move balloon option out of i386 only section

The balloon option is not i386 only, so move it into the standard
options section.

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

47c6d3ec 12/19/2011 06:27 pm Paolo Bonzini

qapi: protect against NULL QObject in qmp_input_get_object

A NULL qobj can occur when a parameter is fetched via qdict_get, but
the parameter is not in the command. By returning NULL, the caller can
choose whether to raise a missing parameter error, an invalid parameter...

0d41d9aa 12/19/2011 06:27 pm Paolo Bonzini

qom: fix swapped parameters

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

e3cb6ba6 12/19/2011 06:27 pm Paolo Bonzini

qom: push permission checks up into qdev_property_add_legacy

qdev_property_get and qdev_property_set can generate permission
denied errors themselves. Do not duplicate this functionality in
qdev_get/set_legacy_property, and clean up excessive indentation....

7db4c4e8 12/19/2011 06:27 pm Paolo Bonzini

qom: interpret the return value when setting legacy properties

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

f76d27b6 12/19/2011 05:45 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/memory/exec-obsolete' into staging

4a1cc680 12/19/2011 05:45 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/memory/xen' into staging

67d95c15 12/19/2011 05:28 pm Avi Kivity

memory: move obsolete exec.c functions to a private header

This will help avoid accidental usage.

Signed-off-by: Avi Kivity <>

0eeb06b0 12/19/2011 05:23 pm Avi Kivity

etraxfs_eth: drop bogus cpu_unregister_io_memory()

Leftover call to cpu_unregister_io_memory() can segfault on cleanup. Remove.

Signed-off-by: Avi Kivity <>

ce76b8a8 12/19/2011 05:23 pm Avi Kivity

xen: convert to memory API

Undo the private implementation of qemu_ram_alloc(); use the global one
(which calls right back into xen_ram_alloc()).

Signed-off-by: Avi Kivity <>

fce537d4 12/19/2011 05:23 pm Avi Kivity

memory, xen: pass MemoryRegion to xen_ram_alloc()

Currently xen_ram_alloc() relies on ram_addr, which is going away.
Give it something else to use as a cookie.

Signed-off-by: Avi Kivity <>

cde7fc31 12/19/2011 05:12 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/memory/mutators' into staging

Conflicts:
memory.h

3cfdd0da 12/19/2011 05:10 pm Anthony Liguori

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

ddf83d01 12/19/2011 04:50 pm Anthony Liguori

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

ea830ebb 12/19/2011 04:45 pm Anthony Liguori

pc: fix event_idx compatibility for virtio devices

event_idx was introduced in 0.15 and must be disabled for all virtio-pci devices
(including virtio-balloon-pci).

Signed-off-by: Anthony Liguori <>

55cc7f3e 12/19/2011 01:03 pm Stefan Weil

configure: Fix compiler warning in config.log (value was never used)

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

84972cbb 12/19/2011 01:03 pm Stefan Weil

configure: Fix compiler warnings in config.log (statement without effect)

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

50ced5b3 12/19/2011 01:03 pm Stefan Weil

configure: Improve Xen autodetection for hosts without Xen

With this patch, it only takes one test (instead of four)
to detect that there is no Xen support at all.

For most build hosts, this will reduce the time configure needs.
It will also reduce noisy output in config.log....

75cafad7 12/19/2011 01:03 pm Stefan Weil

configure: Fix compiler warnings in config.log (always return a value from main)

Fix several "warning: control reaches end of non-void function".

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

182eacc0 12/19/2011 01:03 pm Stefan Weil

configure: Fix compiler warnings in config.log (old-style function definition)

warning: function declaration isn’t a prototype
In function ‘foo’:
warning: old-style function definition

The function name was changed, too, to avoid an additional warning.
...

ef9a2524 12/19/2011 01:03 pm Stefan Weil

configure: Fix compiler warning in config.log (integer from pointer)

warning: return makes integer from pointer without a cast

v2: Removed type cast.

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

7a42bbe4 12/19/2011 01:03 pm Stefan Weil

configure: Fix compiler warnings in config.log (null arguments)

warning: null argument where non-null required (argument 1)
warning: null argument where non-null required (argument 3)

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

f91f9bee 12/19/2011 01:03 pm Stefan Weil

configure: Fix compiler warning in config.log (unused variable)

warning: unused variable ‘iov’

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

ed054def 12/19/2011 01:03 pm Stefan Weil

configure: Fix compiler warning in config.log (macro redefined)

warning: "_GNU_SOURCE" redefined

The macro is already defined on the command line.

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

66ea0f22 12/19/2011 01:03 pm Stefan Weil

configure: Fix compiler warnings in config.log (uninitialized variable)

warning: ‘fd’ is used uninitialized in this function
warning: ‘id’ is used uninitialized in this function

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

ffc41d10 12/19/2011 01:03 pm Stefan Weil

configure: Fix compiler warning in config.log (undefined NULL)

Avoid the warning when probing for xfs.

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

8ceb49fe 12/19/2011 12:52 pm Julian Pidancet

Also create piix3 property when Xen is enabled

This recently added line in hw/pc_piix.c is causing a SEGV on a Xen
setup because the piix3 property is never created:

qdev_property_add_child(qdev_resolve_path("/i440fx/piix3", NULL),
"rtc", (DeviceState *)rtc_state, NULL);...

b15ba6c9 12/19/2011 12:42 pm Geoffrey Thomas

slirp: Fix typo in net_slirp_hostfwd_remove

Report an error when err is nonzero, not when it is zero.

Signed-off-by: Geoffrey Thomas <>
Signed-off-by: Stefan Hajnoczi <>

ce01a508 12/18/2011 08:59 pm Anthony Liguori

pc: add pc-0.15

Signed-off-by: Anthony Liguori <>

7b011fbc 12/16/2011 12:45 pm Michael Ellerman

kvm: Print something before calling abort() if KVM_RUN fails

It's a little unfriendly to call abort() without printing any sort of
error message. So turn the DPRINTK into an fprintf(stderr, ...).

Signed-off-by: Michael Ellerman <>...

bfc213af 12/16/2011 12:04 pm Peter Maydell

stellaris: Calculate system clock period on reset

Calculate the system clock period on reset; otherwise it remains
set to the default value of zero and attempting to use it provokes
a hang. This is one of the issues noted in LP:696094.

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

7fc3574d 12/16/2011 12:03 pm Peter Maydell

Makefile.target: Remove unnecessary dependency rules

Remove some dependency rules which aren't necessary (the automatically
generated .d files cover all these). These were leftovers from dyngen
days, when the object files also had a dependency on some generated...

b61744b3 12/16/2011 11:53 am Paolo Bonzini

ide: drop argument to dma_buf_commit

The argument is unused and even wrong when the function is called
by ide_handle_rw_error. Drop it.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

885660bd 12/15/2011 06:22 pm Michael Roth

network scripts: don't block SIGCHLD before forking

This patch fixes a bug where child processes of launch_script() can
misbehave due to SIGCHLD being blocked. In the case of `sudo`, this
causes a permanent hang.

Previously a SIGCHLD handler was added to reap fork_exec()'d zombie...

5ab97b7f 12/15/2011 06:22 pm Alex Rozenman

phys_page_find_alloc: Use correct initial region_offset.

This fixes a common bug with initial region_offset value.
Usually, the pages are re-assigned afterwards, so the bug
has a very small effect on regular QEMU use flows.

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

15d37e70 12/15/2011 05:27 pm michael@ozlabs.org

vl.c: Print the actual program name in help output

In help() we do what boils down to:

printf("%s", "qemu");

This seems to be an artifact of be995c27640a82c7056b6f53d02ec823570114e5
("removed unused code"), which removed some ifdef'ery that used to print...

56384e8b 12/15/2011 05:27 pm Andreas Färber

exec.c: Fix subpage memory access to RAM MemoryRegion

Commit 95c318f5e1f88d7e5bcc6deac17330fd4806a2d3 (Fix segfault in mmio
subpage handling code.) prevented a segfault by making all subpage
registrations over an existing memory page perform an unassigned access....

db3a5ed7 12/15/2011 05:27 pm Stefan Hajnoczi

usb: fix usb_qdev_init() error handling again

Commit f462141f18ffdd75847f6459ef83d90b831d12c0 introduced clean up code
when usb_qdev_init() fails. Unfortunately it calls .handle_destroy()
when .init() was never invoked or failed. This can lead to crashes when...

f603a687 12/15/2011 05:27 pm Peter Maydell

HACKING: clarify allocation/free recommendations

Clarify the allocation/free recommendations; this is mostly
just tidying up following the global-search-and-replace done
with the conversion to the GLib g_malloc and friends.

Reviewed-by: Stefan Hajnoczi <>...

7636a470 12/15/2011 05:27 pm michael@ozlabs.org

error: Add an accessor for progname

We'd like to get the progname for help output, so add an accessor.

Signed-off-by: Michael Ellerman <>
Reviewed-by: Stefan Hajnoczi <>
Reviewed-by: Andreas F=E4rber <>...

1ecf47bf 12/15/2011 05:20 pm Paolo Bonzini

fix win32 build

On Windows, cpus.c needs access to the hThread. Add a Windows-specific
function to grab it. This requires changing the CPU threads to
joinable. There is no substantial change because the threads run
in an infinite loop.

Signed-off-by: Paolo Bonzini <>...

d0c5be58 12/15/2011 05:20 pm Anthony Liguori

rtc: make piix3 set the rtc as a child (v2)

Signed-off-by: Anthony Liguori <>

18297050 12/15/2011 05:20 pm Anthony Liguori

rtc: add a dynamic property for retrieving the date

This really shows the power of dynamic object properties compared to qdev
static properties.

This property represents a complex structure who's format is preserved over the
wire. This is enabled by visitors....

b2b6c39a 12/15/2011 05:20 pm Anthony Liguori

qom: optimize qdev_get_canonical_path using a parent link

The full tree search was a bit unreasonable.

Signed-off-by: Anthony Liguori <>

ad6d45fa 12/15/2011 05:20 pm Anthony Liguori

qom: add vga node to the pc composition tree

Signed-off-by: Anthony Liguori <>

6a146eba 12/15/2011 05:20 pm Anthony Liguori

qom: add string property type

Signed-off-by: Anthony Liguori <>

cd34d667 12/15/2011 05:20 pm Anthony Liguori

qdev: add a qdev_get_type() function and expose as a 'type' property

Signed-off-by: Anthony Liguori <>

dc45c21f 12/15/2011 05:20 pm Anthony Liguori

qdev: provide a path resolution (v2)

There are two types of supported paths--absolute paths and partial paths.

Absolute paths are derived from the root device and can follow child<> or
link<> properties. Since they can follow link<> properties, they can be...

3de1c3e8 12/15/2011 05:20 pm Anthony Liguori

qom: add child properties (composition) (v3)

Child properties express a relationship of composition.

Signed-off-by: Anthony Liguori <>

83e94fb8 12/15/2011 05:20 pm Anthony Liguori

qom: add link properties (v2)

Links represent an ephemeral relationship between devices. They are meant to
replace the qdev concept of busses by allowing more informal relationships
between devices.

Links are fairly limited in their usefulness without implementing QOM-style...

5dbee474 12/15/2011 05:20 pm Anthony Liguori

qapi: allow a 'gen' key to suppress code generation

Signed-off-by: Anthony Liguori <>

b4b12c62 12/15/2011 05:20 pm Anthony Liguori

qmp: add qom-list command

This can be used to list properties in the device model.

Signed-off-by: Anthony Liguori <>

eb6e8ea5 12/15/2011 05:20 pm Anthony Liguori

qom: qom_{get, set} monitor commands (v2)

This allows clients to read and write device model properties through QMP. QAPI
doesn't support Visitor types yet and these commands are special in that they
don't work with fixed types.

I've added a documentation stub to qapi-schema.json so we can keep consistency...

1bdaacb1 12/15/2011 05:20 pm Anthony Liguori

qdev: add explicitly named devices to the root complex

We first add a 'peripheral' container to the root device that we add user
created devices to. This provides all user created devices with a unique and
isolated namespace.

Signed-off-by: Anthony Liguori <>

8eb02831 12/15/2011 05:20 pm Anthony Liguori

dev: add an anonymous peripheral container

Signed-off-by: Anthony Liguori <>

44677ded 12/15/2011 05:20 pm Anthony Liguori

qom: add new dynamic property infrastructure based on Visitors (v2)

qdev properties are settable only during construction and static to classes.
This isn't flexible enough for QOM.

This patch introduces a property interface for qdev that provides dynamic...

a5296ca9 12/15/2011 05:20 pm Anthony Liguori

qom: register legacy properties as new style properties (v2)

Expose all legacy properties through the new QOM property mechanism. The qdev
property types are exposed through the 'legacy<>' namespace. They are always
visited as strings since they do their own string parsing....

a10f07a7 12/15/2011 05:20 pm Anthony Liguori

qom: introduce root device

This is based on Jan's suggestion for how to do unique naming. The root device
is the root of composition. All devices are reachable via child<> links from
this device.

Signed-off-by: Anthony Liguori <>

f9fbd2fd 12/15/2011 05:20 pm Anthony Liguori

qdev: provide an interface to return canonical path from root (v2)

The canonical path is the path in the composition tree from the root to the
device. This is effectively the name of the device.

This is an incredibly unefficient implementation that will be optimized in...