Question about: [LINUX] Various fixes for mmapping I/O and foreign memory pages.
in changeset: 12392:e1f3af226a8e8cb32de079b283cdcac718d3e076
you say:
"auto-translate guests can use remap_pfn_range() rather than
direct_remap_pfn_range()."
And code says:
kfraser 12392: /* Unsupported for auto-translate guests. */
kfraser 12392: if (xen_feature(XENFEAT_auto_translated_physmap))
kfraser 12392: return -ENOSYS;
Is there a privcmd that "auto-translate guests" can use or are you expecting someone to fill this functionality in?
-JX
Quoted 2 lines · Jimi Xenidis
"auto-translate guests can use
remap_pfn_range()rather thandirect_remap_pfn_range()."
This change was specifically made so that mmap of /dev/mem would work (i.e., mapping of I/O memory) on mini-xen (dom0 guest running on minimal non-virtualising Xen shim).
Quoted 7 lines
And code says:
kfraser 12392: /* Unsupported for auto-translate guests. */ kfraser 12392: if (xen_feature(XENFEAT_auto_translated_physmap))
kfraser 12392: return-ENOSYS;Is there a privcmd that "auto-translate guests" can use or are you expecting someone to fill this functionality in?
This needs filling in. Specifically: how will another domain's memory appear in the local pseudophysical memory map (since that is the address space of guest pagetable entries)?
-- Keir