* Fwd: [PATCH] kvm-s390: Fix kvm on IBM System z10
@ 2008-07-29 22:07 Christian Borntraeger
0 siblings, 0 replies; only message in thread
From: Christian Borntraeger @ 2008-07-29 22:07 UTC (permalink / raw)
To: kvm
I forgot to CC the list, here it is.
---------- Weitergeleitete Nachricht ----------
Betreff: [PATCH] kvm-s390: Fix kvm on IBM System z10
Datum: Dienstag, 29. Juli 2008
Von: Christian Borntraeger <borntraeger@de.ibm.com>
An: Avi Kivity <avi@qumranet.com>
From: Christian Borntraeger <borntraeger@de.ibm.com>
The z10 system supports large pages, kvm-s390 doesnt.
Make sure that we dont advertise large pages to avoid the guest crashing as
soon as the guest kernel activates DAT.
Avi, this should go into 2.6.27-rc*.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
arch/s390/kvm/priv.c | 1 +
1 file changed, 1 insertion(+)
Index: kvm/arch/s390/kvm/priv.c
===================================================================
--- kvm.orig/arch/s390/kvm/priv.c
+++ kvm/arch/s390/kvm/priv.c
@@ -158,6 +158,7 @@ static int handle_stfl(struct kvm_vcpu *
vcpu->stat.instruction_stfl++;
facility_list &= ~(1UL<<24); /* no stfle */
+ facility_list &= ~(1UL<<23); /* no large pages */
rc = copy_to_guest(vcpu, offsetof(struct _lowcore, stfl_fac_list),
&facility_list, sizeof(facility_list));
-------------------------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-29 22:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-29 22:07 Fwd: [PATCH] kvm-s390: Fix kvm on IBM System z10 Christian Borntraeger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox