Re: [Qemu-devel] [PATCH] kvmvapic: patch_instruction fix

2014-10-30 Thread Paolo Bonzini
On 10/30/2014 10:31 AM, Pavel Dovgalyuk wrote: > When QEMU works in icount mode cpu_restore_state function performs two > actions: > restoring the program counter and updating icount to the correct value. > kvmvapic's patch_instruction function is called by cpu_report_tpr_access > function which

[Qemu-devel] [PATCH] kvmvapic: patch_instruction fix

2014-10-30 Thread Pavel Dovgalyuk
When QEMU works in icount mode cpu_restore_state function performs two actions: restoring the program counter and updating icount to the correct value. kvmvapic's patch_instruction function is called by cpu_report_tpr_access function which also invokes cpu_restore_state. It results to calling cpu_r