[Xen-ia64-devel] [PATCH 17/23] ia64/pv_ops/xen: paravirtualize entry.S for ia64/xen.

2008-04-08 Thread Isaku Yamahata
paravirtualize entry.S for ia64/xen by multi compile. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/Makefile |2 +- arch/ia64/xen/xen_pv_ops.c | 18 ++ include/asm-ia64/xen/inst.h |8 3 files changed, 27 insertions(+), 1 del

[Xen-ia64-devel] [PATCH 15/23] ia64/pv_ops/xen: paravirtualize DO_SAVE_MIN for xen.

2008-04-08 Thread Isaku Yamahata
paravirtualize DO_SAVE_MIN in minstate.h for xen. Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/xen/inst.h |2 + include/asm-ia64/xen/minstate.h | 131 +++ 2 f

[Xen-ia64-devel] [PATCH 11/23] ia64/xen: detect xen environment and do minimal initialization.

2008-04-08 Thread Isaku Yamahata
truct ia64_boot_param) or multi entry points depending on hypervisor would be necessary. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/head.S|6 arch/ia64/xen/Makefile |3 +- arch/ia64/xen/xen_pv_ops.c | 65

[Xen-ia64-devel] [PATCH 09/23] ia64/xen: implement arch specific part of xen grant table.

2008-04-08 Thread Isaku Yamahata
Xen implements grant tables which is for sharing pages with guest domains. This patch implements arch specific part of grant table initialization. and xen_alloc_vm_area()/xen_free_vm_area() which are helper functions for xen grant table. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> ---

[Xen-ia64-devel] [PATCH 19/23] ia64/pv_ops/xen: define the nubmer of irqs which xen needs.

2008-04-08 Thread Isaku Yamahata
define include/asm-ia64/xen/irq.h to define the number of irqs which xen needs. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/xen/irq.h | 44 1 files changed, 44 insertions(+), 0 deletions(-) create mode 100644 inclu

[Xen-ia64-devel] [PATCH 10/23] ia64/xen: add definitions necessary for xen event channel.

2008-04-08 Thread Isaku Yamahata
Xen paravirtualizes interrupt as event channel. This patch defines arch specific part of xen event channel. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/xen/events.h | 50 + 1 files changed, 50 insertions(+), 0 del

[Xen-ia64-devel] [PATCH 07/23] ia64/xen: implement the arch specific part of xencomm.

2008-04-08 Thread Isaku Yamahata
. Signed-off-by: Alex Williamson <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/Makefile |2 +- arch/ia64/xen/xencomm.c| 95 include/asm-ia64/xen/xencomm.h | 33 ++ 3 files

[Xen-ia64-devel] [PATCH 08/23] ia64/xen: xencomm conversion functions for hypercalls

2008-04-08 Thread Isaku Yamahata
off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/Makefile|2 +- arch/ia64/xen/xcom_hcall.c| 424 + include/asm-ia64/xen/xcom_hcall.h | 51 + 3 files chang

[Xen-ia64-devel] [PATCH 06/23] ia64/xen: define helper functions for xen hypercalls.

2008-04-08 Thread Isaku Yamahata
introduce helper functions for xen hypercalls which traps to hypervisor. Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/Makefile |5 + arch/ia64/xen/hypercall.S| 91 + incl

[Xen-ia64-devel] [PATCH 05/23] ia64/xen: define helper functions for xen related address conversion.

2008-04-08 Thread Isaku Yamahata
Xen needs some address conversions between pseudo physical address (guest phsyical address), guest machine address (real machine address) and dma address. Define helper functions for those address conversion. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/xen/

[Xen-ia64-devel] [PATCH 03/23] ia64/xen: introduce definitions necessary for ia64/xen hypercalls.

2008-04-08 Thread Isaku Yamahata
import include/asm-ia64/xen/interface.h to introduce introduce definitions necessary for ia64/xen hypercalls. They are basic structures to communicate with xen hypervisor. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/xen/interface.h

[Xen-ia64-devel] [PATCH 04/23] ia64/xen: define several constants for ia64/xen.

2008-04-08 Thread Isaku Yamahata
define several constants for ia64/xen. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/asm-offsets.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/arch/ia64/kernel/asm-offsets.c b/arch/ia64/kernel/asm-offsets.c

[Xen-ia64-devel] [PATCH 00/23] ia64/xen domU take 4

2008-04-08 Thread Isaku Yamahata
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. Please review and comments. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions rela

[Xen-ia64-devel] [PATCH 02/23] ia64/xen: increase IA64_MAX_RSVD_REGIONS.

2008-04-08 Thread Isaku Yamahata
Xenlinux/ia64 needs to reserve one more region passed from xen hypervisor as start info. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/meminit.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/asm-ia64/meminit.h b/include/as

[Xen-ia64-devel] [PATCH 01/23] ia64/xen: introduce synch bitops which is necessary for ia64/xen support.

2008-04-08 Thread Isaku Yamahata
define sync bitops which is necessary for ia64/xen. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/sync_bitops.h | 59 1 files changed, 59 insertions(+), 0 deletions(-) create mode 100644 include/asm-ia64/sync_bitops.h

[Xen-ia64-devel] [PATCH 10/15] ia64/pv_ops: paravirtualize entry.S

2008-04-08 Thread Isaku Yamahata
instances. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/Makefile |2 +- arch/ia64/kernel/entry.S | 107 +++- arch/ia64/kernel/paravirt.c| 19 ++ arch/ia64/kernel/paravirtentry.S

[Xen-ia64-devel] [PATCH 09/15] ia64/pv_ops: paravirtualize ivt.S

2008-04-08 Thread Isaku Yamahata
paravirtualize ivt.S which implements fault handler in hand written assembly code. They includes sensitive or performance critical privileged instructions. So they need paravirtualization. Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL

[Xen-ia64-devel] [PATCH 13/15] ia64/pv_ops: add hooks, pv_iosapic_ops, to paravirtualize iosapic.

2008-04-08 Thread Isaku Yamahata
add hooks to paravirtualize iosapic which is a real hardware resource. On virtualized environment it may be replaced something virtualized friendly. Define pv_iosapic_ops and add the hooks. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/iosapic.c

[Xen-ia64-devel] [PATCH 07/15] ia64/pv_ops: define paravirtualized instructions for native.

2008-04-08 Thread Isaku Yamahata
pv_cpu_asm_ops: define paravirtualized introduce for native execution environment. Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/native/inst.h | 170 1 files

[Xen-ia64-devel] [PATCH 12/15] ia64/pv_ops: define initialization hooks, pv_init_ops, for paravirtualized environment.

2008-04-08 Thread Isaku Yamahata
define pv_init_ops hooks which represents various initialization hooks for paravirtualized environment. and add hooks. Signed-off-by: Alex Williamson <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/paravirt.c |7 arch/ia64/ke

[Xen-ia64-devel] [PATCH 15/15] ia64/pv_ops: add to hooks, pv_time_ops, for steal time accounting.

2008-04-08 Thread Isaku Yamahata
Introduce pv_time_ops which adds hook to steal time accounting. On virtualized environment, cpus are shared by many guests and steal time is the time which is used for other guests. On virtualized environtment, streal time should be accounted. Signed-off-by: Isaku Yamahata <[EMAIL PROTEC

[Xen-ia64-devel] [PATCH 11/15] ia64/pv_ops: paravirtualize NR_IRQS

2008-04-08 Thread Isaku Yamahata
Make NR_IRQ overridable by each pv instances. Pv instance may need each own number of irqs so that NR_IRQS should be the maximum number of nr_irqs each pv instances need. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/irq.h | 10 ++- include/as

[Xen-ia64-devel] [PATCH 08/15] ia64/pv_ops: paravirtualize minstate.h.

2008-04-08 Thread Isaku Yamahata
paravirtualize minstate.h which are hand written assembly code. They include sensitive or performance critical privileged instructions. So that they are appropriate for paravirtualization. Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL

[Xen-ia64-devel] [PATCH 14/15] ia64/pv_ops: add hooks, pv_irq_ops, to paravirtualized irq related operations.

2008-04-08 Thread Isaku Yamahata
related operations. Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/irq_ia64.c | 18 +++ arch/ia64/kernel/paravirt.c | 15 + include/asm-ia64/hw_irq.h | 23 +--- incl

[Xen-ia64-devel] [PATCH 05/15] ia64/pv_ops: introduce pv_cpu_ops to paravirtualize privileged instructions.

2008-04-08 Thread Isaku Yamahata
introduce pv_cpu_ops to paravirtualize privleged instructions which are defined by ia64 intrinsics. make them indirect C function calls by introducing function tables, pv_cpu_ops. Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]&g

[Xen-ia64-devel] [PATCH 06/15] ia64/pv_ops: preparation for paravirtulization of hand written assembly code.

2008-04-08 Thread Isaku Yamahata
Preparation for paravirtualization of hand written assembly code. They are paravirtualized by single source code and compiled multi times. To tell those files for target (including native), add one defines. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/Makefile

[Xen-ia64-devel] [PATCH 01/15] ia64: preparation: remove extern in irq_ia64.c

2008-04-08 Thread Isaku Yamahata
remove extern declaration of handle_IPI() in irq_ia64.c. Instead, declare it in asm-ia64/smp.h. Later handle_IPI() will be referenced from another file. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/irq_ia64.c |1 - include/asm-ia64/smp.h |2 ++ 2

[Xen-ia64-devel] [PATCH 00/15] RFC: ia64/pv_ops take 4

2008-04-08 Thread Isaku Yamahata
Hi. This patchset implements ia64/pv_ops support which is the framework for virtualization support. Please review and comments. On x86 various ways to support virtualization were proposed, and eventually pv_ops won. So on ia64 the pv_ops strategy is appropriate too. Later I'll post the patchset wh

[Xen-ia64-devel] [PATCH 04/15] ia64/pv_ops: introduce pv_info which describes some random info.

2008-04-08 Thread Isaku Yamahata
introduce pv_info which describes some randome info about underlying execution environment. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/Makefile |2 + arch/ia64/kernel/paravirt.c | 41 include/asm-ia64/paravirt.h

[Xen-ia64-devel] [PATCH 03/15] ia64/pv_ops: preparation: introduce ia64_get_psr_i() to make kernel paravirtualization friendly.

2008-04-08 Thread Isaku Yamahata
__local_irq_save() and local_save_flags() are used to mask interruptions. They read all psr bits that requres whole bit emulation. On the other hand, reading only psr.i, the single bit, can be virtualized cheaply. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/as

[Xen-ia64-devel] [PATCH 02/15] ia64/pv_ops: preparation: introduce ia64_set_rr0_to_rr4() to make kernel paravirtualization friendly.

2008-04-08 Thread Isaku Yamahata
make kernel paravirtualization friendly by introducing ia64_set_rr0_to_rr4(). ia64/Xen will replace setting rr[0-4] with single hypercall later. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/intrinsics.h | 10 ++ include/asm-ia64/mmu_context.h |6 +--

[Xen-ia64-devel] pv_ops: ANN: the new branch, xen-ia64-domu-minimal-2008apr08

2008-04-08 Thread Isaku Yamahata
The pv_ops development branch is switch to xen-ia64-domu-minimal-2008apr08. Please make sure your working repository is uptodate. The patch set is rebased to v2.6.25-rc8 + some change sets and heavily reorganized for review. This is done for upstream post to linux-ia64. I'm planning to post them to

Re: [Xen-ia64-devel] IMPLEMENT generic getreg/setreg pv_cpu_ops

2008-04-08 Thread Isaku Yamahata
Applied with slight fix. Thanks, On Tue, Apr 08, 2008 at 01:09:44PM +0800, Dong, Eddie wrote: > > > > Use generic getreg/setreg pv_cpu_ops instead of > specific ones that may vary per hypervisor. > > Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]> > diff --git a/arch/ia64/ker

[Xen-ia64-devel] Re: pv_ops progress & ask for suggestion

2008-04-07 Thread Isaku Yamahata
On Tue, Apr 08, 2008 at 10:31:20AM +0800, Dong, Eddie wrote: > >>Now we have 2 choices: > >>Alt1: Dual compile entry.S like IVT.s (dual compile all ASM > >> files if it needs virtualization) > >>pros: Same policy with iVT, use same MACRO to > >> replacement. > >>con

[Xen-ia64-devel] Re: pv_ops progress & ask for suggestion

2008-04-07 Thread Isaku Yamahata
On Mon, Apr 07, 2008 at 05:47:38PM +0800, Dong, Eddie wrote: > Tony & all: > Recently we have completed the IVT.s pv_ops by using dual > compile, and also many cleanups to simplify the changes to upstream > code. All the C code touching privilege instruction is replaced with > indirect functi

Re: [Xen-ia64-devel] cpu ops

2008-04-07 Thread Isaku Yamahata
On Mon, Apr 07, 2008 at 05:25:54PM +0800, Dong, Eddie wrote: > In current approach, we have cpu ops like eoi/set_tpr/get_tpr,/set_itm > /set_kr0/set_kr2.../set_kr7 etc. > I think there is another simple alternative is to simply export > setreg/getreg > for cpu ops. > > The benefit of this could b

Re: [Xen-ia64-devel] pv_ops: imntrinsic pv_ops

2008-04-07 Thread Isaku Yamahata
On Mon, Apr 07, 2008 at 05:06:36PM +0800, Dong, Eddie wrote: > It looks like you still prefer to use intermediate symbol > paravirt_/ia64_native_xxx to wrap ia64_xxx. In some sense, when > I saw many similar and bulk code in the patch, I feel "dirty". I prefer > we don't touch > those gcc_int

Re: [Xen-ia64-devel] [Patch] linux: set memory attribute in inlineasm

2008-04-06 Thread Isaku Yamahata
On Sat, Apr 05, 2008 at 04:33:12PM +0200, [EMAIL PROTECTED] wrote: > Selon Isaku Yamahata <[EMAIL PROTECTED]>: > > > diff -r bb2f8ba47833 include/asm-ia64/xen/privop.h > > --- a/include/asm-ia64/xen/privop.h Tue Mar 25 12:37:54 2008 -0600 > > +++ b/include/asm-ia64

Re: [Xen-ia64-devel] [Patch] linux: set memory attribute in inlineasm

2008-04-04 Thread Isaku Yamahata
diff -r bb2f8ba47833 include/asm-ia64/xen/privop.h --- a/include/asm-ia64/xen/privop.h Tue Mar 25 12:37:54 2008 -0600 +++ b/include/asm-ia64/xen/privop.h Sat Apr 05 07:27:30 2008 +0900 @@ -67,7 +67,7 @@ #endif #ifndef __ASSEMBLY__ -#defineXEN_HYPER_SSM_I asm("break %0" :

Re: [Xen-ia64-devel] pv_ops: intrinsic ops2

2008-04-02 Thread Isaku Yamahata
On Wed, Apr 02, 2008 at 05:36:35PM +0800, Dong, Eddie wrote: > The question is we actually don't have xen_itci in the whole > patch, should > we remove the indirect reference of "new > ia64_itci-->ia64_native_itci->old_ia64_itci". > It is just identical and the change is redunadnt at le

Re: [Xen-ia64-devel] pv_ops: imntrinsic pv_ops

2008-04-02 Thread Isaku Yamahata
Hi Eddie. I commited some clean ups based on your patch. Could you please review it? On Wed, Apr 02, 2008 at 05:10:13PM +0800, Dong, Eddie wrote: > Isaku Yamahata wrote: > > On Wed, Apr 02, 2008 at 01:51:28PM +0800, Dong, Eddie wrote: > >> Current definition of intrinsic AP

Re: [Xen-ia64-devel] pv_ops: imntrinsic pv_ops

2008-04-02 Thread Isaku Yamahata
t.c b/arch/ia64/kernel/paravirt.c > index 4b01c44..6ce4f60 100644 > --- a/arch/ia64/kernel/paravirt.c > +++ b/arch/ia64/kernel/paravirt.c > @@ -3,6 +3,7 @@ > * > * Copyright (c) 2008 Isaku Yamahata > *VA Linux Systems Japan K.K. > + * Yaozu (Eddie) D

[Xen-ia64-devel] [PATCH] linux: ia64 counter part of 501:5486a234923d

2008-04-01 Thread Isaku Yamahata
. The same discussin applies to ia64. This patch is ia64 counter part of it. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> diff --git a/arch/ia64/xen/xen_dma.c b/arch/ia64/xen/xen_dma.c --- a/arch/ia64/xen/xen_dma.c +++ b/arch/ia64/xen/xen_dma.c @@ -37,6 +37,41

Re: [Xen-ia64-devel] [Patch] pv_ops: cleanup xen_pv_ops.c

2008-03-31 Thread Isaku Yamahata
> --- a/include/asm-ia64/xen/hypervisor.h > +++ b/include/asm-ia64/xen/hypervisor.h > @@ -56,6 +56,11 @@ extern const int running_on_xen; > extern struct shared_info *HYPERVISOR_shared_info; > extern struct start_info *xen_start_info; > > +extern char xen_switch_to; > +extern char xen_leave_sys

Re: [Xen-ia64-devel] [Patch] pv_ops: cleanup irq_xen.c

2008-03-31 Thread Isaku Yamahata
No patch. But I fixed it myself. thanks, On Mon, Mar 31, 2008 at 11:41:24PM +0900, Akio Takebe wrote: > Hi, > > This patch is for cleanup of arch/ia64/xen/irq_xen.c > > The below is OK/NG list of checkpatch.pl under arch/ia64/xen. > > [NG] > arch/ia64/xen/machvec.c > arch/ia64/xen/paravirt_xen

[Xen-ia64-devel] Re: [PATCH 10/12] xen: replace callers of alloc_vm_area()/free_vm_area() with xen_ prefixed one.

2008-03-31 Thread Isaku Yamahata
17 00:00:00 2001 From: Isaku Yamahata <[EMAIL PROTECTED]> Date: Mon, 31 Mar 2008 19:03:43 -0700 Subject: [PATCH 010/113] xen: replace callers of alloc_vm_area()/free_vm_area() with xen_ prefixed one. Don't use alloc_vm_area()/free_vm_area() directly, instead define xen_alloc_vm_area(

[Xen-ia64-devel] Re: [PATCH 12/12] xen: import arch generic part of xencomm.

2008-03-31 Thread Isaku Yamahata
On Fri, Mar 28, 2008 at 01:09:48PM -0700, Jeremy Fitzhardinge wrote: > Isaku Yamahata wrote: > >On xen/ia64 and xen/powerpc hypercall arguments are passed by pseudo > >physical address (guest physical address) so that it's necessary to > >convert from virtual address in

[Xen-ia64-devel] Re: [PATCH 08/12] xen: add resend_irq_on_evtchn() definition into events.c.

2008-03-31 Thread Isaku Yamahata
On Fri, Mar 28, 2008 at 01:29:54PM -0700, Jeremy Fitzhardinge wrote: > Isaku Yamahata wrote: > >Define resend_irq_on_evtchn() which ia64/xen uses. > >Although it isn't used by current x86/xen code, it's arch generic > >so that put it into common code. > >make

[Xen-ia64-devel] Re: [PATCH 07/12] Xen: Make events.c portable for ia64/xen support.

2008-03-31 Thread Isaku Yamahata
On Fri, Mar 28, 2008 at 01:27:58PM -0700, Jeremy Fitzhardinge wrote: > Isaku Yamahata wrote: > >+/* macro to avoid header inclusion dependncy hell */ > >+#define xen_irqs_disabled(regs) (!((regs)->flags & X86_EFLAGS_IF)) > > > > This seems pretty gener

Re: [Xen-ia64-devel] pv_ops: file name

2008-03-31 Thread Isaku Yamahata
I agree with you. For the minimal domU, binary patch isn't needed anymore now so that I removed paravirt_(core|entry).(c|h) completely. After merging up minimal domU stuff to the upstream, let's readd those files with consistent file names (probably into paravirt.c). I also found that the file nam

[Xen-ia64-devel] [PATCH 11/12] xen: make grant table arch portable.

2008-03-28 Thread Isaku Yamahata
on is necessary. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/x86/xen/Makefile |2 +- arch/x86/xen/grant-table.c | 91 drivers/xen/grant-table.c | 35 +--- include/xen/grant_table.h |6 +++ 4 files c

[Xen-ia64-devel] [PATCH 10/12] xen: replace callers of alloc_vm_area()/free_vm_area() with xen_ prefixed one.

2008-03-28 Thread Isaku Yamahata
don't allocate vm area contradictory to those names. Now vanilla Linux already has its definitions so that it's impossible to have IA64 definitions of allocate_vm_area()/free_vm_area(). Instead introduce xen_allocate_vm_area()/xen_free_vm_area() and use them. Signed-off-by: Isaku Y

[Xen-ia64-devel] [PATCH 09/12] xen: make include/xen/page.h portable moving those definitions under asm dir.

2008-03-28 Thread Isaku Yamahata
The definitions in include/asm/xen/page.h are arch specific. ia64/xen wants to define its own version. So move them to arch specific directory and keep include/xen/page.h in order not to break compilation. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/{ => asm-x86}/x

[Xen-ia64-devel] [PATCH 08/12] xen: add resend_irq_on_evtchn() definition into events.c.

2008-03-28 Thread Isaku Yamahata
Define resend_irq_on_evtchn() which ia64/xen uses. Although it isn't used by current x86/xen code, it's arch generic so that put it into common code. make ipi_to_irq[] visible removing static because ia64/xen needs to access the variable from ia64 specific code Signed-off-by: Isak

[Xen-ia64-devel] [PATCH 12/12] xen: import arch generic part of xencomm.

2008-03-28 Thread Isaku Yamahata
On xen/ia64 and xen/powerpc hypercall arguments are passed by pseudo physical address (guest physical address) so that it's necessary to convert from virtual address into pseudo physical address. The frame work is called xencomm. Import arch generic part of xencomm. Signed-off-by: Isaku Yam

[Xen-ia64-devel] [PATCH 07/12] Xen: Make events.c portable for ia64/xen support.

2008-03-28 Thread Isaku Yamahata
Remove x86 dependency in drivers/xen/events.c for ia64/xen support. Introduce xen_irqs_disabled() to hide regs->flags Introduce xen_do_IRQ() to hide regs->orig_ax. Add one rmb() because on ia64 xchg() isn't barrier. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- dri

[Xen-ia64-devel] [PATCH 06/12] xen: Move events.c to drivers/xen for IA64/Xen support.

2008-03-28 Thread Isaku Yamahata
move arch/x86/xen/events.c undedr drivers/xen to share codes with x86 and ia64. And minor adjustment to compile. ia64/xen also uses events.c Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/x86/xen/Makefile

[Xen-ia64-devel] [PATCH 05/12] xen: move features.c from arch/x86/xen/features.c to drivers/xen.

2008-03-28 Thread Isaku Yamahata
ia64/xen also uses it too. Move it into common place so that ia64/xen can share the code. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/x86/xen/Makefile|2 +- drivers/xen/Makefile |2 +- {arch/x86 => drivers}/xen/features.c |0

[Xen-ia64-devel] [PATCH 03/12] xen: add missing definitions for xen grant table which ia64/xen needs.

2008-03-28 Thread Isaku Yamahata
hypercall. The xen guest handle represents such arguments. Define necessary handles and helper functions. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- drivers/xen/grant-table.c |2 +- include/asm-x86/xen/interface.h | 24 include/xen/int

[Xen-ia64-devel] [PATCH 02/12] xen: add missing VIRQ_ARCH_[0-7] definitions which ia64/xen needs.

2008-03-28 Thread Isaku Yamahata
Add xen VIRQ numbers defined for arch specific use. ia64/xen domU uses VIRQ_ARCH_0 for virtual itc timer. Although all those constants aren't used yet by ia64 at this moment, add all arch specific VIRQ numbers. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/xen/inte

[Xen-ia64-devel] [PATCH 01/12] xen: add missing __HYPERVISOR_arch_[0-7] definisions which ia64 needs.

2008-03-28 Thread Isaku Yamahata
Add xen hypercall numbers defined for arch specific use. ia64/xen domU uses __HYPERVISOR_arch_1 to manipulate paravirtualized IOSAPIC. Although all those constants aren't used yet by IA64 at this moment, add all arch specific hypercall numbers. Signed-off-by: Isaku Yamahata <[EMAIL P

[Xen-ia64-devel] [PATCH 04/12] xen: add missing definitions in include/xen/interface/vcpu.h which ia64/xen needs

2008-03-28 Thread Isaku Yamahata
represents such arguments. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/xen/interface/vcpu.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/xen/interface/vcpu.h b/include/xen/interface/vcpu.h index b05d8a6..87e6f8a 100644 --- a/include/xen/int

[Xen-ia64-devel] [PATCH 00/12] Xen arch portability patches (take 4)

2008-03-28 Thread Isaku Yamahata
Hi Jeremy. According to your suggestion, I recreated patches for Ingo's x86.git tree. And this patch series includes Eddie's modification. Please review and forward them. (or push back to respin.) Recently the xen-ia64 community started to make efforts to merge xen/ia64 Linux to upstream. The fir

Re: [Xen-ia64-devel] pv_ops: entry.S simplification

2008-03-28 Thread Isaku Yamahata
On Fri, Mar 28, 2008 at 01:43:23PM +0800, Dong, Eddie wrote: > > Eventually those running_on_xen checks should be removed somehow. > > Are you just thinking that the multi compile with binary patching > > should be introduced after the first merge? > > Or do you have any idea other than the multi

Re: [Xen-ia64-devel] pv_ops: entry.S simplification

2008-03-27 Thread Isaku Yamahata
other than the multi compile with binary patching? Anyway it's linux-ia64 people that finally determines what way is better. To be honest I'm not sure which way is more acceptable. So let's discuss with linux-ia64. On Thu, Mar 27, 2008 at 05:04:21PM +0800, Dong, Eddie wrote: &

Re: [Xen-ia64-devel] pv_ops: move binary patching to later after CPU initialization

2008-03-27 Thread Isaku Yamahata
I guess you just followed x86 way, but delaying until check_bug() is too late for IA64 case because of at least ia64_get_cpuid(). At this moment I'm not sure how late binary patching can be delayed, though. Presumably it is necessary to revise boot protocol. Renaming xen_paravirt_patch() to xen_pa

Re: [Xen-ia64-devel] include/asm-ia64/xen/hypercall.h

2008-03-27 Thread Isaku Yamahata
Hi Eddie. Now I've catched up your patches/comments. I applied most of your patches and published it. Please check them. I didn't apply entry.S simplification patch so that it caused modifications to following patches. Especially I split up the minstate.h simiplification patch into some patches.

Re: [Xen-ia64-devel] Where to compile additional IVT.S

2008-03-27 Thread Isaku Yamahata
/Makefile can be simpler than before. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/Makefile | 22 +- arch/ia64/xen/Makefile| 13 - arch/ia64/xen/xenivt.S|1 - 3 files changed, 17 insertions(+), 19 deletions(-) diff -

Re: [Xen-ia64-devel] pv_ops: entry.S simplification

2008-03-26 Thread Isaku Yamahata
Hi Eddie. I looked into entry.S closely. Unfortunately I found that ia64_leave_syscall() and ia64_leave_kernel() includes invirtualizable instructions, cover instruction with psr.ic = 0 so that those paravirtualization is inevitable. (ia64_switch_to() doesn't need paravirtualization though.) Doe

Re: [Xen-ia64-devel] pv_ops: ministate.h typo fix

2008-03-26 Thread Isaku Yamahata
It is mentioned as move some instructions to make bundle compact. I understand. Seems reasonable. On Thu, Mar 27, 2008 at 02:40:52PM +0900, Isaku Yamahata wrote: > On Thu, Mar 27, 2008 at 12:20:37PM +0800, Dong, Eddie wrote: > > > > - shuffle instructions of XEN_BSW_1 and

Re: [Xen-ia64-devel] pv_ops: ministate.h typo fix

2008-03-26 Thread Isaku Yamahata
On Thu, Mar 27, 2008 at 12:20:37PM +0800, Dong, Eddie wrote: > > - shuffle instructions of XEN_BSW_1 and xen DO_XEN_MIN(). > > Is this for producing better bundles? Please ellaborate on this. > > If so, I'll take as another patch. > > ??? Which code are u talking for? The following hunks. Th

Re: [Xen-ia64-devel] pv_ops: ministate.h typo fix

2008-03-26 Thread Isaku Yamahata
Hi Eddie. The attached patches does many things. Could you explain? - convert cover argument in SAVE_MIN_WITH_COVER(_R19) into COVER. This seems correct. I'll take this part. - convert __COVER argument into COVER. Using conflicting argument is a bad practice. - shuffle instructions of XEN_BS

Re: [Xen-ia64-devel] Which brash do you use?

2008-03-26 Thread Isaku Yamahata
Hi Akio. http://wiki.xensource.com/xenwiki/XenIA64/UpstreamMerge would be helpful. The branch xen-ia64-domu-minimal-2008mar06 should be used. The config xen_domu_wip_defconfig should be used. It should work. You should be aware of hvc_xen, xen-blockfront and xen-netfront. thanks, On Wed, Mar 26

Re: [Xen-ia64-devel] [Q] How to download pv_ops git tree

2008-03-26 Thread Isaku Yamahata
Hi Akio. The issues should be resolved now. Could you check it? http://wiki.xensource.com/xenwiki/XenIA64/UpstreamMerge is helpful for those who want to give pv_ops a try. Notes for others. Please use gitorious rep unless you have problems accessing it. git://gitorious.org/linux-2-6-xen-ia64-pv-op

[Xen-ia64-devel] Re: simplify hw_irq.h

2008-03-18 Thread Isaku Yamahata
Hi Eddie. Thank you for the patches. ia64_vector is for iosapic redirect vector which is 8bit width, isn't it? So just unconditionally replacing u8 with u16 seems unreasonable. How about the following? #ifndef CONFIG_PARAVIRT typedef u8 ia64_vector; #else typedef u16 ia64_vector; #endif On Tue,

[Xen-ia64-devel] Re: [PATCH][PVOPS] No MCA support

2008-03-17 Thread Isaku Yamahata
On Mon, Mar 17, 2008 at 11:45:37PM -0600, Alex Williamson wrote: >But sal_emulator() only allows sal_get/clear_state_info from dom0, > otherwise we return without dereferencing the buffer. So I think it's > safe to drop this for domU-only support. Thanks, Yes, I missed that. Applied. thanks,

[Xen-ia64-devel] Re: [PATCH][PVOPS] No MCA support

2008-03-17 Thread Isaku Yamahata
Hi Alex. Thank you very much for those unexpected patches. I'm very glad to see those and applied your other patches. Yes, MCA is for dom0. however "cat /proc/sal/*/data" triggers those code paths. So presumably we have to replace some functions with nop operations for domU. Or domU issues a sal

Re: [Xen-ia64-devel] pv_ops: kernel/inst_native.h

2008-03-17 Thread Isaku Yamahata
On Mon, Mar 17, 2008 at 11:39:45AM +0800, Dong, Eddie wrote: > > Isaku/Alex: > There is a new file called kernel/inst_native.h to define those > pv MACROs for native. I would suggest we do following changes: > 1: Move it to public head files such as include/asm-ia64 at > least since so

Re: [Xen-ia64-devel] pv_ops polish: remove fsys.S changes

2008-03-17 Thread Isaku Yamahata
+0800, Dong, Eddie wrote: > Isaku Yamahata wrote: > > Hi Eddie. > > Thank you for your patch. > > the change is already isolated as the commit of > > d81f732b0d57371bfc220b1a1027ab18ea9a5265. > > So what we need to do is just dropping the change set. >

Re: [Xen-ia64-devel] pv_ops polish: remove fsys.S changes

2008-03-14 Thread Isaku Yamahata
Hi Eddie. Thank you for your patch. the change is already isolated as the commit of d81f732b0d57371bfc220b1a1027ab18ea9a5265. So what we need to do is just dropping the change set. The same would apply to the gate page paravirtualization change set. I'll take care of it. Do you have any other chan

[Xen-ia64-devel] Re: pv_ops polish: config option & head file

2008-03-14 Thread Isaku Yamahata
On Fri, Mar 14, 2008 at 03:39:15PM +0800, Dong, Eddie wrote: > Isaku: > Targeting the patchset or git tree > http://people.valinux.co.jp/~yamahata/xen-ia64/linux-2.6-xen-ia64.git/, > I got some questions: Thank you for comments. > 1:I saw some config options such as: > CONFIG_PARAVIRT

[Xen-ia64-devel] [PATCH 39/50] ia64/xen: introduce xen paravirtualized intrinsic operations for privileged instruction.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/hypercall.S | 124 ++ include/asm-ia64/xen/privop.h | 512 + 2 files changed, 636 insertions(+), 0 deletions(-) create mode 100644 arch/ia64/xen/hypercall.S diff -

[Xen-ia64-devel] [PATCH 24/50] ia64/pv_ops: paravirtualize arch/ia64/kernel/ivt.S.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/ivt.S | 153 --- 1 files changed, 78 insertions(+), 75 deletions(-) diff --git a/arch/ia64/kernel/ivt.S b/arch/ia64/kernel/ivt.S index 34f44d8..d1cebe5 100644 --- a/arc

[Xen-ia64-devel] [PATCH 47/50] ia64/pv_ops/xen: define xen pv_info.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/Makefile |2 + arch/ia64/xen/xen_pv_ops.c | 69 arch/ia64/xen/xensetup.S | 10 ++ 3 files changed, 81 insertions(+), 0 deletions(-) create mode 100644 arch/ia

[Xen-ia64-devel] [PATCH 37/50] ia64/pv_ops/xen: multi compile switch_leave.S and ivt.S for xen.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/Makefile | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/ia64/kernel/Makefile b/arch/ia64/kernel/Makefile index 7849bc3..a80dd3f 100644 --- a/arch/ia64/kernel/Makefile +++

[Xen-ia64-devel] [PATCH 36/50] ia64/pv_ops/xen: paravirtualize DO_SAVE_MIN.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/xenminstate.h | 137 +++ 1 files changed, 137 insertions(+), 0 deletions(-) create mode 100644 arch/ia64/xen/xenminstate.h diff --git a/arch/ia64/xen/xenminstate.h b/arch/ia

[Xen-ia64-devel] [PATCH 32/50] ia64/xen: define xen assembler constants which will be used later.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/asm-offsets.c | 25 ++ include/asm-ia64/xen/privop.h | 73 2 files changed, 98 insertions(+), 0 deletions(-) create mode 100644 include/asm-ia64/xen/privop.h

[Xen-ia64-devel] [PATCH 40/50] ia64/pv_ops/xen: xen privileged instruction intrinsics with binary patch.

2008-03-05 Thread Isaku Yamahata
With binary patching, make intrinsics paravirtualization hypervisor neutral. So far xen intrinsics doesn't allow another hypervisor. Binary patch marked privileged operations which needs paravirtualization if running on xen at early boot time. Signed-off-by: Isaku Yamahata <[EMAIL P

[Xen-ia64-devel] [PATCH 28/50] ia64/pv_ops: introduce pv_irq_ops and its hooks.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/irq_ia64.c | 21 ++ arch/ia64/kernel/paravirt.c | 22 +++ include/asm-ia64/hw_irq.h | 20 ++--- include/asm-ia64/paravirt.h | 63 +++ 4

[Xen-ia64-devel] [PATCH 31/50] ia64/xen: import xen hypercall header file for domU

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/xen/interface.h | 585 ++ 1 files changed, 585 insertions(+), 0 deletions(-) create mode 100644 include/asm-ia64/xen/interface.h diff --git a/include/asm-ia64/xen/interface.h b/i

[Xen-ia64-devel] [PATCH 25/50] ia64/pv_ops: introduce pv_info

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/Makefile |2 + arch/ia64/kernel/paravirt.c | 34 include/asm-ia64/paravirt.h | 61 +++ 3 files changed, 97 insertions(+), 0 deletions(-) creat

[Xen-ia64-devel] [PATCH 46/50] ia64/xen: define xen related address conversion helper functions for domU

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/page.h |8 include/asm-ia64/xen/page.h | 41 + 2 files changed, 49 insertions(+), 0 deletions(-) create mode 100644 include/asm-ia64/xen/page.h diff --git a/i

[Xen-ia64-devel] [PATCH 48/50] ia64/pv_ops/xen: define xen pv_init_ops.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/xen_pv_ops.c | 194 1 files changed, 194 insertions(+), 0 deletions(-) diff --git a/arch/ia64/xen/xen_pv_ops.c b/arch/ia64/xen/xen_pv_ops.c index 18aa2f6..a2a7493 100644 ---

[Xen-ia64-devel] [PATCH 50/50] ia64/pv_ops/xen: define xen pv_irq_ops.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/Makefile |2 +- arch/ia64/xen/hypercall.S | 10 + arch/ia64/xen/irq_xen.c| 435 arch/ia64/xen/irq_xen.h|8 + arch/ia64/xen/xen_pv_ops.c |3 + inclu

[Xen-ia64-devel] [PATCH 41/50] ia64/xen: introduce xen hypercall routines necessary for domU.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/hypercall.S|7 + include/asm-ia64/xen/hypercall.h | 426 ++ 2 files changed, 433 insertions(+), 0 deletions(-) create mode 100644 include/asm-ia64/xen/hypercall.h diff -

[Xen-ia64-devel] [PATCH 43/50] ia64/xen: define xen_alloc_vm_area()/xen_free_vm_area() for ia64 arch.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/util.c | 101 ++ 1 files changed, 101 insertions(+), 0 deletions(-) create mode 100644 arch/ia64/xen/util.c diff --git a/arch/ia64/xen/util.c b/arch/ia64/xen/util.c new fil

[Xen-ia64-devel] [PATCH 44/50] ia64/xen: basic helper routines for xen/ia64.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/hypervisor.c| 235 + include/asm-ia64/xen/hypervisor.h | 194 ++ 2 files changed, 429 insertions(+), 0 deletions(-) create mode 100644 arch/ia

[Xen-ia64-devel] [PATCH 35/50] ia64/pv_ops/xen: paravirtualized instructions for hand written assembly code.

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/inst_xen.h | 503 ++ 1 files changed, 503 insertions(+), 0 deletions(-) create mode 100644 arch/ia64/xen/inst_xen.h diff --git a/arch/ia64/xen/inst_xen.h b/arch/ia64/xen/inst

[Xen-ia64-devel] [PATCH 23/50] ia64/pv_ops: paravirtualize arch/ia64/kernel/switch_leave.S

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/switch_leave.S | 80 +- 1 files changed, 44 insertions(+), 36 deletions(-) diff --git a/arch/ia64/kernel/switch_leave.S b/arch/ia64/kernel/switch_leave.S index 9918160..d6d0f08

[Xen-ia64-devel] [PATCH 42/50] ia64/xen: ia64 domU part of xencomm.

2008-03-05 Thread Isaku Yamahata
import ia64 specific part of xencomm which converts hypercall argument in virtual address into pseudo physical address (guest physical address). Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/xcom_asm.S | 27 +++ arch/ia64/xen/xcom_hcall.c

<    5   6   7   8   9   10   11   12   13   14   >