Re: [PATCH 1/5] vfio: use helper to simplfy the failure path in vfio_msi_enable

2021-09-06 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
在 2021/9/4 5:55, Alex Williamson 写道: > On Wed, 25 Aug 2021 15:56:16 +0800 > "Longpeng(Mike)" wrote: > >> The main difference of the failure path in vfio_msi_enable and >> vfio_msi_disable_common is enable INTX or not. >> >> Extend the vfio_msi_disable_common to provide a arg to decide > >

Re: [PATCH 1/5] vfio: use helper to simplfy the failure path in vfio_msi_enable

2021-09-03 Thread Alex Williamson
On Wed, 25 Aug 2021 15:56:16 +0800 "Longpeng(Mike)" wrote: > The main difference of the failure path in vfio_msi_enable and > vfio_msi_disable_common is enable INTX or not. > > Extend the vfio_msi_disable_common to provide a arg to decide "an arg" > whether need to fallback, and then we can

[PATCH 1/5] vfio: use helper to simplfy the failure path in vfio_msi_enable

2021-08-25 Thread Longpeng(Mike)
The main difference of the failure path in vfio_msi_enable and vfio_msi_disable_common is enable INTX or not. Extend the vfio_msi_disable_common to provide a arg to decide whether need to fallback, and then we can use this helper to instead the redundant code in vfio_msi_enable. Signed-off-by: