]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: allow privcmd for HVM guests
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 22 Aug 2012 16:20:16 +0000 (17:20 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Sep 2012 14:59:39 +0000 (10:59 -0400)
commitb12f0b42a4fadceb24b1d934e8cf678b040ab31e
tree35ef766fb516304d562ef4011b9041418d40dcb1
parent968d33b331b4935ec161c83888b05f19e81255c5
xen: allow privcmd for HVM guests

This patch removes the "return -ENOSYS" for auto_translated_physmap
guests from privcmd_mmap, thus it allows ARM guests to issue privcmd
mmap calls. However privcmd mmap calls are still going to fail for HVM
and hybrid guests on x86 because the xen_remap_domain_mfn_range
implementation is currently PV only.

Changes in v2:

- better commit message;
- return -EINVAL from xen_remap_domain_mfn_range if
  auto_translated_physmap.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 1a1d43318aeb74d679372c0b65029957be274529)
arch/x86/xen/mmu.c
drivers/xen/privcmd.c