• Avi Kivity's avatar
    KVM: SVM: Selective cr0 intercept · d225157b
    Avi Kivity authored
    If two conditions apply:
     - no bits outside TS and EM differ between the host and guest cr0
     - the fpu is active
    
    then we can activate the selective cr0 write intercept and drop the
    unconditional cr0 read and write intercept, and allow the guest to run
    with the host fpu state.  This reduces cr0 exits due to guest fpu management
    while the guest fpu is loaded.
    Acked-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    d225157b
svm.c 76.3 KB