]> git.proxmox.com Git - mirror_qemu.git/commit
Add device listener interface
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 20 Jan 2015 11:05:07 +0000 (11:05 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 20 Jan 2015 14:24:07 +0000 (14:24 +0000)
commit707ff80021ccd7a68f4b3d2c44eebf87efbb41c4
tree47a10385f3ec3ee9750d40ed44c0569f348119e9
parent74acb99737dbedd86654d660c0c20815139a873c
Add device listener interface

The Xen ioreq-server API, introduced in Xen 4.5, requires that PCI device
models explicitly register with Xen for config space accesses. This patch
adds a listener interface into qdev-core which can be used by the Xen
interface code to monitor for arrival and departure of PCI devices.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/qdev.c
include/hw/qdev-core.h
include/qemu/typedefs.h