]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: replace pause checks with vcpu request checks
authorAndrew Jones <drjones@redhat.com>
Sun, 4 Jun 2017 12:43:55 +0000 (14:43 +0200)
committerChristoffer Dall <cdall@linaro.org>
Sun, 4 Jun 2017 14:53:54 +0000 (16:53 +0200)
commit4ec4b1e5622719ea0c6b45b51c60bbc292e4e539
treecade3300158a5b09d6a0b729fe4c4e72b7f144c7
parent55bd83e47235be2122e272c8e22f8b5e5f0de024
KVM: arm/arm64: replace pause checks with vcpu request checks

The current use of KVM_REQ_VCPU_EXIT for pause is fine.  Even the
requester clearing the request is OK, as this is the special case
where the sole requesting thread and receiving VCPU are executing
synchronously (see "Clearing Requests" in
Documentation/virtual/kvm/vcpu-requests.rst) However, that's about
to change, so let's ensure only the receiving VCPU clears the
request. Additionally, by guaranteeing KVM_REQ_VCPU_EXIT is always
set when pause is, we can avoid checking pause directly in VCPU RUN.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
virt/kvm/arm/arm.c