cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

commit ba36de1549f571b3786a6d838a70ff635810ad6b
parent 1caab14ce3bf1ed6ea1074e5ced4b3e5bd4e4b89
Author: Louis Burda <quent.burda@gmail.com>
Date:   Thu,  9 Feb 2023 06:23:31 -0600

Do a single prime in vmenter.. multiple passes added inside the macro

Diffstat:
March/x86/kvm/svm/vmenter.S | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/x86/kvm/svm/vmenter.S b/arch/x86/kvm/svm/vmenter.S @@ -93,8 +93,6 @@ wbinvd mov cpc_ds, %r9 prime \name %r9 %r10 %r8 - prime 1_\name %r9 %r10 %r8 - prime 2_\name %r9 %r10 %r8 skip_prime_\name: # do oneshot @@ -122,7 +120,7 @@ skip_apic_\name: mov %r14, %rax cmp $0, %al je skip_probe_\name - probe \name %r8 %r9 %r10 %r11 %r12 + probe \name $CPC_L1MISS_PMC %r8 %r9 %r10 %r11 %r12 skip_probe_\name: enter_vm