xsm/flask: avoid struct page lookup in mmu_normal_update
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Mon, 9 Jul 2012 09:10:27 +0000 (10:10 +0100)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Mon, 9 Jul 2012 09:10:27 +0000 (10:10 +0100)
commited6c09a78ea9050d1d640b7d7a41c287162d22d7
treeb2155cac26e95d3c58bd1d0bd56aa724e96a27ae
parentcbadda9f1b47eb2449fa8a825f03cef1ef484a34
xsm/flask: avoid struct page lookup in mmu_normal_update

Since the mmu_normal_update hook is called even when mapping MFNs
without an associated struct page, attempting to use the struct page
to map between GFN and MFN will cause crashes. Use get_gfn_query
instead.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
xen/xsm/flask/hooks.c