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)
commitc468bc4e8468cb4b85ad61294ddd88efb2e47d8d
tree0b5753306152805d54babf319c4e5fffadf106b4
parentd47aacdb8e0bc03dcaa1a5630a3c633cdcd4cfa7
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