qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 07/18] qom: add link properties


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 07/18] qom: add link properties
Date: Thu, 01 Dec 2011 09:14:11 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13

On 12/01/2011 09:03 AM, Gerd Hoffmann wrote:
   Hi,

In terms of QMP client code, you just do:

  qom-set /path/to/usb-controller.slave /some/other/device

Lacks notification.  usb-controller doesn't notice that you have plugged
in some usb device and thus can't raise an IRQ to notify the guest ...

Properties will have flags. One of those flags makes the property mutable only while the device isn't realized.

This is a case where the property is mutable during realize. You wouldn't use a normal link here. You would use a "hotpluggable link" which would have a notify hook.

This works because all properties are get/set through an accessor interface and there's a rich error interface.

The original QOM series I posted had this logic in it.

Regards,

Anthony Liguori


cheers,
   Gerd






reply via email to

[Prev in Thread] Current Thread [Next in Thread]