]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[virtio] Fix implementation of vpm_ioread32() 1028/head
authorAlexander Eichner <github@aeichner.de>
Fri, 18 Aug 2023 11:32:15 +0000 (13:32 +0200)
committerMichael Brown <mcb30@ipxe.org>
Tue, 22 Aug 2023 12:45:44 +0000 (13:45 +0100)
commit9e99a55b317f5da66f5110891b154084b337a031
tree8c64b9a6b046ca90fd445197831278485a079b33
parentc1834f323f4f6b9b46cd5895b1457a117381363f
[virtio] Fix implementation of vpm_ioread32()

The current implementation of vpm_ioread32() erroneously reads only 16
bits of data, which fails when used with the (stricter) virtio device
emulation in VirtualBox.

Fix by using the correct readl()/inl() I/O wrappers.

Reworded-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/virtio-pci.c