[J][PATCH 1/1] UBUNTU: SAUCE: Set KVM_CAP_S390_MEM_OP_EXTENSION capability to 211

frank.heimes at canonical.com frank.heimes at canonical.com
Mon Mar 14 11:24:17 UTC 2022

From: Frank Heimes <frank.heimes at canonical.com>

BugLink: https://bugs.launchpad.net/bugs/1963901

Setting KVM_CAP_S390_MEM_OP_EXTENSION capability to 211 is required
to enable storage key checking for intercepted instruction and
to ensure compatibility with upstream.
The upstream merge request
"Merge branch 'kvm-ppc-cap-210' into kvm-next-5.18."
is referenced in LP: 1963901, but it includes and pulls in more changes
than needed - even changes for ppc64el and at the API doc
that are not relevant for s390x.
Hence this UBUNTU SAUCE patch, that limits the modification to the bare
minimum (a single line).

[Avoiding backport of "Merge branch 'kvm-ppc-cap-210' into kvm-next-5.18.",
 upstream commit 4dfc4ec2b7f5a3a27d166ac42cf8a583fa2d3284,
 and limiting change to the bare minimum.]
Signed-off-by: Frank Heimes <frank.heimes at canonical.com>
 include/uapi/linux/kvm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index f261bb900bd0..0d47e07f4781 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -1122,7 +1122,7 @@ struct kvm_ppc_resize_hpt {
 #define KVM_CAP_VM_GPA_BITS 207
 #define KVM_CAP_XSAVE2 208
-#define KVM_CAP_S390_MEM_OP_EXTENSION 210
+#define KVM_CAP_S390_MEM_OP_EXTENSION 211

More information about the kernel-team mailing list