The kernel support is not yet upstream, so pull in the latest headers
for v12. This patch should be replaced with a full kernel header sync
once the kernel support lands.

Signed-off-by: Michael Roth <[email protected]>
---
 linux-headers/linux/kvm.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index aea4ab5c69..7850bd4642 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -987,6 +987,7 @@ struct kvm_enable_cap {
 #define KVM_CAP_S390_VSIE_ESAMODE 248
 #define KVM_CAP_S390_HPAGE_2G 249
 #define KVM_CAP_PPC_COMPAT_CAPS 250
+#define KVM_CAP_GUEST_MEMFD_MEMORY_ATTRIBUTES 252
 
 struct kvm_irq_routing_irqchip {
        __u32 irqchip;
@@ -1637,6 +1638,21 @@ struct kvm_memory_attributes {
        __u64 flags;
 };
 
+/* Available with KVM_CAP_GUEST_MEMFD_MEMORY_ATTRIBUTES */
+#define KVM_SET_MEMORY_ATTRIBUTES2              _IOWR(KVMIO,  0xd2, struct 
kvm_memory_attributes2)
+
+struct kvm_memory_attributes2 {
+       union {
+               __u64 address;
+               __u64 offset;
+       };
+       __u64 size;
+       __u64 attributes;
+       __u64 flags;
+       __u64 error_offset;
+       __u64 reserved[11];
+};
+
 #define KVM_MEMORY_ATTRIBUTE_PRIVATE           (1ULL << 3)
 
 #define KVM_CREATE_GUEST_MEMFD _IOWR(KVMIO,  0xd4, struct 
kvm_create_guest_memfd)
-- 
2.43.0


Reply via email to