@@ -488,7 +488,9 @@ void xenstore_update_be(char *watch, char *type, int dom,
} else {
free(bepath);
xen_be_backend_changed(xendev, path);
- xen_be_check_state(xendev);
+ if (!(ops->flags & DEVOPS_FLAG_FE)) {
+ xen_be_check_state(xendev);
+ }
}
}
}
@@ -14,6 +14,8 @@ struct XenDevice;
#define DEVOPS_FLAG_NEED_GNTDEV 1
/* don't expect frontend doing correct state transitions (aka console quirk) */
#define DEVOPS_FLAG_IGNORE_STATE 2
+/*dev is frontend device*/
+#define DEVOPS_FLAG_FE 4
struct XenDevOps {
size_t size;