aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2009-05-12 17:55:45 -0400
committerAvi Kivity <avi@redhat.com>2009-06-10 04:48:55 -0400
commit8986ecc0ef58c96eec48d8502c048f3ab67fd8e2 (patch)
treeb2682f02bcb1e437e62463a17d7adc95a6735b60 /arch/x86/kvm/x86.c
parentb43b1901ad282aeb74161837fb403927102687a1 (diff)
KVM: x86: check for cr3 validity in mmu_alloc_roots
Verify the cr3 address stored in vcpu->arch.cr3 points to an existant memslot. If not, inject a triple fault. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index d2a4eca26181..3244437e67b3 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4568,6 +4568,7 @@ int kvm_arch_set_memory_region(struct kvm *kvm,
4568void kvm_arch_flush_shadow(struct kvm *kvm) 4568void kvm_arch_flush_shadow(struct kvm *kvm)
4569{ 4569{
4570 kvm_mmu_zap_all(kvm); 4570 kvm_mmu_zap_all(kvm);
4571 kvm_reload_remote_mmus(kvm);
4571} 4572}
4572 4573
4573int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) 4574int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu)