diff options
| author | Alexander Potapenko <glider@google.com> | 2025-11-20 12:10:41 +0100 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-11-21 08:57:45 +0000 |
| commit | f7a9f9c4982d10223771d3aa2287538bc08b9024 (patch) | |
| tree | b513cb5eb1cb35cd5bcc88164992bcbaca25dbc6 /executor/kvm.h | |
| parent | 4b88ec680fc3ca03a90835040af2bee0bb6cadaf (diff) | |
executor: sys/linux/test: handle RDTSC in L2
Enable basic RDTSC handling. Ensure that Intel hosts exit on RDTSC
in L2, and that both Intel and AMD can handle RDTSC exits.
Add amd64-syz_kvm_nested_vmresume-rdtsc to test that.
Diffstat (limited to 'executor/kvm.h')
| -rw-r--r-- | executor/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/executor/kvm.h b/executor/kvm.h index d7c708b34..7d6718aa9 100644 --- a/executor/kvm.h +++ b/executor/kvm.h @@ -244,6 +244,7 @@ // VMX control bits #define RFLAGS_1_BIT (1ULL << 1) #define CPU_BASED_HLT_EXITING (1U << 7) +#define CPU_BASED_RDTSC_EXITING (1U << 12) #define AR_TSS_AVAILABLE 0x0089 #define SVM_ATTR_LDTR_UNUSABLE 0x0000 #define VMX_AR_TSS_BUSY 0x008b |
