]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
virtio: Fix running on machines with memory above 0xffffffff
authorKristof Provost <kp@FreeBSD.org>
Fri, 26 Jul 2019 19:16:02 +0000 (19:16 +0000)
committerKristof Provost <kp@FreeBSD.org>
Fri, 26 Jul 2019 19:16:02 +0000 (19:16 +0000)
commit776d3d5924745cbc54a77017b81716d7e92d145e
tree17eec19de07f5c0ffbb4f7bca580c55a6baa48ed
parented3bf015996599712173e2d600384a52cf5b8854
virtio: Fix running on machines with memory above 0xffffffff

We want to allocate a contiguous memory block anywhere in memory, but
expressed this as having to be between 0 and 0xffffffff. This limits us
on 64-bit machines, and outright breaks on machines where memory is
mapped above that address range.

Allow the full address range to be used for this allocation.

Sponsored by: Axiado
sys/dev/virtio/mmio/virtio_mmio.c
sys/dev/virtio/pci/virtio_pci.c