diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-02-07 07:38:46 -0600 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-02-07 07:38:46 -0600 |
| commit | aa27d3b55fb46c7eb44e8a61aaaaae2aa6eed63c (patch) | |
| tree | 342eb016389fc859b13fe406c40ec4df4e2dde26 | |
| parent | 15554c668705bcbaa9da3fbf2a1efe45bb42adc4 (diff) | |
| download | cachepc-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.h | 6 |
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) |
