[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: [PATCH]blkfront change to support unmodified linux
Keir Fraser wrote: On 5 Sep 2005, at 06:41, Xiaofeng Ling wrote:This patch is to make blkfront can work both in xen-linux and in unmodified guest which is shadow_model_translate enabled.phys == machine from the p.o.v. of a shadow-translated guest, so why not modify virt_to_mfn and friends appropriately? Sorry, I don't catch your meaning.vmx guest is in shadow-translate mode, and gpfn need to translate to mfn in hypervisor. see the macro: #define __gpfn_to_mfn(_d, gpfn) \ ({ \ ASSERT(current->domain == (_d)); \ (shadow_mode_translate(_d)) \ ? get_mfn_from_pfn(gpfn) \ : (gpfn); \ }) #define __gpfn_to_mfn_foreign(_d, gpfn) \ ( (shadow_mode_translate(_d)) \ ? gpfn_to_mfn_foreign(_d, gpfn) \ : (gpfn) )So I rename virt_to_mfn to virt_to_xfn which means if not in shadow translate mode, it will do translate in guest. for vmx guest, don't need the translation in guest. What is your suggestion? _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |