• Alexander Graf's avatar
    KVM: PPC: MPIC: Reset IRQ source private members · aae65596
    Alexander Graf authored
    When we reset the in-kernel MPIC controller, we forget to reset some hidden
    state such as destmask and output. This state is usually set when the guest
    writes to the IDR register for a specific IRQ line.
    
    To make sure we stay in sync and don't forget hidden state, treat reset of
    the IDR register as a simple write of the IDR register. That automatically
    updates all the hidden state as well.
    Reported-by: default avatarPaul Janzen <pcj@pauljanzen.org>
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    aae65596
mpic.c 41.9 KB