History

KVM: s390: Add capability to support 2G hugepages

Add KVM_CAP_S390_HPAGE_2G to signal to userspace that 2G hugepages may be used to back the guest; restrictions apply similar to 1M hugepages. Enable the (for now still ignored) GMAP_FLAG_ALLOW_HPAGE_2G flag for the guest gmap, and propagate / disable it as necessary.

Claudio Imbrenda committed 5 months ago

Commit 103ff3a1 parent 782fec44 files · +36 −1Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/kvm.h+1−0
@@ -996,6 +996,7 @@ struct kvm_enable_cap { · 995 unmodified lines
996996 #define KVM_CAP_S390_USER_OPEREXEC 246
997997 #define KVM_CAP_S390_KEYOP 247
998998 #define KVM_CAP_S390_VSIE_ESAMODE 248
999+#define KVM_CAP_S390_HPAGE_2G 249
9991000
10001001 struct kvm_irq_routing_irqchip {
10011002 __u32 irqchip;