Spotted by Xiao Wang <sirouni@yahoo.com.cn>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 17435:
09903e0e75287a1920733e4df1f51e7b9a7b9c5d
xen-unstable date: Thu Apr 10 16:17:28 2008 +0100
mfn = l1e_get_pfn(l1e[i1]);
gfn = get_gpfn_from_mfn(mfn);
/* create a new 1le entry with the new type */
- flags = p2m_flags_to_type(nt);
+ flags = p2m_type_to_flags(nt);
l1e_content = l1e_from_pfn(mfn, flags);
paging_write_p2m_entry(d, gfn, &l1e[i1],
l1mfn, l1e_content, 1);