|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 01/17] vmx: nest: fix CR4.VME in update_guest_cr
X86_CR4_VME in guest_cr[4] is updated in cr0 handling, but not in
cr4 handling, fix it for guest VM86.
Signed-off-by: Qing He <qing.he@xxxxxxxxx>
---
vmx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -r 9be1d3918ec7 -r ca507122f84e xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c Wed Apr 21 23:43:59 2010 +0800
+++ b/xen/arch/x86/hvm/vmx/vmx.c Thu Apr 22 21:28:41 2010 +0800
@@ -1174,7 +1174,8 @@
if ( paging_mode_hap(v->domain) )
v->arch.hvm_vcpu.hw_cr[4] &= ~X86_CR4_PAE;
v->arch.hvm_vcpu.hw_cr[4] |= v->arch.hvm_vcpu.guest_cr[4];
- if ( v->arch.hvm_vmx.vmx_realmode )
+ if ( v->arch.hvm_vmx.vmx_realmode ||
+ (v->arch.hvm_vcpu.hw_cr[4] & X86_CR4_VME) )
v->arch.hvm_vcpu.hw_cr[4] |= X86_CR4_VME;
if ( paging_mode_hap(v->domain) && !hvm_paging_enabled(v) )
{
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00/17][RFC] Nested virtualization for VMX, Qing He
- [Xen-devel] [PATCH 01/17] vmx: nest: fix CR4.VME in update_guest_cr,
Qing He <=
- [Xen-devel] [PATCH 05/17] vmx: nest: nested control structure, Qing He
- [Xen-devel] [PATCH 12/17] vmx: nest: CR0.TS and #NM, Qing He
- [Xen-devel] [PATCH 11/17] vmx: nest: L2 tsc, Qing He
- [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
|
|
|
|
|