diff options
author | Sam Bobroff <sam.bobroff@au1.ibm.com> | 2017-09-26 16:47:04 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-12 11:56:18 +0200 |
commit | 45965c122a356bc57d44eabe5cc077e28ff952b9 (patch) | |
tree | de2e19e2e390ff48f261ea7ad227e2a4bde664bd /arch/x86 | |
parent | c284a72869fe25a20c214d68c08f92b0f3e4e8ce (diff) |
KVM: PPC: Book3S: Fix server always zero from kvmppc_xive_get_xive()
commit 2fb1e946450a4fef74bb72f360555f7760d816f0 upstream.
In KVM's XICS-on-XIVE emulation, kvmppc_xive_get_xive() returns the
value of state->guest_server as "server". However, this value is not
set by it's counterpart kvmppc_xive_set_xive(). When the guest uses
this interface to migrate interrupts away from a CPU that is going
offline, it sees all interrupts as belonging to CPU 0, so they are
left assigned to (now) offline CPUs.
This patch removes the guest_server field from the state, and returns
act_server in it's place (that is, the CPU actually handling the
interrupt, which may differ from the one requested).
Fixes: 5af50993850a ("KVM: PPC: Book3S HV: Native usage of the XIVE interrupt controller")
Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions