virtio: avoid implicit use of Linux page size in balloon interface
authorHollis Blanchard <hollisb@us.ibm.com>
Thu, 13 Nov 2008 21:48:33 +0000 (15:48 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 29 Dec 2008 22:56:04 +0000 (08:56 +1030)
commit1b4aa2faeca1b9922033daf2475b6fc13b0ffea6
treeb94e3f4ec45151e51ad1b3dfecabc5391684c725
parent87c7d57c17ade5024d95b6ca0da249da49b0672a
virtio: avoid implicit use of Linux page size in balloon interface

Make the balloon interface always use 4K pages, and convert Linux pfns if
necessary. This patch assumes that Linux's PAGE_SHIFT will never be less than
12.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (modified)
drivers/virtio/virtio_balloon.c
include/linux/virtio_balloon.h