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

Christian Borntraeger <[email protected]>
Newsgroups dev.linux.lists.kvmarm,org.infradead.lists.linux-arm-kernel,org.kernel.vger.kvm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-s390
Message-ID <[email protected]>
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 <[email protected]>

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

Reviewed-by: Christian Borntraeger <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.