diff options
author | Sheng Yang <sheng@linux.intel.com> | 2008-10-16 05:30:57 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:51:45 -0500 |
commit | 291f26bc0f89518ad7ee3207c09eb8a743ac8fcc (patch) | |
tree | d0ce8ff4d0a4b88b656db0f559a00c5b25738ed2 /arch/x86/include/asm/kvm_host.h | |
parent | d73fa29a9b75b2af7f69dae276d2c602a23b329b (diff) |
KVM: MMU: Extend kvm_mmu_page->slot_bitmap size
Otherwise set_bit() for private memory slot(above KVM_MEMORY_SLOTS) would
corrupted memory in 32bit host.
Signed-off-by: Sheng Yang <sheng@linux.intel.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 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 93040b5eed96..59c3ae10de6c 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -192,9 +192,11 @@ struct kvm_mmu_page { | |||
192 | u64 *spt; | 192 | u64 *spt; |
193 | /* hold the gfn of each spte inside spt */ | 193 | /* hold the gfn of each spte inside spt */ |
194 | gfn_t *gfns; | 194 | gfn_t *gfns; |
195 | unsigned long slot_bitmap; /* One bit set per slot which has memory | 195 | /* |
196 | * in this shadow page. | 196 | * One bit set per slot which has memory |
197 | */ | 197 | * in this shadow page. |
198 | */ | ||
199 | DECLARE_BITMAP(slot_bitmap, KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS); | ||
198 | int multimapped; /* More than one parent_pte? */ | 200 | int multimapped; /* More than one parent_pte? */ |
199 | int root_count; /* Currently serving as active root */ | 201 | int root_count; /* Currently serving as active root */ |
200 | bool unsync; | 202 | bool unsync; |