diff options
author | jhb <jhb@FreeBSD.org> | 2014-05-23 19:06:35 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-05-23 19:06:35 +0000 |
commit | 0a175e57d1309999ede922e2b1cac79885bdbbc2 (patch) | |
tree | 78df7e66d55c299b04863fec4440eb69a207227d | |
parent | 5b014c7d3ed7dd8a1942ed6cd4e044f9ea0867e0 (diff) | |
download | FreeBSD-src-0a175e57d1309999ede922e2b1cac79885bdbbc2.zip FreeBSD-src-0a175e57d1309999ede922e2b1cac79885bdbbc2.tar.gz |
MFC 260469:
Fix issue with the virtio descriptor region being truncated
if it was above 4GB.
-rw-r--r-- | usr.sbin/bhyve/virtio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/virtio.c b/usr.sbin/bhyve/virtio.c index c26272b..bd98990 100644 --- a/usr.sbin/bhyve/virtio.c +++ b/usr.sbin/bhyve/virtio.c @@ -160,7 +160,7 @@ vi_vq_init(struct virtio_softc *vs, uint32_t pfn) vq = &vs->vs_queues[vs->vs_curq]; vq->vq_pfn = pfn; - phys = pfn << VRING_PFN; + phys = (uint64_t)pfn << VRING_PFN; size = vring_size(vq->vq_qsize); base = paddr_guest2host(vs->vs_pi->pi_vmctx, phys, size); |