aboutsummaryrefslogtreecommitdiff
path: root/linux-headers/asm-x86
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-06-03 14:25:06 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-06-05 11:01:06 +0200
commitaa274c33c39e7de981dc195abe60e1a246c9d248 (patch)
tree9d1ef0f1f07f14c344edf8e5f1da7af1c28ca5c1 /linux-headers/asm-x86
parent5f69e42da5b40a2213f4db70ca461f554abca686 (diff)
downloadqemu-aa274c33c39e7de981dc195abe60e1a246c9d248.zip
qemu-aa274c33c39e7de981dc195abe60e1a246c9d248.tar.gz
qemu-aa274c33c39e7de981dc195abe60e1a246c9d248.tar.bz2
update-linux-headers: import linux/kvm_para.h header
Right now QEMU is importing arch/x86/include/uapi/asm/kvm_para.h because it includes definitions for kvmclock and for KVM CPUID bits. However, other definitions for KVM hypercall values and return codes are included in include/uapi/linux/kvm_para.h and they will be used by SEV-SNP. To ensure that it is possible to include both <linux/kvm_para.h> and "standard-headers/asm-x86/kvm_para.h" without conflicts, provide linux/kvm_para.h as a portable header too, and forward linux-headers/ files to those in include/standard-headers. Note that <linux/kvm_para.h> will include architecture-specific definitions as well, but "standard-headers/linux/kvm_para.h" will not because it can be used in architecture-independent files. This could easily be extended to other architectures, but right now they do not need any symbol in their specific kvm_para.h files. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-headers/asm-x86')
-rw-r--r--linux-headers/asm-x86/kvm_para.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-headers/asm-x86/kvm_para.h b/linux-headers/asm-x86/kvm_para.h
new file mode 100644
index 0000000..1d3e0e0
--- /dev/null
+++ b/linux-headers/asm-x86/kvm_para.h
@@ -0,0 +1 @@
+#include "standard-headers/asm-x86/kvm_para.h"