• H
    KVM: VMX: Remove redundant handling of bus lock vmexit · d61863c6
    Hao Xiang 提交于
    Hardware may or may not set exit_reason.bus_lock_detected on BUS_LOCK
    VM-Exits. Dealing with KVM_RUN_X86_BUS_LOCK in handle_bus_lock_vmexit
    could be redundant when exit_reason.basic is EXIT_REASON_BUS_LOCK.
    
    We can remove redundant handling of bus lock vmexit. Unconditionally Set
    exit_reason.bus_lock_detected in handle_bus_lock_vmexit(), and deal with
    KVM_RUN_X86_BUS_LOCK only in vmx_handle_exit().
    Signed-off-by: NHao Xiang <hao.xiang@linux.alibaba.com>
    Message-Id: <1634299161-30101-1-git-send-email-hao.xiang@linux.alibaba.com>
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    d61863c6
vmx.c 224.8 KB