diff options
| author | Andrew Jones <[email protected]> | 2017-06-04 14:43:54 +0200 |
|---|---|---|
| committer | Christoffer Dall <[email protected]> | 2017-06-04 16:53:47 +0200 |
| commit | 6a6d73be12fbe492d0678cd84d3b35e2bc9698e4 (patch) | |
| tree | 77e46462337671cb0ca513fef8801366cfca632e /net/lapb/lapb_in.c | |
| parent | 3bb96149f235be624a012e678fde8cd69d0c02e6 (diff) | |
KVM: arm/arm64: properly use vcpu requests
arm/arm64 already has one VCPU request used when setting pause,
but it doesn't properly check requests in VCPU RUN. Check it
and also make sure we set vcpu->mode at the appropriate time
(before the check) and with the appropriate barriers. See
Documentation/virtual/kvm/vcpu-requests.rst. Also make sure we
don't leave any vcpu requests we don't intend to handle later
set in the request bitmap. If we don't clear them, then
kvm_request_pending() may return true when it shouldn't.
Using VCPU requests properly fixes a small race where pause
could get set just as a VCPU was entering guest mode.
Signed-off-by: Andrew Jones <[email protected]>
Reviewed-by: Christoffer Dall <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions