Re: [Xen-devel] [PATCH] x86/HVM: don't leak PFEC_implict to guests

2017-04-07 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Thursday, April 6, 2017 10:28 PM > > Doing so may not only confuse them, but will - on VMX - lead to > VMRESUME failures. Add respective ASSERT()s where the fields get set > to guard against future similar issues (or - in the restore case - >

Re: [Xen-devel] [PATCH] x86/HVM: don't leak PFEC_implict to guests

2017-04-06 Thread Boris Ostrovsky
On 04/06/2017 11:11 AM, Jan Beulich wrote: On 06.04.17 at 16:59, wrote: >>> --- a/xen/arch/x86/hvm/svm/svm.c >>> +++ b/xen/arch/x86/hvm/svm/svm.c >>> @@ -269,13 +269,23 @@ static int svm_vmcb_restore(struct vcpu >>> struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb; >>> struct p2m_dom

Re: [Xen-devel] [PATCH] x86/HVM: don't leak PFEC_implict to guests

2017-04-06 Thread Andrew Cooper
On 06/04/17 15:59, Boris Ostrovsky wrote: >> --- a/xen/arch/x86/hvm/svm/svm.c >> +++ b/xen/arch/x86/hvm/svm/svm.c >> @@ -269,13 +269,23 @@ static int svm_vmcb_restore(struct vcpu >> struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb; >> struct p2m_domain *p2m = p2m_get_hostp2m(v->domain); >>

Re: [Xen-devel] [PATCH] x86/HVM: don't leak PFEC_implict to guests

2017-04-06 Thread Jan Beulich
>>> On 06.04.17 at 16:59, wrote: >> --- a/xen/arch/x86/hvm/svm/svm.c >> +++ b/xen/arch/x86/hvm/svm/svm.c >> @@ -269,13 +269,23 @@ static int svm_vmcb_restore(struct vcpu >> struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb; >> struct p2m_domain *p2m = p2m_get_hostp2m(v->domain); >> >> -

Re: [Xen-devel] [PATCH] x86/HVM: don't leak PFEC_implict to guests

2017-04-06 Thread Boris Ostrovsky
> --- a/xen/arch/x86/hvm/svm/svm.c > +++ b/xen/arch/x86/hvm/svm/svm.c > @@ -269,13 +269,23 @@ static int svm_vmcb_restore(struct vcpu > struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb; > struct p2m_domain *p2m = p2m_get_hostp2m(v->domain); > > -if ( c->pending_valid && > -

Re: [Xen-devel] [PATCH] x86/HVM: don't leak PFEC_implict to guests

2017-04-06 Thread Jan Beulich
>>> On 06.04.17 at 16:33, wrote: > On 06/04/17 15:27, Jan Beulich wrote: >> Doing so may not only confuse them, but will - on VMX - lead to >> VMRESUME failures. Add respective ASSERT()s where the fields get set >> to guard against future similar issues (or - in the restore case - >> fail the oper

Re: [Xen-devel] [PATCH] x86/HVM: don't leak PFEC_implict to guests

2017-04-06 Thread Andrew Cooper
On 06/04/17 15:27, Jan Beulich wrote: > Doing so may not only confuse them, but will - on VMX - lead to > VMRESUME failures. Add respective ASSERT()s where the fields get set > to guard against future similar issues (or - in the restore case - > fail the operation). In that latter code at once conv

[Xen-devel] [PATCH] x86/HVM: don't leak PFEC_implict to guests

2017-04-06 Thread Jan Beulich
Doing so may not only confuse them, but will - on VMX - lead to VMRESUME failures. Add respective ASSERT()s where the fields get set to guard against future similar issues (or - in the restore case - fail the operation). In that latter code at once convert the mis-used gdprintk() to dprintk(), as t