Skip to contentSkip to conversation

Duplicate __HYPERVISOR_grant_table_op in hvm_hypercall32_table?

DISCUSSION Paul Samon 2 participants 2 messages Dec 13, 2007

lore
Share & tools
lore

Paul Samon

author
#0 lore raw

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?

Signature · 1 line
-- Paul S.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

The assignment of do_grant_table_op() is bogus. I¹ll remove it.

Thanks,
Keir

Quoted 16 lines · Paul Samon

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)
};

Quoted 5 lines

#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?

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel