diff options
author | Paul Durrant | 2019-09-13 10:21:57 +0200 |
---|---|---|
committer | Anthony PERARD | 2019-09-24 13:18:47 +0200 |
commit | d198b711f9ff9032d7270d78d5b5b17abf740e75 (patch) | |
tree | 22ff2e81fff1bb813e007e90cc86016aa4ea880c /include/hw/xen | |
parent | xen / notify: introduce a new XenWatchList abstraction (diff) | |
download | qemu-d198b711f9ff9032d7270d78d5b5b17abf740e75.tar.gz qemu-d198b711f9ff9032d7270d78d5b5b17abf740e75.tar.xz qemu-d198b711f9ff9032d7270d78d5b5b17abf740e75.zip |
xen: introduce separate XenWatchList for XenDevice objects
This patch uses the XenWatchList abstraction to add a separate watch list
for each device. This is more scalable than walking a single notifier
list for all watches and is also necessary to implement a bug-fix in a
subsequent patch.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Anthony Perard <anthony.perard@citrix.com>
Message-Id: <20190913082159.31338-3-paul.durrant@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Diffstat (limited to 'include/hw/xen')
-rw-r--r-- | include/hw/xen/xen-bus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/xen/xen-bus.h b/include/hw/xen/xen-bus.h index 88b84e29bb..0d198148f6 100644 --- a/include/hw/xen/xen-bus.h +++ b/include/hw/xen/xen-bus.h @@ -22,6 +22,8 @@ typedef struct XenDevice { DeviceState qdev; domid_t frontend_id; char *name; + struct xs_handle *xsh; + XenWatchList *watch_list; char *backend_path, *frontend_path; enum xenbus_state backend_state, frontend_state; Notifier exit; |