summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-02-07 07:38:46 -0600
committerLouis Burda <quent.burda@gmail.com>2023-02-07 07:38:46 -0600
commitaa27d3b55fb46c7eb44e8a61aaaaae2aa6eed63c (patch)
tree342eb016389fc859b13fe406c40ec4df4e2dde26
parent15554c668705bcbaa9da3fbf2a1efe45bb42adc4 (diff)
downloadcachepc-linux-aa27d3b55fb46c7eb44e8a61aaaaae2aa6eed63c.tar.gz
cachepc-linux-aa27d3b55fb46c7eb44e8a61aaaaae2aa6eed63c.zip
Dont treat shadow-mmu not writable but pte writable as an error
-rw-r--r--arch/x86/kvm/mmu/spte.h6
1 files 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)