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)
commit0592c005622582fb4049a2f710d92c3a70f4c79b
treecade3300158a5b09d6a0b729fe4c4e72b7f144c7
parent6a6d73be12fbe492d0678cd84d3b35e2bc9698e4
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