• A
    KVM: VMX: Avoid writing HOST_CR0 every entry · 1c11e713
    Avi Kivity 提交于
    cr0.ts may change between entries, so we copy cr0 to HOST_CR0 before each
    entry.  That is slow, so instead, set HOST_CR0 to have TS set unconditionally
    (which is a safe value), and issue a clts() just before exiting vcpu context
    if the task indeed owns the fpu.
    
    Saves ~50 cycles/exit.
    Signed-off-by: NAvi Kivity <avi@redhat.com>
    1c11e713
vmx.c 111.4 KB