Re: [PATCH for-4.20 v3 4/5] x86/pci: disable MSI(-X) on all devices at shutdown

2025-02-11 Thread Roger Pau Monné
On Tue, Feb 11, 2025 at 12:34:41PM +0100, Jan Beulich wrote: > On 11.02.2025 12:02, Roger Pau Monne wrote: > > --- a/xen/arch/x86/crash.c > > +++ b/xen/arch/x86/crash.c > > @@ -175,6 +175,13 @@ static void nmi_shootdown_cpus(void) > > */ > > x2apic_enabled = (current_local_apic_m

Re: [PATCH for-4.20 v3 4/5] x86/pci: disable MSI(-X) on all devices at shutdown

2025-02-11 Thread Jan Beulich
On 11.02.2025 12:02, Roger Pau Monne wrote: > --- a/xen/arch/x86/crash.c > +++ b/xen/arch/x86/crash.c > @@ -175,6 +175,13 @@ static void nmi_shootdown_cpus(void) > */ > x2apic_enabled = (current_local_apic_mode() == APIC_MODE_X2APIC); > > +if ( !pcidevs_locked() ) > +

[PATCH for-4.20 v3 4/5] x86/pci: disable MSI(-X) on all devices at shutdown

2025-02-11 Thread Roger Pau Monne
Attempt to disable MSI(-X) capabilities on all PCI devices know by Xen at shutdown. Doing such disabling should facilitate kexec chained kernel from booting more reliably, as device MSI(-X) interrupt generation should be quiesced. Only attempt to disable MSI(-X) on all devices in the crash contex