diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2011-11-24 04:37:48 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-27 04:17:34 -0500 |
commit | 93a5cef07d686a0341d056b0f930a762c7174a13 (patch) | |
tree | 8db1ec00bd74a7297b32abf4d7463d845c34fea8 /arch/x86/include/asm/kvm_host.h | |
parent | ff227392cd7b858b2b04732e02697122fd1b35b0 (diff) |
KVM: introduce KVM_MEM_SLOTS_NUM macro
Introduce KVM_MEM_SLOTS_NUM macro to instead of
KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 69b652547489..1769f3dde611 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -31,6 +31,8 @@ | |||
31 | #define KVM_MEMORY_SLOTS 32 | 31 | #define KVM_MEMORY_SLOTS 32 |
32 | /* memory slots that does not exposed to userspace */ | 32 | /* memory slots that does not exposed to userspace */ |
33 | #define KVM_PRIVATE_MEM_SLOTS 4 | 33 | #define KVM_PRIVATE_MEM_SLOTS 4 |
34 | #define KVM_MEM_SLOTS_NUM (KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS) | ||
35 | |||
34 | #define KVM_MMIO_SIZE 16 | 36 | #define KVM_MMIO_SIZE 16 |
35 | 37 | ||
36 | #define KVM_PIO_PAGE_OFFSET 1 | 38 | #define KVM_PIO_PAGE_OFFSET 1 |
@@ -228,7 +230,7 @@ struct kvm_mmu_page { | |||
228 | * One bit set per slot which has memory | 230 | * One bit set per slot which has memory |
229 | * in this shadow page. | 231 | * in this shadow page. |
230 | */ | 232 | */ |
231 | DECLARE_BITMAP(slot_bitmap, KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS); | 233 | DECLARE_BITMAP(slot_bitmap, KVM_MEM_SLOTS_NUM); |
232 | bool unsync; | 234 | bool unsync; |
233 | int root_count; /* Currently serving as active root */ | 235 | int root_count; /* Currently serving as active root */ |
234 | unsigned int unsync_children; | 236 | unsigned int unsync_children; |