summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_api.c
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2017-12-12 18:23:56 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2017-12-22 15:36:24 +1100
commit7333b5aca412d6ad02667b5a513485838a91b136 (patch)
tree7e423044412cb3d9af78fb134a64d07be431a8f8 /net/sched/cls_api.c
parentdc1c4165d189350cb51bdd3057deb6ecd164beda (diff)
downloadop-kernel-dev-7333b5aca412d6ad02667b5a513485838a91b136.zip
op-kernel-dev-7333b5aca412d6ad02667b5a513485838a91b136.tar.gz
KVM: PPC: Book3S HV: Fix pending_pri value in kvmppc_xive_get_icp()
When we migrate a VM from a POWER8 host (XICS) to a POWER9 host (XICS-on-XIVE), we have an error: qemu-kvm: Unable to restore KVM interrupt controller state \ (0xff000000) for CPU 0: Invalid argument This is because kvmppc_xics_set_icp() checks the new state is internaly consistent, and especially: ... 1129 if (xisr == 0) { 1130 if (pending_pri != 0xff) 1131 return -EINVAL; ... On the other side, kvmppc_xive_get_icp() doesn't set neither the pending_pri value, nor the xisr value (set to 0) (and kvmppc_xive_set_icp() ignores the pending_pri value) As xisr is 0, pending_pri must be set to 0xff. Fixes: 5af50993850a ("KVM: PPC: Book3S HV: Native usage of the XIVE interrupt controller") Cc: stable@vger.kernel.org # v4.12+ Signed-off-by: Laurent Vivier <lvivier@redhat.com> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'net/sched/cls_api.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud