mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-24 13:35:30 +00:00
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. Backports relevant parts of commit 36f96c4b6bd25f43000c317518ff3df10202bc75 from qemu
This commit is contained in:
parent
974c3bfdd3
commit
be65d10c09
|
@ -969,6 +969,7 @@ typedef struct CPUX86State {
|
|||
uint32_t sipi_vector;
|
||||
bool tsc_valid;
|
||||
int64_t tsc_khz;
|
||||
int64_t user_tsc_khz; /* for sanity check only */
|
||||
void *kvm_xsave_buf;
|
||||
|
||||
uint64_t mcg_cap;
|
||||
|
|
Loading…
Reference in a new issue