[PATCH 2/2] dm-ioband: I/O bandwidth controller v1.2.0: Document

2008-07-03 Thread Ryo Tsuruta
Here is the document of dm-ioband. Based on 2.6.26-rc5-mm3 Signed-off-by: Ryo Tsuruta <[EMAIL PROTECTED]> Signed-off-by: Hirokazu Takahashi <[EMAIL PROTECTED]> diff -uprN linux-2.6.26-rc5-mm3.orig/Documentation/device-mapper/ioband.txt linux-2.6.26-rc5-mm3/Documentation/device-mapper/ioband.txt

[PATCH 1/2] dm-ioband: I/O bandwidth controller v1.2.0: Source code and patch

2008-07-03 Thread Ryo Tsuruta
Here is the patch of dm-ioband. Based on 2.6.26-rc5-mm3 Signed-off-by: Ryo Tsuruta <[EMAIL PROTECTED]> Signed-off-by: Hirokazu Takahashi <[EMAIL PROTECTED]> diff -uprN linux-2.6.26-rc5-mm3.orig/drivers/md/Kconfig linux-2.6.26-rc5-mm3/drivers/md/Kconfig --- linux-2.6.26-rc5-mm3.orig/drivers/md/Kc

[PATCH 0/2] dm-ioband: I/O bandwidth controller v1.2.0: Introduction

2008-07-03 Thread Ryo Tsuruta
Hi everyone, This is the dm-ioband version 1.2.0 release. Dm-ioband is an I/O bandwidth controller implemented as a device-mapper driver, which gives specified bandwidth to each job running on the same physical device. - Can be applied to the kernel 2.6.26-rc5-mm3. - Changes from 1.1.0 (posted o

Re: [PATCH] xen: compilation fix for ia64 support.

2008-07-03 Thread Isaku Yamahata
On Thu, Jul 03, 2008 at 02:51:03PM -0700, Jeremy Fitzhardinge wrote: > Isaku Yamahata wrote: > >don't include asm/pvclock-abi.h directly, but asm/xen/pvclock-abi.h > >At this moment linux ia64 won't accept asm/pvclock-abi.h because > >there's no user of it. > > Huh? Is this a ia64 maintainer poli

Re: [PATCH] xen: compilation fix for ia64 support.

2008-07-03 Thread Jeremy Fitzhardinge
Isaku Yamahata wrote: > don't include asm/pvclock-abi.h directly, but asm/xen/pvclock-abi.h > At this moment linux ia64 won't accept asm/pvclock-abi.h because > there's no user of it. Huh? Is this a ia64 maintainer policy? Aren't you about to start using it? > Instead make it include asm/xen/p

Re: [PATCH] xen: portability clean up and some minor clean up for xencomm.c

2008-07-03 Thread Jeremy Fitzhardinge
Isaku Yamahata wrote: > clean up of xencomm.c. is_phys_contiguous() is arch dependent > function that depends on how virtual memory are laid out. > So split out the function into arch specific code. > I suppose. But given that ia64 is the only user of xencomm, I'm not too concerned about it.

Re: 2.6.26-rc8 pv_ops causes Unhandled invalid opcode fault/trap

2008-07-03 Thread Jeremy Fitzhardinge
Christopher S. Aker wrote: > Jeremy Fitzhardinge wrote: > >>> Although, looking at it again, I did miss this line: >>> >>> (XEN) mm.c:645:d341 Non-privileged (341) attempt to map I/O space >>> 000d2e50 >>> >> Good, that's what I was hoping to see. (Well, actually not that >> *particula

Re: 2.6.26-rc8 pv_ops causes Unhandled invalid opcode fault/trap

2008-07-03 Thread Christopher S. Aker
Jeremy Fitzhardinge wrote: >> Although, looking at it again, I did miss this line: >> >> (XEN) mm.c:645:d341 Non-privileged (341) attempt to map I/O space >> 000d2e50 > > Good, that's what I was hoping to see. (Well, actually not that > *particular* message, which is strange, but some explanato

Re: 2.6.26-rc8 pv_ops causes Unhandled invalid opcode fault/trap

2008-07-03 Thread Jeremy Fitzhardinge
Christopher S. Aker wrote: > Jeremy Fitzhardinge wrote: Were there any other errors/warnings printed here? >>> >>> Nope. Just some whitespace. >> >> Are you sure? Could you send a full xm dmesg log output? The crash >> is from a BUG() caused by a failing hypercall. Since you have >> comp

Re: 2.6.26-rc8 pv_ops causes Unhandled invalid opcode fault/trap

2008-07-03 Thread Christopher S. Aker
Jeremy Fitzhardinge wrote: >>> Were there any other errors/warnings printed here? >> >> Nope. Just some whitespace. > > Are you sure? Could you send a full xm dmesg log output? The crash is > from a BUG() caused by a failing hypercall. Since you have compiled Xen > with debug enabled, it sho

Re: 2.6.26-rc8 pv_ops causes Unhandled invalid opcode fault/trap

2008-07-03 Thread Jeremy Fitzhardinge
Christopher S. Aker wrote: > Jeremy Fitzhardinge wrote: >> Is this consistent or sporadic? > > Consistently fails to boot, across a few test boxes, slightly > different Xen versions -- all around Xen 3.2.1, same config. > >> Does it depend on how much guest memory you give it? > > No. Tried wit

Re: 2.6.26-rc8 pv_ops causes Unhandled invalid opcode fault/trap

2008-07-03 Thread Christopher S. Aker
Jeremy Fitzhardinge wrote: > Is this consistent or sporadic? Consistently fails to boot, across a few test boxes, slightly different Xen versions -- all around Xen 3.2.1, same config. > Does it depend on how much guest memory you give it? No. Tried with 128, 360, 5000. They all fail in the

Re: 2.6.26-rc8 pv_ops causes Unhandled invalid opcode fault/trap

2008-07-03 Thread Jeremy Fitzhardinge
Christopher S. Aker wrote: > Xen: 3.2.1-rc5 64bit > Dom0: 2.6.18.8 (at cs 524) 32-pae > DomU: 2.6.26-rc8 32-pae > > [EMAIL PROTECTED]:~# xm create -f /linodes/xencaker/xen.conf -c > Using config file "/linodes/xencaker/xen.conf". > Started domain xencaker Is this consistent or sporadic? Does it d

2.6.26-rc8 pv_ops causes Unhandled invalid opcode fault/trap

2008-07-03 Thread Christopher S. Aker
Xen: 3.2.1-rc5 64bit Dom0: 2.6.18.8 (at cs 524) 32-pae DomU: 2.6.26-rc8 32-pae [EMAIL PROTECTED]:~# xm create -f /linodes/xencaker/xen.conf -c Using config file "/linodes/xencaker/xen.conf". Started domain xencaker [EMAIL PROTECTED]:~# [EMAIL PROTECTED]:~# xm dmesg ... (XE

Re: [PATCH 2/3] tun: TUNSETFEATURES to set gso features.

2008-07-03 Thread David Miller
From: Rusty Russell <[EMAIL PROTECTED]> Date: Thu, 3 Jul 2008 11:33:11 +1000 > ethtool is useful for setting (some) device fields, but it's > root-only. Finer feature control is available through a tun-specific > ioctl. > > (Includes Mark McLoughlin <[EMAIL PROTECTED]>'s fix to hold rtnl sem). >

Re: [PATCH 1/3] tun: Interface to query tun/tap features.

2008-07-03 Thread David Miller
From: Rusty Russell <[EMAIL PROTECTED]> Date: Thu, 3 Jul 2008 11:32:12 +1000 > The problem with introducing checksum offload and gso to tun is they > need to set dev->features to enable GSO and/or checksumming, which is > supposed to be done before register_netdevice(), ie. as part of > TUNSETIFF.

Re: [PATCH 3/3] tun: Allow GSO using virtio_net_hdr

2008-07-03 Thread David Miller
From: Rusty Russell <[EMAIL PROTECTED]> Date: Thu, 3 Jul 2008 11:34:14 +1000 > Add a IFF_VNET_HDR flag. This uses the same ABI as virtio_net (ie. prepending > struct virtio_net_hdr to packets) to indicate GSO and checksum information. > > Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> Also ap

[PATCH] ia64/xen: add definitions necessary for xen event channel.

2008-07-03 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(-) crea

[PATCH] ia64/xen: implement the arch specific part of xencomm.

2008-07-03 Thread Isaku Yamahata
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. Sign

[PATCH] ia64/xen: introduce definitions necessary for ia64/xen hypercalls.

2008-07-03 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 and will be used later. Cc: Robin Holt <[EMAIL PROTECTED]> Cc: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Signed-off-by: Isaku Yam

[PATCH] ia64/xen: implement arch specific part of xen grant table.

2008-07-03 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/

[PATCH] ia64/xen: xencomm conversion functions for hypercalls

2008-07-03 Thread Isaku Yamahata
On ia64/xen, pointer arguments for hypercall is passed by pseudo physical address(guest physical address.) So such hypercalls needs address conversion functions. This patch implements concrete conversion functions for such hypercalls. Signed-off-by: Akio Takebe <[EMAIL PROTECTED]> Signed-off-by: Y

[PATCH] ia64/pv_ops/xen: elf note based xen startup.

2008-07-03 Thread Isaku Yamahata
This patch enables elf note based xen startup for IA-64, which gives the kernel an early hint for running on xen like x86 case. In order to avoid the multi entry point, presumably extending booting protocol(i.e. extending struct ia64_boot_param) would be necessary. It probably means that elilo also

[PATCH] ia64/pv_ops/xen: implement xen pv_irq_ops.

2008-07-03 Thread Isaku Yamahata
implement xen pv_irq_ops to paravirtualize irq handling with xen event channel. Cc: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Signed-off-by: Akio Takebe <[EMAIL PROTECTED]> Signed-off-by: Alex Williamson <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/Makefil

[PATCH] ia64/pv_ops: update Kconfig for paravirtualized guest and xen.

2008-07-03 Thread Isaku Yamahata
introduce CONFIG_PARAVIRT_GUEST, CONFIG_PARAVIRT for paravirtualized guest. introduce CONFIG_XEN, CONFIG_IA64_XEN_GUEST for xen. Signed-off-by: Alex Williamson <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> Cc: "Luck, Tony" <[EMAIL PROTECTED]> --- arch/ia64/Kconfig |

[PATCH] ia64/pv_ops/xen: paravirtualize entry.S for ia64/xen.

2008-07-03 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(-)

[PATCH] ia64/xen: a recipe for using xen/ia64 with pv_ops.

2008-07-03 Thread Isaku Yamahata
Recipe for useing xen/ia64 with pv_ops domU. Signed-off-by: Akio Takebe <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- Documentation/ia64/xen.txt | 183 1 files changed, 183 insertions(+), 0 deletions(-) create mode 100644

[PATCH] ia64/pv_ops: paravirtualized istruction checker.

2008-07-03 Thread Isaku Yamahata
This patch implements a checker to detect instructions which should be paravirtualized instead of direct writing raw instruction. This patch does rough check so that it doesn't fully cover all cases, but it can detects most cases of paravirtualization breakage of hand written assembly codes. Signe

[PATCH] ia64/pv_ops/xen: implement xen pv_iosapic_ops.

2008-07-03 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/ia6

[PATCH] ia64/xen: define xen machine vector for domU.

2008-07-03 Thread Isaku Yamahata
define xen machine vector for domU. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> Cc: "Luck, Tony" <[EMAIL PROTECTED]> --- arch/ia64/Makefile |2 ++ arch/ia64/kernel/acpi.c|5 + arch/ia64/xen/Makefile |2 ++ arch/ia64/xen/machvec.c|4 +++

[PATCH] ia64/pv_ops/xen: implement xen pv_time_ops.

2008-07-03 Thread Isaku Yamahata
implement xen pv_time_ops to account steal time. Cc: Jeremy Fitzhardinge <[EMAIL PROTECTED]> 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 +++

[PATCH] ia64/xen: preliminary support for save/restore.

2008-07-03 Thread Isaku Yamahata
preliminary support for save/restore. Although Save/restore isn't fully working yet, this patch is necessary to compile. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/xen/Makefile |2 +- arch/ia64/xen/{time.h => suspend.c} | 40

[PATCH] ia64/pv_ops/xen: paravirtualize ivt.S for xen.

2008-07-03 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 | 52 +++ include/asm-ia64/xen/inst.h |1 + 3 files changed, 68 insertio

[PATCH] ia64/pv_ops/xen: define the nubmer of irqs which xen needs.

2008-07-03 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]> --- arch/ia64/kernel/nr-irqs.c |1 + include/asm-ia64/xen/irq.h | 44 2 files changed, 45 insertions(+), 0 deletions

[PATCH] ia64/xen: increase IA64_MAX_RSVD_REGIONS.

2008-07-03 Thread Isaku Yamahata
Xenlinux/ia64 needs to reserve one more region passed from xen hypervisor as start info. Cc: Robin Holt <[EMAIL PROTECTED]> Cc: Bjorn Helgaas <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/meminit.h |3 ++- 1 files changed, 2 insertions(+), 1 deleti

[PATCH] xen: compilation fix for ia64 support.

2008-07-03 Thread Isaku Yamahata
don't include asm/pvclock-abi.h directly, but asm/xen/pvclock-abi.h At this moment linux ia64 won't accept asm/pvclock-abi.h because there's no user of it. Instead make it include asm/xen/pvclock-abi.h and create asm-x86/xen/pvclock-abi.h which includes asm-x86/pvclock-abi.h. Signed-off-by: Isaku

[PATCH] xen: portability clean up and some minor clean up for xencomm.c

2008-07-03 Thread Isaku Yamahata
clean up of xencomm.c. is_phys_contiguous() is arch dependent function that depends on how virtual memory are laid out. So split out the function into arch specific code. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> Cc: "Luck, Tony" <[EMAIL PROTECTED]> --- drivers/xen/xencomm.c | 23 --

[PATCH] ia64/xen: define helper functions for xen hypercalls.

2008-07-03 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/x

[PATCH] xen/netfront: Avoid unaligned accesses to IP datagrams.

2008-07-03 Thread Isaku Yamahata
Align ip header to a 16 byte boundary. This patch eliminates noisy warnings on IA64. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- drivers/net/xen-netfront.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.

[PATCH] ia64/pv_ops/xen: paravirtualize DO_SAVE_MIN for xen.

2008-07-03 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 | 134 +++ 2 files changed,

[PATCH] xen: remove load_cr3() from manage.c for ia64 support.

2008-07-03 Thread Isaku Yamahata
remove load_cr3() from manage.c. It is unncessary and x86 dependent. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- drivers/xen/manage.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index 2bb268e..e8db90c 100644 --- a

[PATCH] ia64/pv_ops/xen: define xen paravirtualized instructions for hand written assembly code

2008-07-03 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 | 450 +++ 1 files changed, 450 insertions(+), 0

[PATCH] ia64/pv_ops/xen: define xen pv_cpu_ops.

2008-07-03 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 ins

[PATCH] ia64/xen: introduce sync bitops which is necessary for ia64/xen support.

2008-07-03 Thread Isaku Yamahata
define sync bitops which is necessary for ia64/xen. This bit operation is used to communicate with VMM or other guest kernel Even when this kernel is built for UP, VMM might be SMP so that those operation must always use atomic operation. Cc: Robin Holt <[EMAIL PROTECTED]> Cc: Jeremy Fitzhardinge

[PATCH] ia64/xen: define helper functions for xen related address conversion.

2008-07-03 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. Cc: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECT

[PATCH] ia64/pv_ops/xen: define xen pv_init_ops for various xen initialization.

2008-07-03 Thread Isaku Yamahata
This patch implements xen version of pv_init_ops to do various xen initialization. This patch also includes ia64 counter part of x86 xen early printk support patches. Signed-off-by: Akio Takebe <[EMAIL PROTECTED]> Signed-off-by: Alex Williamson <[EMAIL PROTECTED]> Signed-off-by: Yaozu (Eddie) Dong

[PATCH] ia64/xen: reserve "break" numbers used for xen hypercalls.

2008-07-03 Thread Isaku Yamahata
reserve "break" numbers used for xen hypercalls to avoid reuse for something else. Cc: "Luck, Tony" <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/break.h |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/asm-ia64/

[PATCH] ia64/xen: define several constants for ia64/xen.

2008-07-03 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 index c64

[PATCH 00/29] ia64/xen domU take 8

2008-07-03 Thread Isaku Yamahata
Hi. This patchset is ia64/xen domU patch take 8 which was updated following Tony's review. (Thank you very much, Tony.) This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. This patchset is for linux ia64 test branch and depends on some

[PATCH] ia64/xen: add a neccessary header file to copmle include/xen/interface/xen.h

2008-07-03 Thread Isaku Yamahata
Create include/asm-ia64/xen/pvclock-abi.h to compile. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/xen/pvclock-abi.h | 44 1 files changed, 44 insertions(+), 0 deletions(-) create mode 100644 include/asm-ia64/xen/pvclock-abi.h dif

[PATCH] ia64: move function declaration, ia64_cpu_local_tick() from .c to .h

2008-07-03 Thread Isaku Yamahata
eliminate the function declaration ia64_cpu_local_tick() in process.c by defining in asm-ia64/timex.h The same function will be used in a different .c file later. Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- arch/ia64/kernel/process.c |1 - include/asm-ia64/timex.h |2 ++ 2 fil