Set the page size in the virtio-mmio driver. Some backends, e.g QEMU, assume
a 1 byte page size until told otherwise. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
454035ba1b
commit
7c5c5b97fe
@ -506,6 +506,8 @@ vtmmio_alloc_virtqueues(device_t dev, int flags, int nvqs,
|
||||
if (sc->vtmmio_vqs == NULL)
|
||||
return (ENOMEM);
|
||||
|
||||
vtmmio_write_config_4(sc, VIRTIO_MMIO_GUEST_PAGE_SIZE, 1 << PAGE_SHIFT);
|
||||
|
||||
for (idx = 0; idx < nvqs; idx++) {
|
||||
vqx = &sc->vtmmio_vqs[idx];
|
||||
info = &vq_info[idx];
|
||||
|
Loading…
x
Reference in New Issue
Block a user