Skip to content
  • Vitaly Kuznetsov's avatar
    561dbb41
    i386: Make migration fail when Hyper-V reenlightenment was enabled but 'user_tsc_khz' is unset · 561dbb41
    Vitaly Kuznetsov authored
    
    
    KVM doesn't fully support Hyper-V reenlightenment notifications on
    migration. In particular, it doesn't support emulating TSC frequency
    of the source host by trapping all TSC accesses so unless TSC scaling
    is supported on the destination host and KVM_SET_TSC_KHZ succeeds, it
    is unsafe to proceed with migration.
    
    KVM_SET_TSC_KHZ is called from two sites: kvm_arch_init_vcpu() and
    kvm_arch_put_registers(). The later (intentionally) doesn't propagate
    errors allowing migrations to succeed even when TSC scaling is not
    supported on the destination. This doesn't suit 're-enlightenment'
    use-case as we have to guarantee that TSC frequency stays constant.
    
    Require 'tsc-frequency=' command line option to be specified for successful
    migration when re-enlightenment was enabled by the guest.
    
    Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
    Message-Id: <20210319123801.1111090-1-vkuznets@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    561dbb41
    i386: Make migration fail when Hyper-V reenlightenment was enabled but 'user_tsc_khz' is unset
    Vitaly Kuznetsov authored
    
    
    KVM doesn't fully support Hyper-V reenlightenment notifications on
    migration. In particular, it doesn't support emulating TSC frequency
    of the source host by trapping all TSC accesses so unless TSC scaling
    is supported on the destination host and KVM_SET_TSC_KHZ succeeds, it
    is unsafe to proceed with migration.
    
    KVM_SET_TSC_KHZ is called from two sites: kvm_arch_init_vcpu() and
    kvm_arch_put_registers(). The later (intentionally) doesn't propagate
    errors allowing migrations to succeed even when TSC scaling is not
    supported on the destination. This doesn't suit 're-enlightenment'
    use-case as we have to guarantee that TSC frequency stays constant.
    
    Require 'tsc-frequency=' command line option to be specified for successful
    migration when re-enlightenment was enabled by the guest.
    
    Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
    Message-Id: <20210319123801.1111090-1-vkuznets@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading