If I've followed the conversation correctly this is what needs to be done:
1. Remove the level parameters from kvm_arch_get_registers and kvm_arch_put_registers.
2. Add a new bitmap parameter to kvm_arch_get_registers and kvm_arch_put_registers.
3. Define a bit that correlates to our current notion of "all runtime registers". This bit, and all bits in this bitmap, would be architecture specific.
4. Remove the cpustate->kvm_sync_dirty field. Replace it with a bitmap that tracks which bits are dirty and need to be synced back to KVM-land.
5. As we do today, we'll assume registers are dirty and turn on their corresponding bit in this new bitmap whenever we "get" the registers from KVM.
6. Add other bits as needed on a case by case basis. Does this seem to match what was discussed, and what we want to do? -- -- Jason J. Herne (jjhe...@linux.vnet.ibm.com)