KVM: Handle partial pae pdptr
authorAvi Kivity <avi@qumranet.com>
Thu, 12 Apr 2007 14:35:58 +0000 (17:35 +0300)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:29 +0000 (10:52 +0300)
commit417726a3fbecb2092f1054bbaee87bc442b05ef3
tree4d9810766bba0c28ce408639b5d63b50d71533fd
parentd917a6b92d0d1e4e2b98e86c584bc9e643cd5117
KVM: Handle partial pae pdptr

Some guests (Solaris) do not set up all four pdptrs, but leave some invalid.
kvm incorrectly treated these as valid page directories, pinning the
wrong pages and causing general confusion.

Fix by checking the valid bit of a pae pdpte.  This closes sourceforge bug
1698922.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/mmu.c