• Jan Kiszka's avatar
    KVM: nVMX: Fully emulate preemption timer · f4124500
    Jan Kiszka authored
    We cannot rely on the hardware-provided preemption timer support because
    we are holding L2 in HLT outside non-root mode. Furthermore, emulating
    the preemption will resolve tick rate errata on older Intel CPUs.
    
    The emulation is based on hrtimer which is started on L2 entry, stopped
    on L2 exit and evaluated via the new check_nested_events hook. As we no
    longer rely on hardware features, we can enable both the preemption
    timer support and value saving unconditionally.
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    f4124500
vmx.c 250 KB