diff options
author | Michael Mueller <mimu@linux.vnet.ibm.com> | 2014-05-13 10:58:30 -0400 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-05-16 08:57:31 -0400 |
commit | fda902cb8347da121025c4079b9e87748228a27e (patch) | |
tree | b5cbcce14afbe2da194e4b3cb8f1594cea800fb5 /arch/s390/include | |
parent | 570126d370e9c018e603d63272ebcf7340efc05b (diff) |
KVM: s390: split SIE state guest prefix field
This patch splits the SIE state guest prefix at offset 4
into a prefix bit field. Additionally it provides the
access functions:
- kvm_s390_get_prefix()
- kvm_s390_set_prefix()
to access the prefix per vcpu.
Signed-off-by: Michael Mueller <mimu@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.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 dc182a5b02b7..a27f5007062a 100644 --- a/arch/s390/include/asm/kvm_host.h +++ b/arch/s390/include/asm/kvm_host.h | |||
@@ -82,7 +82,9 @@ struct sca_block { | |||
82 | 82 | ||
83 | struct kvm_s390_sie_block { | 83 | struct kvm_s390_sie_block { |
84 | atomic_t cpuflags; /* 0x0000 */ | 84 | atomic_t cpuflags; /* 0x0000 */ |
85 | __u32 prefix; /* 0x0004 */ | 85 | __u32 : 1; /* 0x0004 */ |
86 | __u32 prefix : 18; | ||
87 | __u32 : 13; | ||
86 | __u8 reserved08[4]; /* 0x0008 */ | 88 | __u8 reserved08[4]; /* 0x0008 */ |
87 | #define PROG_IN_SIE (1<<0) | 89 | #define PROG_IN_SIE (1<<0) |
88 | __u32 prog0c; /* 0x000c */ | 90 | __u32 prog0c; /* 0x000c */ |