Re: [PATCH 1/4] virtio_net: Fix skb->csum_start computation

2008-06-10 Thread Jeff Garzik
Rusty Russell wrote: > From: Mark McLoughlin <[EMAIL PROTECTED]> > > hdr->csum_start is the offset from the start of the ethernet > header to the transport layer checksum field. skb->csum_start > is the offset from skb->head. > > skb_partial_csum_set() assumes that skb->data points to the > ether

Re: [PATCH] xen: Use wmb instead of rmb in xen_evtchn_do_upcall().

2008-06-10 Thread Nick Piggin
On Tuesday 10 June 2008 17:57, Jeremy Fitzhardinge wrote: > Nick Piggin wrote: > > On Tuesday 10 June 2008 17:35, Isaku Yamahata wrote: > >> This patch is ported one from 534:77db69c38249 of linux-2.6.18-xen.hg. > >> Use wmb instead of rmb to enforce ordering between > >> evtchn_upcall_pending and

Re: [PATCH] xen: Use wmb instead of rmb in xen_evtchn_do_upcall().

2008-06-10 Thread Nick Piggin
On Tuesday 10 June 2008 17:35, Isaku Yamahata wrote: > This patch is ported one from 534:77db69c38249 of linux-2.6.18-xen.hg. > Use wmb instead of rmb to enforce ordering between > evtchn_upcall_pending and evtchn_pending_sel stores > in xen_evtchn_do_upcall(). There are a whole load of places in

[PATCH] Do not calculate linear rip in emulation failure report

2008-06-10 Thread Glauber Costa
If we're not gonna do anything (case in which failure is already reported), we do not need to even bother with calculating the linear rip. This is a nitpick, but I saw it while doing some testing, so here's the patch. Signed-off-by: Glauber Costa <[EMAIL PROTECTED]> --- arch/x86/kvm/x86.c |4

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

2008-06-10 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 20/27] ia64/pv_ops/xen: implement xen pv_iosapic_ops.

2008-06-10 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 19/27] ia64/pv_ops/xen: paravirtualize entry.S for ia64/xen.

2008-06-10 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 24/27] ia64/xen: define xen machine vector for domU.

2008-06-10 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 |

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

2008-06-10 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 14/27] ia64/pv_ops/xen: define xen pv_init_ops for various xen initialization.

2008-06-10 Thread Isaku Yamahata
This patch implements xen version of pv_init_ops to do various xen initialization. This patch includes ia64 counter part of 9e124fe16ff24746d6de5a2ad685266d7bce0e08 and 83abc70a4c6e306f4c1672e25884322f797e4fcb for xen early printk support. Signed-off-by: Akio Takebe <[EMAIL PROTECTED]> Signed-off-

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

2008-06-10 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 17/27] ia64/pv_ops/xen: paravirtualize DO_SAVE_MIN for xen.

2008-06-10 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 23/27] ia64/pv_ops/xen: implement xen pv_time_ops.

2008-06-10 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 11/27] ia64/xen: implement arch specific part of xen grant table.

2008-06-10 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 26/27] ia64/pv_ops: update Kconfig for paravirtualized guest and xen.

2008-06-10 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 | 32 arch/

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

2008-06-10 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 18/27] ia64/pv_ops/xen: paravirtualize ivt.S for xen.

2008-06-10 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 27/27] ia64/xen: a recipe for using xen/ia64 with pv_ops.

2008-06-10 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 10/27] ia64/xen: xencomm conversion functions for hypercalls

2008-06-10 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 concreate conversion functions for such hypercalls. Signed-off-by: Akio Takebe <[EMAIL PROTECTED]> Signed-off-by:

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

2008-06-10 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 12/27] ia64/xen: add definitions necessary for xen event channel.

2008-06-10 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 09/27] ia64/xen: implement the arch specific part of xencomm.

2008-06-10 Thread Isaku Yamahata
On ia64/xen, pointer argument for the hypercall is passed by pseudo physical address (guest phsysical address.) So it is necessary to convert virtual address into pseudo physical address rigth before issuing hypercall. The frame work is called xencomm. This patch implements arch specific part. Sig

Re: [PATCH] xen: Use wmb instead of rmb in xen_evtchn_do_upcall().

2008-06-10 Thread Jeremy Fitzhardinge
Nick Piggin wrote: > On Tuesday 10 June 2008 17:35, Isaku Yamahata wrote: > >> This patch is ported one from 534:77db69c38249 of linux-2.6.18-xen.hg. >> Use wmb instead of rmb to enforce ordering between >> evtchn_upcall_pending and evtchn_pending_sel stores >> in xen_evtchn_do_upcall(). >>

Re: [PATCH] xen: Use wmb instead of rmb in xen_evtchn_do_upcall().

2008-06-10 Thread Isaku Yamahata
On Tue, Jun 10, 2008 at 05:41:39PM +1000, Nick Piggin wrote: > On Tuesday 10 June 2008 17:35, Isaku Yamahata wrote: > > This patch is ported one from 534:77db69c38249 of linux-2.6.18-xen.hg. > > Use wmb instead of rmb to enforce ordering between > > evtchn_upcall_pending and evtchn_pending_sel stor

[PATCH 06/27] ia64/xen: define NET_SKB_NET to 18 if xen.

2008-06-10 Thread Isaku Yamahata
On native ia64 NET_SKB_NET isn't necessary to define. However on xen it needs to be slightly larger. (More specifically it's xen-netfront.c requirement.) It causes annoying kernel unalgned access message and network layer troubles. Resolve it by increasing NET_SKB_NET from the default value 16 to 1

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

2008-06-10 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 05/27] ia64/xen: define several constants for ia64/xen.

2008-06-10 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 07/27] ia64/xen: define helper functions for xen related address conversion.

2008-06-10 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 00/27] ia64/xen domU take 7

2008-06-10 Thread Isaku Yamahata
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was already merged to linux ia64 test branch. This patch is for linux ia64 test branch. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures.

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

2008-06-10 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

[PATCH 02/27] ia64/xen: introduce synch bitops which is necessary for ia64/xen support.

2008-06-10 Thread Isaku Yamahata
define sync bitops which is necessary for ia64/xen. Cc: Robin Holt <[EMAIL PROTECTED]> Cc: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- include/asm-ia64/sync_bitops.h | 57 1 files changed, 57 insertions(+

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

2008-06-10 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. Cc: Robin Holt <[EMAIL PROTECTED]> Cc: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED

[PATCH 03/27] ia64/xen: increase IA64_MAX_RSVD_REGIONS.

2008-06-10 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: add xen_arch_resume()/xen_timer_resume hook for ia64 support.

2008-06-10 Thread Isaku Yamahata
add xen_timer_resume() hook. Timer resume should be done after event channel is resumed. add xen_arch_resume() hook when ipi becomes usable after resume. After resume, some cpu specific resource must be reinitialized on ia64 that can't be set by another cpu. However available hooks is run once on o

[PATCH] xen: Use wmb instead of rmb in xen_evtchn_do_upcall().

2008-06-10 Thread Isaku Yamahata
This patch is ported one from 534:77db69c38249 of linux-2.6.18-xen.hg. Use wmb instead of rmb to enforce ordering between evtchn_upcall_pending and evtchn_pending_sel stores in xen_evtchn_do_upcall(). Cc: Samuel Thibault <[EMAIL PROTECTED]> Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]> --- dr

[PATCH] xen-netfront: fix xennet_release_tx_bufs().

2008-06-10 Thread Isaku Yamahata
After restore on ia64 xen domain, kernel panics as follows. This patch fixes it. union skb_entry assumes sizeof(link->skb, pointer) == sizeof(list->link, unsigned). However this isn't true on ia64. So make link type unsigned long. And introduced two accesor. kernel unaligned access to 0xe000