xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] vvmx: fix L1 vmxon
@ 2016-12-14 10:11 Haozhong Zhang
  2016-12-14 10:11 ` [PATCH v2 1/4] vvmx: set vmxon_region_pa of vcpu out of VMX operation to an invalid address Haozhong Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Haozhong Zhang @ 2016-12-14 10:11 UTC (permalink / raw)
  To: xen-devel
  Cc: Haozhong Zhang, Kevin Tian, Jun Nakajima, Andrew Cooper,
	Jan Beulich

This patchset fixes bugs and adds missing checks in nvmx_handle_vmxon(),
in order to make it more consistent to Intel SDM (section "VMXON - Enter
VMX Operation" in Vol 3).

Changes in v2:
 * Add necessary 'const' in patch 1. (Andrew Cooper)
 * Use the existing INVALID_PADDR rather than introducing a new
   one in patch 1. (Jan Beulich)
 * Add patch 4 to replace VMCX_EADDR by INVALID_PADDR. (Jan Beulich)

Haozhong Zhang (4):
  vvmx: set vmxon_region_pa of vcpu out of VMX operation to an invalid address
  vvmx: return VMfail to L1 if L1 vmxon is executed in VMX operation
  vvmx: check the operand of L1 vmxon
  nestedhvm: replace VMCX_EADDR by INVALID_PADDR

 xen/arch/x86/hvm/nestedhvm.c       |  2 +-
 xen/arch/x86/hvm/svm/nestedsvm.c   | 18 ++++++-------
 xen/arch/x86/hvm/svm/vmcb.c        |  2 +-
 xen/arch/x86/hvm/vmx/vvmx.c        | 52 ++++++++++++++++++++++++++++----------
 xen/include/asm-x86/hvm/vcpu.h     |  2 --
 xen/include/asm-x86/hvm/vmx/vvmx.h |  7 +++++
 6 files changed, 56 insertions(+), 27 deletions(-)

-- 
2.10.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-12-18 14:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-14 10:11 [PATCH v2 0/4] vvmx: fix L1 vmxon Haozhong Zhang
2016-12-14 10:11 ` [PATCH v2 1/4] vvmx: set vmxon_region_pa of vcpu out of VMX operation to an invalid address Haozhong Zhang
2016-12-14 10:11 ` [PATCH v2 2/4] vvmx: return VMfail to L1 if L1 vmxon is executed in VMX operation Haozhong Zhang
2016-12-14 10:11 ` [PATCH v2 3/4] vvmx: check the operand of L1 vmxon Haozhong Zhang
2016-12-18 14:02   ` Haozhong Zhang
2016-12-18 14:06     ` Andrew Cooper
2016-12-14 10:11 ` [PATCH v2 4/4] nestedhvm: replace VMCX_EADDR by INVALID_PADDR Haozhong Zhang
2016-12-14 10:16   ` Jan Beulich
2016-12-14 15:54     ` Konrad Rzeszutek Wilk
2016-12-14 10:18   ` Haozhong Zhang
2016-12-14 16:24     ` Boris Ostrovsky
2016-12-14 11:57   ` Tian, Kevin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).