]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: XIVE: Clear escalation interrupt pointers on device close
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 26 Apr 2019 06:54:14 +0000 (16:54 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 30 Apr 2019 09:41:01 +0000 (19:41 +1000)
commitdcfe54fc402d6fae3bce6a63728631d4d83a124b
tree9d8078bfd248a7fe47c59922e7beea4e45f4db8f
parente712a455892633296f70e01c3be2e3d1a4ea0656
KVM: PPC: Book3S HV: XIVE: Clear escalation interrupt pointers on device close

This adds code to ensure that after a XIVE or XICS-on-XIVE KVM device
is closed, KVM will not try to enable or disable any of the escalation
interrupts for the VCPUs.  We don't have to worry about races between
clearing the pointers and use of the pointers by the XIVE context
push/pull code, because the callers hold the vcpu->mutex, which is
also taken by the KVM_RUN code.  Therefore the vcpu cannot be entering
or exiting the guest concurrently.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_xive.c