[PATCH v8 01/17] hw/vfio/pci: Ensure MSI and MSI-X do not overlap

2022-11-01 Thread Akihiko Odaki
pci_add_capability() checks whether capabilities overlap, and notifies its caller so that it can properly handle the case. However, in the most cases, the capabilities actually never overlap, and the interface incurred extra error handling code, which is often incorrect or suboptimal. For such

Re: [PATCH v8 01/17] hw/vfio/pci: Ensure MSI and MSI-X do not overlap

2022-11-01 Thread Philippe Mathieu-Daudé
On 1/11/22 14:57, Akihiko Odaki wrote: pci_add_capability() checks whether capabilities overlap, and notifies its caller so that it can properly handle the case. However, in the most cases, the capabilities actually never overlap, and the interface incurred extra error handling code, which is

Re: [PATCH v8 01/17] hw/vfio/pci: Ensure MSI and MSI-X do not overlap

2022-11-01 Thread Philippe Mathieu-Daudé
On 1/11/22 14:57, Akihiko Odaki wrote: pci_add_capability() checks whether capabilities overlap, and notifies its caller so that it can properly handle the case. However, in the most cases, the capabilities actually never overlap, and the interface incurred extra error handling code, which is