On 2/10/26 05:55, Jan Beulich wrote:
> --- a/xen/drivers/vpci/cap.c
> +++ b/xen/drivers/vpci/cap.c
> @@ -376,6 +379,20 @@ void vpci_cleanup_capabilities(struct pc
> }
> }
>
> +int vpci_reinit_ext_capabilities(struct pci_dev *pdev)
> +{
> + if ( !pdev->vpci )
> + return 0;
> +
> + vpci_cleanup_capabilities(pdev, true);
In the case where pdev->ext_cfg transitions from true to false, it doesn't look
like this would actually result in the respective capability->cleanup() hook
being called, due to reliance on pci_find_ext_capability().- Re: [PATCH v4 2/5] vPCI: introduce private header Stewart Hildebrand
- [PATCH v4 3/5] vPCI: move vpci_init_capabilities() to a... Jan Beulich
- Re: [PATCH v4 3/5] vPCI: move vpci_init_capabiliti... Stewart Hildebrand
- Re: [PATCH v4 3/5] vPCI: move vpci_init_capabiliti... Roger Pau Monné
- [PATCH v4 4/5] vPCI: move capability-list init Jan Beulich
- Re: [PATCH v4 4/5] vPCI: move capability-list init Stewart Hildebrand
- Re: [PATCH v4 4/5] vPCI: move capability-list init Roger Pau Monné
- [PATCH v4 5/5] vPCI: re-init extended-capabilities when... Jan Beulich
- Re: [PATCH v4 5/5] vPCI: re-init extended-capabili... Stewart Hildebrand
- Re: [PATCH v4 5/5] vPCI: re-init extended-capa... Jan Beulich
- Re: [PATCH v4 5/5] vPCI: re-init extended-... Roger Pau Monné
- Re: [PATCH v4 5/5] vPCI: re-init extended-capabili... Roger Pau Monné
- Re: [PATCH v4 5/5] vPCI: re-init extended-capa... Jan Beulich
- Re: [PATCH v4 5/5] vPCI: re-init extended-... Roger Pau Monné
