qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

ppc/spapr: Allow FWNMI on TCG

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>

authored by

Nicholas Piggin and committed by
David Gibson
89ba4565 ad77c6ca

+2 -6
+1 -4
hw/ppc/spapr_caps.c
··· 516 516 return; /* Disabled by default */ 517 517 } 518 518 519 - if (tcg_enabled()) { 520 - warn_report("Firmware Assisted Non-Maskable Interrupts(FWNMI) not " 521 - "supported in TCG"); 522 - } else if (kvm_enabled()) { 519 + if (kvm_enabled()) { 523 520 if (kvmppc_set_fwnmi() < 0) { 524 521 error_setg(errp, "Firmware Assisted Non-Maskable Interrupts(FWNMI) " 525 522 "not supported by KVM");
+1 -2
tests/qtest/libqos/libqos-spapr.h
··· 12 12 "cap-cfpc=broken," \ 13 13 "cap-sbbc=broken," \ 14 14 "cap-ibs=broken," \ 15 - "cap-ccf-assist=off," \ 16 - "cap-fwnmi=off" 15 + "cap-ccf-assist=off," 17 16 18 17 #endif