]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/ppc/spapr: Restrict CONFER hypercall to TCG
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Jan 2025 10:26:05 +0000 (11:26 +0100)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:31 +0000 (22:43 +1000)
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>
hw/ppc/spapr_hcall.c

index f987ff323f87cce591834ff194145568c632790a..4f1933b8da6813716a7edadc45c42b28d56e33ba 100644 (file)
@@ -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.