public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: kvm <kvm@vger.kernel.org>
Subject: Fwd: [PATCH] kvm-s390: Fix kvm on IBM System z10
Date: Wed, 30 Jul 2008 00:07:29 +0200	[thread overview]
Message-ID: <200807300007.29541.borntraeger@de.ibm.com> (raw)

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));

-------------------------------------------------------


                 reply	other threads:[~2008-07-29 22:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200807300007.29541.borntraeger@de.ibm.com \
    --to=borntraeger@de.ibm.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox