Re: [PATCH v6 19/33] KVM: s390: gmap: Make storage keys optional

From: Christian Borntraeger

Date: Wed Aug 12 2026 - 15:12:19 EST


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@xxxxxxxxxxxxx>

Maybe we find a better way in the future but this certainly works.

Reviewed-by: Christian Borntraeger <borntraeger@xxxxxxxxxxxxx>