55 lines
1.6 KiB
Diff
55 lines
1.6 KiB
Diff
From 2f54dbc70c175f64313ca1f62a427f9a9cdfa7e8 Mon Sep 17 00:00:00 2001
|
|
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
Date: Fri, 18 Jul 2025 18:03:45 +0200
|
|
Subject: [PATCH 015/100] update Linux headers to KVM tree master
|
|
|
|
To fetch the update of TDX
|
|
|
|
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
|
|
Link: https://lore.kernel.org/r/20250703024021.3559286-3-xiaoyao.li@intel.com
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
(cherry picked from commit 25c98a135001559be905a0399669e5cdb3b0a613)
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
---
|
|
linux-headers/asm-x86/kvm.h | 8 +++++++-
|
|
linux-headers/linux/kvm.h | 4 ++++
|
|
2 files changed, 11 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h
|
|
index cd275ae76d..f0c1a730d9 100644
|
|
--- a/linux-headers/asm-x86/kvm.h
|
|
+++ b/linux-headers/asm-x86/kvm.h
|
|
@@ -963,7 +963,13 @@ struct kvm_tdx_cmd {
|
|
struct kvm_tdx_capabilities {
|
|
__u64 supported_attrs;
|
|
__u64 supported_xfam;
|
|
- __u64 reserved[254];
|
|
+
|
|
+ __u64 kernel_tdvmcallinfo_1_r11;
|
|
+ __u64 user_tdvmcallinfo_1_r11;
|
|
+ __u64 kernel_tdvmcallinfo_1_r12;
|
|
+ __u64 user_tdvmcallinfo_1_r12;
|
|
+
|
|
+ __u64 reserved[250];
|
|
|
|
/* Configurable CPUID bits for userspace */
|
|
struct kvm_cpuid2 cpuid;
|
|
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
|
|
index 0690743944..32c5885a3c 100644
|
|
--- a/linux-headers/linux/kvm.h
|
|
+++ b/linux-headers/linux/kvm.h
|
|
@@ -459,6 +459,10 @@ struct kvm_run {
|
|
__u64 leaf;
|
|
__u64 r11, r12, r13, r14;
|
|
} get_tdvmcall_info;
|
|
+ struct {
|
|
+ __u64 ret;
|
|
+ __u64 vector;
|
|
+ } setup_event_notify;
|
|
};
|
|
} tdx;
|
|
/* Fix the size of the union. */
|
|
--
|
|
2.47.3
|
|
|