Re: [PATCH v2 10/10] target-arm/kvm: make reg sync code common between kvm32/64

2014-08-04 Thread Peter Maydell
On 10 July 2014 16:50, Alex Bennée wrote: > Before we launch a guest we query KVM for the list of "co-processor" > registers it knows about which is used later for save/restore of machine > state. The logic is identical for both 32-bit and 64-bit so I've moved > it all into the common code and sim

[PATCH v2 10/10] target-arm/kvm: make reg sync code common between kvm32/64

2014-07-10 Thread Alex Bennée
Before we launch a guest we query KVM for the list of "co-processor" registers it knows about which is used later for save/restore of machine state. The logic is identical for both 32-bit and 64-bit so I've moved it all into the common code and simplified the exit paths (as failure => exit). This