[PULL 08/10] vfio: Avoid disabling and enabling vectors repeatedly in VFIO migration

2021-03-16 Thread Alex Williamson
From: Shenming Lu In VFIO migration resume phase and some guest startups, there are already unmasked vectors in the vector table when calling vfio_msix_enable(). So in order to avoid inefficiently disabling and enabling vectors repeatedly, let's allocate all needed vectors first and then enable

[PULL 08/10] vfio: Avoid disabling and enabling vectors repeatedly in VFIO migration

2021-03-11 Thread Alex Williamson
From: Shenming Lu In VFIO migration resume phase and some guest startups, there are already unmasked vectors in the vector table when calling vfio_msix_enable(). So in order to avoid inefficiently disabling and enabling vectors repeatedly, let's allocate all needed vectors first and then enable