mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
vfio/pci: Restore 8-byte ioeventfd support
Commitb44a06bd28("vfio/pci: Remove #ifdef iowrite64 and #ifdef ioread64") inadvertently converted a conditional 8-byte rejection into an unconditional one. Originally, 'count == 8' was rejected only if iowrite64 was undefined (#ifndef iowrite64). When iowrite64 became globally available via generic fallbacks, this rejection became dead code, allowing 8-byte ioeventfds. However,b44a06bd28removed the #ifndef wrappers but left the nested 'if (count == 8) return -EINVAL;' intact, breaking all 8-byte registrations. Drop the unconditional check to restore 8-byte ioeventfd support, matching the original intent. Fixes:b44a06bd28("vfio/pci: Remove #ifdef iowrite64 and #ifdef ioread64") Cc: stable@vger.kernel.org Signed-off-by: Li RongQing <lirongqing@baidu.com> Link: https://lore.kernel.org/r/20260922040013.2188-1-lirongqing@baidu.com Signed-off-by: Alex Williamson <alex@shazbot.org>
This commit is contained in:
parent
8b25b35840
commit
b30b52c2fb
|
|
@ -423,9 +423,6 @@ int vfio_pci_ioeventfd(struct vfio_pci_core_device *vdev, loff_t offset,
|
|||
pos >= vdev->msix_offset + vdev->msix_size))
|
||||
return -EINVAL;
|
||||
|
||||
if (count == 8)
|
||||
return -EINVAL;
|
||||
|
||||
io = vfio_pci_core_get_iomap(vdev, bar);
|
||||
if (IS_ERR(io))
|
||||
return PTR_ERR(io);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user