From: "Jan Beulich" Subject: Re: [PATCH 02/18] PVH xen: add XENMEM_add_to_physmap_range Date: Fri, 07 Jun 2013 16:48:05 +0100 Message-ID: <51B21CD502000078000DC447@nat28.tlf.novell.com> References: <1369445137-19755-1-git-send-email-mukesh.rathor@oracle.com> <1369445137-19755-3-git-send-email-mukesh.rathor@oracle.com> <51A8897602000078000D9F13@nat28.tlf.novell.com> <20130604173143.7ef56db1@mantra.us.oracle.com> <51AF05C402000078000DB564@nat28.tlf.novell.com> <20130605134146.2bb6b342@mantra.us.oracle.com> <51B04B9D02000078000DBC2A@nat28.tlf.novell.com> <20130607150804.GA27011@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130607150804.GA27011@phenom.dumpdata.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 07.06.13 at 17:08, Konrad Rzeszutek Wilk wrote: > Pardon my misunderstanding - what you are saying is that the location > of this hypercall in arch_memory_op is correct - but only if it > works with 32-bit guests as well? Correct. > Which would imply at least doing something in compat_arch_memory_op > (to copy the arguments properly), Yes. > and in the arch_memory_op > return -ENOSYS if the guest is 32-bit (at least for right now). No, or else the argument copying is pointless. In fact I don't think arch_memory_op() needs any further tweaking for 32-bit guests to work, it's solely the argument copying/translation that's missing. > In the future the return -ENOSYS would be removed so that 32-bit > guests can use this hypercall. > > Or perhaps it make sense to squash the x86 and ARM version of this > hypercall in the generic code? (later on) That would be the ultimate goal, if feasible. Jan