Re: [Qemu-devel] [PATCH 2/4] i8254: Open-code timer restore

2012-02-05 Thread Jan Kiszka
On 2012-02-05 12:23, Paolo Bonzini wrote: > On 02/05/2012 11:46 AM, Jan Kiszka wrote: >> diff --git a/hw/i8254_common.c b/hw/i8254_common.c >> index 0601d88..b60fbda 100644 >> --- a/hw/i8254_common.c >> +++ b/hw/i8254_common.c >> @@ -234,9 +234,8 @@ static int pit_load_old(QEMUFile *f, void *opaque

Re: [Qemu-devel] [PATCH 2/4] i8254: Open-code timer restore

2012-02-05 Thread Paolo Bonzini
On 02/05/2012 11:46 AM, Jan Kiszka wrote: diff --git a/hw/i8254_common.c b/hw/i8254_common.c index 0601d88..b60fbda 100644 --- a/hw/i8254_common.c +++ b/hw/i8254_common.c @@ -234,9 +234,8 @@ static int pit_load_old(QEMUFile *f, void *opaque, int version_id) qemu_get_8s(f,&s->gate);

[Qemu-devel] [PATCH 2/4] i8254: Open-code timer restore

2012-02-05 Thread Jan Kiszka
From: Jan Kiszka Same as for the APIC: To enable migration between accelerated and non-accelerated models, we need to arm the channel 0 timer only inside the emulated PIT model. The common code just saves/restores that timer to the the next_transition_time field. Signed-off-by: Jan Kiszka ---

[Qemu-devel] [PATCH 2/4] i8254: Open-code timer restore

2012-01-31 Thread Jan Kiszka
Same as for the APIC: To enable migration between accelerated and non-accelerated models, we need to arm the channel 0 timer only inside the emulated PIT model. The common code just saves/restores that timer to the the next_transition_time field. Signed-off-by: Jan Kiszka --- hw/i8254.c|