|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] Revert "VMX: Eliminate cr3 store/load vmexit when UG enabled"
commit 1e2bf05ec37cf04b0e01585eae524509179f165e
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Wed Oct 30 16:20:29 2013 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Oct 30 16:20:29 2013 +0100
Revert "VMX: Eliminate cr3 store/load vmexit when UG enabled"
This reverts commit c9efe34c119418a5ac776e5d91aeefcce4576518. It
doesn't work right on non-UG hardware.
---
xen/arch/x86/hvm/vmx/vmx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
index 502caa3..9ca8632 100644
--- a/xen/arch/x86/hvm/vmx/vmx.c
+++ b/xen/arch/x86/hvm/vmx/vmx.c
@@ -1086,7 +1086,7 @@ static void vmx_update_guest_cr(struct vcpu *v, unsigned
int cr)
uint32_t cr3_ctls = (CPU_BASED_CR3_LOAD_EXITING |
CPU_BASED_CR3_STORE_EXITING);
v->arch.hvm_vmx.exec_control &= ~cr3_ctls;
- if ( !hvm_paging_enabled(v) && !vmx_unrestricted_guest(v) )
+ if ( !hvm_paging_enabled(v) )
v->arch.hvm_vmx.exec_control |= cr3_ctls;
/* Trap CR3 updates if CR3 memory events are enabled. */
@@ -1156,7 +1156,7 @@ static void vmx_update_guest_cr(struct vcpu *v, unsigned
int cr)
case 3:
if ( paging_mode_hap(v->domain) )
{
- if ( !hvm_paging_enabled(v) && !vmx_unrestricted_guest(v) )
+ if ( !hvm_paging_enabled(v) )
v->arch.hvm_vcpu.hw_cr[3] =
v->domain->arch.hvm_domain.params[HVM_PARAM_IDENT_PT];
vmx_load_pdptrs(v);
@@ -2408,7 +2408,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs)
hvm_invalidate_regs_fields(regs);
- if ( paging_mode_hap(v->domain) )
+ if ( paging_mode_hap(v->domain) && hvm_paging_enabled(v) )
{
__vmread(GUEST_CR3, &v->arch.hvm_vcpu.hw_cr[3]);
v->arch.hvm_vcpu.guest_cr[3] = v->arch.hvm_vcpu.hw_cr[3];
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |