diff options
author | Avi Kivity <avi@qumranet.com> | 2007-01-05 19:36:39 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-06 02:55:24 -0500 |
commit | 1342d3536d6a12541ceb276da15f043db90716eb (patch) | |
tree | fefac89864ed7b34b466237e5c02fc783242b80e /drivers/kvm/kvm.h | |
parent | 6bcbd6aba00fced696fc99f1a4fcd7ac7d42d6ef (diff) |
[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 { | |||
185 | unsigned long cr3; | 185 | unsigned long cr3; |
186 | unsigned long cr4; | 186 | unsigned long cr4; |
187 | unsigned long cr8; | 187 | unsigned long cr8; |
188 | u64 pdptrs[4]; /* pae */ | ||
188 | u64 shadow_efer; | 189 | u64 shadow_efer; |
189 | u64 apic_base; | 190 | u64 apic_base; |
190 | int nmsrs; | 191 | int nmsrs; |