diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2017-05-19 16:26:16 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2017-06-19 14:05:22 +1000 |
commit | 1da4e2f4fbd99f3fbf4275fc89617ffd671af95d (patch) | |
tree | 68ffaeaa56bb214ae14e21deeca4fad32a3819fd /arch/powerpc/boot/addnote.c | |
parent | 1bc3fe818c9e823248f6ec299b1c518aa2df347c (diff) | |
download | linux-1da4e2f4fbd99f3fbf4275fc89617ffd671af95d.tar.gz |
KVM: PPC: Book3S HV: Don't let VCPU sleep if it has a doorbell pending
It is possible, through a narrow race condition, for a VCPU to exit
the guest with a H_CEDE hypercall while it has a doorbell interrupt
pending. In this case, the H_CEDE should return immediately, but in
fact it puts the VCPU to sleep until some other interrupt becomes
pending or a prod is received (via another VCPU doing H_PROD).
This fixes it by checking the DPDES (Directed Privileged Doorbell
Exception Status) bit for the thread along with the other interrupt
pending bits.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/boot/addnote.c')
0 files changed, 0 insertions, 0 deletions