diff options
author | Avi Kivity <avi@qumranet.com> | 2007-01-05 16:36:39 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-05 23:55:24 -0800 |
commit | 1342d3536d6a12541ceb276da15f043db90716eb (patch) | |
tree | fefac89864ed7b34b466237e5c02fc783242b80e /drivers/kvm/kvm.h | |
parent | 6bcbd6aba00fced696fc99f1a4fcd7ac7d42d6ef (diff) | |
download | lwn-1342d3536d6a12541ceb276da15f043db90716eb.tar.gz lwn-1342d3536d6a12541ceb276da15f043db90716eb.zip |
[PATCH] KVM: MMU: Load the pae pdptrs on cr3 change like the processor does
In pae mode, a load of cr3 loads the four third-level page table entries in
addition to cr3 itself.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index b65511ed4388..8323f4009362 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h @@ -185,6 +185,7 @@ struct kvm_vcpu { unsigned long cr3; unsigned long cr4; unsigned long cr8; + u64 pdptrs[4]; /* pae */ u64 shadow_efer; u64 apic_base; int nmsrs; |