44 messages in com.xensource.lists.xen-ia64-devel[Xen-ia64-devel] RE: [PATCH 09/27] ia...
FromSent OnAttachments
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:46 
Isaku Yamahata10 Jun 2008 00:47 
Luck, Tony17 Jun 2008 16:23 
Luck, Tony17 Jun 2008 16:37 
Luck, Tony17 Jun 2008 16:45 
Aron Griffis17 Jun 2008 16:49 
Luck, Tony17 Jun 2008 16:57 
Luck, Tony18 Jun 2008 13:38 
Luck, Tony18 Jun 2008 13:47 
Luck, Tony18 Jun 2008 14:45 
Luck, Tony18 Jun 2008 15:12 
Akio Takebe18 Jun 2008 19:36 
Isaku Yamahata19 Jun 2008 05:05 
Isaku Yamahata19 Jun 2008 05:08 
Isaku Yamahata19 Jun 2008 05:09 
Isaku Yamahata19 Jun 2008 05:15 
Isaku Yamahata19 Jun 2008 05:16 
Luck, Tony19 Jun 2008 10:14 
Isaku Yamahata19 Jun 2008 19:03 
Subject:[Xen-ia64-devel] RE: [PATCH 09/27] ia64/xen: implement the arch specific part of xencomm.
From:Luck, Tony (tony@intel.com)
Date:06/18/2008 01:38:39 PM
List:com.xensource.lists.xen-ia64-devel

On ia64/xen, pointer argument for the hypercall is passed by pseudo physical address (guest phsysical address.)

s/phsysical/physical/

So it is necessary to convert virtual address into pseudo physical address rigth before issuing hypercall. The frame work is called

s/rigth/right/

+#ifdef HAVE_XEN_PLATFORM_COMPAT_H +#include <xen/platform-compat.h> +#endif

What is this for? This patch series doesn't make this file.

+static unsigned long kernel_start_pa; + +void +xencomm_initialize(void) +{ + kernel_start_pa = KERNEL_START - ia64_tpa(KERNEL_START); +}

"kernel_start_pa" is an unhelpful name ... this variable doesn't contain the starting physical address (which is what the name sounds like). Perhaps "kernel_virtual_offset" is better?

+ if (vaddr > TASK_SIZE) { + /* kernel address */ + return __pa(vaddr); + }

Can this routine ever be given the address of a percpu variable? This will return the wrong value if someone does.

+#define is_kernel_addr(x) \ + ((PAGE_OFFSET <= (x) && \ + (x) < (PAGE_OFFSET + (1UL << IA64_MAX_PHYS_BITS))) || \ + (KERNEL_START <= (x) && \ + (x) < KERNEL_START + KERNEL_TR_PAGE_SIZE))

Misleading name. What does it consider a "kernel_addr"? Just region 7 (up to physical address limit) and the piece of region 5 that is mapped by itr[0]/dtr[0]. Preferebly pick a better name or add a comment here saying what this is testing for.

-Tony