[PATCH v6 19/33] KVM: s390: gmap: Make storage keys optional
Christian Borntraeger
borntraeger at linux.ibm.com
Wed Aug 12 12:07:12 PDT 2026
Am 12.08.26 um 17:36 schrieb Steffen Eiden:
> Guard guest storage key handling behind `KVM_S390_MANAGES_S390_GUEST`.
> This enables other KVM implementations to use gmap without implementing
> storage key infrastructure. Define KVM_S390_MANAGES_S390_GUEST to 1 for
> KVM hosts managing s390 guests (in kvm_host_s390.h). A KVM
> implementation not implementing those features must define
> KVM_S390_MANAGES_S390_GUEST to 0 in its kvm_host_<guest_arch>.h.
>
> No functional changes besides the new guard.
>
> Signed-off-by: Steffen Eiden <seiden at linux.ibm.com>
Maybe we find a better way in the future but this certainly works.
Reviewed-by: Christian Borntraeger <borntraeger at linux.ibm.com>
More information about the linux-arm-kernel
mailing list