Date: Tue, 30 Dec 2014 12:47:45 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276409 - head/sys/dev/virtio/mmio Message-ID: <201412301247.sBUClja7013394@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Tue Dec 30 12:47:44 2014 New Revision: 276409 URL: https://svnweb.freebsd.org/changeset/base/276409 Log: 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 Modified: head/sys/dev/virtio/mmio/virtio_mmio.c Modified: head/sys/dev/virtio/mmio/virtio_mmio.c ============================================================================== --- head/sys/dev/virtio/mmio/virtio_mmio.c Tue Dec 30 10:30:12 2014 (r276408) +++ head/sys/dev/virtio/mmio/virtio_mmio.c Tue Dec 30 12:47:44 2014 (r276409) @@ -506,6 +506,8 @@ vtmmio_alloc_virtqueues(device_t dev, in 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];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412301247.sBUClja7013394>