Thanks for the quick reply! October 21, 2024 at 2:58 PM, Peter Maydell wrote: > This omits M-profile Arm CPUs (whose interrupt/exception > handling is rather more complicated, and lives in > m_helper.c.)
Yes, I forgot about the M-profile. I'll include those changes wiith the next patch-series. > > @@ -11819,6 +11838,7 @@ void arm_cpu_do_interrupt(CPUState *cs) > > if (tcg_enabled() && arm_is_psci_call(cpu, cs->exception_index)) { > > arm_handle_psci_call(cpu); > > qemu_log_mask(CPU_LOG_INT, "...handled as PSCI call\n"); > > + arm_do_plugin_vcpu_interrupt_cb(cs); > > > This isn't really an interrupt or exception -- it's > more like the semihosting, where the guest does an HVC > or SMC instruction and QEMU handles it by emulating it > as if it were firmware. Maybe it would be better to > name the "semihosting" plugin callbacks something more > generic and include this kind of case in them ? Oh, good to know. The only term for something like this (which also includes semihosting) that comes to mind would be "host call". But that may be confusing when talking about emulated vs simulated hypervisors? Regards, Julian