cachepc

Prime+Probe cache-based side-channel attack on AMD SEV-SNP protected virtual machines
git clone https://git.sinitax.com/sinitax/cachepc
Log | Files | Refs | Submodules | README | sfeed.txt

commit bca09eea299f162a27be3f6a59160afe86c8d525
parent b0f48d2b2cc7ec0e19ce0e16dc59e9169b63b0e0
Author: Louis Burda <quent.burda@gmail.com>
Date:   Wed, 11 Jan 2023 14:04:03 +0100

Restructuring of kernel changes

Diffstat:
Mcachepc/track.h | 7++++---
Mcachepc/uapi.h | 9---------
2 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/cachepc/track.h b/cachepc/track.h @@ -2,13 +2,14 @@ #include <linux/types.h> #include <linux/spinlock_types.h> -#include <asm/atomic.h> +#include <linux/srcu.h> #include <linux/kvm_types.h> -#include <asm/kvm_page_track.h> - #include <linux/kvm_host.h> #include <linux/pid.h> #include <linux/psp-sev.h> +#include <asm/kvm_page_track.h> +#include <asm/atomic.h> + extern struct kvm* main_vm; diff --git a/cachepc/uapi.h b/cachepc/uapi.h @@ -76,15 +76,6 @@ enum { CPC_TRACK_FULL, }; -enum kvm_page_track_mode { - KVM_PAGE_TRACK_WRITE, - KVM_PAGE_TRACK_ACCESS, - KVM_PAGE_TRACK_RESET_ACCESS, - KVM_PAGE_TRACK_EXEC, - KVM_PAGE_TRACK_RESET_EXEC, - KVM_PAGE_TRACK_MAX, -}; - struct cpc_track_config { __u64 gfn; __s32 mode;