Blame SOURCES/kvm-linux-headers-include-missing-changes-from-5.17.patch

1be5c7
From aa6181d87e2b4ef1a70be002881908d2df5548a9 Mon Sep 17 00:00:00 2001
1be5c7
From: Paolo Bonzini <pbonzini@redhat.com>
1be5c7
Date: Tue, 22 Feb 2022 17:58:11 +0100
1be5c7
Subject: [PATCH 04/24] linux-headers: include missing changes from 5.17
1be5c7
1be5c7
RH-Author: Paul Lai <plai@redhat.com>
1be5c7
RH-MergeRequest: 176: Enable KVM AMX support
1be5c7
RH-Commit: [4/13] 2ed7cbc07e63d85cda916ef44d1e82b1fba7fdf4
1be5c7
RH-Bugzilla: 1916415
1be5c7
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
1be5c7
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
1be5c7
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
1be5c7
1be5c7
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1be5c7
(cherry picked from commit 1ea5208febcc068449b63282d72bb719ab67a466)
1be5c7
Signed-off-by: Paul Lai <plai@redhat.com>
1be5c7
---
1be5c7
 linux-headers/asm-x86/kvm.h | 3 +++
1be5c7
 linux-headers/linux/kvm.h   | 4 ++++
1be5c7
 2 files changed, 7 insertions(+)
1be5c7
1be5c7
diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h
1be5c7
index 2da3316bb5..bf6e96011d 100644
1be5c7
--- a/linux-headers/asm-x86/kvm.h
1be5c7
+++ b/linux-headers/asm-x86/kvm.h
1be5c7
@@ -452,6 +452,9 @@ struct kvm_sync_regs {
1be5c7
 
1be5c7
 #define KVM_STATE_VMX_PREEMPTION_TIMER_DEADLINE	0x00000001
1be5c7
 
1be5c7
+/* attributes for system fd (group 0) */
1be5c7
+#define KVM_X86_XCOMP_GUEST_SUPP	0
1be5c7
+
1be5c7
 struct kvm_vmx_nested_state_data {
1be5c7
 	__u8 vmcs12[KVM_STATE_NESTED_VMX_VMCS_SIZE];
1be5c7
 	__u8 shadow_vmcs12[KVM_STATE_NESTED_VMX_VMCS_SIZE];
1be5c7
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
1be5c7
index 00af3bc333..d232feaae9 100644
1be5c7
--- a/linux-headers/linux/kvm.h
1be5c7
+++ b/linux-headers/linux/kvm.h
1be5c7
@@ -1133,6 +1133,7 @@ struct kvm_ppc_resize_hpt {
1be5c7
 #define KVM_CAP_VM_MOVE_ENC_CONTEXT_FROM 206
1be5c7
 #define KVM_CAP_VM_GPA_BITS 207
1be5c7
 #define KVM_CAP_XSAVE2 208
1be5c7
+#define KVM_CAP_SYS_ATTRIBUTES 209
1be5c7
 
1be5c7
 #ifdef KVM_CAP_IRQ_ROUTING
1be5c7
 
1be5c7
@@ -2047,4 +2048,7 @@ struct kvm_stats_desc {
1be5c7
 
1be5c7
 #define KVM_GET_STATS_FD  _IO(KVMIO,  0xce)
1be5c7
 
1be5c7
+/* Available with KVM_CAP_XSAVE2 */
1be5c7
+#define KVM_GET_XSAVE2		  _IOR(KVMIO,  0xcf, struct kvm_xsave)
1be5c7
+
1be5c7
 #endif /* __LINUX_KVM_H */
1be5c7
-- 
1be5c7
2.35.3
1be5c7