mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
374752a26b
commit
d198b711f9
3 changed files with 62 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue