Skip to content
Commit a9221dd5 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: MMU: Atomically check for accessed bit when dropping an spte



Currently, in the window between the check for the accessed bit, and actually
dropping the spte, a vcpu can access the page through the spte and set the bit,
which will be ignored by the mmu.

Fix by using an exchange operation to atmoically fetch the spte and drop it.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent ce061867
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment