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

ppc: Ignore the CPU_INTERRUPT_EXITTB interrupt with KVM

This only makes sense with an emulated CPU. Don't set the bit in
CPUState::interrupt_request when using KVM to avoid confusions.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <157548863423.3650476.16424649423510075159.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>

authored by

Greg Kurz and committed by
David Gibson
6d38666a c1ad0b89

+5
+5
target/ppc/helper_regs.h
··· 22 22 23 23 #include "qemu/main-loop.h" 24 24 #include "exec/exec-all.h" 25 + #include "sysemu/kvm.h" 25 26 26 27 /* Swap temporary saved registers with GPRs */ 27 28 static inline void hreg_swap_gpr_tgpr(CPUPPCState *env) ··· 102 103 103 104 static inline void cpu_interrupt_exittb(CPUState *cs) 104 105 { 106 + if (!kvm_enabled()) { 107 + return; 108 + } 109 + 105 110 if (!qemu_mutex_iothread_locked()) { 106 111 qemu_mutex_lock_iothread(); 107 112 cpu_interrupt(cs, CPU_INTERRUPT_EXITTB);