diff options
author | Eddie Dong <eddie.dong@intel.com> | 2007-10-10 14:26:45 +0800 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-22 12:03:28 +0200 |
commit | 8668a3c468ed55d19514117a5a959d91d3d03823 (patch) | |
tree | 3744b15b77dfdc6457225d69ee76d255b62ff94e /drivers/kvm/mmu.c | |
parent | 1b6269db3f83396c2fd2c8d0f3e0f37ac0e6ba05 (diff) | |
download | op-kernel-dev-8668a3c468ed55d19514117a5a959d91d3d03823.zip op-kernel-dev-8668a3c468ed55d19514117a5a959d91d3d03823.tar.gz |
KVM: VMX: Reset mmu context when entering real mode
Resetting an SMP guest will force AP enter real mode (RESET) with
paging enabled in protected mode. While current enter_rmode() can
only handle mode switch from nonpaging mode to real mode which leads
to SMP reboot failure.
Fix by reloading the mmu context on entering real mode.
Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/mmu.c')
-rw-r--r-- | drivers/kvm/mmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index 7171618..feb5ac9 100644 --- a/drivers/kvm/mmu.c +++ b/drivers/kvm/mmu.c @@ -1049,6 +1049,7 @@ int kvm_mmu_reset_context(struct kvm_vcpu *vcpu) destroy_kvm_mmu(vcpu); return init_kvm_mmu(vcpu); } +EXPORT_SYMBOL_GPL(kvm_mmu_reset_context); int kvm_mmu_load(struct kvm_vcpu *vcpu) { |