From: "Jan Beulich" Subject: Re: [PATCH RFC V9 4/5] xen, libxc: Request page fault injection via libxc Date: Thu, 28 Aug 2014 13:11:50 +0100 Message-ID: <53FF38A6020000780002EB2B@mail.emea.novell.com> References: <1409226482-12657-1-git-send-email-rcojocaru@bitdefender.com> <1409226482-12657-4-git-send-email-rcojocaru@bitdefender.com> <53FF36A1020000780002EAED@mail.emea.novell.com> <53FF1BD8.5010401@bitdefender.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XMyYR-0008Ar-TY for xen-devel@lists.xenproject.org; Thu, 28 Aug 2014 12:11:52 +0000 In-Reply-To: <53FF1BD8.5010401@bitdefender.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Razvan Cojocaru Cc: kevin.tian@intel.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, eddie.dong@intel.com, tim@xen.org, jun.nakajima@intel.com, xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 28.08.14 at 14:08, wrote: > On 08/28/2014 03:03 PM, Jan Beulich wrote: >>>>> On 28.08.14 at 13:48, wrote: >>> + case XEN_DOMCTL_request_pagefault: >>> + { >>> + unsigned int vcpu = op->u.vcpucontext.vcpu; >> >> So you're using two different structures of the union - how can >> that possibly work? You've got a 32-bi padding field, which you can >> easily use to indicate the desired vCPU. Apart from that I'm not >> seeing how your intended "any vCPU" is now getting handled. > > Sorry about that, started from a copy / paste bug from another domctl > case. I'll add the vcpu field to our struct and use that. > > Not sure I follow the second part of your comment. Assuming the union > problem is fixed, is this not what you meant about handling the page > fault injection VCPU-based vs domain-based? It is, but you said you want an "I don't care on which vCPU" special case. In fact with your previous explanations I could see you getting into trouble if on a large guest you'd have to wait for one particular CPU to get to carry out the desired swap-in. Jan