Re: [Xen-devel] [PATCH v3 0/2] block/xen-blkfront: Support non-indirect grant with 64KB page granularity

2015-12-08 Thread Julien Grall
> @@ -716,8 +728,6 @@ static int blkif_queue_rw_req(struct request *req, struct > blkfront_ring_info *ri > if (setup.segments) > kunmap_atomic(setup.segments); > > - rinfo->ring.req_prod_pvt++; > - > /* Keep a private copy so we can

Re: [Xen-devel] [PATCH v3 0/2] block/xen-blkfront: Support non-indirect grant with 64KB page granularity

2015-12-08 Thread Julien Grall
Hi Konrad, On 07/12/15 15:01, Konrad Rzeszutek Wilk wrote: > On Mon, Dec 07, 2015 at 02:21:46PM +0000, Julien Grall wrote: >> Thank you, the changes look good to me. What about patch #2? > > Oh, I thought you said you would rebase it - so I had been waiting > for that

Re: [Xen-devel] [PATCH v3 0/2] block/xen-blkfront: Support non-indirect grant with 64KB page granularity

2015-12-01 Thread Julien Grall
Hi Konrad, On 01/12/15 15:37, Konrad Rzeszutek Wilk wrote: > On Wed, Nov 18, 2015 at 06:57:23PM +0000, Julien Grall wrote: >> Hi all, >> >> This is a follow-up on the previous discussion [1] related to guest using >> 64KB >> page granularity which doesn't

[PATCH] arm64: Add missing linux/bug.h include in asm/pgtable.h

2015-12-14 Thread Julien Grall
82d340081b6f71237373d1452e3573a5a122794c "arm64: Improve error reporting on set_pte_at() checks". This is because mmdebug.h relies on the includer to properly include the dependencies. Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- Cc: Stefano Stabellini <stefano.stabell..

Re: [PATCH] arm64: Add missing linux/bug.h include in asm/pgtable.h

2015-12-14 Thread Julien Grall
Hi Catalin, On 14/12/15 16:22, Catalin Marinas wrote: > On Mon, Dec 14, 2015 at 04:07:24PM +0000, Julien Grall wrote: >> Linux 4.4-rc5 doesn't build for arm64 with CONFIG_XEN=y enabled: >> >> In file included from linux/arch/arm64/include/asm/pgtable.h:60:0, >>

Re: [Xen-devel] [PATCH v3 0/2] block/xen-blkfront: Support non-indirect grant with 64KB page granularity

2015-11-30 Thread Julien Grall
Hi, Ping? Regards, On 18/11/15 18:57, Julien Grall wrote: > Hi all, > > This is a follow-up on the previous discussion [1] related to guest using 64KB > page granularity which doesn't boot when the backend isn't using indirect > descriptor. > > This has been success

Re: [Xen-devel] [PATCH v3 0/2] block/xen-blkfront: Support non-indirect grant with 64KB page granularity

2015-11-30 Thread Julien Grall
Hi, Just noticed that Bob and Konrad have not been correctly CCed. Regards, On 18/11/15 18:57, Julien Grall wrote: > Hi all, > > This is a follow-up on the previous discussion [1] related to guest using 64KB > page granularity which doesn't boot when the backend isn't us

ARM64 DOM0 crashing after commit 578270b "block: fix segment split"

2015-11-30 Thread Julien Grall
tor fingered the commit 578270b "block: fix segment split". If I reverted this patch on top of 4.4-rc3 and everything seems to work fine. Anyone have any ideas? FWIW, the 2 patches mentioned in a related thread [1] are already part of Linux 4.4-rc3. Regards, [1] https://lkml.org/lkml/2015

Re: ARM64 DOM0 crashing after commit 578270b "block: fix segment split"

2015-11-30 Thread Julien Grall
us' master and the problem disappear, thank you! Next time I will try your branch before sending an error report. 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 maj

Re: [Xen-devel] [PATCH] xen: grant-table: Check truncation when giving access to a frame

2016-06-13 Thread Julien Grall
Hello Paul, On 13/06/16 13:12, Paul Durrant wrote: -Original Message- From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of Julien Grall Sent: 13 June 2016 11:51 To: boris.ostrov...@oracle.com; David Vrabel; jgr...@suse.com; sstabell...@kernel.org; konrad.w...@oracle.com

Re: [Xen-devel] [PATCH] xen: grant-table: Check truncation when giving access to a frame

2016-06-13 Thread Julien Grall
On 13/06/16 13:41, Julien Grall wrote: Hello Paul, On 13/06/16 13:12, Paul Durrant wrote: -Original Message- From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of Julien Grall Sent: 13 June 2016 11:51 To: boris.ostrov...@oracle.com; David Vrabel; jgr...@suse.com

Re: [Xen-devel] [PATCH] xen: grant-table: Check truncation when giving access to a frame

2016-06-13 Thread Julien Grall
On 13/06/16 13:45, Paul Durrant wrote: -Original Message- From: Julien Grall [mailto:julien.gr...@arm.com] Sent: 13 June 2016 13:42 To: Paul Durrant; boris.ostrov...@oracle.com; David Vrabel; jgr...@suse.com; sstabell...@kernel.org; konrad.w...@oracle.com Cc: Andrew Cooper; xen-de

Re: [Xen-devel] [PATCH] xen: grant-table: Check truncation when giving access to a frame

2016-06-13 Thread Julien Grall
Hi David, On 13/06/16 11:57, David Vrabel wrote: On 13/06/16 11:50, Julien Grall wrote: The version 1 of the grant-table protocol only supports frame encoded on 32-bit. When the platform is supporting 48-bit physical address, the frame will be encoded on 36-bit which will lead a truncation

[PATCH] xen: grant-table: Check truncation when giving access to a frame

2016-06-13 Thread Julien Grall
the physical address, although today the RAM is always located under 40-bits (see xen/include/public/arch-arm.h). Add a truncation check in gnttab_update_entry_v1 to prevent the guest to give access to the wrong frame. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- This is limit

Re: [Xen-devel] [PATCH] xen: remove incorrect forward declaration

2016-05-26 Thread Julien Grall
ballooning on x86 32 bit PAE") Cc: sta...@vger.kernel.org Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> You have applied this patch to the branch for-linus-4.8 but not for-linus-4.7. Is it intentional? Regards, -- Julien Grall

[PATCH 0/3] drivers/perf: arm_pmu: Small bug fixes in the driver

2016-05-31 Thread Julien Grall
Hello all, This patch series contains a series of small bug fixes for the arm_pmu drivers. I think all the patch should be backported to stable but I have not figured out up to which version. Julien Grall (3): drivers/perf: arm_pmu: Fix reference count of a device_node in of_pmu_irq_cfg

[PATCH 2/3] drivers/perf: arm_pmu: Defer the setting of __oprofile_cpu_pmu

2016-05-31 Thread Julien Grall
the setting of __oprofile_cpu_pmu when the PMU is fully initialized (i.e when it is no longer possible to fail). Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Mark Rutland <mark.rutl...@arm.com> --- drivers/perf/arm_pmu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deleti

[PATCH 3/3] drivers/perf: arm_pmu: Avoid leaking pmu->irq_affinity on error

2016-05-31 Thread Julien Grall
e(NULL) is benign. Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Mark Rutland <mark.rutl...@arm.com> --- drivers/perf/arm_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c index 95614d2..1b8304e 100644 --- a/drivers/pe

[PATCH 1/3] drivers/perf: arm_pmu: Fix reference count of a device_node in of_pmu_irq_cfg

2016-05-31 Thread Julien Grall
is using dn between the first and second call to of_node_put. Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Mark Rutland <mark.rutl...@arm.com> --- drivers/perf/arm_pmu.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/perf/arm_pmu.c b/

[PATCH 2/5] KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables

2016-02-08 Thread Julien Grall
timer code. With this changes, the support for ACPI is coming free. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Christoffer Dall <christoffer.d...@linaro.org> Cc:

[PATCH 3/5] irqchip/gic-v2: Parse and export virtual GIC information

2016-02-08 Thread Julien Grall
information. Also fill up the structure for GICv2. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> drivers/irqchip/irq-gic-common.c | 13

[PATCH 5/5] KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables

2016-02-08 Thread Julien Grall
information about the virtual GIC. With this change, the virtual GIC becomes agnostic to the firmware table and KVM will be able to initialize the vGIC on ACPI. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Christoffer Dall <christoffer.d...@linaro.org> Cc: Marc Zyngier <marc.

[PATCH 0/5] arm64: Add support of KVM with ACPI

2016-02-08 Thread Julien Grall
tables are duplicated which I think make more complex to support new firmware tables. Regards, [1] https://lists.cs.columbia.edu/pipermail/kvmarm/2016-February/018482.html [2] https://lists.cs.columbia.edu/pipermail/kvmarm/2016-February/018355.html Julien Grall (5): KVM: arm/arm64: arch_timer

[PATCH 4/5] irqchip/gic-v3: Parse and export virtual GIC information

2016-02-08 Thread Julien Grall
Fill up the recently introduced gic_kvm_info with the virtual GIC information. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> driv

[PATCH 1/5] KVM: arm/arm64: arch_timer: Gather KVM specific information in a structure

2016-02-08 Thread Julien Grall
, a stub for the new helper hasn't been introduced because KVM is requiring the arch timer for both ARM64 and ARM32. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Christoffer D

Re: [PATCH 3/5] irqchip/gic-v2: Parse and export virtual GIC information

2016-02-10 Thread Julien Grall
, -- Julien Grall

Re: [PATCH 3/5] irqchip/gic-v2: Parse and export virtual GIC information

2016-02-10 Thread Julien Grall
Hi Marc, On 10/02/16 14:46, Marc Zyngier wrote: On 10/02/16 14:19, Julien Grall wrote: On 09/02/16 20:49, Christoffer Dall wrote: +static void __init gic_acpi_setup_kvm_info(void) +{ + gic_v2_kvm_info.type = GIC_V2; + + gic_v2_kvm_info.maint_irq = acpi_register_gsi(NULL

Re: [PATCH 3/5] irqchip/gic-v2: Parse and export virtual GIC information

2016-02-09 Thread Julien Grall
On 08/02/16 18:30, Marc Zyngier wrote: Julien, Hi Marc, On 08/02/16 16:47, Julien Grall wrote: [...] +static void __init gic_of_setup_kvm_info(struct device_node *node) +{ + int ret; + struct resource r; + unsigned int irq; + + gic_v2_kvm_info.type = GIC_V2

[PATCH v2 3/6] irqchip/gic-v2: Gather ACPI specific data in a single structure

2016-02-11 Thread Julien Grall
For now, there is only one member. More member will be added later. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> Changes in v

[PATCH v2 2/6] KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables

2016-02-11 Thread Julien Grall
timer code. With this changes, the support for ACPI is coming free. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Christoffer Dall <christoffer.d...@linaro.org> Cc:

[PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific information in a structure

2016-02-11 Thread Julien Grall
, a stub for the new helper hasn't been introduced because KVM is requiring the arch timer for both ARM64 and ARM32. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Christoffer D

[PATCH v2 0/6] arm64: Add support of KVM with ACPI

2016-02-11 Thread Julien Grall
Julien Grall (6): KVM: arm/arm64: arch_timer: Gather KVM specific information in a structure KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables irqchip/gic-v2: Gather ACPI specific data in a single structure irqchip/gic-v2: Parse and export virtual GIC

[PATCH v2 4/6] irqchip/gic-v2: Parse and export virtual GIC information

2016-02-11 Thread Julien Grall
information. Also fill up the structure for GICv2. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> Changes in v2: - Use 0 rath

[PATCH v2 6/6] KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables

2016-02-11 Thread Julien Grall
information about the virtual GIC. With this change, the virtual GIC becomes agnostic to the firmware table and KVM will be able to initialize the vGIC on ACPI. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Christoffer Dall <christoffer.d...@linaro.org> Cc: Marc Zyngie

[PATCH v2 5/6] irqchip/gic-v3: Parse and export virtual GIC information

2016-02-11 Thread Julien Grall
Fill up the recently introduced gic_kvm_info with the virtual GIC information. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> Change

Re: [PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific information in a structure

2016-02-19 Thread Julien Grall
Hello Wei, On 19/02/16 07:24, Wei Huang wrote: On 02/11/2016 09:33 AM, Julien Grall wrote: [...] This is also dropping arch_timer_get_timecounter as it was only used by the KVM code. Furthermore, a stub for the new helper hasn't been introduced because KVM is requiring the arch timer

Re: [PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific information in a structure

2016-02-19 Thread Julien Grall
On 19/02/16 10:53, Julien Grall wrote: -- Julien Grall IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person

Re: [PATCH v3 4/9] irqchip/gic-v2: Parse and export virtual GIC information

2016-03-14 Thread Julien Grall
Hi Christoffer, On 09/03/16 05:14, Christoffer Dall wrote: On Tue, Mar 08, 2016 at 11:29:28AM +, Julien Grall wrote: For now, the firmware tables are parsed 2 times: once in the GIC drivers, the other timer when initializing the vGIC. It means code duplication and make more tedious to add

Re: [PATCH v3 5/9] irqchip/gic-v3: Gather all ACPI specific data in a single structure

2016-03-15 Thread Julien Grall
Hi Christoffer, On 09/03/16 05:39, Christoffer Dall wrote: On Tue, Mar 08, 2016 at 11:29:29AM +, Julien Grall wrote: Even though all the variables aren't marked with __initdata, they are only used during initialization. So the structure is marked with __initdata. Not sure I understand

Re: [PATCH v3 1/9] clocksource: arm_arch_timer: Gather KVM specific information in a structure

2016-03-08 Thread Julien Grall
Hi Christoffer, On 09/03/2016 10:23, Christoffer Dall wrote: On Tue, Mar 08, 2016 at 11:29:25AM +, Julien Grall wrote: -static struct timecounter timecounter; +static struct arch_timer_kvm_info arch_timer_kvm_info; + +struct arch_timer_kvm_info *arch_timer_get_kvm_info(void) borderline

Re: [PATCH v3 2/9] clocksource: arm_arch_timer: Extend arch_timer_kvm_info to get the virtual IRQ

2016-03-08 Thread Julien Grall
Hi Christoffer, On 09/03/2016 10:27, Christoffer Dall wrote: On Tue, Mar 08, 2016 at 11:29:26AM +, Julien Grall wrote: diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index b7ab588..d8887f3 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b

Re: [PATCH v3 3/9] irqchip/gic-v2: Gather ACPI specific data in a single structure

2016-03-08 Thread Julien Grall
Hi Christoffer, On 09/03/2016 12:47, Christoffer Dall wrote: On Tue, Mar 08, 2016 at 11:29:27AM +, Julien Grall wrote: For now, there is only one member. More member will be added later. questionable commit message What about: "The ACPI code requires to use global variables in

Re: [PATCH v7 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-03-29 Thread Julien Grall
pfns[i] = pfn_to_gfn(xen_pfn++); + } Would it be possible to re-use xen_for_each_gfn? This will avoid open-coding the loop to break down the Linux page. Regards, -- Julien Grall

Re: [PATCH v7 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-03-29 Thread Julien Grall
trigger, polarity); + } + } Can you invert the condition to remove one layer of indentation? Regards, -- Julien Grall

Re: [PATCH v4 9/9] clocksource: arm_arch_timer: Remove arch_timer_get_timecounter

2016-03-29 Thread Julien Grall
On 29/03/16 15:39, Daniel Lezcano wrote: On 03/24/2016 06:53 PM, Julien Grall wrote: The only call of arch_timer_get_timecounter (in KVM) has been removed. Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Christoffer Dall <christoffer.d...@linaro.org> Hi Julien, Hi

Re: [PATCH v5 0/9] arm64: Add support for KVM with ACPI

2016-04-06 Thread Julien Grall
Hi Christoffer, On 06/04/2016 18:28, Christoffer Dall wrote: On Mon, Apr 04, 2016 at 12:37:31PM +0100, Julien Grall wrote: Hello, This patch series allows KVM to work with ACPI on ARM64. Currently, the firmware tables are parsed by the the virtual timer and virtual GIC code in order

Re: [PATCH v5 6/9] irqchip/gic-v3: Parse and export virtual GIC information

2016-04-06 Thread Julien Grall
Hi Christoffer, On 06/04/2016 18:22, Christoffer Dall wrote: On Mon, Apr 04, 2016 at 12:37:37PM +0100, Julien Grall wrote: +static void __init gic_acpi_setup_kvm_info(void) +{ + int irq; + + if (!gic_acpi_collect_virt_info()) { + pr_warn("Unable to get har

Re: [PATCH v5 4/9] irqchip/gic-v2: Parse and export virtual GIC information

2016-04-06 Thread Julien Grall
Hi Christoffer, On 06/04/2016 18:04, Christoffer Dall wrote: On Mon, Apr 04, 2016 at 12:37:35PM +0100, Julien Grall wrote: diff --git a/include/linux/irqchip/arm-gic-common.h b/include/linux/irqchip/arm-gic-common.h new file mode 100644 index 000..ef34f6f --- /dev/null +++ b/include/linux

Re: [PATCH v10 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-04-06 Thread Julien Grall
, it needs to check whether the DTS only contains a /hypervisor node and a /chosen node in acpi_boot_table_init(). Patches are tested on FVP base model. They can be fetched from[2]. I have tested this series and Linux is booting up to the prompt: Tested-by: Julien Grall <julien.gr...@arm.

Re: [PATCH v10 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-04-06 Thread Julien Grall
ellini <stefano.stabell...@eu.citrix.com> Reviewed-by: Julien Grall <julien.gr...@arm.com> Regards, -- Julien Grall

Re: [PATCH v5 6/9] irqchip/gic-v3: Parse and export virtual GIC information

2016-04-11 Thread Julien Grall
On 09/04/16 03:29, Shanker Donthineni wrote: Hi Julien, Hello Shanker, On 04/04/2016 06:37 AM, Julien Grall wrote: +static int __init gic_acpi_parse_virt_madt_gicc(struct acpi_subtable_header *header, + const unsigned long end) +{ + struct

Re: [PATCH v5 6/9] irqchip/gic-v3: Parse and export virtual GIC information

2016-04-11 Thread Julien Grall
Hello Hanjun, On 11/04/16 06:27, Hanjun Guo wrote: On 2016/4/4 19:37, Julien Grall wrote: +static void __init gic_acpi_setup_kvm_info(void) +{ +int irq; + +if (!gic_acpi_collect_virt_info()) { +pr_warn("Unable to get hardware information used for virtualizat

Re: [PATCH v5 4/9] irqchip/gic-v2: Parse and export virtual GIC information

2016-04-11 Thread Julien Grall
On 11/04/16 04:17, Hanjun Guo wrote: Hi Julian, Hi Hanjun, On 2016/4/4 19:37, Julien Grall wrote: @@ -1302,6 +1339,41 @@ static bool __init gic_validate_dist(struct acpi_subtable_header *header, #define ACPI_GICV2_DIST_MEM_SIZE(SZ_4K) #define ACPI_GIC_CPU_IF_MEM_SIZE(SZ_8K

[PATCH v6 09/10] KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables

2016-04-11 Thread Julien Grall
information about the virtual GIC. With this change, the virtual GIC becomes agnostic to the firmware table and KVM will be able to initialize the vGIC on ACPI. Signed-off-by: Julien Grall <julien.gr...@arm.com> Reviewed-by: Christoffer Dall <christoffer.d...@linaro.org> --- Cc: Marc Zyngie

[PATCH v6 02/10] clocksource: arm_arch_timer: Extend arch_timer_kvm_info to get the virtual IRQ

2016-04-11 Thread Julien Grall
in a subsequent patch. Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Christoffer Dall <christoffer.d...@linaro.org> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Marc Zyngier <marc.zyng...@arm.com>

[PATCH v6 05/10] irqchip/gic-v3: Prefix all pr_* messages by "GICv3: "

2016-04-11 Thread Julien Grall
Currently, most of the pr_* messages in the GICv3 driver don't have a prefix. Add one to make clear where the messages come from. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Changes in v6: - Patch added --- drivers/irqchip/irq-gic-v3.c | 2 ++ 1 file chan

[PATCH v6 10/10] clocksource: arm_arch_timer: Remove arch_timer_get_timecounter

2016-04-11 Thread Julien Grall
The only call of arch_timer_get_timecounter (in KVM) has been removed. Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Christoffer Dall <christoffer.d...@linaro.org> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.d

[PATCH v6 08/10] KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables

2016-04-11 Thread Julien Grall
by the virtual timer code. Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Christoffer Dall <christoffer.d...@linaro.org> --- Cc: Christoffer Dall <christoffer.d...@linaro.org> Cc: Marc Zyngier <marc.zyng...@arm.com> Cc: Gleb Natapov <g...@kernel.org> Cc: Paol

[PATCH v6 01/10] clocksource: arm_arch_timer: Gather KVM specific information in a structure

2016-04-11 Thread Julien Grall
and ARM32. The function arch_timer_get_timecounter is kept for the time being and will be dropped in a subsequent patch. Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Christoffer Dall <christoffer.d...@linaro.org> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> C

[PATCH v6 07/10] irqchip/gic-v3: Parse and export virtual GIC information

2016-04-11 Thread Julien Grall
Fill up the recently introduced gic_kvm_info with the hardware information used for virtualization. Signed-off-by: Julien Grall <julien.gr...@arm.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com>

[PATCH v6 06/10] irqchip/gic-v3: Gather all ACPI specific data in a single structure

2016-04-11 Thread Julien Grall
the initialization. Therefore, the new variable, which hold the structure, can be marked with __initdata. Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Christoffer Dall <christoffer.d...@linaro.org> Reviewed-by: Hanjun Guo <hanjun@linaro.org> --- Cc:

[PATCH v6 04/10] irqchip/gic-v2: Parse and export virtual GIC information

2016-04-11 Thread Julien Grall
information. Also fill up the structure for GICv2. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> Changes in v6: - Move the cod

[PATCH v6 03/10] irqchip/gic-v2: Gather ACPI specific data in a single structure

2016-04-11 Thread Julien Grall
The ACPI code requires to use global variables in order to collect information from the tables. For now, a single global variable is used, but more will be added in a subsequent patch. To make clear they are ACPI specific, gather all the information in a single structure. Signed-off-by: Julien

[PATCH v6 00/10] arm64: Add support for KVM with ACPI

2016-04-11 Thread Julien Grall
are merged via the clocksource tree Patches #2-#7 are merged via the irqchip tree 2) Patches #8-#9 are merge via the KVM tree 3) Patch #10 is merged via the clocksource tree. For all the changes see in each patch. Regards, Julien Grall (10): clocksource: arm_arch_timer: Gather KVM specific

Re: [PATCH v10 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-04-06 Thread Julien Grall
tefano Stabellini <stefano.stabell...@eu.citrix.com> Reviewed-by: Julien Grall <julien.gr...@arm.com> Regards, -- Julien Grall

Re: [PATCH v10 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Julien Grall <julien.gr...@arm.com> Regards, -- Julien Grall

Re: [PATCH v10 04/17] arm/xen: Use xen_xlate_map_ballooned_pages to setup grant table

2016-04-06 Thread Julien Grall
o.stabell...@eu.citrix.com> Reviewed-by: Julien Grall <julien.gr...@arm.com> Regards, -- Julien Grall

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-06 Thread Julien Grall
n_platform_notifier(void) +{ + if (!xen_initial_domain() || acpi_disabled) + return 0; + + return bus_register_notifier(_bus_type, _device_nb); +} + +arch_initcall(register_xen_platform_notifier); Regards, -- Julien Grall

Re: [PATCH v10 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-04-06 Thread Julien Grall
; Reviewed-by: Julien Grall <julien.gr...@arm.com> Regards, -- Julien Grall

Re: [PATCH v10 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: The kernel will get the event-channel IRQ through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> Reviewed-by: Julien Gral

Re: [PATCH v10 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-04-06 Thread Julien Grall
the interrupt polarity is active low(1) or high(0). Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> Reviewed-by: Julien Grall <julien.gr...@arm.com> Regards, -- Julien Grall

Re: [PATCH v10 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-04-06 Thread Julien Grall
n Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> Reviewed-by: Julien Grall <julien.gr...@arm.com> Regards, -- Julien Grall

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Julien Grall
Hi Shannon, On 07/04/16 02:37, Shannon Zhao wrote: On 2016/4/6 20:16, Julien Grall wrote: +gpfns[j] = XEN_PFN_DOWN(r->start) + j; +idxs[j] = XEN_PFN_DOWN(r->start) + j; +} + +xatp.domid = DOMID_SELF; +xatp.size = nr; +xatp

Re: [PATCH v10 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-04-07 Thread Julien Grall
On 07/04/16 02:39, Shannon Zhao wrote: Hi Julien, Hi Shannon, On 2016/4/6 19:32, Julien Grall wrote: Hi Shannon, On 01/04/2016 16:48, Shannon Zhao wrote: This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen ACPI on ARM64 design document could be found from [1

Re: [PATCH v3 6/9] irqchip/gic-v3: Parse and export virtual GIC information

2016-03-22 Thread Julien Grall
Hi Graeme, On 22/03/16 11:27, Graeme Gregory wrote: On Tue, Mar 08, 2016 at 11:29:30AM +, Julien Grall wrote: @@ -1020,6 +1060,13 @@ gic_acpi_parse_madt_gicc(struct acpi_subtable_header *header, return -ENOMEM; gic_acpi_register_redist(gicc->gicr_base_addr

[PATCH v4 8/9] KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables

2016-03-24 Thread Julien Grall
information about the virtual GIC. With this change, the virtual GIC becomes agnostic to the firmware table and KVM will be able to initialize the vGIC on ACPI. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Christoffer Dall <christoffer.d...@linaro.org> Cc: Marc Zyngier <marc.

[PATCH v4 5/9] irqchip/gic-v3: Gather all ACPI specific data in a single structure

2016-03-24 Thread Julien Grall
the initialization. Therefore, the new variable, which hold the structure, can be marked with __initdata. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.co

[PATCH v4 9/9] clocksource: arm_arch_timer: Remove arch_timer_get_timecounter

2016-03-24 Thread Julien Grall
The only call of arch_timer_get_timecounter (in KVM) has been removed. Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Christoffer Dall <christoffer.d...@linaro.org> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.d

[PATCH v4 1/9] clocksource: arm_arch_timer: Gather KVM specific information in a structure

2016-03-24 Thread Julien Grall
and ARM32. The function arch_timer_get_timecounter is kept for the time being and will be dropped in a subsequent patch. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Marc

[PATCH v4 0/9] arm64: Add support for KVM with ACPI

2016-03-24 Thread Julien Grall
introduces new helpers to retrieve the information from the different drivers in order to avoid duplication of the parsing code. To make the merge easier via the different trees, each patch modifies a single subsystem. For all the changes see the different patches. Yours sincerely, Julien Grall (9

[PATCH v4 6/9] irqchip/gic-v3: Parse and export virtual GIC information

2016-03-24 Thread Julien Grall
Fill up the recently introduced gic_kvm_info with the hardware information used for virtualization. Signed-off-by: Julien Grall <julien.gr...@arm.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com>

[PATCH v4 7/9] KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables

2016-03-24 Thread Julien Grall
by the virtual timer code. Signed-off-by: Julien Grall <julien.gr...@arm.com> Acked-by: Christoffer Dall <christoffer.d...@linaro.org> --- Cc: Christoffer Dall <christoffer.d...@linaro.org> Cc: Marc Zyngier <marc.zyng...@arm.com> Cc: Gleb Natapov <g...@kernel.org> Cc: Paol

[PATCH v4 2/9] clocksource: arm_arch_timer: Extend arch_timer_kvm_info to get the virtual IRQ

2016-03-24 Thread Julien Grall
in a subsequent patch. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Marc Zyngier <marc.zyng...@arm.com> Changes in v4: - Move the initializ

[PATCH v4 3/9] irqchip/gic-v2: Gather ACPI specific data in a single structure

2016-03-24 Thread Julien Grall
The ACPI code requires to use global variables in order to collect information from the tables. For now, a single global variable is used, but more will be added in a subsequent patch. To make clear they are ACPI specific, gather all the information in a single structure. Signed-off-by: Julien

[PATCH v4 4/9] irqchip/gic-v2: Parse and export virtual GIC information

2016-03-24 Thread Julien Grall
information. Also fill up the structure for GICv2. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> Changes in v4: - Change the flow

[PATCH v3 8/9] KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables

2016-03-08 Thread Julien Grall
information about the virtual GIC. With this change, the virtual GIC becomes agnostic to the firmware table and KVM will be able to initialize the vGIC on ACPI. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Christoffer Dall <christoffer.d...@linaro.org> Cc: Marc Zyngier <marc.

[PATCH v3 1/9] clocksource: arm_arch_timer: Gather KVM specific information in a structure

2016-03-08 Thread Julien Grall
and ARM32. The function arch_timer_get_timecounter is kept for the time being and will be dropped in a subsequent patch. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Marc

[PATCH v3 9/9] clocksource: arm_arch_timer: Remove arch_timer_get_timecounter

2016-03-08 Thread Julien Grall
The only call of arch_timer_get_timecounter (in KVM) has been removed. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.de> Changes in v3: - Patch added --- d

[PATCH v3 4/9] irqchip/gic-v2: Parse and export virtual GIC information

2016-03-08 Thread Julien Grall
information. Also fill up the structure for GICv2. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> Changes in v2: - Use 0 rath

[PATCH v3 0/9] arm64: Add support of KVM with ACPI

2016-03-08 Thread Julien Grall
, Julien Grall (9): clocksource: arm_arch_timer: Gather KVM specific information in a structure clocksource: arm_arch_timer: Extend arch_timer_kvm_info to get the virtual IRQ irqchip/gic-v2: Gather ACPI specific data in a single structure irqchip/gic-v2: Parse and export virtual GIC

[PATCH v3 2/9] clocksource: arm_arch_timer: Extend arch_timer_kvm_info to get the virtual IRQ

2016-03-08 Thread Julien Grall
in a subsequent patch. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Marc Zyngier <marc.zyng...@arm.com> Changes in v3: - Move the KVM changes in a separate pa

[PATCH v3 7/9] KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables

2016-03-08 Thread Julien Grall
by the virtual timer code. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Christoffer Dall <christoffer.d...@linaro.org> Cc: Marc Zyngier <marc.zyng...@arm.com> Cc: Gleb Natapov <g...@kernel.org> Cc: Paolo Bonzini <pbonz...@redhat.com> Changes in v3:

[PATCH v3 6/9] irqchip/gic-v3: Parse and export virtual GIC information

2016-03-08 Thread Julien Grall
Fill up the recently introduced gic_kvm_info with the virtual GIC information. Signed-off-by: Julien Grall <julien.gr...@arm.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> --- Changes i

[PATCH v3 3/9] irqchip/gic-v2: Gather ACPI specific data in a single structure

2016-03-08 Thread Julien Grall
For now, there is only one member. More member will be added later. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> Changes in v

[PATCH v3 5/9] irqchip/gic-v3: Gather all ACPI specific data in a single structure

2016-03-08 Thread Julien Grall
Even though all the variables aren't marked with __initdata, they are only used during initialization. So the structure is marked with __initdata. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemo

Re: [PATCH v2 2/6] KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables

2016-03-04 Thread Julien Grall
Hi Christoffer, On 03/03/16 19:38, Christoffer Dall wrote: On Thu, Feb 11, 2016 at 03:33:20PM +, Julien Grall wrote: [...] diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 6eb2c5d..3cdbefd 100644 --- a/drivers/clocksource/arm_arch_timer.c

Re: [RFC v5 03/17] iommu: introduce a reserved iova cookie

2016-03-03 Thread Julien Grall
, domain->ops = bus->iommu_ops; domain->type = type; + mutex_init(>reserved_mutex); For consistency, the RB-tree reserved_binding_list should be initialized too: domain->reserved_binding_list = RB_ROOT; Cheers, -- Julien Grall

[PATCH v5 6/9] irqchip/gic-v3: Parse and export virtual GIC information

2016-04-04 Thread Julien Grall
Fill up the recently introduced gic_kvm_info with the hardware information used for virtualization. Signed-off-by: Julien Grall <julien.gr...@arm.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com>

[PATCH v5 8/9] KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables

2016-04-04 Thread Julien Grall
information about the virtual GIC. With this change, the virtual GIC becomes agnostic to the firmware table and KVM will be able to initialize the vGIC on ACPI. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Christoffer Dall <christoffer.d...@linaro.org> Cc: Marc Zyngier <marc.

[PATCH v5 4/9] irqchip/gic-v2: Parse and export virtual GIC information

2016-04-04 Thread Julien Grall
information. Also fill up the structure for GICv2. Signed-off-by: Julien Grall <julien.gr...@arm.com> --- Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jason Cooper <ja...@lakedaemon.net> Cc: Marc Zyngier <marc.zyng...@arm.com> Changes in v4: - Change the flow

<    1   2   3   4   5   6   7   8   9   10   >