]> git.baikalelectronics.ru Git - kernel.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, 5 Sep 2012 20:36:26 +0000 (16:36 -0400)
commitfa3d080cbe8285c73faac5f7d1817cd27e302eb6
tree0f0507ed14176b7e17508b551cd22fef722dde0a
parent22de36a23705f6a22b31594c0fe7750d744e04f7
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