Re: [Xen-ia64-devel] [Patch][RFC] Avoid to domain_put_page pte of INVALID_M2P_ENTRY

2008-04-24 Thread Isaku Yamahata
On Wed, Apr 23, 2008 at 01:54:29PM +0900, Akio Takebe wrote: Content-Description: Mail message body Hi, Hi Akio. This log show that domain_put_page is called 2 times for the same mfn. But the mfn has different mpaddrs. I guess the follwing case is occured: 1. at 1st time, domain_put_page

Re: [Xen-ia64-devel] [RFC] necessary of `handling regNaT fault' message

2008-04-24 Thread Isaku Yamahata
On Tue, Apr 22, 2008 at 03:43:18PM +0900, Masaki Kanno wrote: I'm not sure that the check is required, though, I think that the message is noisy. So, I make a proposal that replaces the printk() by gdprintk(XENLOG_DEBUG, ...). What do you think? Sounds reasonable. But looking around

Re: [Xen-ia64-devel] ia64: Fix build problem when VHPT_ENABLED isn't defined

2008-04-24 Thread Isaku Yamahata
Hi Simon-san. VHPT_ENABLED is directly defined in xen/include/asm-ia64/vhpt.h as #define VHPT_ENABLED 1 Thus your patch causes compilation error like the followings. I guess you need this options for debugging kexec/kdump and that this option is efficient for vhpt related debugging. So it's

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

2008-04-24 Thread Isaku Yamahata
On Wed, Apr 23, 2008 at 04:03:58PM +0200, Jes Sorensen wrote: Isaku Yamahata wrote: I'd rather have PARAVIRT_NR_IRQ set from Kconfig if possible given that all of these are constants anyway. If we cannot do that, then it would be better to do the #if FOO_NR_IRQ PARAVIRT_NR_IRQ in the various

[Xen-ia64-devel] Re: [patch 01/12] ia64: kexec: Define macros for EFI RID

2008-04-24 Thread Isaku Yamahata
On Thu, Mar 20, 2008 at 05:52:49PM +1100, Simon Horman wrote: Index: xen-unstable.hg/xen/include/asm-ia64/linux-xen/linux/efi.h === --- xen-unstable.hg.orig/xen/include/asm-ia64/linux-xen/linux/efi.h 2008-04-21

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

2008-04-22 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 |9 + include/asm-ia64/mmu_context.h |6 +- 2

[Xen-ia64-devel] [PATCH 1/3] [RESEND] ia64: preparation: remove extern in irq_ia64.c

2008-04-22 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 files

[Xen-ia64-devel] [PATCH 0/3] ia64/pv_ops preparation

2008-04-22 Thread Isaku Yamahata
Hi. This patchset is preparation patches for ia64/pv_ops support. They are almost trivial and mainly make kernel paravirtualization friendly. thanks, Diffstat: arch/ia64/kernel/irq_ia64.c|1 - include/asm-ia64/intrinsics.h | 11 +++ include/asm-ia64/mmu_context.h |6

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

2008-04-22 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/asm-ia64/intrinsics.h

[Xen-ia64-devel] [PATCH 0/3] xen: more portability patches

2008-04-22 Thread Isaku Yamahata
Hi Jeremy. Here are the 3 patches for ia64/xen support. The first one is just to move manage.c under drivers/xen. This is trivial. The second and third ones are for compilation fix on ia64. You may want to postpone those 2 patches to make your merge task easy as you said before. thanks,

[Xen-ia64-devel] [PATCH 1/3] xen: Move manage.c to drivers/xen for ia64/xen support.

2008-04-22 Thread Isaku Yamahata
move arch/x86/xen/manage.c under drivers/xen/to share codes with x86 and ia64. ia64/xen also uses manage.c Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- arch/x86/xen/Makefile |2 +- drivers/xen/Makefile |2 +- {arch/x86 = drivers}/xen/manage.c |0 3

[Xen-ia64-devel] [PATCH 2/3] xen: add missing definitions in include/xen/interface/memory.h which ia64/xen needs

2008-04-22 Thread Isaku Yamahata
represents such arguments. Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- include/xen/interface/memory.h | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h index da76846..af36ead 100644 --- a/include/xen

[Xen-ia64-devel] [PATCH 3/3] xen: compilation fix to balloon driver for ia64 support.

2008-04-22 Thread Isaku Yamahata
'alloc_empty_pages_and_pagevec': linux-2.6-x86/drivers/xen/balloon.c:522: error: incompatible types in assignment make[2]: *** [drivers/xen/balloon.o] Error 1 Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- drivers/xen/balloon.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff

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

2008-04-22 Thread Isaku Yamahata
The pv_ops development branch is switched to xen-ia64-domu-minimal-2008apr21 which is based on linux 2.6.25 + ia64 pull + some. Please make sure your working repository is uptodate. If you have already patches for the old branch, you can send ones for the old branch. But it would be applyed to

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

2008-04-22 Thread Isaku Yamahata
On Tue, Apr 22, 2008 at 05:16:41AM -0400, Jes Sorensen wrote: Isaku == Isaku Yamahata [EMAIL PROTECTED] writes: Isaku introduce pv_info which describes some randome info about Isaku underlying execution environment. Hi Isaku, Hi. I'm very glad to get reply. I am missing some

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

2008-04-22 Thread Isaku Yamahata
On Tue, Apr 22, 2008 at 05:08:22AM -0400, Jes Sorensen wrote: 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. This really looks dodgy. +#ifdef CONFIG_PARAVIRT

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

2008-04-22 Thread Isaku Yamahata
On Tue, Apr 22, 2008 at 12:37:06PM +0200, Jes Sorensen wrote: - pv_ops covers some performance critical part (e.g. ia64 intrinsics) so that in the future they should be optimized with binary patch like x86. We had the experimental patch to do that, but they are dropped for the merge.

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

2008-04-22 Thread Isaku Yamahata
On Tue, Apr 22, 2008 at 02:05:59PM +0200, Jes Sorensen wrote: Isaku Yamahata wrote: I'm willing to introduce something like PARAVIRT_NR_IRQS, but I don't see how PARAVIRT_NR_IRQS solves the issues. What I want here is to define by cpp #define PARAVIRT_NR_IRQS

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

2008-04-09 Thread Isaku Yamahata
On Wed, Apr 09, 2008 at 12:09:51AM -0500, Jeremy Fitzhardinge wrote: +#define sync_cmpxchgia64_cmpxchg4_acq Please always use arguments with function-like macros, to prevent accidental namespace clashes. Will fix. +#define sync_cmpxchg_subword sync_cmpxchg Ditto. It

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

[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

[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 +- 2

[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/asm-ia64/intrinsics.h

[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 | 62

[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

[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 files

[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 |9

[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] --- arch/ia64

[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 PROTECTED

[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/asm-ia64

[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 PROTECTED

[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/kernel/setup.c| 10

[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 changed, 170

[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 | 45

[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 | 60

[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 diff --git

[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

[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 | 320

[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 + include/asm-ia64/xen

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

2008-04-08 Thread Isaku Yamahata
-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 changed, 476 insertions(+), 1

[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 changed, 129

[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 deletions

[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] --- arch

[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 files changed, 133

[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 deletions

[Xen-ia64-devel] [PATCH 18/23] ia64/pv_ops/xen: implement xen pv_iosapic_ops.

2008-04-08 Thread Isaku Yamahata
implement xen pv_iosapic_ops for xen paravirtualized iosapic. Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- arch/ia64/xen/xen_pv_ops.c | 52 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/arch/ia64/xen/xen_pv_ops.c b/arch/ia64

[Xen-ia64-devel] [PATCH 12/23] ia64/pv_ops/xen: define xen pv_init_ops for various xen initialization.

2008-04-08 Thread Isaku Yamahata
This patch implements xen version of pv_init_ops to do various xen initialization. Signed-off-by: Akio Takebe [EMAIL PROTECTED] Signed-off-by: Alex Williamson [EMAIL PROTECTED] Signed-off-by: Yaozu (Eddie) Dong [EMAIL PROTECTED] Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- arch/ia64/xen

[Xen-ia64-devel] [PATCH 20/23] ia64/pv_ops/xen: implement xen pv_irq_ops.

2008-04-08 Thread Isaku Yamahata
implement xen pv_irq_ops to paravirtualize irq handling with xen event channel. Signed-off-by: Akio Takebe [EMAIL PROTECTED] Signed-off-by: Alex Williamson [EMAIL PROTECTED] Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- arch/ia64/xen/Makefile |2 +- arch/ia64/xen/irq_xen.c

[Xen-ia64-devel] [PATCH 22/23] ia64/xen: define xen machine vector for domU.

2008-04-08 Thread Isaku Yamahata
define xen machine vector for domU. Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- arch/ia64/Makefile |2 ++ arch/ia64/kernel/acpi.c|5 + arch/ia64/xen/Makefile |2 ++ arch/ia64/xen/machvec.c|4 include/asm-ia64/machvec.h

[Xen-ia64-devel] [PATCH 21/23] ia64/pv_ops/xen: implement xen pv_time_ops.

2008-04-08 Thread Isaku Yamahata
implement xen pv_time_ops to account steal time. Signed-off-by: Alex Williamson [EMAIL PROTECTED] Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- arch/ia64/xen/Makefile |2 +- arch/ia64/xen/time.c | 165 arch/ia64/xen/time.h

[Xen-ia64-devel] [PATCH 23/23] ia64/pv_ops: update Kconfig for paravirtualized guest and xen.

2008-04-08 Thread Isaku Yamahata
introduce CONFIG_PARAVIRT_GUEST, CONFIG_PARAVIRT for paravirtualized guest. introduce CONFING_XEN, CONFIG_IA64_XEN for xen. Signed-off-by: Alex Williamson [EMAIL PROTECTED] Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- arch/ia64/Kconfig | 31 +++ arch/ia64

[Xen-ia64-devel] [PATCH 14/23] ia64/pv_ops/xen: define xen paravirtualized instructions for hand written assembly code

2008-04-08 Thread Isaku Yamahata
define xen paravirtualized instructions for hand written assembly code. Signed-off-by: Yaozu (Eddie) Dong [EMAIL PROTECTED] Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- include/asm-ia64/xen/inst.h | 493 +++ 1 files changed, 493 insertions(+), 0

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

2008-04-08 Thread Isaku Yamahata
paravirtualize ivt.S for xen by multi compile. Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- arch/ia64/xen/Makefile | 16 +++- arch/ia64/xen/xenivt.S | 57 +++ include/asm-ia64/xen/inst.h |1 + 3 files changed, 73 insertions

[Xen-ia64-devel] [PATCH 13/23] ia64/pv_ops/xen: define xen pv_cpu_ops.

2008-04-08 Thread Isaku Yamahata
define xen pv_cpu_ops which implementes xen paravirtualized privileged instructions. Signed-off-by: Yaozu (Eddie) Dong [EMAIL PROTECTED] Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- arch/ia64/xen/xen_pv_ops.c | 114 1 files changed, 114

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

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 be:

[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 function

[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. cons: There are

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/xen/privop.h Sat Apr 05 07:27:30 2008

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 :

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

2008-04-02 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 @@ do

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

2008-04-02 Thread Isaku Yamahata
..6ce4f60 100644 --- a/arch/ia64/kernel/paravirt.c +++ b/arch/ia64/kernel/paravirt.c @@ -3,6 +3,7 @@ * * Copyright (c) 2008 Isaku Yamahata yamahata at valinux co jp *VA Linux Systems Japan K.K. + * Yaozu (Eddie) Dong [EMAIL PROTECTED] * * This program is free

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

[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 into pseudo physical address

[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
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_free_vm_area() and use them

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 compile

[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

[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/interface

[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 PROTECTED

[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/interface/xen.h

[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/interface

[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 3 files

[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 |2 +- arch

[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] --- drivers/xen/events.c

[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 Yamahata

[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: Isaku Yamahata

[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}/xen/page.h |0

[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
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 Yamahata [EMAIL

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

2008-03-28 Thread Isaku Yamahata
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 changed, 101

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

2008-03-27 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 xen DO_XEN_MIN

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

2008-03-27 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.)

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 --git a/arch

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] 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

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

2008-03-27 Thread Isaku Yamahata
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: Isaku Yamahata wrote: Hi Eddie. I

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.

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

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

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. The

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

2008-03-18 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: 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

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

2008-03-17 Thread Isaku Yamahata
, 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. The same would apply to the gate page paravirtualization change

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 some

[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

[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

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

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

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- include/xen/interface/xen.h | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/include/xen/interface/xen.h b/include/xen/interface/xen.h index 87ad143..9b018da 100644 --- a/include/xen/interface/xen.h +++ b

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

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- include/xen/interface/xen.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/xen/interface/xen.h b/include/xen/interface/xen.h index 518a5bf..87ad143 100644 --- a/include/xen/interface/xen.h +++ b

[Xen-ia64-devel] [PATCH 00/50] ia64/xen take 3: ia64/xen domU paravirtualization

2008-03-05 Thread Isaku Yamahata
Hi. This patchset implements xen/ia64 domU support. Qing He and Eddie Dong also has been woring on pv_ops so that I want to discuss before going further and avoid duplicated work. I suppose that Eddie will also post his own patch. So reviewing both patches, we can reach to better pv_ops interface.

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

2008-03-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata [EMAIL PROTECTED] --- drivers/xen/grant-table.c |2 +- include/asm-x86/xen/interface.h | 24 include/xen/interface/grant_table.h | 11 --- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/drivers

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