[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [Qemu-devel] [RFC v5 2/4] hw/intc/arm_gicv3_its: Implemen
From: |
Prakash B |
Subject: |
Re: [Qemu-arm] [Qemu-devel] [RFC v5 2/4] hw/intc/arm_gicv3_its: Implement state save/restore |
Date: |
Wed, 26 Apr 2017 17:10:15 +0530 |
On Fri, Apr 14, 2017 at 6:16 PM, Eric Auger <address@hidden> wrote:
> We need to handle both registers and ITS tables. While
> register handling is standard, ITS table handling is more
> challenging since the kernel API is devised so that the
> tables are flushed into guest RAM and not in vmstate buffers.
>
> Flushing the ITS tables on device pre_save() is too late
> since the guest RAM is already saved at this point.
>
> Table flushing needs to happen when we are sure the vcpus
> are stopped and before the last dirty page saving. The
> right point is RUN_STATE_FINISH_MIGRATE but sometimes the
> VM gets stopped before migration launch so let's simply
> flush the tables each time the VM gets stopped.
>
> For regular ITS registers we just can use vmstate pre_save()
> and post_load() callbacks.
>
> Signed-off-by: Eric Auger <address@hidden>
Tested-by: Prakash, Brahmajyosyula <address@hidden>
- [Qemu-arm] [RFC v5 0/4] vITS save/restore, Eric Auger, 2017/04/14
- [Qemu-arm] [RFC v5 1/4] linux-headers: Update for vITS save/restore, Eric Auger, 2017/04/14
- [Qemu-arm] [RFC v5 2/4] hw/intc/arm_gicv3_its: Implement state save/restore, Eric Auger, 2017/04/14
- Re: [Qemu-arm] [Qemu-devel] [RFC v5 2/4] hw/intc/arm_gicv3_its: Implement state save/restore,
Prakash B <=
- [Qemu-arm] [RFC v5 3/4] hw/intc/arm_gicv3_kvm: Implement pending table save, Eric Auger, 2017/04/14
- [Qemu-arm] [RFC v5 4/4] hw/intc/arm_gicv3_its: Allow save/restore, Eric Auger, 2017/04/14
- Re: [Qemu-arm] [Qemu-devel] [RFC v5 0/4] vITS save/restore, Prakash B, 2017/04/26