Re: [PATCH v2 22/28] KVM: x86/mmu: Mark SPTEs in disconnected pages as removed

2021-02-03 Thread Paolo Bonzini
On 02/02/21 19:57, Ben Gardon wrote: +* Marking the SPTE as a removed SPTE is not +* strictly necessary here as the MMU lock should "should" is a bit too weak---the point of !shared is that the MMU lock *will* stop other threads from concurrent

[PATCH v2 22/28] KVM: x86/mmu: Mark SPTEs in disconnected pages as removed

2021-02-02 Thread Ben Gardon
When clearing TDP MMU pages what have been disconnected from the paging structure root, set the SPTEs to a special non-present value which will not be overwritten by other threads. This is needed to prevent races in which a thread is clearing a disconnected page table, but another thread has alread