Files
linux/arch/powerpc/kvm
Sam Bobroff 2fb1e94645 KVM: PPC: Book3S: Fix server always zero from kvmppc_xive_get_xive()
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: 5af5099385 ("KVM: PPC: Book3S HV: Native usage of the XIVE interrupt controller")
Cc: [email protected]
Signed-off-by: Sam Bobroff <[email protected]>
Acked-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
2017-10-03 17:58:16 +02:00
..
2014-09-24 14:07:58 +02:00
2017-06-04 16:53:00 +02:00
2014-09-22 10:11:32 +02:00
2016-01-15 17:56:32 -08:00
…
2014-07-28 19:29:15 +02:00
2014-07-28 19:29:15 +02:00
2016-01-15 17:56:32 -08:00
…