Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1194671
| From | "H. Peter Anvin" <hpa@zytor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 0/8] Use correctly the Xen memory terminologies in Linux |
| Date | 2015-07-28 23:20 +0200 |
| Message-ID | <pRks2-4ju-3@gated-at.bofh.it> (permalink) |
| References | <pReFX-4t9-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 07/28/2015 08:02 AM, Julien Grall wrote: > Hi all, > > This patch series aims to use the memory terminologies described in > include/linux/mm.h [1] for Linux xen code. > > Linux is using mistakenly MFN when GFN is meant, I suspect this is because the > first support of Xen was for PV. This has brought some misimplementation > of memory helpers on ARM and make the developper confused about the expected > behavior. > > For instance, with pfn_to_mfn, we expect to get a MFN based on the name. > Although, if we look at the implementation on x86, it's returning a GFN. > Most of the callers are also using it this way. > > The first 2 patches of this series is ARM related in order to remove > PV specific helpers which should not be used and fixing the implementation of > pfn_to_mfn. > > The rest of the series is here rename most of the usage in the common code > of MFN to GFN. I also took the opportunity to replace most of the call to > pfn_to_gfn in the common code by page_to_gfn avoid construction such > as pfn_to_gfn(page_to_pfn(...). > > Note the one xen-blkfront will be dropped by 64K series [2], I can include it > if necessary. > Can we actually get some documentation for Xen before starting to change names around? -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH 0/8] Use correctly the Xen memory terminologies in Linux "H. Peter Anvin" <hpa@zytor.com> - 2015-07-28 23:20 +0200 Re: [Xen-devel] [PATCH 0/8] Use correctly the Xen memory terminologies in Linux Andrew Cooper <andrew.cooper3@citrix.com> - 2015-07-28 23:20 +0200
csiph-web