]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
kvm: x86: mmu: Fast Page Fault path retries
authorJunaid Shahid <junaids@google.com>
Wed, 7 Dec 2016 00:46:12 +0000 (16:46 -0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Mon, 9 Jan 2017 13:46:07 +0000 (14:46 +0100)
commit97dceba29a6acbb28d16c8c5757ae9f4e1e482ea
tree05b14a1e57c4e75118f498db8c805ca2da2c84b3
parentea4114bcd3a8c84f0eb0b52e56d348c27ddede2e
kvm: x86: mmu: Fast Page Fault path retries

This change adds retries into the Fast Page Fault path. Without the
retries, the code still works, but if a retry does end up being needed,
then it will result in a second page fault for the same memory access,
which will cause much more overhead compared to just retrying within the
original fault.

This would be especially useful with the upcoming fast access tracking
change, as that would make it more likely for retries to be needed
(e.g. due to read and write faults happening on different CPUs at
the same time).

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c