All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm-s390: fix memsize >=4G on linus git head
@ 2009-09-21  8:45 Christian Borntraeger
  2009-09-21  8:59 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Borntraeger @ 2009-09-21  8:45 UTC (permalink / raw)
  To: Avi Kivity, Marcelo Tosatti
  Cc: kvm, Heiko Carstens, Martin Schwidefsky, Carsten Otte,
	Christian Ehrhardt

Avi, Marcelo,


commit 628eb9b8a8f3ef31d8316112a4596b1a21b38159
    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>

---
 arch/s390/kvm/kvm-s390.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/arch/s390/kvm/kvm-s390.h
===================================================================
--- linux-2.6.orig/arch/s390/kvm/kvm-s390.h
+++ linux-2.6/arch/s390/kvm/kvm-s390.h
@@ -58,7 +58,7 @@ int kvm_s390_inject_vcpu(struct kvm_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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] kvm-s390: fix memsize >=4G on linus git head
  2009-09-21  8:45 [PATCH] kvm-s390: fix memsize >=4G on linus git head Christian Borntraeger
@ 2009-09-21  8:59 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-09-21  8:59 UTC (permalink / raw)
  To: Christian Borntraeger
  Cc: Marcelo Tosatti, kvm, Heiko Carstens, Martin Schwidefsky,
	Carsten Otte, Christian Ehrhardt

On 09/21/2009 11:45 AM, Christian Borntraeger wrote:
> Avi, Marcelo,
>
>
> commit 628eb9b8a8f3ef31d8316112a4596b1a21b38159
>      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.
>    

Applied and queued.  Thanks.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-21  8:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-21  8:45 [PATCH] kvm-s390: fix memsize >=4G on linus git head Christian Borntraeger
2009-09-21  8:59 ` Avi Kivity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.