• Jan H. Schönherr's avatar
    KVM: VMX: Do not fully reset PI descriptor on vCPU reset · a4888486
    Jan H. Schönherr authored
    Parts of the posted interrupt descriptor configure host behavior,
    such as the notification vector and destination. Overwriting them
    with zero as done during vCPU reset breaks posted interrupts.
    KVM (re-)writes these fields on certain occasions and belatedly fixes
    the situation in many cases. However, if you have a guest configured
    with "idle=poll", for example, the fields might stay zero forever.
    
    Do not reset the full descriptor in vmx_vcpu_reset(). Instead,
    reset only the outstanding notifications and leave everything
    else untouched.
    Signed-off-by: default avatarJan H. Schönherr <jschoenh@amazon.de>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    a4888486
vmx.c 343 KB