diff options
author | Avi Kivity <avi@qumranet.com> | 2008-08-21 10:49:56 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-10-15 04:15:22 -0400 |
commit | 135f8c2b078533cc74e75f696e73d47304a61125 (patch) | |
tree | 784d302d329b32cf2e0ed1b0ac7f2809a8c2fd50 /arch/x86/kvm/mmu.c | |
parent | 6eb06cb2863a2ff5704b501f1699216180e790b5 (diff) |
KVM: MMU: Move SHADOW_PT_INDEX to mmu.c
It is not specific to the paging mode, so can be made global (and reusable).
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 171bcea1be21..51d4cd7ae4f9 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -135,6 +135,8 @@ module_param(dbg, bool, 0644); | |||
135 | #define ACC_USER_MASK PT_USER_MASK | 135 | #define ACC_USER_MASK PT_USER_MASK |
136 | #define ACC_ALL (ACC_EXEC_MASK | ACC_WRITE_MASK | ACC_USER_MASK) | 136 | #define ACC_ALL (ACC_EXEC_MASK | ACC_WRITE_MASK | ACC_USER_MASK) |
137 | 137 | ||
138 | #define SHADOW_PT_INDEX(addr, level) PT64_INDEX(addr, level) | ||
139 | |||
138 | struct kvm_rmap_desc { | 140 | struct kvm_rmap_desc { |
139 | u64 *shadow_ptes[RMAP_EXT]; | 141 | u64 *shadow_ptes[RMAP_EXT]; |
140 | struct kvm_rmap_desc *more; | 142 | struct kvm_rmap_desc *more; |