From: Ian Campbell Subject: Re: [V10 PATCH 18/23] PVH xen: add hypercall support for PVH Date: Thu, 8 Aug 2013 09:26:51 +0100 Message-ID: <1375950411.619.62.camel@kazak.uk.xensource.com> References: <1374631171-15224-1-git-send-email-mukesh.rathor@oracle.com> <1374631171-15224-19-git-send-email-mukesh.rathor@oracle.com> <20130807191213.0f51cf5c@mantra.us.oracle.com> <520367B002000078000EA231@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <520367B002000078000EA231@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: George Dunlap , "keir.xen@gmail.com" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Thu, 2013-08-08 at 08:41 +0100, Jan Beulich wrote: > >>> On 08.08.13 at 04:12, Mukesh Rathor wrote: > > On Wed, 7 Aug 2013 17:43:54 +0100 > > George Dunlap wrote: > >> On Wed, Jul 24, 2013 at 2:59 AM, Mukesh Rathor wrote: > >> > +static hvm_hypercall_t *const pvh_hypercall64_table[NR_hypercalls] > >> > = { > >> > + HYPERCALL(platform_op), > >> > + HYPERCALL(memory_op), > >> > + HYPERCALL(xen_version), > >> > + HYPERCALL(console_io), > >> > + [ __HYPERVISOR_grant_table_op ] = (hvm_hypercall_t *)hvm_grant_table_op, > >> > + [ __HYPERVISOR_vcpu_op ] = (hvm_hypercall_t *)hvm_vcpu_op, > >> > + HYPERCALL(mmuext_op), > >> > + HYPERCALL(xsm_op), > >> > + HYPERCALL(sched_op), > >> > + HYPERCALL(event_channel_op), > >> > + [ __HYPERVISOR_physdev_op ] = (hvm_hypercall_t *)hvm_physdev_op, > >> > + HYPERCALL(hvm_op), > >> > + HYPERCALL(sysctl), > >> > + HYPERCALL(domctl) > >> > +}; > >> > >> It would be nice if this list were in the same order as the other > >> lists, so that it is easy to figure out what calls are common and what > >> calls are different. > > > > These are ordered by the hcall number, and assists in the debug. > > But with George asking, do you now understand a little better > why on a very early revision I had asked to copy either the > HVM or PV hypercall table, and override just the entries that > need overrides (making it very clear which ones differ)? I was just wondering if we couldn't generate (at build time) all three tables from a more readable combined form of some sort. It's probably an awk script or something away... Ian.