[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 REPOST 01/12] [x86|arm]: remove code duplication
>>> On 22.08.17 at 16:50, <paul.durrant@xxxxxxxxxx> wrote: > There is a substantial amount of code duplicated between the x86 and arm > implementations of mm.c:xenmem_add_to_physmap_one() for > XENMAPSPACE_grant_table. Also, the code in question looks like it really > should be in common/grant_table.c > > This patch introduces a new function in common/grant_table.c to get the mfn > of a specified frame in the grant table of a specified guest, and calls to > that from the arch-specific code in mm.c. > > Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx> This would need re-basing over the XSA-235 fix, but I prefer Jürgen's similar change, as it retains the present locking properties better on ARM. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |