|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 14/17] vmx: nest: enable virtual VMX
expose VMX cpuid and allow guest to enable VMX.
Signed-off-by: Qing He <qing.he@xxxxxxxxx>
---
arch/x86/hvm/vmx/vmx.c | 5 +++++
include/asm-x86/hvm/hvm.h | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff -r 0f0e32a70c02 -r 22df5f7ec6d3 xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c Thu Apr 22 22:30:09 2010 +0800
+++ b/xen/arch/x86/hvm/vmx/vmx.c Thu Apr 22 22:30:09 2010 +0800
@@ -1561,6 +1561,11 @@
switch ( input )
{
+ case 0x1:
+ if ( v->domain->arch.hvm_domain.nesting_avail )
+ *ecx |= 1 << 5; /* VMX capability */
+ break;
+
case 0x80000001:
/* SYSCALL is visible iff running in long mode. */
hvm_get_segment_register(v, x86_seg_cs, &cs);
diff -r 0f0e32a70c02 -r 22df5f7ec6d3 xen/include/asm-x86/hvm/hvm.h
--- a/xen/include/asm-x86/hvm/hvm.h Thu Apr 22 22:30:09 2010 +0800
+++ b/xen/include/asm-x86/hvm/hvm.h Thu Apr 22 22:30:09 2010 +0800
@@ -272,7 +272,8 @@
X86_CR4_DE | X86_CR4_PSE | X86_CR4_PAE | \
X86_CR4_MCE | X86_CR4_PGE | X86_CR4_PCE | \
X86_CR4_OSFXSR | X86_CR4_OSXMMEXCPT | \
- (cpu_has_xsave ? X86_CR4_OSXSAVE : 0))))
+ (cpu_has_xsave ? X86_CR4_OSXSAVE : 0) | \
+ X86_CR4_VMXE)))
/* These exceptions must always be intercepted. */
#define HVM_TRAP_MASK ((1U << TRAP_machine_check) | (1U << TRAP_invalid_op))
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 17/17] tools: nest: allow enabling nesting, (continued)
- [Xen-devel] [PATCH 17/17] tools: nest: allow enabling nesting, Qing He
- [Xen-devel] [PATCH 03/17] vmx: nest: wrapper for control update, Qing He
- [Xen-devel] [PATCH 09/17] vmx: nest: interrupt, Qing He
- [Xen-devel] [PATCH 13/17] vmx: nest: capability reporting MSRs, Qing He
- [Xen-devel] [PATCH 07/17] vmx: nest: handling VMX instruction exits, Qing He
- [Xen-devel] [PATCH 02/17] vmx: nest: rename host_vmcs, Qing He
- [Xen-devel] [PATCH 06/17] vmx: nest: virtual vmcs layout, Qing He
- [Xen-devel] [PATCH 04/17] vmx: nest: domain and vcpu flags, Qing He
- [Xen-devel] [PATCH 15/17] vmx: nest: virtual ept for nested, Qing He
- [Xen-devel] [PATCH 16/17] vmx: nest: hvmtrace for nested, Qing He
- [Xen-devel] [PATCH 14/17] vmx: nest: enable virtual VMX,
Qing He <=
- [Xen-devel] [PATCH 10/17] vmx: nest: VMExit handler in L2, Qing He
- [Xen-devel] [PATCH 08/17] vmx: nest: L1 <-> L2 context switch, Qing He
- Re: [Xen-devel] [PATCH 00/17][RFC] Nested virtualization for VMX, Christoph Egger
|
|
|
|
|