diff options
author | Shih-Wei Li <shihwei@cs.columbia.edu> | 2016-10-19 21:12:34 +0300 |
---|---|---|
committer | Christoffer Dall <cdall@linaro.org> | 2017-04-09 17:45:31 +0300 |
commit | f6769581e90ba2535b3e587fe15b74f6cbc4aaab (patch) | |
tree | 947613a9b9ca8970e457000fd47769e2a6c60894 /include/kvm | |
parent | 328e566479449194979d64685ae6d74c989599bb (diff) | |
download | linux-f6769581e90ba2535b3e587fe15b74f6cbc4aaab.tar.xz |
KVM: arm/arm64: vgic: Avoid flushing vgic state when there's no pending IRQ
We do not need to flush vgic states in each world switch unless
there is pending IRQ queued to the vgic's ap list. We can thus reduce
the overhead by not grabbing the spinlock and not making the extra
function call to vgic_flush_lr_state.
Note: list_empty is a single atomic read (uses READ_ONCE) and can
therefore check if a list is empty or not without the need to take the
spinlock protecting the list.
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Shih-Wei Li <shihwei@cs.columbia.edu>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Diffstat (limited to 'include/kvm')
0 files changed, 0 insertions, 0 deletions