• Avi Kivity's avatar
    KVM: Lazify fpu activation and deactivation · 02daab21
    Avi Kivity authored
    Defer fpu deactivation as much as possible - if the guest fpu is loaded, keep
    it loaded until the next heavyweight exit (where we are forced to unload it).
    This reduces unnecessary exits.
    
    We also defer fpu activation on clts; while clts signals the intent to use the
    fpu, we can't be sure the guest will actually use it.
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    02daab21
kvm_host.h 21.7 KB