]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: XIVE: Do not test the EQ flag validity when resetting
authorCédric Le Goater <clg@kaod.org>
Mon, 20 May 2019 07:15:13 +0000 (09:15 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Wed, 29 May 2019 03:44:37 +0000 (13:44 +1000)
commit4f858a87d1874e66f266cfca274000021465d8a0
tree0b5753306152805d54babf319c4e5fffadf106b4
parentc97b6d2f23ea95fb065420fbb53bb4d5f2167e9e
KVM: PPC: Book3S HV: XIVE: Do not test the EQ flag validity when resetting

When a CPU is hot-unplugged, the EQ is deconfigured using a zero size
and a zero address. In this case, there is no need to check the flag
and queue size validity. Move the checks after the queue reset code
section to fix CPU hot-unplug.

Reported-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
Tested-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_xive_native.c