]> www.infradead.org Git - users/dwmw2/linux.git/commit
xen/grant-table: xen_shim_domain() support
authorJoao Martins <joao.m.martins@oracle.com>
Sat, 9 Feb 2019 01:46:32 +0000 (20:46 -0500)
committerJoao Martins <joao.m.martins@oracle.com>
Wed, 20 Feb 2019 17:30:52 +0000 (12:30 -0500)
commitd99adbd35e69ebafe20dc12a3d096e42fbedd91c
tree20a291490924379e8e55edb55e56ac7a842254e5
parent87c3247395befc56af2642ebc8a1cf5e65d42af6
xen/grant-table: xen_shim_domain() support

With xen-shim, allocate_xenballooned_pages() only allocates a
place-holder page (pfn 0) expecting a subsequent map_grant_ref to fix
it up.

However, this means that, until the grant operation
(GNTTABOP_map_grant_ref) provides a valid page, we cannot set
PagePrivate or save any state.

This patch elides the setting of that state if xen_shim_domain(). In
addition, gnttab_map_refs() now fills in the appropriate page returned
from the grant operation.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/grant-table.c