diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-27 11:26:05 +0100 |
---|---|---|
committer | Nicholas Piggin <npiggin@gmail.com> | 2025-03-11 22:43:31 +1000 |
commit | 3e84d0381578467931d1145a32a55b7e1c3b2b9e (patch) | |
tree | 25fb2d36f77d472a352483f18ca0a4609f9d4770 | |
parent | a613b9d321f5536943e29aa5847553df46dc2340 (diff) | |
download | qemu-3e84d0381578467931d1145a32a55b7e1c3b2b9e.zip qemu-3e84d0381578467931d1145a32a55b7e1c3b2b9e.tar.gz qemu-3e84d0381578467931d1145a32a55b7e1c3b2b9e.tar.bz2 |
hw/ppc/spapr: Restrict CONFER hypercall to TCG
KVM handles H_CONFER and does not pass it along to QEMU, so
only vhyp (as used by TCG spapr) needs to handle it.
[npiggin: Add changelog]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250127102620.39159-2-philmd@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
-rw-r--r-- | hw/ppc/spapr_hcall.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index f987ff3..4f1933b 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -580,6 +580,8 @@ static target_ulong h_confer(PowerPCCPU *cpu, SpaprMachineState *spapr, CPUState *cs = CPU(cpu); SpaprCpuState *spapr_cpu; + assert(tcg_enabled()); /* KVM will have handled this */ + /* * -1 means confer to all other CPUs without dispatch counter check, * otherwise it's a targeted confer. |