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/s390 | |
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/s390')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index c9011bfaabbe..f718bc65835c 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c | |||
@@ -928,7 +928,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm, | |||
928 | struct kvm_memory_slot *memslot, | 928 | struct kvm_memory_slot *memslot, |
929 | struct kvm_memory_slot old, | 929 | struct kvm_memory_slot old, |
930 | struct kvm_userspace_memory_region *mem, | 930 | struct kvm_userspace_memory_region *mem, |
931 | int user_alloc) | 931 | bool user_alloc) |
932 | { | 932 | { |
933 | /* A few sanity checks. We can have exactly one memory slot which has | 933 | /* A few sanity checks. We can have exactly one memory slot which has |
934 | to start at guest virtual zero and which has to be located at a | 934 | to start at guest virtual zero and which has to be located at a |
@@ -958,7 +958,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm, | |||
958 | void kvm_arch_commit_memory_region(struct kvm *kvm, | 958 | void kvm_arch_commit_memory_region(struct kvm *kvm, |
959 | struct kvm_userspace_memory_region *mem, | 959 | struct kvm_userspace_memory_region *mem, |
960 | struct kvm_memory_slot old, | 960 | struct kvm_memory_slot old, |
961 | int user_alloc) | 961 | bool user_alloc) |
962 | { | 962 | { |
963 | int rc; | 963 | int rc; |
964 | 964 | ||