Thank you Peter for the answer.
What I can understand is that when we restore the VM State, the same interrupt state will be restored which was before we did a savevm. And then these interrupts will be executed appropriately.
If there is an interrupt at the start of restore, then the interrupt will be executed first before the process of executing and finding the TB starts, based on the below logic. Am I correct ?
while (!cpu_has_exception()) {
while (!cpu_has_interrupt()) {
tb = tb_find()
....
}
}
Is it possible that the same interrupt could have different numbers in the KVM mode and in TCG mode? Like say, an interrupt is 0x15 in KVM, but is 0x75 in TCG.
Best Regards,
Arnab