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

Re: [PATCH] xen: check return value of xenbus_printf

2015-10-15 Thread Julien Grall
d will supply relative coordinates. > > > I cannot understand If the frontend is not able to write the node "request-abs-pointer" in the xenstore, the backend will always supply relative coordinates. Although, as abs = 1, the frontend will be configured to handle absolute co

Re: [Xen-devel] [PATCH 2/2] block/xen-blkfront: Handle non-indirect grant with 64KB pages

2015-10-12 Thread Julien Grall
On 06/10/15 11:06, Roger Pau Monné wrote: > El 06/10/15 a les 11.58, Julien Grall ha escrit: >> Hi Roger, >> >> On 06/10/2015 10:39, Roger Pau Monné wrote: >>> El 05/10/15 a les 19.05, Julien Grall ha escrit: >>>> On 05/10/15 17:01, Roger Pau Monné wr

[PATCH 3/3] xenbus: Support multiple grants ring with 64KB

2015-10-13 Thread Julien Grall
will always be mapped on the first 4KB of each Linux page which make the final ring not contiguous in the memory. This can be fixed by mapping multiple grant in a same Linux page. Signed-off-by: Julien Grall --- Cc: Konrad Rzeszutek Wilk Cc: Boris Ostrovsky Cc: David Vrabel Cc: Stefano Stabellini

[PATCH 0/3] xen/xenbus: Support multiple grants ring with 64KB page

2015-10-13 Thread Julien Grall
Hi all, The support of multiple grants ring was left aside for 64KB page. This series aims to fix it. It's based on xentip/for-linus-4.4. Sincelerely yours, Cc: Boris Ostrovsky Cc: David Vrabel Cc: Konrad Rzeszutek Wilk Cc: "Roger Pau Monné" Cc: Stefano Stabellini Julien Grall

[PATCH 1/3] xen/xenbus: Rename *RING_PAGE* to *RING_GRANT*

2015-10-13 Thread Julien Grall
Linux may use a different page size than the size of grant. So make clear that the order is actually in number of grant. Signed-off-by: Julien Grall --- Cc: Konrad Rzeszutek Wilk Cc: "Roger Pau Monné" Cc: Boris Ostrovsky Cc: David Vrabel Cc: Stefano Stabellini --- drivers

[PATCH 2/3] xen/grant-table: Add an helper to iterate over a specific number of grants

2015-10-13 Thread Julien Grall
helper which take an array of Linux page and a number of grant and will figure out the address of each grant. Signed-off-by: Julien Grall --- Cc: Konrad Rzeszutek Wilk Cc: Boris Ostrovsky Cc: David Vrabel Cc: Stefano Stabellini --- drivers/xen/grant-table.c | 22 ++ include

Re: [Xen-devel] [PATCH 2/2] block/xen-blkfront: Handle non-indirect grant with 64KB pages

2015-10-19 Thread Julien Grall
at I'm planning to update the commit message to summarize my previous mail. > Acked-by: Roger Pau Monné Thank you, I will try to resend a new version today. Regards, -- Julien Grall -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

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

2015-10-19 Thread Julien Grall
: "Roger Pau Monné" Cc: Boris Ostrovsky Cc: David Vrabel Julien Grall (2): block/xen-blkfront: Introduce blkif_ring_get_request block/xen-blkfront: Handle non-indirect grant with 64KB pages drivers/block/xen-blkfront.c | 230 ++- 1 file ch

[PATCH v2 1/2] block/xen-blkfront: Introduce blkif_ring_get_request

2015-10-19 Thread Julien Grall
The code to get a request is always the same. Therefore we can factorize it in a single function. Signed-off-by: Julien Grall Acked-by: Roger Pau Monné --- Cc: Konrad Rzeszutek Wilk Cc: Boris Ostrovsky Cc: David Vrabel Changes in v2: - Add Royger's acked-by --- drivers/block

[PATCH v2 2/2] block/xen-blkfront: Handle non-indirect grant with 64KB pages

2015-10-19 Thread Julien Grall
n't been updated. The block code will set the mimimum size supported and we may be able to support directly any change in the block framework that lower down the minimal size of a request. [1] http://lists.xen.org/archives/html/xen-devel/2015-08/msg02200.html Signed-off-by: Julien Grall ---

Re: [PATCH] xen: check return value of xenbus_printf

2015-10-19 Thread Julien Grall
e first parameter. I.e: xenbus_printf(XBT_NIL, dev->nodename, "request-abs-pointer", "1"); See an example in xenkbd_backend_changed. With that fixed: Reviewed-by: Julien Grall > + if (ret) { > + pr_warning("xen

[PATCH] mm: hotplug: Don't release twice the resource on error

2015-10-23 Thread Julien Grall
As the caller is allocating the resource, let him handle the release. This has been introduced by commit b75351f "mm: memory hotplug with an existing resource". Signed-off-by: Julien Grall --- Cc: David Vrabel Cc: linux...@kvack.org The patch who introduced this issue is in xentip/for

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

2015-12-07 Thread Julien Grall
Hi Konrad, On 01/12/15 18:52, Konrad Rzeszutek Wilk wrote: > On Tue, Dec 01, 2015 at 05:55:48PM +0000, Julien Grall wrote: >> Hi Konrad, >> >> On 01/12/15 15:37, Konrad Rzeszutek Wilk wrote: >>> On Wed, Nov 18, 2015 at 06:57:23PM +, Julien Grall wrote: >>&

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 2/2] block/xen-blkfront: Handle non-indirect grant with 64KB pages

2015-12-08 Thread Julien Grall
bility of the code. It even make it worth in the two cases. -- 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 read

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 v2 2/2] block/xen-blkfront: Handle non-indirect grant with 64KB pages

2015-11-12 Thread Julien Grall
Hi, On 12/11/15 16:40, Roger Pau Monné wrote: >> [1] http://lists.xen.org/archives/html/xen-devel/2015-08/msg02200.html >> >> Signed-off-by: Julien Grall > > LGTM, only a couple of typos and a simplification: > > Signed-off-by: Roger Pau Monné Do you mean Acked

Re: [Xen-devel] [PATCH v2 2/2] block/xen-blkfront: Handle non-indirect grant with 64KB pages

2015-11-12 Thread Julien Grall
On 12/11/15 17:51, Roger Pau Monné wrote: > El 12/11/15 a les 18.30, Julien Grall ha escrit: >> Hi, >> >> On 12/11/15 16:40, Roger Pau Monné wrote: >>>> [1] http://lists.xen.org/archives/html/xen-devel/2015-08/msg02200.html >>>> >>>>

Re: [Xen-devel] [PATCH v2 2/2] block/xen-blkfront: Handle non-indirect grant with 64KB pages

2015-11-12 Thread Julien Grall
xample if we have ERROR and > NOTSUPP we should return ERROR, while if we have OK and NOTSUPP we > should return NOTSUPP. I will give a look. -- Julien Grall -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vg

Re: [Xen-devel] [PATCH v4 2/7] xen/arm: introduce HYPERVISOR_platform_op on arm and arm64

2015-11-13 Thread Julien Grall
the architecture as this helpers may be called from common code. > int HYPERVISOR_multicall(struct multicall_entry *calls, uint32_t nr); > > static inline int Regards, -- Julien Grall -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

Re: [Xen-devel] [PATCH v4 4/7] arm: extend pvclock_wall_clock with sec_hi

2015-11-13 Thread Julien Grall
Hi Stefano, On 12/11/15 17:30, Stefano Stabellini wrote: > The hypervisor actually exposes an additional field to struct > pvclock_wall_clock, with the high 32 bit seconds. > > Signed-off-by: Stefano Stabellini Reviewed-by: Julien Grall Regards, -- Julien Grall -- To unsu

Re: [Xen-devel] [PATCH v4 6/7] xen/arm: set the system time in Xen via the XENPF_settime64 hypercall

2015-11-13 Thread Julien Grall
313,7 +364,9 @@ static int __init xen_guest_init(void) > > pv_time_ops.steal_clock = xen_stolen_accounting; > static_key_slow_inc(_steal_enabled); > - > + if (xen_initial_domain()) > + pvclock_gtod_register_notifier(_pvclock_gtod_notifier); > + I think, you've introduced a trail

Re: [Xen-devel] [PATCH v4 2/7] xen/arm: introduce HYPERVISOR_platform_op on arm and arm64

2015-11-13 Thread Julien Grall
(CC David, Boris and Konrad) On 13/11/15 18:10, Stefano Stabellini wrote: > On Fri, 13 Nov 2015, Julien Grall wrote: >> Hi Stefano, >> >> On 12/11/15 17:30, Stefano Stabellini wrote: >>> Signed-off-by: Stefano Stabellini >>> >>> --- >>&g

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

2015-11-18 Thread Julien Grall
Hi Konrad, On 09/11/15 16:05, Konrad Rzeszutek Wilk wrote: > On Mon, Nov 09, 2015 at 03:51:48PM +0000, Julien Grall wrote: >> Hi, >> >> Any comments on this new version? > > I completly ignored thinking that the: > > c004a6f block/xen-blkfront: Make it running o

[PATCH v3 2/2] block/xen-blkfront: Handle non-indirect grant with 64KB pages

2015-11-18 Thread Julien Grall
n't been updated. The block code will set the mimimum size supported and we may be able to support directly any change in the block framework that lower down the minimal size of a request. [1] http://lists.xen.org/archives/html/xen-devel/2015-08/msg02200.html Signed-off-by: Julien Grall ---

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

2015-11-18 Thread Julien Grall
: "Roger Pau Monné" Cc: Boris Ostrovsky Cc: David Vrabel Cc: Bob Liu Julien Grall (2): block/xen-blkfront: Introduce blkif_ring_get_request block/xen-blkfront: Handle non-indirect grant with 64KB pages drivers/block/xen-blkfront.c | 258 ++---

[PATCH v3 1/2] block/xen-blkfront: Introduce blkif_ring_get_request

2015-11-18 Thread Julien Grall
The code to get a request is always the same. Therefore we can factorize it in a single function. Signed-off-by: Julien Grall Acked-by: Roger Pau Monné --- Cc: Konrad Rzeszutek Wilk Cc: Boris Ostrovsky Cc: David Vrabel Cc: Bob Liu Changes in v2: - Add Royger's acked

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

[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 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 --- Cc: Christoffer Dall Cc: Marc Zyngier Cc: Gleb Natapov Cc: Paolo Bonzini include/kvm/arm_vgic.h | 7

[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 --- Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Christoffer Dall Cc: Marc Zyngier Cc: Gleb Natapov Cc: Paolo Bonzini drivers/clocksource/arm_arch_timer.c | 2 ++ include/clocksource

[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 --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier drivers/irqchip/irq-gic-common.c | 13 ++ drivers/irqchip/irq-gic-common.h | 3 ++ drivers/irqchip/irq-gic.c | 78

[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 --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier drivers/irqchip/irq-gic-v3.c | 43 ++ include/linux/irqchip/arm-gic-common.h | 1

[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 --- Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Christoffer Dall Cc: Marc Zyngier Cc: Gleb Natapov Cc: Paolo Bonzini drivers/clocksource

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

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

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

[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 Acked-by: Christoffer Dall --- Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Marc Zyngier Changes in v6: - Add Christoffer's acked

[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 Reviewed-by: Christoffer Dall --- Cc: Marc Zyngier Cc: Gleb Natapov Cc: Paolo Bonzini Changes in v6

[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 Acked-by: Christoffer Dall --- Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Marc Zyngier Changes in v6: - Add Christoffer's acked-by Changes in v4: - Move the initialization of the virtual_irq into arch_timer_init

[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 --- Changes in v6: - Patch added --- drivers/irqchip/irq-gic-v3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[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 Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier --- Changes in v6: - Skip unusable CPUs Changes in v5: - Remove the alignment check

[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 Acked-by: Christoffer Dall Reviewed-by: Hanjun Guo --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Tomasz Nowicki Changes in v6: - Add

[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 --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Changes in v6: - Move the code to get the maintenance interrupt later. It will avoid to call acpi_unregister_gsi when the function fails

[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

[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 Acked-by: Christoffer Dall --- Cc: Daniel Lezcano Cc: Thomas Gleixner Changes in v4: - Add Christoffer's acked-by Changes in v3: - Patch added --- drivers/clocksource

[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 Acked-by: Christoffer Dall --- Cc: Christoffer Dall Cc: Marc Zyngier Cc: Gleb Natapov Cc: Paolo Bonzini Changes in v4: - Add Christoffer's acked-by Changes in v3: - Patch added --- virt/kvm/arm/arch_timer.c | 40

Re: [Xen-devel] HVMLite / PVHv2 - using x86 EFI boot entry

2016-04-15 Thread Julien Grall
/guest.txt [3] http://www.gossamer-threads.com/lists/xen/devel/397349 -- Julien Grall

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

2016-04-04 Thread Julien Grall
Hi Christoffer, On 01/04/2016 11:13, Christoffer Dall wrote: On Thu, Mar 24, 2016 at 05:53:40PM +, Julien Grall wrote: diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 50e87e6..b5ed8be 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3

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

2016-04-04 Thread Julien Grall
are merged via the clocksource tree Patches #2-#6 are merged via the irqchip tree 2) Patches #7-#8 are merge via the KVM tree 3) Patch #9 is merged via the clocksource tree. For all the changes see in each patch. Regards, Cc: daniel.lezc...@linaro.org Julien Grall (9): clocksource

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

2016-04-04 Thread Julien Grall
in a subsequent patch. Signed-off-by: Julien Grall --- Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Marc Zyngier Changes in v4: - Move the initialization of the virtual_irq into arch_timer_init as KVM mandates the system registers timer. Changes in v3: - Move the KVM

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

2016-04-04 Thread Julien Grall
by the virtual timer code. Signed-off-by: Julien Grall Acked-by: Christoffer Dall --- Cc: Christoffer Dall Cc: Marc Zyngier Cc: Gleb Natapov Cc: Paolo Bonzini Changes in v4: - Add Christoffer's acked-by Changes in v3: - Patch added --- virt/kvm/arm/arch_timer.c | 40

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

2016-04-04 Thread Julien Grall
The only call of arch_timer_get_timecounter (in KVM) has been removed. Signed-off-by: Julien Grall Acked-by: Christoffer Dall --- Cc: Daniel Lezcano Cc: Thomas Gleixner Changes in v4: - Add Christoffer's acked-by Changes in v3: - Patch added --- drivers/clocksource

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

2016-04-04 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 v5 5/9] irqchip/gic-v3: Gather all ACPI specific data in a single structure

2016-04-04 Thread Julien Grall
the initialization. Therefore, the new variable, which hold the structure, can be marked with __initdata. Signed-off-by: Julien Grall --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Changes in v4: - Rework commit message Changes in v3: - Patch added --- drivers

[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 Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier --- Changes in v5: - Remove the alignment check for GICV. It's already done in the KVM

[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 --- Cc: Christoffer Dall Cc: Marc Zyngier Cc: Gleb Natapov Cc: Paolo Bonzini Changes in v4: - Remove

[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 --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Changes in v4: - Change the flow to call gic_set_kvm_info when all the information are present. - Rework comments in arm-gic

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

2016-04-04 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 --- Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Marc Zyngier Changes in v3: - Rename the patch - Move the KVM changes

Re: [Xen-devel] [PATCH] xen: Add comment for missing FROZEN notifier transitions

2016-04-04 Thread Julien Grall
: if (!per_cpu(cpu_control_block, cpu)) Regards, -- Julien Grall

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

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 Regards, -- Julien Grall

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

2016-04-06 Thread Julien Grall
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall Regards

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

2016-04-06 Thread Julien Grall
-by: Julien Grall 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
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: Use xen_xlate_map_ballooned_pages to setup grant table. Then it doesn't rely on DT or ACPI to pass the start address and size of grant table. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini Reviewed-by: Julien Grall Regards

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 Reviewed-by: Julien Grall Regards, -- Julien Grall

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

2016-04-06 Thread Julien Grall
| 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
Hi Shannon, On 01/04/2016 16:49, Shannon Zhao wrote: Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall Regards, -- Julien Grall

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 Acked-by: Stefano Stabellini Reviewed-by: Julien Grall 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 Reviewed-by: Stefano Stabellini Reviewed-by: Julien Grall Regards, -- Julien Grall

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

2016-04-06 Thread Julien Grall
Stabellini Reviewed-by: Julien Grall Regards, -- Julien Grall

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 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 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 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 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 Acked-by: Christoffer Dall Hi Julien, Hi Daniel, do you want me to take this patch through my tree

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

2016-03-29 Thread Julien Grall
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
} Can you invert the condition to remove one layer of indentation? Regards, -- Julien Grall

Re: [PATCH v7 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2016-03-29 Thread Julien Grall
y the regular UEFI stub. However +they differ because they are provided by the Xen hypervisor, together with a set +of UEFI runtime services implemented via hypercalls, see +http://xenbits.xen.org/docs/unstable/hypercall/x86_64/include,public,platform.h.html. Regards, [1] http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg03413.html -- Julien Grall

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

2016-03-30 Thread Julien Grall
Hi Shannon, On 30/03/16 08:38, Shannon Zhao wrote: On 2016/3/30 0:28, Julien Grall wrote: On 24/03/16 14:44, Shannon Zhao wrote: Make xen_xlate_map_ballooned_pages work with 64K pages. In that case Kernel pages are 64K in size but Xen pages remain 4K in size. Xen pfns refer to 4K pages

Re: [Xen-devel] [PATCH linux v2 0/9] xen: pvhvm: support bootup on secondary vCPUs

2016-07-25 Thread Julien Grall
nt" to define xen_vcpu_id (see patch #3). Regards, -- Julien Grall

Re: [Xen-devel] [PATCH linux v2 0/9] xen: pvhvm: support bootup on secondary vCPUs

2016-07-25 Thread Julien Grall
Hello, On 25/07/16 14:39, Vitaly Kuznetsov wrote: Julien Grall writes: Hi David, On 25/07/16 13:38, David Vrabel wrote: On 30/06/16 16:56, Vitaly Kuznetsov wrote: It may happen that Xen's and Linux's ideas of vCPU id diverge. In particular, when we crash on a secondary vCPU we may want

[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 Acked-by: Christoffer Dall --- Cc: Daniel Lezcano Cc: Thomas Gleixner Changes in v4: - Add Christoffer's acked-by Changes in v3: - Patch added --- drivers/clocksource

[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 --- Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Marc Zyngier Changes in v3: - Rename the patch - Move the KVM changes

[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 --- Cc: Christoffer Dall Cc: Marc Zyngier Cc: Gleb Natapov Cc: Paolo Bonzini Changes in v4: - Remove

[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 --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Changes in v4: - Rework commit message Changes in v3: - Patch added --- drivers

[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 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 --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Changes in v4: - Change the flow to call gic_set_kvm_info when all the information are present. - Rework comments in arm-gic

[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 Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier --- Changes in v4: - Change the flow to call gic_kvm_set_info only when all the mandatory

[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 Acked-by: Christoffer Dall --- Cc: Christoffer Dall Cc: Marc Zyngier Cc: Gleb Natapov Cc: Paolo Bonzini Changes in v4: - Add Christoffer's acked-by Changes in v3: - Patch added --- virt/kvm/arm/arch_timer.c | 40

[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 --- Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Marc Zyngier Changes in v4: - Move the initialization of the virtual_irq into arch_timer_init as KVM mandates the system registers timer. Changes in v3: - Move the KVM

<    7   8   9   10   11   12   13   14   >