• Suzuki K Poulose's avatar
    virtio: pci-legacy: Validate queue pfn · 69599206
    Suzuki K Poulose authored
    Legacy PCI over virtio uses a 32bit PFN for the queue. If the
    queue pfn is too large to fit in 32bits, which we could hit on
    arm64 systems with 52bit physical addresses (even with 64K page
    size), we simply miss out a proper link to the other side of
    the queue.
    
    Add a check to validate the PFN, rather than silently breaking
    the devices.
    
    Cc: "Michael S. Tsirkin" <mst@redhat.com>
    Cc: Jason Wang <jasowang@redhat.com>
    Cc: Marc Zyngier <marc.zyngier@arm.com>
    Cc: Christoffer Dall <cdall@kernel.org>
    Cc: Peter Maydel <peter.maydell@linaro.org>
    Cc: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
    Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    69599206
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
virtio.c Loading commit data...
virtio_balloon.c Loading commit data...
virtio_input.c Loading commit data...
virtio_mmio.c Loading commit data...
virtio_pci_common.c Loading commit data...
virtio_pci_common.h Loading commit data...
virtio_pci_legacy.c Loading commit data...
virtio_pci_modern.c Loading commit data...
virtio_ring.c Loading commit data...