Re: [PATCH] pci: fix locking around vPCI removal in pci_remove_device()

2024-02-29 Thread Stewart Hildebrand
On 2/29/24 08:23, Jan Beulich wrote: > On 29.02.2024 14:15, Roger Pau Monne wrote: >> Currently vpci_deassign_device() is called without holding the per-domain >> pci_lock in pci_remove_device(), which leads to: >> >> Assertion 'rw_is_write_locked(&pdev->domain->pci_lock)' failed at >> ../drivers/

Re: [PATCH] pci: fix locking around vPCI removal in pci_remove_device()

2024-02-29 Thread Jan Beulich
On 29.02.2024 14:15, Roger Pau Monne wrote: > Currently vpci_deassign_device() is called without holding the per-domain > pci_lock in pci_remove_device(), which leads to: > > Assertion 'rw_is_write_locked(&pdev->domain->pci_lock)' failed at > ../drivers/vpci/vpci.c:47 > [...] > Xen call trace: >

[PATCH] pci: fix locking around vPCI removal in pci_remove_device()

2024-02-29 Thread Roger Pau Monne
Currently vpci_deassign_device() is called without holding the per-domain pci_lock in pci_remove_device(), which leads to: Assertion 'rw_is_write_locked(&pdev->domain->pci_lock)' failed at ../drivers/vpci/vpci.c:47 [...] Xen call trace: [] R vpci_deassign_device+0x10d/0x1b9 [] S pci_remove_