fix DOMID_IO mapping permission checks (try 2)
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 26 Sep 2013 08:15:47 +0000 (10:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 26 Sep 2013 08:15:47 +0000 (10:15 +0200)
commit07344c0f33be13bf9232a113681ef9087557f706
tree8b9d2be49c6e2546eb72e9a5d7de6dc5bc074672
parentf12c1f0b09205cdf18a2c4a615fdc3e7357ce704
fix DOMID_IO mapping permission checks (try 2)

When the permission checks for memory mapping were moved from
get_pg_owner to xsm_mmu_update in aaba7a677, the exception for DOMID_IO
was not taken into account. This will cause IO memory mappings by PV
domains (mini-os in particular) to fail when XSM/FLASK is not being
used. This patch reintroduces the exception for DOMID_IO; the actual
restrictions on IO memory mappings have always been checked separately
using iomem_access_permitted, so this change should not break existing
access control.

Reported-by: Eduardo Peixoto Macedo <epm@cin.ufpe.br>
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
xen/include/xsm/dummy.h