diff options
| author | Shenming Lu <lushenming@huawei.com> | 2021-03-10 11:02:33 +0800 |
|---|---|---|
| committer | Alex Williamson <alex.williamson@redhat.com> | 2021-03-16 10:06:44 -0600 |
| commit | ecebe53fe99379243695e817450124d69e061e39 (patch) | |
| tree | 69bd3b2883ba79b52d115b2def362c31eeef7955 /monitor/misc.c | |
| parent | 8ce1ff990eff6affbdd0492fe4fc95e113235e35 (diff) | |
| download | focaccia-qemu-ecebe53fe99379243695e817450124d69e061e39.tar.gz focaccia-qemu-ecebe53fe99379243695e817450124d69e061e39.zip | |
vfio: Avoid disabling and enabling vectors repeatedly in VFIO migration
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 these unmasked vectors one by one without disabling. Signed-off-by: Shenming Lu <lushenming@huawei.com> Message-Id: <20210310030233.1133-4-lushenming@huawei.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'monitor/misc.c')
0 files changed, 0 insertions, 0 deletions