|
From: | Jason J. Herne |
Subject: | Re: [Qemu-devel] [PATCH 7/7] KVM regsync: Fix do_kvm_cpu_synchronize_state data integrity issue |
Date: | Fri, 04 Jan 2013 10:25:45 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 |
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 (address@hidden)
[Prev in Thread] | Current Thread | [Next in Thread] |