]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ppc/spapr: Allow FWNMI on TCG
authorNicholas Piggin <npiggin@gmail.com>
Mon, 16 Mar 2020 14:26:10 +0000 (00:26 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 17 Mar 2020 06:00:22 +0000 (17:00 +1100)
There should no longer be a reason to prevent TCG providing FWNMI.
System Reset interrupts are generated to the guest with nmi monitor
command and H_SIGNAL_SYS_RESET. Machine Checks can not be injected
currently, but this could be implemented with the mce monitor cmd
similarly to i386.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20200316142613.121089-6-npiggin@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
[dwg: Re-enable FWNMI in qtests, since that now works]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_caps.c
tests/qtest/libqos/libqos-spapr.h

index f626d769a0ba5bb4dc69976d2b14490cdcc8543c..679ae7959fa6054b6618664a2bb0650581013887 100644 (file)
@@ -516,10 +516,7 @@ static void cap_fwnmi_apply(SpaprMachineState *spapr, uint8_t val,
         return; /* Disabled by default */
     }
 
-    if (tcg_enabled()) {
-        warn_report("Firmware Assisted Non-Maskable Interrupts(FWNMI) not "
-                    "supported in TCG");
-    } else if (kvm_enabled()) {
+    if (kvm_enabled()) {
         if (kvmppc_set_fwnmi() < 0) {
             error_setg(errp, "Firmware Assisted Non-Maskable Interrupts(FWNMI) "
                              "not supported by KVM");
index 16174dbada0ca48b8b40d3ca2b326e21546a0e5b..49bd72d20b9756e726a1b1907f887dab013d8e1a 100644 (file)
@@ -12,7 +12,6 @@ void qtest_spapr_shutdown(QOSState *qs);
     "cap-cfpc=broken,"                           \
     "cap-sbbc=broken,"                           \
     "cap-ibs=broken,"                            \
-    "cap-ccf-assist=off,"                        \
-    "cap-fwnmi=off"
+    "cap-ccf-assist=off,"
 
 #endif