KVM: x86: check for cr3 validity in mmu_alloc_roots
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 12 May 2009 21:55:45 +0000 (18:55 -0300)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:55 +0000 (11:48 +0300)
commit8986ecc0ef58c96eec48d8502c048f3ab67fd8e2
treeb2682f02bcb1e437e62463a17d7adc95a6735b60
parentb43b1901ad282aeb74161837fb403927102687a1
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>
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c