diff options
author | Cédric Le Goater | 2019-10-22 18:38:12 +0200 |
---|---|---|
committer | David Gibson | 2019-10-24 04:34:15 +0200 |
commit | 97c00c54449b4ff349f85c6ce409dadd1b935a7d (patch) | |
tree | b3accb76c31c883d2b4e93e5538981fb036d68f6 /linux-user/syscall.c | |
parent | ppc/pnv: Fix naming of routines realizing the CPUs (diff) | |
download | qemu-97c00c54449b4ff349f85c6ce409dadd1b935a7d.tar.gz qemu-97c00c54449b4ff349f85c6ce409dadd1b935a7d.tar.xz qemu-97c00c54449b4ff349f85c6ce409dadd1b935a7d.zip |
spapr/xive: Set the OS CAM line at reset
When a Virtual Processor is scheduled to run on a HW thread, the
hypervisor pushes its identifier in the OS CAM line. When running with
kernel_irqchip=off, QEMU needs to emulate the same behavior.
Set the OS CAM line when the interrupt presenter of the sPAPR core is
reset. This will also cover the case of hot-plugged CPUs.
This change also has the benefit to remove the use of CPU_FOREACH()
which can be unsafe.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <20191022163812.330-8-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'linux-user/syscall.c')
0 files changed, 0 insertions, 0 deletions