Re: Masking all interrupts in TCG mode

2020-10-04 Thread Arnabjyoti Kalita
Yes, I think some problems when migrating from KVM->TCG are expected. I keep getting page faults in TCG when it tries to handle local APIC timer interrupts, which it probably doesn't understand. But that will be a different question to be asked here. Thanks for all the help, Peter. Arnab On

Re: Masking all interrupts in TCG mode

2020-10-02 Thread Peter Maydell
On Fri, 2 Oct 2020 at 17:50, Arnabjyoti Kalita wrote: > 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

Re: Masking all interrupts in TCG mode

2020-10-02 Thread Arnabjyoti Kalita
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

Re: Masking all interrupts in TCG mode

2020-10-02 Thread Peter Maydell
On Fri, 2 Oct 2020 at 04:17, Arnabjyoti Kalita wrote: > Is there a way to mask all interrupts in the TCG mode of QEMU execution? How > should I go about doing that in code? > > Scenario: > > I start the QEMU process in KVM mode and then do a savevm. I load the saved > QEMU state in TCG mode.

Masking all interrupts in TCG mode

2020-10-01 Thread Arnabjyoti Kalita
Hello all, Is there a way to mask *all* interrupts in the TCG mode of QEMU execution? How should I go about doing that in code? Scenario: I start the QEMU process in KVM mode and then do a savevm. I load the saved QEMU state in TCG mode. I'd like all the interrupts to be disabled/masked when I