From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Slutz Subject: Re: [PATCH 1/2] gdbsx_guestmemio: Allow it to check domain. Date: Thu, 18 Jun 2015 16:39:50 -0400 Message-ID: <55832C96.5030501@Gmail.com> References: <1434642932-24807-1-git-send-email-dslutz@verizon.com> <1434642932-24807-2-git-send-email-dslutz@verizon.com> <5582F8DE.2060203@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5582F8DE.2060203@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper , Don Slutz , xen-devel@lists.xen.org Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , Tim Deegan , Ian Jackson , "security@xenproject.org" , Jan Beulich , Wei Liu , Mukesh Rathor List-Id: xen-devel@lists.xenproject.org On 06/18/15 12:59, Andrew Cooper wrote: > On 18/06/15 16:55, Don Slutz wrote: >> gdbsx_guest_mem_io() does not get d passed, it expects to handle >> the domain lookup itself. >> >> Signed-off-by: Don Slutz >> CC: Don Slutz > > As for the change itself, Reviewed-by: Andrew Cooper > > > However, I think the commit message needs improving. 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. I am happy to change it to: 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. Do you want me to add: (h/t to Andrew Cooper for the patch summary.) -Don Slutz > >> --- >> xen/common/domctl.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/xen/common/domctl.c b/xen/common/domctl.c >> index ce517a7..2a2d203 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: >