diff options
author | Paul Durrant <paul.durrant@citrix.com> | 2019-09-13 09:21:57 +0100 |
---|---|---|
committer | Anthony PERARD <anthony.perard@citrix.com> | 2019-09-24 12:18:47 +0100 |
commit | d198b711f9ff9032d7270d78d5b5b17abf740e75 (patch) | |
tree | 22ff2e81fff1bb813e007e90cc86016aa4ea880c /include/hw | |
parent | 374752a26b0ea487dd49c638ee35b97a58ce8e3b (diff) | |
download | qemu-d198b711f9ff9032d7270d78d5b5b17abf740e75.zip qemu-d198b711f9ff9032d7270d78d5b5b17abf740e75.tar.gz qemu-d198b711f9ff9032d7270d78d5b5b17abf740e75.tar.bz2 |
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')
-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 88b84e2..0d19814 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; |