From: Michael S. Tsirkin Date: Wed, 14 Jan 2015 16:50:55 +0000 (+0200) Subject: virtio_pci_modern: reduce number of mappings X-Git-Tag: fixes-v4.0-rc1~61^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3909213cfd9224cb1827d557fb6eb5ebdb8ddcbe;p=pandora-kernel.git virtio_pci_modern: reduce number of mappings We don't know the # of VQs that drivers are going to use so it's hard to predict how much memory we'll need to map. However, the relevant capability does give us an upper limit. If that's below a page, we can reduce the number of required mappings by mapping it all once ahead of the time. Signed-off-by: Michael S. Tsirkin Signed-off-by: Rusty Russell --- Reading git-diff-tree failed