|Subject:||Re: How does QEMU in TCG mode handle interrupts ?|
|Date:||Tue, 25 Aug 2020 11:23:16 +0530|
On Sat, 22 Aug 2020 at 09:42, Arnabjyoti Kalita
> I am running QEMU-3.0.0 in TCG mode, and my QEMU as well as TCG target is x86_64 architecture.
> What I am trying to do is inject an I/O interrupt in the middle of a translation block.
You can't. QEMU will only ever check for and take interrupts
at the end of a TB. The best you can do is that you can
use the '-singlestep' command line option to force QEMU
to put exactly 1 instruction in each TB. This will massively
slow down execution but it also will allow an interrupt
to occur anywhere. This is useful sometimes for debugging,
and also occasionally to run test suite type code that makes
dubious assumptions about exact CPU behaviour. "Real" guest
code should not require it.
|[Prev in Thread]||Current Thread||[Next in Thread]|