]> www.infradead.org Git - users/dwmw2/linux.git/commit
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, 13 May 2009 07:39:46 +0000 (10:39 +0300)
commit89da4ff17f568bb3a1f69dce7e4c57a7f3bc0c63
treecce7914c9ff344a7ea38d8fc533c02fe067de1e3
parentcbb776efc4c8aeeb0a584784d829cbb41983802c
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