KVM: struct kvm_memory_slot.user_alloc -> bool
There's no need for this to be an int, it holds a boolean. Move to the end of the struct for alignment. Reviewed-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:

committed by
Marcelo Tosatti

parent
0743247fbf
commit
f82a8cfe93
@@ -3667,7 +3667,7 @@ static int alloc_apic_access_page(struct kvm *kvm)
|
||||
kvm_userspace_mem.flags = 0;
|
||||
kvm_userspace_mem.guest_phys_addr = 0xfee00000ULL;
|
||||
kvm_userspace_mem.memory_size = PAGE_SIZE;
|
||||
r = __kvm_set_memory_region(kvm, &kvm_userspace_mem, 0);
|
||||
r = __kvm_set_memory_region(kvm, &kvm_userspace_mem, false);
|
||||
if (r)
|
||||
goto out;
|
||||
|
||||
@@ -3697,7 +3697,7 @@ static int alloc_identity_pagetable(struct kvm *kvm)
|
||||
kvm_userspace_mem.guest_phys_addr =
|
||||
kvm->arch.ept_identity_map_addr;
|
||||
kvm_userspace_mem.memory_size = PAGE_SIZE;
|
||||
r = __kvm_set_memory_region(kvm, &kvm_userspace_mem, 0);
|
||||
r = __kvm_set_memory_region(kvm, &kvm_userspace_mem, false);
|
||||
if (r)
|
||||
goto out;
|
||||
|
||||
@@ -4251,7 +4251,7 @@ static int vmx_set_tss_addr(struct kvm *kvm, unsigned int addr)
|
||||
.flags = 0,
|
||||
};
|
||||
|
||||
ret = kvm_set_memory_region(kvm, &tss_mem, 0);
|
||||
ret = kvm_set_memory_region(kvm, &tss_mem, false);
|
||||
if (ret)
|
||||
return ret;
|
||||
kvm->arch.tss_addr = addr;
|
||||
|
Reference in New Issue
Block a user