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, 5 Sep 2012 20:36:26 +0000 (16:36 -0400)
commitceb90fa0a8008059ecbbf9114cb89dc71a730bb6
tree0f0507ed14176b7e17508b551cd22fef722dde0a
parent69870a847856a1ba81f655a8633fce5f5b614730
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>
drivers/xen/privcmd.c
include/xen/privcmd.h