[PATCH] xen/arm: missing put_cpu in xen_percpu_init

2013-07-29 Thread Julien Grall
This is because xen_percpu_init uses get_cpu but doesn't have the corresponding put_cpu. Signed-off-by: Julien Grall julien.gr...@linaro.org --- arch/arm/xen/enlighten.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index f71c37e..dc9f284 100644

Re: [Xen-devel] [PATCH] ARM: xen: only set pm function ptrs for Xen guests

2013-08-28 Thread Julien Grall
xen_arm_callback(int irq, void *arg) { xen_hvm_evtchn_do_upcall(); -- Julien Grall -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please

[PATCH] arm: choose debug/uncompress.h include when uncompress debug is disabled

2013-07-15 Thread Julien Grall
Even if uncompress debug is disabled, some board will continue to print information during uncompress step. By using debug/uncompress.h include, all debug output will be disabled. This is usefull in Xen environment for DOM0 because the UART is stolen by Xen. Signed-off-by: Julien Grall julien.gr

[PATCH] xen/arm: disable cpuidle when linux is running as dom0

2013-07-15 Thread Julien Grall
instead of dom0. Signed-off-by: Julien Grall julien.gr...@linaro.org --- arch/arm/xen/enlighten.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index 49839d8..a98999f 100644 --- a/arch/arm/xen/enlighten.c +++ b/arch/arm/xen

[PATCH] xen/arm: enable PV control for ARM

2013-07-15 Thread Julien Grall
Enable power management from the toolstack for ARM guest. Signed-off-by: Julien Grall julien.gr...@linaro.org --- drivers/xen/Makefile |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/xen/Makefile b/drivers/xen/Makefile index 2bf461a..a5f12bd 100644 --- a/drivers

[PATCH] xen/control: protect functions with CONFIG_HIBERNATE_CALLBACKS to avoid warning

2013-07-15 Thread Julien Grall
: warning: 'xen_post_suspend' defined but not used [-Wunused-function] Signed-off-by: Julien Grall julien.gr...@linaro.org --- drivers/xen/manage.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index 412b96c..7680276 100644

Re: [Xen-devel] [PATCH] xen/control: protect functions with CONFIG_HIBERNATE_CALLBACKS to avoid warning

2013-07-15 Thread Julien Grall
Forgot the different cc. On 07/15/2013 04:47 PM, Julien Grall wrote: On 07/15/2013 04:27 PM, Konrad Rzeszutek Wilk wrote: On Mon, Jul 15, 2013 at 03:24:35PM +0100, Julien Grall wrote: If CONFIG_HIBERNATE_CALLBACKS is not set gcc will issue warnings: drivers/xen/manage.c:46:13: warning

Re: [Xen-devel] [PATCH] xen/arm: disable cpuidle when linux is running as dom0

2013-07-15 Thread Julien Grall
On 07/15/2013 04:25 PM, Konrad Rzeszutek Wilk wrote: On Mon, Jul 15, 2013 at 03:21:41PM +0100, Julien Grall wrote: When linux is running as dom0, Xen doesn't show the physical cpu but a virtual CPU. On some ARM SOC (for instance the exynos 5250), linux registers callbacks for cpuidle. When

Re: [PATCH] arm: choose debug/uncompress.h include when uncompress debug is disabled

2013-07-18 Thread Julien Grall
On 17 July 2013 14:25, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Mon, 15 Jul 2013, Julien Grall wrote: Even if uncompress debug is disabled, some board will continue to print information during uncompress step. Are you talking about DEBUG_UNCOMPRESS? Should I read

Re: [PATCH] arm: choose debug/uncompress.h include when uncompress debug is disabled

2013-07-18 Thread Julien Grall
On 07/17/2013 04:11 PM, Russell King - ARM Linux wrote: On Wed, Jul 17, 2013 at 02:25:38PM +0100, Stefano Stabellini wrote: On Mon, 15 Jul 2013, Julien Grall wrote: Even if uncompress debug is disabled, some board will continue to print information during uncompress step. Are you talking

Re: [PATCH] xen/arm: enable PV control for ARM

2013-07-18 Thread Julien Grall
On 17 July 2013 14:40, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Mon, 15 Jul 2013, Julien Grall wrote: Enable power management from the toolstack for ARM guest. Signed-off-by: Julien Grall julien.gr...@linaro.org Considering that now we support both ARM and ARM64, could

Re: [Xen-devel] [PATCH] xen/arm: disable cpuidle when linux is running as dom0

2013-07-18 Thread Julien Grall
On 17 July 2013 14:28, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Mon, 15 Jul 2013, Konrad Rzeszutek Wilk wrote: On Mon, Jul 15, 2013 at 03:21:41PM +0100, Julien Grall wrote: When linux is running as dom0, Xen doesn't show the physical cpu but a virtual CPU. On some ARM

[PATCH v2] xen/arm: disable cpuidle and cpufreq when linux is running as dom0

2013-07-19 Thread Julien Grall
the whole board instead of only dom0. Signed-off-by: Julien Grall julien.gr...@linaro.org --- Changes in v2: - Disable cpufreq --- arch/arm/xen/enlighten.c |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index 49839d8

[PATCH v2] xen/arm: enable PV control for ARM

2013-07-19 Thread Julien Grall
Enable power management from the toolstack for ARM guest. Signed-off-by: Julien Grall julien.gr...@linaro.org --- Changes in v2: - Don't compile xen/cpu_hotplug.o with ARM64 --- drivers/xen/Makefile |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers

Re: [Xen-devel] [PATCH] xen/hvc-console: Make it work with HVM guests.

2013-10-06 Thread Julien Grall
On 09/30/2013 03:45 PM, Konrad Rzeszutek Wilk wrote: On Fri, Sep 27, 2013 at 10:49:37PM +0100, Julien Grall wrote: On 09/27/2013 10:25 PM, Konrad Rzeszutek Wilk wrote: @@ -641,7 +641,20 @@ struct console xenboot_console = { void xen_raw_console_write(const char *str

[PATCH] xen/block: Correctly define structures in public headers on ARM32 and ARM64

2013-12-03 Thread Julien Grall
, it's acceptable because Xen on ARM is still on Tech Preview and the hypercall ABI is not yet freezed. Signed-off-by: Julien Grall julien.gr...@linaro.org Cc: Roger Pau Monne roger@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: David Vrabel david.vra...@citrix.com Cc: Boris

Re: [Xen-devel] [PATCH] xen/block: Correctly define structures in public headers on ARM32 and ARM64

2013-12-03 Thread Julien Grall
On 12/03/2013 03:15 PM, Jan Beulich wrote: On 03.12.13 at 16:09, Julien Grall julien.gr...@linaro.org wrote: --- a/include/xen/interface/io/blkif.h +++ b/include/xen/interface/io/blkif.h @@ -146,7 +146,7 @@ struct blkif_request_segment_aligned { struct blkif_request_rw { uint8_t

[PATCH v2] xen/block: Correctly define structures in public headers on ARM32 and ARM64

2013-12-03 Thread Julien Grall
, it's acceptable because Xen on ARM is still on Tech Preview and the hypercall ABI is not yet freezed. Only one architecture (x86_32) doesn't have 64-bit ABI for the block interface. Don't add padding if Linux is compiled for this architecture. Signed-off-by: Julien Grall julien.gr...@linaro.org Cc

Re: [PATCH v2] xen/block: Correctly define structures in public headers on ARM32 and ARM64

2013-12-03 Thread Julien Grall
On 12/03/2013 04:00 PM, One Thousand Gnomes wrote: On Tue, 3 Dec 2013 15:40:37 + Julien Grall julien.gr...@linaro.org wrote: On ARM (32 bits and 64 bits), the double-word is 8-bytes aligned. This will result on different structure from Xen and Linux repositories. As Linux is using

Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-03-14 Thread Julien Grall
patch which depend on patch #1. Let me know if it's the right direction. Regards, commit ca55e82bc191678b284792d2f0d200fa1ce08e16 Author: Julien Grall julien.gr...@linaro.org Date: Fri Mar 14 16:27:01 2014 + ARM: platform_device: dev_archdata: Add xen specific boolean Until now

Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-03-01 Thread Julien Grall
Hi Stefano, On 25/02/14 04:49, Stefano Stabellini wrote: Julien, could you please come up with a simple patch to demonstrate the concept? Sure. I won't have time to write the patch next week. I will try to send it as soon as possible. Cheers, -- Julien Grall -- To unsubscribe from

[PATCH 0/2] Avoid to use Xen DMA ops when the device is protected by an IOMMU

2014-02-20 Thread Julien Grall
to know if we might need to use swiotlb-xen. The second patch is implementing the goal of this patch series. Regards, Julien Grall (2): arm/xen: Introduce need_xen_dma_ops and use it in get_dma_ops arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU Documentation

[PATCH 1/2] arm/xen: Introduce need_xen_dma_ops and use it in get_dma_ops

2014-02-20 Thread Julien Grall
only check if Linux is running as DOM0. Signed-off-by: Julien Grall julien.gr...@linaro.org Cc: Russell King li...@arm.linux.org.co.uk --- arch/arm/include/asm/dma-mapping.h |5 ++--- arch/arm/include/asm/xen/dma-mapping.h | 13 + arch/arm/include/asm/xen/hypervisor.h |2

[PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-02-20 Thread Julien Grall
contains all these devices. The hash table will be used in need_xen_dma_ops to check if the Xen DMA ops needs to be used for the current device. Signed-off-by: Julien Grall julien.gr...@linaro.org Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll pawel.m...@arm.com Cc: Mark Rutland mark.rutl...@arm.com

[PATCH] xen: clear IRQ_NOAUTOEN and IRQ_NOREQUEST when a VIRQ is bound

2013-04-29 Thread Julien Grall
with commit a8636c0 but was missing in bind_virq_to_irq. Signed-off-by: Julien Grall julien.gr...@linaro.org --- drivers/xen/events.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/xen/events.c b/drivers/xen/events.c index d8cc812..b0ad226 100644 --- a/drivers/xen/events.c +++ b

Re: [PATCH] xen: clear IRQ_NOAUTOEN and IRQ_NOREQUEST when a VIRQ is bound

2013-04-30 Thread Julien Grall
On 04/30/2013 04:02 PM, Stefano Stabellini wrote: On Mon, 29 Apr 2013, Julien Grall wrote: Reset the IRQ_NOAUTOEN and IRQ_NOREQUEST flags that are enabled by default on ARM. If IRQ_NOAUTOEN is set, __setup_irq doesn't call irq_startup, that is responsible for calling irq_unmask at startup

[PATCH V2] xen: clear IRQ_NOAUTOEN and IRQ_NOREQUEST

2013-04-30 Thread Julien Grall
with commit a8636c0 but was missing on all others bind_*_to_irq. Move the clear in xen_irq_info_common_init. On x86, IRQ_NOAUTOEN and IRQ_NOREQUEST are cleared by default, so this commit doesn't impact this architecture. Signed-off-by: Julien Grall julien.gr...@linaro.org --- Changes since v1

Re: [PATCH v8 14/19] ASoC: Samsung: Rename dma_ops by samsung_dma_ops

2013-10-23 Thread Julien Grall
(Add samsung sounds maintainers) On 10/17/2013 06:43 PM, Stefano Stabellini wrote: From: Julien Grall julien.gr...@linaro.org The commit arm: introduce a global dma_ops pointer introduce compilation issue when CONFIG_SND_SOC_SAMSUNG is enabled. sound/soc/samsung/dma.c:345:27: error

Re: [Xen-devel] [PATCH] xen/hvc-console: Make it work with HVM guests.

2013-10-23 Thread Julien Grall
On 10/23/2013 05:15 PM, Konrad Rzeszutek Wilk wrote: On Sun, Oct 06, 2013 at 09:52:40PM +0100, Julien Grall wrote: On 09/30/2013 03:45 PM, Konrad Rzeszutek Wilk wrote: On Fri, Sep 27, 2013 at 10:49:37PM +0100, Julien Grall wrote: On 09/27/2013 10:25 PM, Konrad Rzeszutek Wilk wrote

Re: [Xen-devel] [PATCH] xen/hvc-console: Make it work with HVM guests.

2013-10-24 Thread Julien Grall
On 10/24/2013 03:49 PM, Konrad Rzeszutek Wilk wrote: On Wed, Oct 23, 2013 at 11:08:01PM +0100, Julien Grall wrote: On 10/23/2013 05:15 PM, Konrad Rzeszutek Wilk wrote: On Sun, Oct 06, 2013 at 09:52:40PM +0100, Julien Grall wrote: Actually, I looked closer the code, with the new solution

Re: [PATCH v2] ARM: xen: only set pm function ptrs for Xen guests

2013-08-28 Thread Julien Grall
)) + return -ENODEV; + You should use the macro xen_domain() to check if we are running in a Xen guest. Cheers, -- Julien Grall -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [Xen-devel] [PATCH v5 02/13] arm: introduce a global dma_ops pointer

2013-09-02 Thread Julien Grall
73d4ceded87f52fa958b92d8d8d65be485e90857 Author: Julien Grall julien.gr...@linaro.org Date: Mon Sep 2 15:36:35 2013 +0100 ASoC: Samsung: Rename dma_ops by samsung_dma_ops The commit arm: introduce a global dma_ops pointer introduce compilation issue when CONFIG_SND_SOC_SAMSUNG is enabled. sound/soc

Re: [Xen-devel] [PATCH] xen/hvc-console: Make it work with HVM guests.

2013-09-27 Thread Julien Grall
], 0xe9); + } } xen_cpuid_base and outb(0xe9) is x86 specific and won't compile on ARM. You need to add ifdef around. -- Julien Grall -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH v2] xen/arm: enable PV control for ARM

2013-07-21 Thread Julien Grall
On 21 July 2013 15:54, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Fri, 19 Jul 2013, Julien Grall wrote: Enable power management from the toolstack for ARM guest. Signed-off-by: Julien Grall julien.gr...@linaro.org --- Changes in v2: - Don't compile xen

[PATCH v3] xen/arm: enable PV control for ARM

2013-07-22 Thread Julien Grall
Enable power management from the toolstack for ARM guest. Signed-off-by: Julien Grall julien.gr...@linaro.org --- Changes in v3: - Fix condition to compile cpu_hotplug.o Changes in v2: - Don't compile xen/cpu_hotplug.o with ARM64 --- drivers/xen/Makefile |5 ++--- 1

[PATCH] xen/arm64: Don't compile cpu hotplug

2013-07-22 Thread Julien Grall
On ARM64, when CONFIG_XEN=y, the compilation will fail because CPU hotplug is not yet supported with XEN. For now, disable it. Signed-off-by: Julien Grall julien.gr...@linaro.org --- drivers/xen/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/Makefile

[PATCH v4] xen/arm: enable PV control for ARM

2013-07-22 Thread Julien Grall
Enable power management from the toolstack for ARM guest. Signed-off-by: Julien Grall julien.gr...@linaro.org --- Changes in v4: - Divide the patch in 2 distinct parts Changes in v3: - Fix condition to compile cpu_hotplug.o Changes in v2: - Don't compile xen

Re: [PATCH v4] xen/arm: enable PV control for ARM

2013-07-23 Thread Julien Grall
On 07/23/2013 01:32 AM, Konrad Rzeszutek Wilk wrote: Julien Grall julien.gr...@linaro.org wrote: Enable power management from the toolstack for ARM guest. Signed-off-by: Julien Grall julien.gr...@linaro.org --- Changes in v4: - Divide the patch in 2 distinct parts Changes

[PATCH v5] xen/arm: enable PV control for ARM

2013-07-23 Thread Julien Grall
Enable lifecyle management (reboot, shutdown...) from the toolstack for ARM guest. Signed-off-by: Julien Grall julien.gr...@linaro.org --- Changes in v5: - Rework commit message Changes in v4: - Divide the patch in 2 distinct parts Changes in v3: - Fix

Re: [Xen-devel] [PATCH v6] xen/grant-table: Avoid m2p_override during mapping

2014-02-02 Thread Julien Grall
majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ___ Xen-devel mailing list xen-de...@lists.xen.org http://lists.xen.org/xen-devel -- Julien Grall -- To unsubscribe from this list: send

[PATCH] xen/events: xen_evtchn_fifo_init can be called very late

2014-01-27 Thread Julien Grall
is not initialized. This can be fixed by calling the init function on every online cpu when the event channel fifo driver is initialized. Signed-off-by: Julien Grall julien.gr...@linaro.org --- drivers/xen/events/events_fifo.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git

[PATCH] xen/gnttab: Use phys_addr_t to describe the grant frame base address

2014-01-27 Thread Julien Grall
On ARM, address size can be 32 bits or 64 bits (if CONFIG_ARCH_PHYS_ADDR_T_64BIT is enabled). We can't assume that the grant frame base address will always fits in an unsigned long. Use phys_addr_t instead of unsigned long as argument for gnttab_setup_auto_xlat_frames. Signed-off-by: Julien Grall

Re: [PATCH] xen/events: xen_evtchn_fifo_init can be called very late

2014-01-28 Thread Julien Grall
On 01/28/2014 02:30 PM, Stefano Stabellini wrote: On Tue, 28 Jan 2014, David Vrabel wrote: On 28/01/14 00:34, Julien Grall wrote: On ARM, xen_init_IRQ (which calls xen_evtchn_fifo_init) is called after all CPUs are online. It would mean that the notifier will never be called. Why does ARM

[PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Julien Grall
when the CPU is running Signed-off-by: Julien Grall julien.gr...@linaro.org --- arch/arm/xen/enlighten.c | 84 ++ 1 file changed, 55 insertions(+), 29 deletions(-) diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index 293eeea..39b668e

Re: [Xen-devel] [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Julien Grall
On 01/28/2014 05:13 PM, Stefano Stabellini wrote: On Tue, 28 Jan 2014, Julien Grall wrote: Event channels driver needs to be initialized very early. Until now, Xen initialization was done after all CPUs was bring up. We can safely move the initialization to an early initcall. Also use a cpu

Re: [Xen-devel] [PATCH] arm/xen: Initialize event channels earlier

2014-01-28 Thread Julien Grall
On 01/28/2014 05:46 PM, Stefano Stabellini wrote: On Tue, 28 Jan 2014, Julien Grall wrote: +static int xen_cpu_notification(struct notifier_block *self, + unsigned long action, + void *hcpu) +{ + int cpu = (long)hcpu; + + switch (action

[PATCH v2] arm/xen: Initialize event channels earlier

2014-01-28 Thread Julien Grall
when the CPU is running Signed-off-by: Julien Grall julien.gr...@linaro.org --- Changes in v2: - Check earlier if the event IRQ is valid - We can safely register the VCPU when the cpu is booting --- arch/arm/xen/enlighten.c | 71

Re: [PATCH] Xen: do hv callback accounting only on x86

2014-04-04 Thread Julien Grall
99c8b79d3c165f8e2a6247c14bfa1429e7efe51f Author: Thomas Gleixner t...@linutronix.de Date: Sun Feb 23 21:40:21 2014 + xen: Add proper irq accounting for HYPERCALL vector Sincerely yours, -- Julien Grall -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH] Xen: do hv callback accounting only on x86

2014-04-04 Thread Julien Grall
On 04/04/2014 12:41 PM, Julien Grall wrote: Linus has merged xen/tip yesterday and building ARM with CONFIG_XEN=y is now broken. My mistake, it's not because of xen/tip, but some other branches. -- Julien Grall -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCH] arm/xen: Remove definiition of virt_to_pfn in asm/xen/page.h

2014-04-24 Thread Julien Grall
Hi David, On 04/24/2014 01:22 PM, David Vrabel wrote: On 18/04/14 16:54, Julien Grall wrote: virt_to_pfn has been defined in asm/memory.h by the commit e26a9e0 ARM: Better virt_to_page() handling This will result of a compilation warning when CONFIG_XEN is enabled. arch/arm/include/asm

[PATCH] arm/xen: Remove definiition of virt_to_pfn in asm/xen/page.h

2014-04-18 Thread Julien Grall
expand PFN_DOWN), so we can safely drop virt_to_pfn in xen include. Signed-off-by: Julien Grall julien.gr...@linaro.org --- arch/arm/include/asm/xen/page.h |1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h index cf4f3e8..ded062f

[PATCH] xen/hvc: Fix warning compilation when CONFIG_HVC_XEN_FRONTEND is not enabled

2014-09-11 Thread Julien Grall
the #ifdef CONFIG_HVC_XEN_FRONTEND earlier to only compile xen_console_remove, xen_cons_free, xen_cons_disconnect_backend when it's necessary. Signed-off-by: Julien Grall julien.gr...@linaro.org Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: Jiri Slaby jsl...@suse.cz Cc: David Vrabel david.vra

[PATCH] arm{,64}/xen: Remove EXPERIMENTAL in the description of the Xen options

2014-09-17 Thread Julien Grall
The Xen ARM API is stable since Xen 4.4 and everything has been upstreamed in Linux for ARM and ARM64. Therefore we can drop EXPERIMENTAL from the Xen option in the both Kconfig. Signed-off-by: Julien Grall julien.gr...@linaro.org Cc: Russell King li...@arm.linux.org.uk Cc: Catalin Marinas

Re: [Xen-devel] [PATCH v9 0/13] introduce GNTTABOP_cache_flush

2014-11-12 Thread Julien Grall
anymore: Tested-by: Julien Grall julien.gr...@linaro.org Regards, Changes in v9: - remove BUG_ON from the loop in dma_cache_maint; - add static inline for xen_dma_unmap_page, xen_dma_sync_single_for_cpu, xen_dma_sync_single_for_device; - map_page is always present, don't check whether it's

Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

2014-12-15 Thread Julien Grall
+CONFIG_XEN_XENBUS_FRONTEND=y +CONFIG_XEN_GNTDEV=m +CONFIG_XEN_GRANT_DEV_ALLOC=m +CONFIG_SWIOTLB_XEN=y +CONFIG_XEN_PCIDEV_BACKEND=m +CONFIG_XEN_PRIVCMD=m +CONFIG_XEN_ACPI_PROCESSOR=m The common fragment config looks good for both ARM32 and ARM64: Acked-by: Julien Grall julien.gr...@linaro.org

Re: [Xen-devel] [PATCH v3 2/2] x86, arm64, platform, xen, kconfig: add xen defconfig helper

2014-12-09 Thread Julien Grall
don't have PVMMU support on ARM. Shouldn't you move this config in architecture specific code? Regards -- Julien Grall -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [Xen-devel] [PATCH v3 2/2] x86, arm64, platform, xen, kconfig: add xen defconfig helper

2014-12-09 Thread Julien Grall
On 09/12/14 20:22, Luis R. Rodriguez wrote: On Tue, Dec 9, 2014 at 1:06 AM, Julien Grall julien.gr...@linaro.org wrote: Hello Luis, On 08/12/2014 23:05, Luis R. Rodriguez wrote: diff --git a/kernel/configs/xen.config b/kernel/configs/xen.config new file mode 100644 index 000..0d0eb6d

Re: [Xen-devel] [RFC v3 2/2] x86/xen: allow privcmd hypercalls to be preempted

2015-01-22 Thread Julien Grall
) +{ + if (!xen_is_preemptible_hypercall(regs) || I don't see any definition of xen_is_preemptible_hypercall for ARM32/ARM64. As this function is called from the generic code, you have at least to stub this function for those architectures. Regards, -- Julien Grall -- To unsubscribe from

Re: [Xen-devel] [RFC v3 2/2] x86/xen: allow privcmd hypercalls to be preempted

2015-01-22 Thread Julien Grall
On 22/01/15 18:56, Luis R. Rodriguez wrote: On Thu, Jan 22, 2015 at 01:10:49PM +, Julien Grall wrote: Hi Luis, On 22/01/15 02:17, Luis R. Rodriguez wrote: diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index b4bca2d..23c526b 100644 --- a/drivers/xen

Re: [Xen-devel] [PATCH v2 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

2015-01-13 Thread Julien Grall
+CONFIG_XEN_GRANT_DEV_ALLOC=m +CONFIG_SWIOTLB_XEN=y +CONFIG_XEN_PCIDEV_BACKEND=m +CONFIG_XEN_PRIVCMD=m +CONFIG_XEN_ACPI_PROCESSOR=m The common fragment config looks good for both ARM32 and ARM64: Acked-by: Julien Grall julien.gr...@linaro.org Can someone apply this? Who should this go through? Stefano

Re: [PATCH v10 00/21] Introduce ACPI for ARM64 based on ACPI 5.1

2015-03-22 Thread Julien Grall
-$(CONFIG_X86) += xen-acpi-pad.o dom0-$(CONFIG_X86) += pcpu.o obj-$(CONFIG_XEN_DOM0)+= $(dom0-y) [..] AFAIK, There is already a kernel patch exists to fix this issue. I think Julien or Parth is a right person to ask. Hence I am CCed Julien Grall too. The ACPI support

Re: [PATCH v10 00/21] Introduce ACPI for ARM64 based on ACPI 5.1

2015-03-22 Thread Julien Grall
On 22/03/2015 21:49, Rafael J. Wysocki wrote: On Sunday, March 22, 2015 09:05:21 PM Julien Grall wrote: Hello, On 21/03/2015 12:09, Naresh Bhat wrote: From 268dcdafa34a690e2f99c0784ca33a6d2352ecf5 Mon Sep 17 00:00:00 2001 From: Hanjun Guo hanjun@linaro.org mailto:hanjun

[RFC 07/23] net/xen-netfront: Correct printf format in xennet_get_responses

2015-05-14 Thread Julien Grall
rx-status is an int16_t, print it using %d rather than %u in order to have a meaningful value when the field is negative. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky boris.ostrov...@oracle.com Cc: David Vrabel david.vra

[RFC 17/23] xen/grant-table: Make it running on 64KB granularity

2015-05-14 Thread Julien Grall
with multiple grant. It will require some care with the {Set,Clear}ForeignPage macro. Note that no changes has been made in the x86 code because both Linux and Xen will only use 4KB page granularity. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc

[RFC 15/23] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-05-14 Thread Julien Grall
will have to split the Linux page in 4K chunk before asking Xen to add/remove the frame from the guest. Note that this can work on any page granularity assuming it's a multiple of 4K. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris

[RFC 00/23] arm64: Add support for 64KB page granularity in Xen guest

2015-05-14 Thread Julien Grall
Julien Grall (23): xen: Include xen/page.h rather than asm/xen/page.h xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring xen/grant-table: Remove unused macro SPP block/xen-blkfront: Remove unused macro MAXIMUM_OUTSTANDING_BLOCK_REQS block/xen-blkfront: Remove invalid comment

[RFC 01/23] xen: Include xen/page.h rather than asm/xen/page.h

2015-05-14 Thread Julien Grall
Using xen/page.h will be necessary later for using common xen page helpers. As xen/page.h already include asm/xen/page.h, always use the later. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc

[RFC 05/23] block/xen-blkfront: Remove invalid comment

2015-05-14 Thread Julien Grall
From: Julien Grall julien.gr...@linaro.org Since commit b764915 xen-blkfront: use a different scatterlist for each request, biovec has been replaced by scatterlist when copying back the data during a completion request. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek

[RFC 06/23] block/xen-blkback: s/nr_pages/nr_segs/

2015-05-14 Thread Julien Grall
From: Julien Grall julien.gr...@linaro.org Make the code less confusing to read now that Linux may not have the same page size as Xen. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Roger Pau Monné roger@citrix.com --- drivers/block

[RFC 03/23] xen/grant-table: Remove unused macro SPP

2015-05-14 Thread Julien Grall
SPP was used by the grant table v2 code which has been removed in commit 438b33c7145ca8a5131a30c36d8f59bce119a19a xen/grant-table: remove support for V2 tables. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky boris.ostrov

[RFC 19/23] block/xen-blkback: Make it running on 64KB page granularity

2015-05-14 Thread Julien Grall
on the grant table code. Note that the grant table code is allocating a Linux page per grant which will result to waste 6OKB for every grant when Linux is using 64KB page granularity. This could be improved by sharing the page between multiple grants. Signed-off-by: Julien Grall julien.gr

[RFC 20/23] net/xen-netfront: Make it running on 64KB page granularity

2015-05-14 Thread Julien Grall
on the grant table code. Note that we allocate a Linux page for each rx skb but only the first 4KB is used. We may improve the memory usage by extending the size of the rx skb. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky

[RFC 13/23] xen/xenbus: Use Xen page definition

2015-05-14 Thread Julien Grall
The xenstore ring is always based on the page granularity of Xen. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky boris.ostrov...@oracle.com Cc: David Vrabel david.vra...@citrix.com --- drivers/xen/xenbus/xenbus_probe.c | 4

[RFC 02/23] xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring

2015-05-14 Thread Julien Grall
don't use it later. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Wei Liu wei.l...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky boris.ostrov...@oracle.com Cc: David Vrabel david.vra...@citrix.com --- drivers/xen/xenbus/xenbus_client.c | 6 +++--- 1 file

[RFC 23/23] arm/xen: Add support for 64KB page granularity

2015-05-14 Thread Julien Grall
page even though only the first 4KB is used. I don't think this is really important for now as it helps to have the pointer 4KB aligned (XENMEM_add_to_physmap is taking a Xen PFN). Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc

[RFC 10/23] xen/biomerge: WORKAROUND always says the biovec are not mergeable

2015-05-14 Thread Julien Grall
When Linux is using 64K page granularity, every page will be slipt in multiple non-contiguous 4K MFN. I'm not sure how to handle efficiently the check to know whether we can merge 2 biovec with a such case. So for now, always says that biovec are not mergeable. Signed-off-by: Julien Grall

[RFC 11/23] xen: Add Xen specific page definition

2015-05-14 Thread Julien Grall
definition. They have exactly the same name but prefixed with XEN_/xen_ prefix. Also modify page_to_pfn to use new Xen page definition. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky boris.ostrov...@oracle.com Cc: David

[RFC 22/23] xen/privcmd: Add support for Linux 64KB page granularity

2015-05-14 Thread Julien Grall
will have to map multiple Xen PFN in a single Linux page. Note that this solution works on page granularity which is a multiple of 4KB. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky boris.ostrov...@oracle.com Cc: David Vrabel

[RFC 09/23] arm/xen: Drop duplicate define mfn_to_virt

2015-05-14 Thread Julien Grall
From: Julien Grall julien.gr...@linaro.org Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com --- arch/arm/include/asm/xen/page.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen

[RFC 04/23] block/xen-blkfront: Remove unused macro MAXIMUM_OUTSTANDING_BLOCK_REQS

2015-05-14 Thread Julien Grall
From: Julien Grall julien.gr...@linaro.org Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Roger Pau Monné roger@citrix.com Cc: Boris Ostrovsky boris.ostrov...@oracle.com Cc: David Vrabel david.vra...@citrix.com --- drivers/block/xen

[RFC 08/23] net/xen-netback: Remove unused code in xenvif_rx_action

2015-05-14 Thread Julien Grall
The variables old_req_cons and ring_slots_used are assigned but never used since commit 1650d5455bd2dc6b5ee134bd6fc1a3236c266b5b xen-netback: always fully coalesce guest Rx packets. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu wei.l

[RFC 12/23] xen: Extend page_to_mfn to take an offset in the page

2015-05-14 Thread Julien Grall
With 64KB page granularity support in Linux, a page will be split accross multiple MFN (Xen is using 4KB page granularity). Thoses MFNs may not be contiguous. With the offset in the page, the helper will be able to know which MFN the driver needs to retrieve. Signed-off-by: Julien Grall

[RFC 18/23] block/xen-blkfront: Make it running on 64KB page granularity

2015-05-14 Thread Julien Grall
From: Julien Grall julien.gr...@linaro.org The PV block protocol is using 4KB page granularity. The goal of this patch is to allow a Linux using 64KB page granularity using block device on a non-modified Xen. The block API is using segment which should at least be the size of a Linux page

[RFC 16/23] xen/events: fifo: Make it running on 64KB granularity

2015-05-14 Thread Julien Grall
chunk). That would require more care when we fail to expand the event channel. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky boris.ostrov...@oracle.com Cc: David Vrabel david.vra...@citrix.com --- drivers/xen/events

[RFC 14/23] tty/hvc: xen: Use xen page definition

2015-05-14 Thread Julien Grall
The console ring is always based on the page granularity of Xen. Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: Jiri Slaby jsl...@suse.cz Cc: David Vrabel david.vra...@citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc

[RFC 21/23] net/xen-netback: Make it running on 64KB page granularity

2015-05-14 Thread Julien Grall
for (I have limited knowledge on the network driver). Signed-off-by: Julien Grall julien.gr...@citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu wei.l...@citrix.com Cc: net...@vger.kernel.org --- Improvement such as support of 64KB grant is not taken into consideration

Re: [Xen-devel] [RFC 21/23] net/xen-netback: Make it running on 64KB page granularity

2015-05-15 Thread Julien Grall
Hi Wei, Thanks you for the review. On 15/05/15 03:35, Wei Liu wrote: On Thu, May 14, 2015 at 06:01:01PM +0100, Julien Grall wrote: The PV network protocol is using 4KB page granularity. The goal of this patch is to allow a Linux using 64KB page granularity working as a network backend

Re: [Xen-devel] [RFC 21/23] net/xen-netback: Make it running on 64KB page granularity

2015-05-18 Thread Julien Grall
Hi Wei, On 15/05/15 16:31, Wei Liu wrote: On Fri, May 15, 2015 at 01:35:42PM +0100, Julien Grall wrote: On 15/05/15 03:35, Wei Liu wrote: On Thu, May 14, 2015 at 06:01:01PM +0100, Julien Grall wrote: The PV network protocol is using 4KB page granularity. The goal of this patch is to allow

Re: [Xen-devel] [RFC 00/23] arm64: Add support for 64KB page granularity in Xen guest

2015-05-18 Thread Julien Grall
Hi David, On 15/05/15 16:45, David Vrabel wrote: On 14/05/15 18:00, Julien Grall wrote: Hi all, ARM64 Linux is supporting both 4KB and 64KB page granularity. Although, Xen hypercall interface and PV protocol are always based on 4KB page granularity. Any attempt to boot a Linux guest

Re: [RFC 10/23] xen/biomerge: WORKAROUND always says the biovec are not mergeable

2015-05-19 Thread Julien Grall
Hi Boris, On 15/05/15 16:54, Boris Ostrovsky wrote: On 05/14/2015 01:00 PM, Julien Grall wrote: When Linux is using 64K page granularity, every page will be slipt in multiple non-contiguous 4K MFN. I'm not sure how to handle efficiently the check to know whether we can merge 2 biovec

Re: [Xen-devel] [RFC 12/23] xen: Extend page_to_mfn to take an offset in the page

2015-05-19 Thread Julien Grall
Hi David, On 19/05/15 14:57, David Vrabel wrote: On 14/05/15 18:00, Julien Grall wrote: With 64KB page granularity support in Linux, a page will be split accross multiple MFN (Xen is using 4KB page granularity). Thoses MFNs may not be contiguous. With the offset in the page, the helper

Re: [Xen-devel] [RFC 13/23] xen/xenbus: Use Xen page definition

2015-05-19 Thread Julien Grall
Hi David, On 19/05/15 14:59, David Vrabel wrote: On 14/05/15 18:00, Julien Grall wrote: The xenstore ring is always based on the page granularity of Xen. [...] --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c @@ -713,7 +713,7 @@ static int __init

Re: [Xen-devel] [RFC 02/23] xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring

2015-05-19 Thread Julien Grall
vaddr is a void *. Arithmetic on void pointer is a GCC extension [1]. I wasn't sure what is the Linux policy on it. Regards, [1] https://gcc.gnu.org/onlinedocs/gcc/Pointer-Arith.html#Pointer-Arith -- Julien Grall -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [Xen-devel] [PATCH v4 2/2] xen/block: add multi-page ring support

2015-05-20 Thread Julien Grall
order of pages to be used as the ring); +/* * The LRU mechanism to clean the lists of persistent grants needs to * be executed periodically. The time interval between consecutive executions * of the purge mechanism is set in ms. Regards, -- Julien Grall -- To unsubscribe from this list

Re: [Xen-devel] [RFC 21/23] net/xen-netback: Make it running on 64KB page granularity

2015-05-19 Thread Julien Grall
Hi, On 18/05/2015 13:54, Wei Liu wrote: On Mon, May 18, 2015 at 01:11:26PM +0100, Julien Grall wrote: On 15/05/15 16:31, Wei Liu wrote: On Fri, May 15, 2015 at 01:35:42PM +0100, Julien Grall wrote: On 15/05/15 03:35, Wei Liu wrote: On Thu, May 14, 2015 at 06:01:01PM +0100, Julien Grall

Re: [Xen-devel] [PATCH v2 1/2] net/xen-netfront: Correct printf format in xennet_get_responses

2015-06-05 Thread Julien Grall
On 04/06/15 17:25, Joe Perches wrote: On Thu, 2015-06-04 at 13:52 +0100, Julien Grall wrote: On 04/06/15 13:46, David Vrabel wrote: On 04/06/15 13:45, Julien Grall wrote: On 03/06/15 18:06, Joe Perches wrote: On Wed, 2015-06-03 at 17:55 +0100, Julien Grall wrote: rx-status is an int16_t

[PATCH v2 2/2] net/xen-netback: Remove unused code in xenvif_rx_action

2015-06-03 Thread Julien Grall
The variables old_req_cons and ring_slots_used are assigned but never used since commit 1650d5455bd2dc6b5ee134bd6fc1a3236c266b5b xen-netback: always fully coalesce guest Rx packets. Signed-off-by: Julien Grall julien.gr...@citrix.com Acked-by: Wei Liu wei.l...@citrix.com Cc: Ian Campbell

[PATCH v2 1/2] net/xen-netfront: Correct printf format in xennet_get_responses

2015-06-03 Thread Julien Grall
rx-status is an int16_t, print it using %d rather than %u in order to have a meaningful value when the field is negative. Signed-off-by: Julien Grall julien.gr...@citrix.com Reviewed-by: David Vrabel david.vra...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky

[PATCH v2 0/2] net/xen: Clean up

2015-06-03 Thread Julien Grall
david.vra...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky boris.ostrov...@oracle.com Cc: net...@vger.kernel.org [1] http://lkml.org/lkml/2015/5/14/533 Julien Grall (2): net/xen-netfront: Correct printf format in xennet_get_responses net/xen-netback: Remove unused

[PATCH v3 2/2] net/xen-netback: Remove unused code in xenvif_rx_action

2015-06-04 Thread Julien Grall
The variables old_req_cons and ring_slots_used are assigned but never used since commit 1650d5455bd2dc6b5ee134bd6fc1a3236c266b5b xen-netback: always fully coalesce guest Rx packets. Signed-off-by: Julien Grall julien.gr...@citrix.com Acked-by: Wei Liu wei.l...@citrix.com Cc: Ian Campbell

  1   2   3   4   5   6   7   8   9   10   >