WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Duplicate __HYPERVISOR_grant_table_op in hvm_hypercall32_tab

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Duplicate __HYPERVISOR_grant_table_op in hvm_hypercall32_table?
From: "Paul Samon" <paul.samon@xxxxxxxxx>
Date: Thu, 13 Dec 2007 18:23:32 +0800
Delivery-date: Thu, 13 Dec 2007 02:23:57 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=V+yTDe3f7lq+9isPVGLE7Mj1/51NPHaP6fFnnt2Ymys=; b=T5W3InO+s5Ko3RM6stBYJvC2Cl5n4v8TsmAA3NqxaevOMFO+zbnWbARQl0G8rJhCQi0k9icDIZBNEh1Dcvdj4DtySejg41bKq0qoYptPr/JA6bPTgn6uhWfsAJsVL82LsUo3MBOEZNdoSOiKrGqiy2JFfFGqposlehAqxiy/GnE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=LIwWAkY0Q8Vkjw4m9YT+/z6vKNqkyNHykSckan6kkRYTR/wW8JCsi3n6sjrQKZBvEumQ/0xJmhAAORMrGacuOgKgX4Bv9ovgCdaETJrOwC7HRr+SdBSerFThmh5uWf2lb+R8smErj/kdKoJZm/oyo5jfz0V+92FxdL/PcrbZD/o=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
In xen/arch/x86/hvm/hvm.c:
#define HYPERCALL(x)                                        \
    [ __HYPERVISOR_ ## x ] = (hvm_hypercall_t *) do_ ## x
 
#if defined(__i386__)
 
static hvm_hypercall_t *hvm_hypercall32_table[NR_hypercalls] = {
    HYPERCALL(memory_op),
    [ __HYPERVISOR_grant_table_op ] = (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_grant_table_op(), and hvm_grant_table_op() here???

What's the purpose by doing so?

--
-- Paul S.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>