From: Don Slutz Date: Mon, 22 Jun 2015 09:40:28 +0000 (+0200) Subject: gdbsx_guestmemio: allow it to check domain X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3058 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2abed01bf44e03dac3083e382d8c869ab3c19eb8;p=xen.git gdbsx_guestmemio: allow it to check domain 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 Reviewed-by: Andrew Cooper --- diff --git a/xen/common/domctl.c b/xen/common/domctl.c index ce517a76be..2a2d20398d 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -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: