From: Tim Deegan Subject: Re: [PATCH RFC 2/2] xen/pvh: enable mmu_update hypercall Date: Thu, 16 Oct 2014 09:53:04 +0200 Message-ID: <20141016075304.GA71219@deinos.phlegethon.org> References: <1413370425-15015-1-git-send-email-roger.pau@citrix.com> <1413370425-15015-3-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xefs7-0007vo-86 for xen-devel@lists.xenproject.org; Thu, 16 Oct 2014 07:53:19 +0000 Content-Disposition: inline In-Reply-To: <1413370425-15015-3-git-send-email-roger.pau@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: Roger Pau Monne Cc: xen-devel@lists.xenproject.org, Jan Beulich List-Id: xen-devel@lists.xenproject.org At 12:53 +0200 on 15 Oct (1413374025), Roger Pau Monne wrote: > This is needed for performing save/restore of PV guests. On IRC I suggested that this would be OK as long as there were other checks to make sure that the target of all these ops is PV (in particular that a PVH/HVM guest can't end up calling PV MM operations on itself). Did it turn out that all those checks are already there? Tim. > Signed-off-by: Roger Pau Monn=E9 > Cc: Tim Deegan > Cc: Jan Beulich > --- > xen/arch/x86/hvm/hvm.c | 1 + > 1 file changed, 1 insertion(+) > = > diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c > index f0e1edc..cf84e49 100644 > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -4804,6 +4804,7 @@ static hvm_hypercall_t *const pvh_hypercall64_table= [NR_hypercalls] =3D { > [ __HYPERVISOR_grant_table_op ] =3D (hvm_hypercall_t *)hvm_grant_ta= ble_op, > HYPERCALL(vcpu_op), > HYPERCALL(mmuext_op), > + HYPERCALL(mmu_update), > HYPERCALL(xsm_op), > HYPERCALL(sched_op), > HYPERCALL(event_channel_op), > -- > 1.9.3 (Apple Git-50) > =