This patchset enables QEMU to save/restore vcpu's TSC rate during the migration. When cooperating with KVM which supports TSC scaling, guest programs can observe a consistent guest TSC rate even though they are migrated among machines with different host TSC rates.
Haozhong Zhang (3): target-i386: add a subsection of vcpu's TSC rate in vmstate_x86_cpu target-i386: initialize vcpu's TSC rate to the value from KVM kvm-all: notice KVM of vcpu's TSC rate after migration kvm-all.c | 13 +++++++++++++ target-i386/kvm.c | 7 +++++++ target-i386/machine.c | 20 ++++++++++++++++++++ 3 files changed, 40 insertions(+) -- 2.4.8