Compare commits
2 Commits
b3166a7254
...
458b2bd06b
Author | SHA1 | Date | |
---|---|---|---|
458b2bd06b | |||
aed880954c |
15
patches/kernel/9999-rdtsc-spoof-hook-0.patch
Normal file
15
patches/kernel/9999-rdtsc-spoof-hook-0.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff -Naur --no-dereference a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
|
||||||
|
--- a/arch/x86/kvm/vmx/vmx.c 2024-07-01 21:03:34.000000000 +0300
|
||||||
|
+++ b/arch/x86/kvm/vmx/vmx.c 2024-07-01 20:24:05.000000000 +0300
|
||||||
|
@@ -6137,6 +6137,10 @@
|
||||||
|
[EXIT_REASON_ENCLS] = handle_encls,
|
||||||
|
[EXIT_REASON_BUS_LOCK] = handle_bus_lock_vmexit,
|
||||||
|
[EXIT_REASON_NOTIFY] = handle_notify,
|
||||||
|
+ [EXIT_REASON_RDTSC] = handle_rdtsc,
|
||||||
|
+ [EXIT_REASON_RDTSCP] = handle_rdtscp,
|
||||||
|
+ [EXIT_REASON_UMWAIT] = handle_umwait,
|
||||||
|
+ [EXIT_REASON_TPAUSE] = handle_tpause,
|
||||||
|
};
|
||||||
|
|
||||||
|
static const int kvm_vmx_max_exit_handlers =
|
||||||
|
|
@ -1,17 +1,6 @@
|
|||||||
diff -Naur --no-dereference a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
|
diff -Naur --no-dereference a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
|
||||||
--- a/arch/x86/kvm/vmx/vmx.c 2024-07-01 21:03:34.000000000 +0300
|
--- a/arch/x86/kvm/vmx/vmx.c 2024-07-01 21:03:34.000000000 +0300
|
||||||
+++ b/arch/x86/kvm/vmx/vmx.c 2024-07-01 20:24:05.000000000 +0300
|
+++ b/arch/x86/kvm/vmx/vmx.c 2024-07-01 20:24:05.000000000 +0300
|
||||||
@@ -6137,6 +6137,10 @@
|
|
||||||
[EXIT_REASON_ENCLS] = handle_encls,
|
|
||||||
[EXIT_REASON_BUS_LOCK] = handle_bus_lock_vmexit,
|
|
||||||
[EXIT_REASON_NOTIFY] = handle_notify,
|
|
||||||
+ [EXIT_REASON_RDTSC] = handle_rdtsc,
|
|
||||||
+ [EXIT_REASON_RDTSCP] = handle_rdtscp,
|
|
||||||
+ [EXIT_REASON_UMWAIT] = handle_umwait,
|
|
||||||
+ [EXIT_REASON_TPAUSE] = handle_tpause,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const int kvm_vmx_max_exit_handlers =
|
|
||||||
@@ -6079,6 +6079,36 @@
|
@@ -6079,6 +6079,36 @@
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user