From d198b711f9ff9032d7270d78d5b5b17abf740e75 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Fri, 13 Sep 2019 09:21:57 +0100 Subject: 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 Reviewed-by: Anthony Perard Message-Id: <20190913082159.31338-3-paul.durrant@citrix.com> Signed-off-by: Anthony PERARD --- include/hw/xen/xen-bus.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/hw/xen') 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; -- cgit v1.2.3-55-g7522