]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc_q35.c
target-i386: Add support to migrate vcpu's TSC rate
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 24 Nov 2015 03:33:57 +0000 (11:33 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 21 Jan 2016 14:47:16 +0000 (12:47 -0200)
commit36f96c4b6bd25f43000c317518ff3df10202bc75
tree9d06b5464aa50dfd100e69f20a61f47cb32e774d
parent5031283d5296dac8d410fa7b01fb6799ccfc76e9
target-i386: Add support to migrate vcpu's TSC rate

This patch enables migrating vcpu's TSC rate. If KVM on the
destination machine supports TSC scaling, guest programs will
observe a consistent TSC rate across the migration.

If TSC scaling is not supported on the destination machine, the
migration will not be aborted and QEMU on the destination will
not set vcpu's TSC rate to the migrated value.

If vcpu's TSC rate specified by CPU option 'tsc-freq' on the
destination machine is inconsistent with the migrated TSC rate,
the migration will be aborted.

For backwards compatibility, the migration of vcpu's TSC rate is
disabled on pc-*-2.5 and older machine types.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
[ehabkost: Rewrote comment at kvm_arch_put_registers()]
[ehabkost: Moved compat code to pc-2.5]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/i386/pc.h
roms/seabios
target-i386/cpu.c
target-i386/cpu.h
target-i386/kvm.c
target-i386/machine.c