]> xenbits.xensource.com Git - qemu-upstream-unstable.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, 27 Jan 2015 13:52:19 +0000 (13:52 +0000)
commit9026dca821a61b72983778e3dcd92cfc34b02e8b
treef73d9075815b794cf9fd3e9c210d1d27385b6b4b
parent901230fd8ce053cc21312a2eca2f3ba9f1d103f2
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.

upstream-commit-id: 707ff80021ccd7a68f4b3d2c44eebf87efbb41c4

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>
Conflicts:
include/qemu/typedefs.h
hw/core/qdev.c
include/hw/qdev-core.h
include/qemu/typedefs.h