]> Git Repo - qemu.git/commit
pit: fix pit interrupt can't inject into vm after migration
authorChenLiang <[email protected]>
Tue, 16 Sep 2014 07:26:32 +0000 (15:26 +0800)
committerPaolo Bonzini <[email protected]>
Tue, 16 Sep 2014 08:40:38 +0000 (10:40 +0200)
commitbe894f51b6fe87b4df673fdc9613034de30eb6ca
tree9ce66ae29fdd3d28a32dc6737d953221f5c0559f
parentcc35a44cf7b522b1fd0b786562b7de4b881c41b0
pit: fix pit interrupt can't inject into vm after migration

kvm_pit is running in kmod. kvm_pit is going to inject
interrupt to vm before cpu_synchronize_all_post_init at
dest side. vcpu will lose the pit interrupt, but
ack_irq(in kmod) has been 0. ack_irq become 1 after
vcpu responds pit interrupt. pit interruptcan inject
to vm when ack_irq is 1.

By the way, kvm_pit_vm_state_change has save and load
state of pit, so pre_save and post_load is unnecessary.

Signed-off-by: ChenLiang <[email protected]>
Signed-off-by: Gonglei <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
hw/i386/kvm/i8254.c
This page took 0.020441 seconds and 4 git commands to generate.