]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: don't leak PFEC_implict to guests
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Apr 2017 10:08:34 +0000 (12:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Apr 2017 10:08:34 +0000 (12:08 +0200)
commitb706e1c6af274fc1914884b3da5af27221f1e818
treecf3205839162589facf0c85cffcfa7e39068f5d3
parent60bbae0502003e90886bf84758d695b88c1763d7
x86/HVM: don't leak PFEC_implict to guests

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 the vCPU of interest is not "current".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c