mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor: Set destination vCPU TSC frequency to source
Include the TSC frequency as part of the KVM state so that it will be restored at the destination. This ensures migration works correctly between hosts that have a different TSC frequency if the guest is running with TSC as the source of timekeeping. Fixes: #5786 Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
@@ -67,6 +67,7 @@ pub struct VcpuKvmState {
|
||||
pub xsave: Xsave,
|
||||
pub xcrs: ExtendedControlRegisters,
|
||||
pub mp_state: MpState,
|
||||
pub tsc_khz: Option<u32>,
|
||||
}
|
||||
|
||||
impl From<StandardRegisters> for kvm_regs {
|
||||
|
||||
Reference in New Issue
Block a user