]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/privcmd: add PRIVCMD_MMAPBATCH_V2 ioctl
authorAndres Lagar-Cavilla <andreslc@gridcentric.ca>
Fri, 31 Aug 2012 13:59:30 +0000 (09:59 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Sep 2012 15:01:09 +0000 (11:01 -0400)
commitf66aaaf1be6586abc2ce9260f744a2d069dfe868
tree9f2f26d4786637415013301c19a86b5147e7c8d8
parent4006f26c65d8cc149e4786d3c9b7ce8bfaf998f2
xen/privcmd: add PRIVCMD_MMAPBATCH_V2 ioctl

PRIVCMD_MMAPBATCH_V2 extends PRIVCMD_MMAPBATCH with an additional
field for reporting the error code for every frame that could not be
mapped.  libxc prefers PRIVCMD_MMAPBATCH_V2 over PRIVCMD_MMAPBATCH.

Also expand PRIVCMD_MMAPBATCH to return appropriate error-encoding top nibble
in the mfn array.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit ceb90fa0a8008059ecbbf9114cb89dc71a730bb6)
drivers/xen/privcmd.c
include/xen/privcmd.h