Skip to content

Commit a2d57b3

Browse files
Janosch Frankborntraeger
authored andcommitted
KVM: s390: Extend diag 204 fields
The new store hypervisor information instruction, which we are going to introduce, needs previously unused fields in diag 204 structures. Signed-off-by: Janosch Frank <[email protected]> Acked-by: Heiko Carstens <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]>
1 parent a011eeb commit a2d57b3

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

arch/s390/include/asm/diag.h

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ enum diag204_format {
9797
DIAG204_INFO_EXT = 0x00010000
9898
};
9999

100+
enum diag204_cpu_flags {
101+
DIAG204_CPU_ONLINE = 0x20,
102+
DIAG204_CPU_CAPPED = 0x40,
103+
};
104+
100105
struct diag204_info_blk_hdr {
101106
__u8 npar;
102107
__u8 flags;
@@ -136,10 +141,13 @@ struct diag204_x_part_hdr {
136141
__u64 online_cs;
137142
__u64 online_es;
138143
__u8 upid;
139-
char reserved1[3];
144+
__u8 reserved:3;
145+
__u8 mtid:5;
146+
char reserved1[2];
140147
__u32 group_mlu;
141148
char group_name[8];
142-
char reserved2[32];
149+
char hardware_group_name[8];
150+
char reserved2[24];
143151
} __packed;
144152

145153
struct diag204_cpu_info {
@@ -168,7 +176,9 @@ struct diag204_x_cpu_info {
168176
__u64 wait_time;
169177
__u32 pma_weight;
170178
__u32 polar_weight;
171-
char reserved3[40];
179+
__u32 cpu_type_cap;
180+
__u32 group_cpu_type_cap;
181+
char reserved3[32];
172182
} __packed;
173183

174184
struct diag204_phys_hdr {
@@ -199,7 +209,8 @@ struct diag204_x_phys_cpu {
199209
__u16 cpu_addr;
200210
char reserved1[2];
201211
__u8 ctidx;
202-
char reserved2[3];
212+
char reserved2[1];
213+
__u16 weight;
203214
__u64 mgm_time;
204215
char reserved3[80];
205216
} __packed;

0 commit comments

Comments
 (0)