• Marcelo Tosatti's avatar
    KVM: x86: do not execute halted vcpus · d7690175
    Marcelo Tosatti authored
    Offline or uninitialized vcpu's can be executed if requested to perform
    userspace work.
    
    Follow Avi's suggestion to handle halted vcpu's in the main loop,
    simplifying kvm_emulate_halt(). Introduce a new vcpu->requests bit to
    indicate events that promote state from halted to running.
    
    Also standardize vcpu wake sites.
    
    Signed-off-by: Marcelo Tosatti <mtosatti <at> redhat.com>
    Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
    d7690175
i8254.c 15.1 KB