On 19 November 2013 06:18, Christoffer Dall <christoffer.dall@xxxxxxxxxx> wrote: > Save and restore the ARM KVM VGIC state from the kernel. We rely on > QEMU to marshal the GICState data structure and therefore simply > synchronize the kernel state with the QEMU emulated state in both > directions. > > We take some care on the restore path to check the VGIC has been > configured with enough IRQs and CPU interfaces that we can properly > restore the state, and for separate set/clear registers we first fully > clear the registers and then set the required bits. > > Signed-off-by: Christoffer Dall <christoffer.dall@xxxxxxxxxx> > > Changelog [v3]: > - Separate patch for adding the APR register state > > Changelog [v2]: > - Remove num_irq from GIC VMstate structure > - Increment GIC VMstate version number > - Use extract32/deposit32 for bit-field modifications > - Address other smaller review comments > - Renames kvm_arm_gic_dist_[readr/writer] functions to > kvm_dist_[get/put] and shortened other function names > - Use concrete format for APRn Reviewed-by: Peter Maydell <peter.maydell@xxxxxxxxxx> thanks -- PMM _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm