diff options
author | 2015-10-28 02:39:56 +0100 | |
---|---|---|
committer | 2015-11-10 12:06:23 +0100 | |
commit | d0e536d89395ecd8ab78fe999dc4d6f5d140ce46 (patch) | |
tree | bac5690350e345061db0206bbbe91dbeeb6ebdad /tools/perf/scripts/python/export-to-postgresql.py | |
parent | context_tracking: remove duplicate enabled check (diff) | |
download | wireguard-linux-d0e536d89395ecd8ab78fe999dc4d6f5d140ce46.tar.xz wireguard-linux-d0e536d89395ecd8ab78fe999dc4d6f5d140ce46.zip |
context_tracking: avoid irq_save/irq_restore on guest entry and exit
guest_enter and guest_exit must be called with interrupts disabled,
since they take the vtime_seqlock with write_seq{lock,unlock}.
Therefore, it is not necessary to check for exceptions, nor to
save/restore the IRQ state, when context tracking functions are
called by guest_enter and guest_exit.
Split the body of context_tracking_entry and context_tracking_exit
out to __-prefixed functions, and use them from KVM.
Rik van Riel has measured this to speed up a tight vmentry/vmexit
loop by about 2%.
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Tested-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions