From: Keir Fraser Subject: Re: Duplicate __HYPERVISOR_grant_table_op in hvm_hypercall32_table? Date: Thu, 13 Dec 2007 11:04:49 +0000 Message-ID: References: <34cec8c90712130223m5c47652fi18fd068c37162da9@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1187076239==" Return-path: In-Reply-To: <34cec8c90712130223m5c47652fi18fd068c37162da9@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Paul Samon , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============1187076239== Content-type: multipart/alternative; boundary="B_3280388692_10667170" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3280388692_10667170 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable The assignment of do_grant_table_op() is bogus. I=B9ll remove it. Thanks, Keir On 13/12/07 10:23, "Paul Samon" wrote: > In xen/arch/x86/hvm/hvm.c: > #define HYPERCALL(x) \ > [ __HYPERVISOR_ ## x ] =3D (hvm_hypercall_t *) do_ ## x > =20 > #if defined(__i386__) > =20 > static hvm_hypercall_t *hvm_hypercall32_table[NR_hypercalls] =3D { > HYPERCALL(memory_op), > [ __HYPERVISOR_grant_table_op ] =3D (hvm_hypercall_t *)hvm_grant_table_= op, > HYPERCALL(xen_version), > HYPERCALL(grant_table_op), > HYPERCALL(event_channel_op), > HYPERCALL(sched_op), > HYPERCALL(hvm_op) > }; > =20 > #else /* defined(__x86_64__) */ > ------------------- > For the index __HYPERVISOR_grant_table_op, there are 2 assignments -- > do_grant_table_op(), and hvm_grant_table_op() here??? > What's the purpose by doing so? --B_3280388692_10667170 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Duplicate __HYPERVISOR_grant_table_op in hvm_hyperca= ll32_table? The a= ssignment of do_grant_table_op() is bogus. I’ll remove it.

 Thanks,
 Keir


On 13/12/07 10:23, "Paul Samon" <paul.samon@gmail.com> wrot= e:

In xen/arch/x86/hvm/hvm.c:
#define HYPERCALL(x)          =             &nbs= p;            &n= bsp;    \
    [ __HYPERVISOR_ ## x ] =3D (hvm_hypercall_t *) do_ ##= x
 
#if defined(__i386__)
 
static hvm_hypercall_t *hvm_hypercall32_table[NR_hypercalls] =3D {
    HYPERCALL(memory_op),
    [ __HYPERVISOR_grant_table_op ] =3D (hvm_hypercall_t = *)hvm_grant_table_op,
    HYPERCALL(xen_version),
    HYPERCALL(grant_table_op),
    HYPERCALL(event_channel_op),
    HYPERCALL(sched_op),
    HYPERCALL(hvm_op)
};
 
#else /* defined(__x86_64__) */
-------------------
For the index __HYPERVISOR_grant_table_op, there are 2 assignments -- do_gr= ant_table_op(), and hvm_grant_table_op() here???
What's the purpose by doing so?

--B_3280388692_10667170-- --===============1187076239== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1187076239==--