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/kvm | |
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/kvm')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index aecdea265f7e..715dcb4fb798 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -1349,7 +1349,7 @@ static struct kvm_mmu_page *kvm_mmu_alloc_page(struct kvm_vcpu *vcpu, | |||
1349 | PAGE_SIZE); | 1349 | PAGE_SIZE); |
1350 | set_page_private(virt_to_page(sp->spt), (unsigned long)sp); | 1350 | set_page_private(virt_to_page(sp->spt), (unsigned long)sp); |
1351 | list_add(&sp->link, &vcpu->kvm->arch.active_mmu_pages); | 1351 | list_add(&sp->link, &vcpu->kvm->arch.active_mmu_pages); |
1352 | bitmap_zero(sp->slot_bitmap, KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS); | 1352 | bitmap_zero(sp->slot_bitmap, KVM_MEM_SLOTS_NUM); |
1353 | sp->parent_ptes = 0; | 1353 | sp->parent_ptes = 0; |
1354 | mmu_page_add_parent_pte(vcpu, sp, parent_pte); | 1354 | mmu_page_add_parent_pte(vcpu, sp, parent_pte); |
1355 | kvm_mod_used_mmu_pages(vcpu->kvm, +1); | 1355 | kvm_mod_used_mmu_pages(vcpu->kvm, +1); |