KVM: MMU: reduce 'struct kvm_mmu_page' size
Define 'multimapped' as 'bool'. Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
committed by
Avi Kivity
parent
1b8c7934a4
commit
0571d366e0
@@ -202,9 +202,9 @@ struct kvm_mmu_page {
|
|||||||
* in this shadow page.
|
* in this shadow page.
|
||||||
*/
|
*/
|
||||||
DECLARE_BITMAP(slot_bitmap, KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS);
|
DECLARE_BITMAP(slot_bitmap, KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS);
|
||||||
int multimapped; /* More than one parent_pte? */
|
bool multimapped; /* More than one parent_pte? */
|
||||||
int root_count; /* Currently serving as active root */
|
|
||||||
bool unsync;
|
bool unsync;
|
||||||
|
int root_count; /* Currently serving as active root */
|
||||||
unsigned int unsync_children;
|
unsigned int unsync_children;
|
||||||
union {
|
union {
|
||||||
u64 *parent_pte; /* !multimapped */
|
u64 *parent_pte; /* !multimapped */
|
||||||
|
Reference in New Issue
Block a user