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 aa27d3b55fb46c7eb44e8a61aaaaae2aa6eed63c
parent 15554c668705bcbaa9da3fbf2a1efe45bb42adc4
Author: Louis Burda <quent.burda@gmail.com>
Date:   Tue,  7 Feb 2023 07:38:46 -0600

Dont treat shadow-mmu not writable but pte writable as an error

Diffstat:
March/x86/kvm/mmu/spte.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kvm/mmu/spte.h b/arch/x86/kvm/mmu/spte.h @@ -397,9 +397,9 @@ static inline void check_spte_writable_invariants(u64 spte) WARN_ONCE(!(spte & shadow_host_writable_mask), "kvm: MMU-writable SPTE is not Host-writable: %llx", spte); - else - WARN_ONCE(is_writable_pte(spte), - "kvm: Writable SPTE is not MMU-writable: %llx", spte); + //else /* cachepc: this is intended! we dont want to give mmu ctrl */ + // WARN_ONCE(is_writable_pte(spte), + // "kvm: Writable SPTE is not MMU-writable: %llx", spte); } static inline bool is_mmu_writable_spte(u64 spte)