| 
         
xen-ia64-devel
[Xen-ia64-devel] Re: [PATCH 10/29] ia64/xen: implement the arch	specific
 
| 
To:  | 
Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, tony.luck@xxxxxxxxx,	linux-ia64@xxxxxxxxxxxxxxx | 
 
| 
Subject:  | 
[Xen-ia64-devel] Re: [PATCH 10/29] ia64/xen: implement the arch	specific part of xencomm. | 
 
| 
From:  | 
Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> | 
 
| 
Date:  | 
Thu, 17 Jul 2008 12:25:36 +0900 | 
 
| 
Cc:  | 
"Luck, Tony" <tony.luck@xxxxxxxxx>,	virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx,	Alex Williamson <alex.williamson@xxxxxx>,	xen-ia64-devel@xxxxxxxxxxxxxxxxxxx | 
 
| 
Delivery-date:  | 
Wed, 16 Jul 2008 20:26:35 -0700 | 
 
| 
Envelope-to:  | 
www-data@xxxxxxxxxxxxxxxxxxx | 
 
| 
In-reply-to:  | 
<12162606621561-git-send-email-yamahata@xxxxxxxxxxxxx> | 
 
| 
List-help:  | 
<mailto:xen-ia64-devel-request@lists.xensource.com?subject=help> | 
 
| 
List-id:  | 
Discussion of the ia64 port of Xen	<xen-ia64-devel.lists.xensource.com> | 
 
| 
List-post:  | 
<mailto:xen-ia64-devel@lists.xensource.com> | 
 
| 
List-subscribe:  | 
<http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, 	<mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe> | 
 
| 
List-unsubscribe:  | 
<http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, 	<mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe> | 
 
| 
References:  | 
<12162606614068-git-send-email-yamahata@xxxxxxxxxxxxx>	<12162606621561-git-send-email-yamahata@xxxxxxxxxxxxx> | 
 
| 
Sender:  | 
xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx | 
 
 
 
Hi, Isaku
Thank you for your work.
one small comment.
>On ia64/xen, pointer argument for the hypercall is passed
>by pseudo physical address (guest physical address.)
>So it is necessary to convert virtual address into pseudo physical
>address right before issuing hypercall. The frame work is called
>xencomm. This patch implements arch specific part.
>
>Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
>Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
>Cc: "Luck, Tony" <tony.luck@xxxxxxxxx>
>---
> arch/ia64/xen/Makefile         |    2 +-
> arch/ia64/xen/xencomm.c        |   94 ++++++++++++++++++++++++++++++++++++++
>++
> include/asm-ia64/xen/xencomm.h |   41 +++++++++++++++++
> 3 files changed, 136 insertions(+), 1 deletions(-)
> create mode 100644 arch/ia64/xen/xencomm.c
> create mode 100644 include/asm-ia64/xen/xencomm.h
>
>diff --git a/arch/ia64/xen/Makefile b/arch/ia64/xen/Makefile
>index c200704..ad0c9f7 100644
>--- a/arch/ia64/xen/Makefile
>+++ b/arch/ia64/xen/Makefile
>@@ -2,4 +2,4 @@
> # Makefile for Xen components
> #
> 
>-obj-y := hypercall.o
>+obj-y := hypercall.o xencomm.o
>diff --git a/arch/ia64/xen/xencomm.c b/arch/ia64/xen/xencomm.c
>new file mode 100644
>index 0000000..2a57058
>--- /dev/null
>+++ b/arch/ia64/xen/xencomm.c
>@@ -0,0 +1,94 @@
>+/*
>+ * Copyright (C) 2006 Hollis Blanchard <hollisb@xxxxxxxxxx>, IBM Corporation
>+ *
>+ * This program is free software; you can redistribute it and/or modify
>+ * it under the terms of the GNU General Public License as published by
>+ * the Free Software Foundation; either version 2 of the License, or
>+ * (at your option) any later version.
>+ *
>+ * This program is distributed in the hope that it will be useful,
>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>+ * GNU General Public License for more details.
>+ *
>+ * You should have received a copy of the GNU General Public License
>+ * along with this program; if not, write to the Free Software
>+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
>+ */
>+
>+#include <linux/mm.h>
>+
>+static unsigned long kernel_virtual_offset;
>+
>+void
>+xencomm_initialize(void)
>+{
>+      kernel_virtual_offset = KERNEL_START - ia64_tpa(KERNEL_START);
>+}
>+
>+/* Translate virtual address to physical address.  */
>+unsigned long
>+xencomm_vtop(unsigned long vaddr)
>+{
>+      struct page *page;
>+      struct vm_area_struct *vma;
>+
>+      if (vaddr == 0)
>+              return 0;
>+
It should be "return 0UL";
Best Regards,
Akio Takebe
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- [Xen-ia64-devel] [PATCH 09/29] ia64/xen: define helper functions	for xen hypercalls., (continued)
 
 
[Xen-ia64-devel] [PATCH 01/29] ia64: move function declaration,	ia64_cpu_local_tick() from .c to .h, Isaku Yamahata
[Xen-ia64-devel] [PATCH 28/29] ia64/xen: a recipe for using	xen/ia64 with pv_ops., Isaku Yamahata
[Xen-ia64-devel] [PATCH 02/29] ia64/xen: reserve "break" numbers	used for xen hypercalls., Isaku Yamahata
[Xen-ia64-devel] [PATCH 10/29] ia64/xen: implement the arch	specific part of xencomm., Isaku Yamahata
- [Xen-ia64-devel] Re: [PATCH 10/29] ia64/xen: implement the arch	specific part of xencomm.,
Akio Takebe <=
 
 
[Xen-ia64-devel] [PATCH 23/29] ia64/pv_ops/xen: implement xen	pv_irq_ops., Isaku Yamahata
[Xen-ia64-devel] [PATCH 07/29] ia64/xen: add a neccessary header	file to copmle include/xen/interface/xen.h, Isaku Yamahata
[Xen-ia64-devel] [PATCH 06/29] ia64/xen: define several constants	for ia64/xen., Isaku Yamahata
[Xen-ia64-devel] [PATCH 05/29] ia64/xen: introduce definitions	necessary for ia64/xen hypercalls., Isaku Yamahata
[Xen-ia64-devel] [PATCH 13/29] ia64/xen: add definitions necessary	for xen event channel., Isaku Yamahata
[Xen-ia64-devel] [PATCH 21/29] ia64/pv_ops/xen: implement xen	pv_iosapic_ops., Isaku Yamahata
[Xen-ia64-devel] [PATCH 12/29] ia64/xen: implement arch specific	part of xen grant table., Isaku Yamahata
[Xen-ia64-devel] [PATCH 03/29] ia64/xen: introduce sync bitops	which is necessary for ia64/xen support., Isaku Yamahata
 |  
  
 | 
    |