x86/vpic: issue dpci EOI for cleared pins at ICW1
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 20 Apr 2021 09:36:09 +0000 (11:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Apr 2021 09:36:09 +0000 (11:36 +0200)
commit2d494f2198d7909a394085d079475bb099d7afe7
tree7d4f8420cc1bab70d07f337f303d1f9921aac9ba
parent192f7479f21ef63dad8d8acbbda93cce0971fe66
x86/vpic: issue dpci EOI for cleared pins at ICW1

When pins are cleared from either ISR or IRR as part of the
initialization sequence forward the clearing of those pins to the dpci
EOI handler, as it is equivalent to an EOI. Not doing so can bring the
interrupt controller state out of sync with the dpci handling logic,
that expects a notification when a pin has been EOI'ed.

Fixes: 7b3cb5e5416 ('IRQ injection changes for HVM PCI passthru.')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vpic.c