mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
KVM: s390: vsie: Assert crycb alignment in vsie_page
The crypto control block address is required to have double word alignment. Add a static_assert to enforce correct alignment. Signed-off-by: Christoph Schlameuss <schlameuss@linux.ibm.com> Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com> [borntraeger@linux.ibm.com: improve commit message] Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
This commit is contained in:
parent
7cdbd4c743
commit
6a3fe9ecc2
|
|
@ -69,6 +69,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));
|
||||
static_assert(IS_ALIGNED(offsetof(struct vsie_page, crycb), 8));
|
||||
|
||||
/* 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