diff options
| author | Longfang Liu <liulongfang@huawei.com> | 2026-10-13 15:19:29 +0800 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2026-10-13 09:26:40 -0600 |
| commit | a80597900b8a0f1a9e87360164695f6a0a10556c (patch) | |
| tree | a809cbd0ff1373e07c43c5f36ddbeae724199fbc /kernel/workqueue.c | |
| parent | e1d2d60b1f50296828d3f7ff26c45d1a90f142ef (diff) | |
hisi_acc_vfio_pci: reject live migration on 64KB page with QM_HW_V3 hardware
On QM_HW_V3 (VF_CTRL mode) hardware with 64KB pages, the functional
region and migration registers share one BAR2 physical page with no
isolation, which leaks migration registers to the guest and causes
guest kernel calltrace under the KVM emulated device scheme.
The previous fix rejected the device in hisi_acc_vf_qm_init() during
open_device, returning -EINVAL and breaking passthrough entirely.
Move the drv_mode check into a helper called from probe() so that a
VF_CTRL device on a 64KB page is bound to the generic ops, keeping
passthrough working while disabling live migration.
Fixes: b0eed085903e ("hisi_acc_vfio_pci: Add support for VFIO live migration")
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Link: https://lore.kernel.org/r/20261013071929.3988687-3-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions
