return rc;
}
+#ifdef CONFIG_HVM
+
/*
* Returns:
* 0 for success
struct p2m_domain *p2m = p2m_get_hostp2m(d);
if ( !paging_mode_translate(d) )
+ {
+ ASSERT_UNREACHABLE();
return -EIO;
+ }
gfn_lock(p2m, gfn, order);
omfn = p2m->get_entry(p2m, gfn, &ot, &a, 0, &cur_order, NULL);
if ( rc )
gdprintk(XENLOG_ERR, "p2m_set_entry: %#lx:%u -> %d (0x%"PRI_mfn")\n",
gfn_l, order, rc, mfn_x(mfn));
-#ifdef CONFIG_HVM
else if ( p2m_is_pod(ot) )
{
pod_lock(p2m);
BUG_ON(p2m->pod.entry_count < 0);
pod_unlock(p2m);
}
-#endif
gfn_unlock(p2m, gfn, order);
return rc;
p2m_get_hostp2m(d)->default_access);
}
+#endif /* CONFIG_HVM */
+
int set_identity_p2m_entry(struct domain *d, unsigned long gfn_l,
p2m_access_t p2ma, unsigned int flag)
{