KVM: x86: check for cr3 validity in mmu_alloc_roots
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 6 Aug 2009 17:40:06 +0000 (14:40 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:17:28 +0000 (20:17 -0700)
commit969034648a9fe07482ffffe3c53588a39e29b9db
tree259c73011bdbc473001feaa8b2cbb3d897c3aca2
parentf599c5cbcaa13a93215d2f260815d29f265a4457
KVM: x86: check for cr3 validity in mmu_alloc_roots

(cherry picked from commit 8986ecc0ef58c96eec48d8502c048f3ab67fd8e2)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c