diff options
author | Andrew Jones | 2017-06-04 14:43:57 +0200 |
---|---|---|
committer | Christoffer Dall | 2017-06-04 16:53:55 +0200 |
commit | 424c989b1a664a270727550506321af0a605c302 (patch) | |
tree | 752a20556538c34790cc5e4cdcdc96268dddad3f /virt/kvm/arm/vgic | |
parent | KVM: arm/arm64: use vcpu requests for power_off (diff) | |
download | kernel-qcow2-linux-424c989b1a664a270727550506321af0a605c302.tar.gz kernel-qcow2-linux-424c989b1a664a270727550506321af0a605c302.tar.xz kernel-qcow2-linux-424c989b1a664a270727550506321af0a605c302.zip |
KVM: arm/arm64: optimize VCPU RUN
We can make a small optimization by not checking the state of
the power_off field on each run. This is done by treating
power_off like pause, only checking it when we get the EXIT
VCPU request. When a VCPU powers off another VCPU the EXIT
request is already made, so we just need to make sure the
request is also made on self power off. kvm_vcpu_kick() isn't
necessary for these cases, as the VCPU would just be kicking
itself, but we add it anyway as a self kick doesn't cost much,
and it makes the code more future-proof.
Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Diffstat (limited to 'virt/kvm/arm/vgic')
0 files changed, 0 insertions, 0 deletions