From aa27d3b55fb46c7eb44e8a61aaaaae2aa6eed63c Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Tue, 7 Feb 2023 07:38:46 -0600 Subject: Dont treat shadow-mmu not writable but pte writable as an error --- arch/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 index f80dbb628df5..a0db6de1b8e2 100644 --- 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) -- cgit v1.2.3-71-gd317