gdbsx_guestmemio: allow it to check domain
authorDon Slutz <dslutz@verizon.com>
Mon, 22 Jun 2015 09:40:28 +0000 (11:40 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jun 2015 09:40:28 +0000 (11:40 +0200)
gdbsx_guest_mem_io() does not get d passed, it expects to handle the
domain lookup itself. Specifically, the caller of
XEN_DOMCTL_gdbsx_guestmemio is expected to use DOMID_IDLE to interact
with the hypervisor, rather than a domain, which doesn't interact well
with with the domain rcu lock.

Signed-off-by: Don Slutz <dslutz@verizon.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/domctl.c

index ce517a76beba269314ef6ce873bdd44be7642f07..2a2d20398d52d79d1dd000bc4b53ce7e573cc8fe 100644 (file)
@@ -443,6 +443,7 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl)
     case XEN_DOMCTL_createdomain:
     case XEN_DOMCTL_getdomaininfo:
     case XEN_DOMCTL_test_assign_device:
+    case XEN_DOMCTL_gdbsx_guestmemio:
         d = NULL;
         break;
     default: