diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2009-09-21 10:45:18 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-10-04 13:57:23 +0200 |
commit | 8feda6f786fc44f5f8b5cf88e3b6c03514f5be93 (patch) | |
tree | 9d0f7e0c0373f257c822df9e3193a84cb941a752 /arch/s390 | |
parent | 20824f30bb0b8ae0a4099895fd4509f54cf2e1e2 (diff) | |
download | blackbird-op-linux-8feda6f786fc44f5f8b5cf88e3b6c03514f5be93.tar.gz blackbird-op-linux-8feda6f786fc44f5f8b5cf88e3b6c03514f5be93.zip |
KVM: s390: fix memsize >= 4G
commit 628eb9b8a8f3
KVM: s390: streamline memslot handling
introduced kvm_s390_vcpu_get_memsize. This broke guests >=4G, since this
function returned an int.
This patch changes the return value to a long.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kvm/kvm-s390.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/kvm-s390.h b/arch/s390/kvm/kvm-s390.h index ec5eee7c25d8..06cce8285ba0 100644 --- a/arch/s390/kvm/kvm-s390.h +++ b/arch/s390/kvm/kvm-s390.h @@ -58,7 +58,7 @@ int kvm_s390_inject_vcpu(struct kvm_vcpu *vcpu, int kvm_s390_inject_program_int(struct kvm_vcpu *vcpu, u16 code); int kvm_s390_inject_sigp_stop(struct kvm_vcpu *vcpu, int action); -static inline int kvm_s390_vcpu_get_memsize(struct kvm_vcpu *vcpu) +static inline long kvm_s390_vcpu_get_memsize(struct kvm_vcpu *vcpu) { return vcpu->arch.sie_block->gmslm - vcpu->arch.sie_block->gmsor |