aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/grant-table.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2008-04-02 13:53:52 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-24 17:57:32 -0400
commit87e27cf6288c6bf089ed34a72213d9ad16e82d84 (patch)
treedb7c9022e6b1fd77de850f5d0037181937041d24 /drivers/xen/grant-table.c
parent2eb6d5eb48fd6aedf5787b30e5c41693e8c91fa3 (diff)
xen: add missing definitions for xen grant table which ia64/xen needs
Add xen handles realted definitions for grant table which ia64/xen needs. Pointer argumsnts for ia64/xen hypercall are passed in pseudo physical address (guest physical address) so that it is required to convert guest kernel virtual address into pseudo physical address right before issuing hypercall. The xen guest handle represents such arguments. Define necessary handles and helper functions. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/xen/grant-table.c')
-rw-r--r--drivers/xen/grant-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c
index d85dc6d41c2a..d4a89b3d694f 100644
--- a/drivers/xen/grant-table.c
+++ b/drivers/xen/grant-table.c
@@ -470,7 +470,7 @@ static int gnttab_map(unsigned int start_idx, unsigned int end_idx)
470 470
471 setup.dom = DOMID_SELF; 471 setup.dom = DOMID_SELF;
472 setup.nr_frames = nr_gframes; 472 setup.nr_frames = nr_gframes;
473 setup.frame_list = frames; 473 set_xen_guest_handle(setup.frame_list, frames);
474 474
475 rc = HYPERVISOR_grant_table_op(GNTTABOP_setup_table, &setup, 1); 475 rc = HYPERVISOR_grant_table_op(GNTTABOP_setup_table, &setup, 1);
476 if (rc == -ENOSYS) { 476 if (rc == -ENOSYS) {