diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2012-12-10 12:33:21 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-12-13 20:24:38 -0500 |
commit | f82a8cfe9354f5cdea55ebeceba3fd19051d3ee8 (patch) | |
tree | 335e968cef697b7831c48849677de628cee4e73d /arch/ia64 | |
parent | 0743247fbf0c4a27185b2aa1fdda91d0745dfed1 (diff) |
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>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/kvm/kvm-ia64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c index 9bacfe207b43..ad3126a58644 100644 --- a/arch/ia64/kvm/kvm-ia64.c +++ b/arch/ia64/kvm/kvm-ia64.c | |||
@@ -955,7 +955,7 @@ long kvm_arch_vm_ioctl(struct file *filp, | |||
955 | kvm_mem.guest_phys_addr; | 955 | kvm_mem.guest_phys_addr; |
956 | kvm_userspace_mem.memory_size = kvm_mem.memory_size; | 956 | kvm_userspace_mem.memory_size = kvm_mem.memory_size; |
957 | r = kvm_vm_ioctl_set_memory_region(kvm, | 957 | r = kvm_vm_ioctl_set_memory_region(kvm, |
958 | &kvm_userspace_mem, 0); | 958 | &kvm_userspace_mem, false); |
959 | if (r) | 959 | if (r) |
960 | goto out; | 960 | goto out; |
961 | break; | 961 | break; |
@@ -1580,7 +1580,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm, | |||
1580 | struct kvm_memory_slot *memslot, | 1580 | struct kvm_memory_slot *memslot, |
1581 | struct kvm_memory_slot old, | 1581 | struct kvm_memory_slot old, |
1582 | struct kvm_userspace_memory_region *mem, | 1582 | struct kvm_userspace_memory_region *mem, |
1583 | int user_alloc) | 1583 | bool user_alloc) |
1584 | { | 1584 | { |
1585 | unsigned long i; | 1585 | unsigned long i; |
1586 | unsigned long pfn; | 1586 | unsigned long pfn; |
@@ -1611,7 +1611,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm, | |||
1611 | void kvm_arch_commit_memory_region(struct kvm *kvm, | 1611 | void kvm_arch_commit_memory_region(struct kvm *kvm, |
1612 | struct kvm_userspace_memory_region *mem, | 1612 | struct kvm_userspace_memory_region *mem, |
1613 | struct kvm_memory_slot old, | 1613 | struct kvm_memory_slot old, |
1614 | int user_alloc) | 1614 | bool user_alloc) |
1615 | { | 1615 | { |
1616 | return; | 1616 | return; |
1617 | } | 1617 | } |