Revert "vfio: Avoid disabling and enabling vectors repeatedly in VFIO migration"
commit75d546fc18023d36779c687b948128c1a4666a96
authorLongpeng(Mike) <longpeng2@huawei.com>
Sat, 26 Mar 2022 06:02:25 +0000 (26 14:02 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 6 May 2022 15:06:50 +0000 (6 09:06 -0600)
tree7611847066972a63c7cd99025196d1f83086cdb9
parent8ab217d5d34275ee471a3b085ec90728b8f06d80
Revert "vfio: Avoid disabling and enabling vectors repeatedly in VFIO migration"

Commit ecebe53fe993 ("vfio: Avoid disabling and enabling vectors
repeatedly in VFIO migration") avoids inefficiently disabling and
enabling vectors repeatedly and lets the unmasked vectors be enabled
one by one.

But we want to batch multiple routes and defer the commit, and only
commit once outside the loop of setting vector notifiers, so we
cannot enable the vectors one by one in the loop now.

Revert that commit and we will take another way in the next patch,
it can not only avoid disabling/enabling vectors repeatedly, but
also satisfy our requirement of defer to commit.

Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com>
Link: https://lore.kernel.org/r/20220326060226.1892-5-longpeng2@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci.c