From: Nina Schoetterl-Glausch Date: Mon, 29 Apr 2024 17:15:12 +0000 (+0200) Subject: KVM: s390: vsie: Use virt_to_phys for crypto control block X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cc4edb92f55aea6eb26930087c8075bdf9967b1b;p=linux.git KVM: s390: vsie: Use virt_to_phys for crypto control block The address of the crypto control block in the (shadow) SIE block is absolute/physical. Convert from virtual to physical when shadowing the guest's control block during VSIE. Signed-off-by: Nina Schoetterl-Glausch Reviewed-by: Christian Borntraeger Acked-by: Alexander Gordeev Link: https://lore.kernel.org/r/20240429171512.879215-1-nsg@linux.ibm.com Signed-off-by: Alexander Gordeev --- diff --git a/arch/s390/kvm/vsie.c b/arch/s390/kvm/vsie.c index d8527a046cf75..c9ecae830634f 100644 --- a/arch/s390/kvm/vsie.c +++ b/arch/s390/kvm/vsie.c @@ -362,7 +362,7 @@ end: case -EACCES: return set_validity_icpt(scb_s, 0x003CU); } - scb_s->crycbd = ((__u32)(__u64) &vsie_page->crycb) | CRYCB_FORMAT2; + scb_s->crycbd = (u32)virt_to_phys(&vsie_page->crycb) | CRYCB_FORMAT2; return 0; }