• A
    KVM: Check for pending events before attempting injection · 3842d135
    Avi Kivity 提交于
    Instead of blindly attempting to inject an event before each guest entry,
    check for a possible event first in vcpu->requests.  Sites that can trigger
    event injection are modified to set KVM_REQ_EVENT:
    
    - interrupt, nmi window opening
    - ppr updates
    - i8259 output changes
    - local apic irr changes
    - rflags updates
    - gif flag set
    - event set on exit
    
    This improves non-injecting entry performance, and sets the stage for
    non-atomic injection.
    Signed-off-by: NAvi Kivity <avi@redhat.com>
    3842d135
svm.c 94.4 KB