aboutsummaryrefslogtreecommitdiffstats
path: root/executor/kvm.h
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2025-11-20 18:49:26 +0100
committerAlexander Potapenko <glider@google.com>2025-11-21 08:57:45 +0000
commit4d2a94c0154cc97761c0161d5c259ec04f05c7bd (patch)
tree9609a39f250e1dc99c1b4f91a1a92aa583f5dd5c /executor/kvm.h
parent880e0a0225f6667373f85f9dfa78b5d9fb6e29e2 (diff)
executor: sys/linux/test: handle RDTSCP in L2
Enable basic RDTSCP handling. Ensure that Intel hosts exit on RDTSCP in L2, and that both Intel and AMD can handle RDTSCP exits. Add amd64-syz_kvm_nested_vmresume-rdtscp to test that.
Diffstat (limited to 'executor/kvm.h')
-rw-r--r--executor/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/executor/kvm.h b/executor/kvm.h
index 7d6718aa9..a390becbb 100644
--- a/executor/kvm.h
+++ b/executor/kvm.h
@@ -252,6 +252,7 @@
#define VMX_AR_LDTR_UNUSABLE 0x10000
#define VM_ENTRY_IA32E_MODE (1U << 9)
#define SECONDARY_EXEC_ENABLE_EPT (1U << 1)
+#define SECONDARY_EXEC_ENABLE_RDTSCP (1U << 3)
#define VM_EXIT_HOST_ADDR_SPACE_SIZE (1U << 9)
#define CPU_BASED_ACTIVATE_SECONDARY_CONTROLS (1U << 31)