diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2008-07-29 17:48:42 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-07-31 04:57:18 -0400 |
commit | 1f4170e12db06fdde5279d665a7e6e2976b2b623 (patch) | |
tree | 6e804c79330dc3b93d05c56e66c9d53c461cd0a9 /arch/s390 | |
parent | ed8486243379ef3e6c61363df915882945c0eaec (diff) |
KVM: s390: Fix kvm on IBM System z10
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.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kvm/priv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index 2e2d2ffb6a07..d1faf5c54405 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c | |||
@@ -158,6 +158,7 @@ static int handle_stfl(struct kvm_vcpu *vcpu) | |||
158 | 158 | ||
159 | vcpu->stat.instruction_stfl++; | 159 | vcpu->stat.instruction_stfl++; |
160 | facility_list &= ~(1UL<<24); /* no stfle */ | 160 | facility_list &= ~(1UL<<24); /* no stfle */ |
161 | facility_list &= ~(1UL<<23); /* no large pages */ | ||
161 | 162 | ||
162 | rc = copy_to_guest(vcpu, offsetof(struct _lowcore, stfl_fac_list), | 163 | rc = copy_to_guest(vcpu, offsetof(struct _lowcore, stfl_fac_list), |
163 | &facility_list, sizeof(facility_list)); | 164 | &facility_list, sizeof(facility_list)); |