aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorBen Gardon <[email protected]>2021-02-02 10:57:28 -0800
committerPaolo Bonzini <[email protected]>2021-02-04 05:27:45 -0500
commite25f0e0cd51bfb1e2e6121373c68f1427266bba7 (patch)
tree8ca21c3c2bd264f5586a630f654c8fe5cdfc5ec8 /lib/mpi/mpi-mod.c
parent08f07c800e9d35b59d0c8346333f189160bd67d4 (diff)
KVM: x86/mmu: Mark SPTEs in disconnected pages as removed
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 already acquired a pointer to that memory and installs a mapping in an already cleared entry. This can lead to memory leaks and accounting errors. Reviewed-by: Peter Feiner <[email protected]> Signed-off-by: Ben Gardon <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions