> -----Original Message----- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 03 April 2018 15:05 > To: Paul Durrant <paul.durr...@citrix.com>; xen-devel@lists.xenproject.org > Cc: George Dunlap <george.dun...@citrix.com>; Andrew Cooper > <andrew.coop...@citrix.com>; Ian Jackson <ian.jack...@citrix.com>; > Konrad Rzeszutek Wilk <konrad.w...@oracle.com>; Stefano Stabellini > <sstabell...@kernel.org>; Tim (Xen.org) <t...@xen.org>; Wei Liu > <wei.l...@citrix.com> > Subject: Re: [PATCH v19 05/11] x86/mm: add HYPERVISOR_memory_op to > acquire guest resources > > Hi Paul, > > On 29/03/18 16:36, Paul Durrant wrote: > > Certain memory resources associated with a guest are not necessarily > > present in the guest P2M. > > > > This patch adds the boilerplate for new memory op to allow such a > resource > > to be priv-mapped directly, by either a PV or HVM tools domain. > > > > NOTE: Whilst the new op is not intrinsicly specific to the x86 architecture, > > s/intrinsicly/intrinsically/ I think. >
You are correct. > [..] > > > diff --git a/xen/include/asm-arm/p2m.h b/xen/include/asm-arm/p2m.h > > index 45ef2cd58b..4d036b6112 100644 > > --- a/xen/include/asm-arm/p2m.h > > +++ b/xen/include/asm-arm/p2m.h > > @@ -344,6 +344,16 @@ static inline gfn_t gfn_next_boundary(gfn_t gfn, > unsigned int order) > > return gfn_add(gfn, 1UL << order); > > } > > > > +static inline int set_foreign_p2m_entry(struct domain *d, unsigned long > gfn, > > + mfn_t mfn) > > +{ > > + /* > > + * NOTE: If this is implemented then proper reference counting of > > + * foreign entries will need to be impmemented. > > s/impmenmented/implemented/ > Oh dear... my fingers got quite out of whack there. > For ARM-bits: > > Acked-by: Julien Grall <julien.gr...@arm.com> > Thanks. Hopefully the typos can be fixed up on commit. Paul > Cheers, > > > + */ > > + return -EOPNOTSUPP; > > +} > > + > > #endif /* _XEN_P2M_H */ > > > > /* > > Cheers, > > -- > Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel