mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
KVM: s390: vsie: Assert mcck_info offset in vsie_page
Ensure that the backup info for machine check is the same offset as that in struct sie_page! With the assertion in place we do not need the comment anymore. Signed-off-by: Christoph Schlameuss <schlameuss@linux.ibm.com> Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
This commit is contained in:
parent
38926a93f7
commit
7cdbd4c743
|
|
@ -33,10 +33,7 @@ enum vsie_page_flags {
|
|||
|
||||
struct vsie_page {
|
||||
struct kvm_s390_sie_block scb_s; /* 0x0000 */
|
||||
/*
|
||||
* the backup info for machine check. ensure it's at
|
||||
* the same offset as that in struct sie_page!
|
||||
*/
|
||||
/* backup info for machine check */
|
||||
struct mcck_volatile_info mcck_info; /* 0x0200 */
|
||||
/*
|
||||
* The pinned original scb. Be aware that other VCPUs can modify
|
||||
|
|
@ -71,6 +68,7 @@ struct vsie_page {
|
|||
};
|
||||
|
||||
static_assert(sizeof(struct vsie_page) == PAGE_SIZE);
|
||||
static_assert(offsetof(struct vsie_page, mcck_info) == offsetof(struct sie_page, mcck_info));
|
||||
|
||||
/* trigger a validity icpt for the given scb */
|
||||
static int set_validity_icpt(struct kvm_s390_sie_block *scb,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user