diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2009-06-23 17:24:07 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-28 13:10:30 +0200 |
commit | ef50f7ac7e234f9696555e41eab3de69c3d86166 (patch) | |
tree | d7455e080646902480a85d5608ce9df0aaf5fff5 /arch/s390/include | |
parent | KVM: kvm/x86_emulate.c toggle_interruptibility() should be static (diff) | |
download | linux-ef50f7ac7e234f9696555e41eab3de69c3d86166.tar.xz linux-ef50f7ac7e234f9696555e41eab3de69c3d86166.zip |
KVM: s390: Allow stfle instruction in the guest
2.6.31-rc introduced an architecture level set checker based on facility
bits. e.g. if the kernel is compiled to run only on z9, several facility
bits are checked very early and the kernel refuses to boot if a z9 specific
facility is missing.
Until now kvm on s390 did not implement the store facility extended (STFLE)
instruction. A 2.6.31-rc kernel that was compiled for z9 or higher did not
boot in kvm. This patch implements stfle.
This patch should go in before 2.6.31.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r-- | arch/s390/include/asm/kvm_host.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h index a27d0d5a6f86..1cd02f6073a0 100644 --- a/arch/s390/include/asm/kvm_host.h +++ b/arch/s390/include/asm/kvm_host.h @@ -99,7 +99,9 @@ struct kvm_s390_sie_block { __u8 reservedd0[48]; /* 0x00d0 */ __u64 gcr[16]; /* 0x0100 */ __u64 gbea; /* 0x0180 */ - __u8 reserved188[120]; /* 0x0188 */ + __u8 reserved188[24]; /* 0x0188 */ + __u32 fac; /* 0x01a0 */ + __u8 reserved1a4[92]; /* 0x01a4 */ } __attribute__((packed)); struct kvm_vcpu_stat { |