[PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux

2015-09-07 Thread Julien Grall
) Julien Grall (20): A net/xen-netback: xenvif_gop_frag_copy: move GSO check out of the loop A arm/xen: Drop pte_mfn and mfn_pte A M L xen: Add Xen specific page definition A M xen/grant: Introduce helpers to split a page into grant A xen/grant: Add helper

[PATCH v4 07/20] block/xen-blkfront: Store a page rather a pfn in the grant structure

2015-09-07 Thread Julien Grall
All the usage of the field pfn are done using the same idiom: pfn_to_page(grant->pfn) This will return always the same page. Store directly the page in the grant to clean up the code. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Acked-by: Roger Pau Monné <roger...

[PATCH v4 04/20] xen/grant: Introduce helpers to split a page into grant

2015-09-07 Thread Julien Grall
the compilation. Furthermore, only definition in interface/grant_table.h is required. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: David Vrabel <david.vra...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Konrad Rzeszu

[PATCH v4 05/20] xen/grant: Add helper gnttab_page_grant_foreign_access_ref_one

2015-09-07 Thread Julien Grall
which result to page_mfn not being defined when necessary. Signed-off-by: Julien Grall <julien.gr...@linaro.org> Reviewed-by: David Vrabel <david.vra...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Konrad Rzeszutek Wilk <konrad.w...@

[PATCH v4 02/20] arm/xen: Drop pte_mfn and mfn_pte

2015-09-07 Thread Julien Grall
They are not used in common code expect in one place in balloon.c which is only compiled when Linux is using PV MMU. It's not the case on ARM. Rather than worrying how to handle the 64KB case, drop them. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Stefano Stab

[PATCH v4 08/20] block/xen-blkfront: split get_grant in 2

2015-09-07 Thread Julien Grall
to copy data from persistent grant or indirect grant. Avoid to set it for other use case as it will have no meaning given the page will be split in multiple grant. Provide 2 functions, to setup indirect grant, the other for bio page. Signed-off-by: Julien Grall <julien.gr...@citrix.com>

[PATCH v4 03/20] xen: Add Xen specific page definition

2015-09-07 Thread Julien Grall
definition. They have exactly the same name but prefixed with XEN_/xen_ prefix. Also modify xen_page_to_gfn to use new Xen page definition. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Konrad Rz

[PATCH v4 01/20] net/xen-netback: xenvif_gop_frag_copy: move GSO check out of the loop

2015-09-07 Thread Julien Grall
The skb doesn't change within the function. Therefore it's only necessary to check if we need GSO once at the beginning. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- Cc: Ian Campbell <ian.campb...@citrix.com> Cc: net.

[PATCH v4 11/20] tty/hvc: xen: Use xen page definition

2015-09-07 Thread Julien Grall
The console ring is always based on the page granularity of Xen. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Jiri Slaby <jsl...@suse

[PATCH v4 19/20] xen/privcmd: Add support for Linux 64KB page granularity

2015-09-07 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> Reviewed-by: David Vrabel <david.vra...@citrix.com> --- Cc: Konrad Rzeszutek Wilk <konrad.w...

[PATCH v4 06/20] block/xen-blkfront: Split blkif_queue_request in 2

2015-09-07 Thread Julien Grall
execution path, separate the function in 2. This will also remove one level of tabulation. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Roger Pau Monné <roger@citrix.com> --- Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Cc: Boris Ostrovsky <boris

[PATCH v4 18/20] net/xen-netback: Make it running on 64KB page granularity

2015-09-07 Thread Julien Grall
on the grant table code. 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 in this pat

[PATCH v4 17/20] net/xen-netfront: Make it running on 64KB page granularity

2015-09-07 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> Reviewed-by: David Vrabel <david.vra...@citrix.com> --- Cc: Konr

[PATCH v4 15/20] block/xen-blkfront: Make it running on 64KB page granularity

2015-09-07 Thread Julien Grall
with 64KB page granularity). Furthermore, in the case of persistent grants we allocate one Linux page per grant although only the first 4KB of the page will be effectively in use. This could be improved by sharing the page with multiple grants. Signed-off-by: Julien Grall <julien.gr...@citrix.

[PATCH v4 20/20] arm/xen: Add support for 64KB page granularity

2015-09-07 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> Reviewed-by: Stefano Stabellini <stefan

[PATCH v4 16/20] block/xen-blkback: Make it running on 64KB page granularity

2015-09-07 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

[PATCH v4 12/20] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-09-07 Thread Julien Grall
of the extent_order field to directly allocate/free chunk of the Linux page size. Note that PVMMU is only used for PV guest (which is x86) and the page granularity is always 4KB. Some BUILD_BUG_ON has been added to ensure that because the code has not been modified. Signed-off-by: Julien Grall

[PATCH v4 13/20] xen/events: fifo: Make it running on 64KB granularity

2015-09-07 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> Reviewed-by: David Vrabel <david.vra...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@citrix.com> --- Cc: Konrad Rzeszu

[PATCH v4 10/20] xen/xenbus: Use Xen page definition

2015-09-07 Thread Julien Grall
All the ring (xenstore, and PV rings) are always based on the page granularity of Xen. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: David Vrabel <david.vra...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Kon

[PATCH v4 14/20] xen/grant-table: Make it running on 64KB granularity

2015-09-07 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> Reviewed-by: David Vrabel <david.vra...@c

Re: [Xen-devel] [PATCH v4 18/20] net/xen-netback: Make it running on 64KB page granularity

2015-09-08 Thread Julien Grall
latest linus' master. > On Mon, Sep 07, 2015 at 04:33:56PM +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 on a non-modified Xen.

[PATCH] device property: Don't overwrite addr when failing in device_get_mac_address

2015-09-03 Thread Julien Grall
vice_ functions for determining mac/phy" Signed-off-by: Julien Grall <julien.gr...@citrix.com> Cc: Jeremy Linton <jeremy.lin...@arm.com> Cc: David S. Miller <da...@davemloft.net> --- Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: net...@vger.kernel.org --- drivers

Re: [PATCH] efi/libstub/fdt: Standardize the names of EFI stub parameters

2015-09-10 Thread Julien Grall
eeBSD specific code in Xen, and even any OS specific code in Xen. It's better if we keep a common interface for everyone. 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/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH 2/2] xen/swiotlb: Add support for 64KB page granularity

2015-09-10 Thread Julien Grall
minimal because we only need to check the first Xen PFN. Note that it may be possible to optimize the function check_page_physically_contiguous to avoid looping over every Xen PFN for local memory. Although I will let this optimization for a follow-up. Signed-off-by: Julien Grall <julien

[PATCH 1/2] xen/swiotlb: Pass addresses rather than frame numbers to xen_arch_need_swiotlb

2015-09-10 Thread Julien Grall
With 64KB page granularity support, the frame number will be different. It will be easier to modify the behavior in a single place rather than in each caller. Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- Cc: Stefano Stabellini <stefano.stabell...@eu.citrix.com> Cc: Russ

Re: [Xen-devel] [PATCH] efi/libstub/fdt: Standardize the names of EFI stub parameters

2015-09-10 Thread Julien Grall
On 10/09/15 13:05, Roger Pau Monné wrote: > El 10/09/15 a les 13.48, Julien Grall ha escrit: >> On 10/09/15 12:32, Andrew Turner wrote: >>> On Thu, 10 Sep 2015 16:41:56 +0800 >>> Shannon Zhao <zhaoshengl...@huawei.com> wrote: >>> >&g

[PATCH 0/2] xen/swiotlb: Add support for 64KB page granularity,

2015-09-10 Thread Julien Grall
Rzeszutek Wilk <konrad.w...@oracle.com> Cc: Boris Ostrovsky <boris.ostrov...@oracle.com> Cc: David Vrabel <david.vra...@citrix.com> Julien Grall (2): xen/swiotlb: Pass addresses rather than frame numbers to xen_arch_need_swiotlb xen/swiotlb: Add support for 64KB page gran

Re: [PATCH v4 3/4] irqchip: GIC: Convert to EOImode == 1

2015-09-10 Thread Julien Grall
On 10/09/15 10:54, Marc Zyngier wrote: > Hi Julian, Hi Marc, > On 09/09/15 20:23, Julien Grall wrote: >> Hi, >> >> I've been trying the latest linus/master (a794b4f), which include this >> patch, as baremetal kernel on X-gene. This is failing on early boot &g

Re: [PATCH v4 3/4] irqchip: GIC: Convert to EOImode == 1

2015-09-10 Thread Julien Grall
On 10/09/15 17:30, Marc Zyngier wrote: > On 10/09/15 17:23, Julien Grall wrote: >> On 10/09/15 10:54, Marc Zyngier wrote: > > [...] > >>> In the meantime, can you give the following patch a shot? My Mustang is >>> wired to a 4kB CPU interface, so I'll need y

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

2015-09-13 Thread Julien Grall
On 12/09/2015 10:46, Bob Liu wrote: Hi Julien, Hi Bob, On 09/12/2015 03:31 AM, Julien Grall wrote: Hi all, This is a follow-up on the previous discussion [1] related to guest using 64KB page granularity not booting with backend using non-indirect grant. This has been successly tested

Re: [PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux

2015-09-14 Thread Julien Grall
On 14/09/15 12:04, Roger Pau Monné wrote: > Hello, > > El 14/09/15 a les 12.40, Julien Grall ha escrit: >> Hi Roger, >> >> On 14/09/15 09:56, Roger Pau Monné wrote: >>> El 07/09/15 a les 17.33, Julien Grall ha escrit: >>>> Hi all, >>&g

Re: [PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux

2015-09-14 Thread Julien Grall
Hi Roger, On 14/09/15 09:56, Roger Pau Monné wrote: > El 07/09/15 a les 17.33, Julien Grall ha escrit: >> 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 gra

Re: [PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux

2015-09-14 Thread Julien Grall
ularity, will be supported for years. Dropping any splitting in a short future (3-5 years) will just break those guests to boot on Xen. AFAIK, we never took a such radical decision on Xen based on the complexity of the code. Regards, -- Julien Grall -- To unsubscribe from this list: send

Re: [Xen-devel] [PATCH] xen: use correct type for HYPERVISOR_memory_op()

2015-09-14 Thread Julien Grall
iff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c > index f5ef674..4ebfcec 100644 > --- a/arch/x86/xen/setup.c > +++ b/arch/x86/xen/setup.c > @@ -548,7 +548,7 @@ static unsigned long __init xen_get_max_pages(void) > { > unsigned long max_pages, limit; >

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

2015-09-13 Thread Julien Grall
request. You may want to give a look to this patch before looking to this series. Regards, [1] https://lwn.net/Articles/656797/ [2] http://www.spinics.net/lists/arm-kernel/msg430468.html -- Julien Grall -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux

2015-09-14 Thread Julien Grall
se) will send an RFC to extend the grant size. 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/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] arm/xen: Enable user access to the kernel before issuing a privcmd call

2015-09-11 Thread Julien Grall
I won't fix this one. All the others will be fixed on the next version. 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: [PATCH v2] arm/xen: Enable user access to the kernel before issuing a privcmd call

2015-09-11 Thread Julien Grall
On 11/09/15 18:00, Russell King - ARM Linux wrote: > On Fri, Sep 11, 2015 at 05:25:59PM +0100, Julien Grall wrote: >> +/* >> + * Privcmd calls are issued by the userspace. We need to allow the >> + * kernel to access the userspace memory before

[PATCH v2] arm/xen: Enable user access to the kernel before issuing a privcmd call

2015-09-11 Thread Julien Grall
ations, so the change is only arm32 specific. Reported-by: Riku Voipio <riku.voi...@linaro.org> Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- Cc: Stefano Stabellini <stefano.stabell...@eu.citrix.com> Cc: Russell King <li...@arm.linux.org.uk> Changes in v2:

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

2015-09-11 Thread Julien Grall
e able to support directly any change in the block framework that lower down the mimimal size of a request. [1] http://lists.xen.org/archives/html/xen-devel/2015-08/msg02200.html Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Cc

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

2015-09-11 Thread Julien Grall
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> Julien Grall (2): block/xen-blkfront: Introduce blkif_ring_get_request block/xen-b

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

2015-09-11 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 <julien.gr...@citrix.com> --- Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Cc: "Roger Pau Monné" <roger@citrix.com> Cc: B

Re: [Xen-devel] [PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux

2015-09-11 Thread Julien Grall
Hi, A quick update on the TODO. On 07/09/15 16:33, Julien Grall wrote: > 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 with 64KB p

Re: [PATCH v2] arm/xen: Enable user access to the kernel before issuing a privcmd call

2015-09-11 Thread Julien Grall
On 11/09/15 18:32, Julien Grall wrote: > On 11/09/15 18:00, Russell King - ARM Linux wrote: >> On Fri, Sep 11, 2015 at 05:25:59PM +0100, Julien Grall wrote: >>> + /* >>> +* Privcmd calls are issued by the userspace. We need to allow the >>> +* kernel t

Re: [PATCH v4 3/4] irqchip: GIC: Convert to EOImode == 1

2015-09-11 Thread Julien Grall
On 11/09/2015 11:54, Ian Campbell wrote: On Thu, 2015-09-10 at 17:23 +0100, Julien Grall wrote: I applied the two patches on top of linus/master and I'm able to boot correctly on X-gene. Thank you! Perhaps we should replicate this approach in Xen and get rid

Re: [PATCH v4 3/4] irqchip: GIC: Convert to EOImode == 1

2015-09-11 Thread Julien Grall
On 11/09/15 12:09, Marc Zyngier wrote: > On 11/09/15 11:59, Julien Grall wrote: >> >> >> On 11/09/2015 11:54, Ian Campbell wrote: >>> On Thu, 2015-09-10 at 17:23 +0100, Julien Grall wrote: >>>> I applied the two patches on top of linus/master and I'm ab

Re: [PATCH] arm/xen: Enable user access to the kernel before issuing a privcmd call

2015-09-11 Thread Julien Grall
On 11/09/15 15:29, Ian Campbell wrote: > On Fri, 2015-09-11 at 15:16 +0100, Julien Grall wrote: >> When Xen is copyin data to/from the guest it will check if the kernel > > "copying" > >> has the right to do the access. If not, the hypercall will return a

Re: [PATCH] arm/xen: Enable user access to the kernel before issuing a privcmd call

2015-09-11 Thread Julien Grall
On 11/09/15 15:55, Ian Campbell wrote: > On Fri, 2015-09-11 at 15:45 +0100, Julien Grall wrote: >> On 11/09/15 15:29, Ian Campbell wrote: >>> On Fri, 2015-09-11 at 15:16 +0100, Julien Grall wrote: >>>> When Xen is copyin data to/from the guest it will check

[PATCH] arm/xen: Enable user access to the kernel before issuing a privcmd call

2015-09-11 Thread Julien Grall
ations, so the change is only arm32 specific. Reported-by: Riku Voipio <riku.voi...@linaro.org> Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- Cc: Stefano Stabellini <stefano.stabell...@eu.citrix.com> Cc: Russell King <li...@arm.linux.org.uk> ARM64 doesn't

Re: [PATCH] arm/xen: Enable user access to the kernel before issuing a privcmd call

2015-09-11 Thread Julien Grall
On 11/09/15 16:25, Russell King - ARM Linux wrote: > On Fri, Sep 11, 2015 at 03:56:38PM +0100, Julien Grall wrote: >> Well, we can't assume that the function will be called with uaccess >> disabled. > > Please explain your reasoning. I think I was confused about the usage

Re: [PATCH v2] arm/xen: Enable user access to the kernel before issuing a privcmd call

2015-09-11 Thread Julien Grall
On 11/09/15 18:00, Russell King - ARM Linux wrote: > On Fri, Sep 11, 2015 at 05:25:59PM +0100, Julien Grall wrote: >> +/* >> + * Privcmd calls are issued by the userspace. We need to allow the >> + * kernel to access the userspace memory before

Re: [Xen-devel] [PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux

2015-09-29 Thread Julien Grall
Hi David, On 29/09/15 17:27, David Vrabel wrote: > On 07/09/15 16:33, Julien Grall wrote: >> >> A branch based on the latest xentip/for-linus-4.3 can be found here: >> >> git://xenbits.xen.org/people/julieng/linux-arm.git branch xen-64k-v4 > > This has

[PATCH v5 08/22] block/xen-blkfront: split get_grant in 2

2015-09-30 Thread Julien Grall
to copy data from persistent grant or indirect grant. Avoid to set it for other use case as it will have no meaning given the page will be split in multiple grant. Provide 2 functions, to setup indirect grant, the other for bio page. Signed-off-by: Julien Grall <julien.gr...@citrix.com>

[PATCH v5 06/22] block/xen-blkfront: Split blkif_queue_request in 2

2015-09-30 Thread Julien Grall
execution path, separate the function in 2. This will also remove one level of tabulation. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Roger Pau Monné <roger@citrix.com> --- Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Cc: Boris Ostrovsky <boris

[PATCH v5 03/22] xen: Add Xen specific page definition

2015-09-30 Thread Julien Grall
definition. They have exactly the same name but prefixed with XEN_/xen_ prefix. Also modify xen_page_to_gfn to use new Xen page definition. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Konrad Rz

[PATCH v5 05/22] xen/grant: Add helper gnttab_page_grant_foreign_access_ref_one

2015-09-30 Thread Julien Grall
which result to page_mfn not being defined when necessary. Signed-off-by: Julien Grall <julien.gr...@linaro.org> Reviewed-by: David Vrabel <david.vra...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Konrad Rzeszutek Wilk <konrad.w...@

Re: [PATCH v5 05/22] xen/grant: Add helper gnttab_page_grant_foreign_access_ref_one

2015-09-30 Thread Julien Grall
On 30/09/15 11:45, Julien Grall wrote: > Many PV drivers contain the idiom: > > pfn = page_to_gfn(...) /* Or similar */ > gnttab_grant_foreign_access_ref > > Replace it by a new helper. Note that when Linux is using a different > page granularity than Xen, the hel

[PATCH v5 07/22] block/xen-blkfront: Store a page rather a pfn in the grant structure

2015-09-30 Thread Julien Grall
All the usage of the field pfn are done using the same idiom: pfn_to_page(grant->pfn) This will return always the same page. Store directly the page in the grant to clean up the code. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Acked-by: Roger Pau Monné <roger...

[PATCH v5 19/22] xen/privcmd: Add support for Linux 64KB page granularity

2015-09-30 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> Reviewed-by: David Vrabel <david.vra...@citrix.com> --- Cc: Konrad Rzeszutek Wilk <konrad.w...

[PATCH v5 18/22] net/xen-netback: Make it running on 64KB page granularity

2015-09-30 Thread Julien Grall
on the grant table code. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Wei Liu <wei.l...@citrix.com> --- Cc: Ian Campbell <ian.campb...@citrix.com> Cc: net...@vger.kernel.org Improvement such as support of 64KB grant is not taken into consideration in this pat

[PATCH v5 14/22] xen/grant-table: Make it running on 64KB granularity

2015-09-30 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> Reviewed-by: David Vrabel <david.vra...@c

[PATCH v5 10/22] xen/xenbus: Use Xen page definition

2015-09-30 Thread Julien Grall
All the ring (xenstore, and PV rings) are always based on the page granularity of Xen. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: David Vrabel <david.vra...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Kon

[PATCH v5 15/22] block/xen-blkfront: Make it running on 64KB page granularity

2015-09-30 Thread Julien Grall
with 64KB page granularity). Furthermore, in the case of persistent grants we allocate one Linux page per grant although only the first 4KB of the page will be effectively in use. This could be improved by sharing the page with multiple grants. Signed-off-by: Julien Grall <julien.gr...@citrix.

[PATCH v5 21/22] xen/swiotlb: Pass addresses rather than frame numbers to xen_arch_need_swiotlb

2015-09-30 Thread Julien Grall
With 64KB page granularity support, the frame number will be different. It will be easier to modify the behavior in a single place rather than in each caller. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> ---

[PATCH v5 17/22] net/xen-netfront: Make it running on 64KB page granularity

2015-09-30 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> Reviewed-by: David Vrabel <david.vra...@citrix.com> --- Cc: Konr

[PATCH v5 12/22] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-09-30 Thread Julien Grall
of the extent_order field to directly allocate/free chunk of the Linux page size. Note that PVMMU is only used for PV guest (which is x86) and the page granularity is always 4KB. Some BUILD_BUG_ON has been added to ensure that because the code has not been modified. Signed-off-by: Julien Grall

[PATCH v5 20/22] arm/xen: Add support for 64KB page granularity

2015-09-30 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> Reviewed-by: Stefano Stabellini <stefan

[PATCH v5 13/22] xen/events: fifo: Make it running on 64KB granularity

2015-09-30 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> Reviewed-by: David Vrabel <david.vra...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@citrix.com> --- Cc: Konrad Rzeszu

[PATCH v5 16/22] block/xen-blkback: Make it running on 64KB page granularity

2015-09-30 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

[PATCH v5 22/22] xen/swiotlb: Add support for 64KB page granularity

2015-09-30 Thread Julien Grall
minimal because we only need to check the first Xen PFN. Note that it may be possible to optimize the function check_page_physically_contiguous to avoid looping over every Xen PFN for local memory. Although I will let this optimization for a follow-up. Signed-off-by: Julien Grall <julien

[PATCH v5 11/22] tty/hvc: xen: Use xen page definition

2015-09-30 Thread Julien Grall
The console ring is always based on the page granularity of Xen. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Jiri Slaby <jsl...@suse

Re: [PATCH v5 00/22] xen/arm64: Add support for 64KB page in Linux

2015-09-30 Thread Julien Grall
On 30/09/15 12:32, Mark Rutland wrote: > On Wed, Sep 30, 2015 at 11:45:15AM +0100, Julien Grall wrote: >> Hi all, > > Hi, > >> ARM64 Linux is supporting both 4KB and 64KB page granularity. Although, Xen >> hypercall interface and PV protocol are always based on 4

[PATCH v5 00/22] xen/arm64: Add support for 64KB page in Linux

2015-09-30 Thread Julien Grall
in this series m: Minor changes in this series due to conflict during rebase L: Missing Acked-by from a Linux maintainers (Boris, David or Konrad) Julien Grall (22): A net/xen-netback: xenvif_gop_frag_copy: move GSO check out of the loop A arm/xen: Drop pte_mfn and mfn_pte A L xen: Add

[PATCH v5 04/22] xen/grant: Introduce helpers to split a page into grant

2015-09-30 Thread Julien Grall
the compilation. Furthermore, only definition in interface/grant_table.h is required. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: David Vrabel <david.vra...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Konrad Rzeszu

[PATCH v5 02/22] arm/xen: Drop pte_mfn and mfn_pte

2015-09-30 Thread Julien Grall
They are not used in common code expect in one place in balloon.c which is only compiled when Linux is using PV MMU. It's not the case on ARM. Rather than worrying how to handle the 64KB case, drop them. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Stefano Stab

[PATCH v5 01/22] net/xen-netback: xenvif_gop_frag_copy: move GSO check out of the loop

2015-09-30 Thread Julien Grall
The skb doesn't change within the function. Therefore it's only necessary to check if we need GSO once at the beginning. Signed-off-by: Julien Grall <julien.gr...@citrix.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- Cc: Ian Campbell <ian.campb...@citrix.com> Cc: net.

[PATCH v5 09/22] xen/biomerge: Don't allow biovec's to be merged when Linux is not using 4KB pages

2015-09-30 Thread Julien Grall
-off-by: Julien Grall <julien.gr...@citrix.com> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Cc: Boris Ostrovsky <boris.ostrov...@oracle.com> Cc: David Vrabel <david.vra...@citrix.com>

Re: [Xen-devel] [PATCH] xen/pci: Don't build Xen pci code for ARM and ARM64

2015-09-28 Thread Julien Grall
On 28/09/15 15:02, Boris Ostrovsky wrote: > On 09/28/2015 09:59 AM, Julien Grall wrote: >> Hi David, >> >> On 28/09/15 14:52, David Vrabel wrote: >>> On 28/09/15 14:30, Julien Grall wrote: >>>> The PCI support for Xen doesn't compile on ARM/ARM64 when >

Re: [Xen-devel] [PATCH] xen/pci: Don't build Xen pci code for ARM and ARM64

2015-09-28 Thread Julien Grall
Hi David, On 28/09/15 14:52, David Vrabel wrote: > On 28/09/15 14:30, Julien Grall wrote: >> The PCI support for Xen doesn't compile on ARM/ARM64 when >> CONFIG_PCI_MMCONFIG=y: >> >> drivers/xen/pci.c:31:25: fatal error: asm/pci_x86.h: No such file or >> direc

Re: [PATCH] xen/pci: Don't build Xen pci code for ARM and ARM64

2015-09-28 Thread Julien Grall
On 28/09/15 14:48, Stefano Stabellini wrote: > On Mon, 28 Sep 2015, Julien Grall wrote: >> The PCI support for Xen doesn't compile on ARM/ARM64 when >> CONFIG_PCI_MMCONFIG=y: >> >> drivers/xen/pci.c:31:25: fatal error: asm/pci_x86.h: No such file or >> directory

Re: [PATCH v5 12/22] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-10-02 Thread Julien Grall
Hi David, On 02/10/15 15:09, David Vrabel wrote: > On 30/09/15 11:45, Julien Grall wrote: >> For ARM64 guests, Linux is able to support either 64K or 4K page >> granularity. Although, the hypercall interface is always based on 4K >> page granularity. >> >> With 64

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

2015-10-02 Thread Julien Grall
Hi, Ping, any comment on this series? Regards, On 11/09/15 20:31, Julien Grall wrote: > Hi all, > > This is a follow-up on the previous discussion [1] related to guest using 64KB > page granularity not booting with backend using non-indirect grant. > > This has been success

Re: [PATCH v5 12/22] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-10-02 Thread Julien Grall
On 02/10/15 15:31, Julien Grall wrote: > Hi David, > > On 02/10/15 15:09, David Vrabel wrote: >> On 30/09/15 11:45, Julien Grall wrote: >>> For ARM64 guests, Linux is able to support either 64K or 4K page >>> granularity. Although, the hypercall interfa

[PATCH] xen/pci: Don't build Xen pci code for ARM and ARM64

2015-09-28 Thread Julien Grall
some changes in Linux side. For now, introduce a new config options XEN_PCI which will be turned off for ARM platform. Reported-by: Robert Richter <robert.rich...@caviumnetworks.com> Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- Cc: Konrad Rzeszutek Wilk <konrad.w...

Re: [PATCH v4 3/4] irqchip: GIC: Convert to EOImode == 1

2015-09-09 Thread Julien Grall
t GIC >* as default IRQ domain to allow for GSI registration and GSI to IRQ >* number translation (see acpi_register_gsi() and acpi_gsi_to_irq()). > diff --git a/include/linux/irqchip/arm-gic.h b/include/linux/irqchip/arm-gic.h > index 9de976b..b1533c0 100644 > --- a/include/linux/

[PATCH v1 0/8] xen/arm: vgic: Support 32-bit access for 64-bit register

2015-09-25 Thread Julien Grall
. A branch has been pushed based on the lastest staging: git://xenbits.xen.org/people/julieng/xen-unstable.git branch gicv3-32bit-v1 Sincerely yours, Julien Grall (8): xen/arm: io: remove mmio_check_t typedef xen/arm: io: Extend write/read handler to pass the register in parameter xen/arm

[PATCH v1 7/8] xen/arm: vgic: Introduce helpers to read/write/clear/set vGIC register ...

2015-09-25 Thread Julien Grall
supports any access size and expect the caller to validate the access size supported by the emulated registers. Finally, take the opportunity to fix the coding style in section we are modifying. Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- I've only done quick tests. I sen

[PATCH v1 4/8] xen/arm: vgic: ctlr stores a 32-bit hardware register so use uint32_t

2015-09-25 Thread Julien Grall
Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- Changes in v2: - Patch added --- xen/include/asm-arm/domain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-arm/domain.h b/xen/include/asm-arm/domain.h index c3f5a95..1a5bfd7

[PATCH v1 2/8] xen/arm: io: Extend write/read handler to pass the register in parameter

2015-09-25 Thread Julien Grall
From: Julien Grall <julien.gr...@linaro.org> Rather than letting each handler to retrieve the register used by the I/O access, add a new parameter to pass the register in parameter. This will help to implement generic register manipulation on I/O access such as sign-extension and end

[PATCH v1 6/8] xen/arm: vgic: Optimize the way to store the target vCPU in the rank

2015-09-25 Thread Julien Grall
. This is fine because the GIC spec doesn't require to return exactly the value written and it can be seen as if we decide to implement the register read-only. Finally take the opportunity to fix coding style in section we are modifying. Signed-off-by: Julien Grall <julien.gr...@citrix.

[PATCH v1 1/8] xen/arm: io: remove mmio_check_t typedef

2015-09-25 Thread Julien Grall
From: Julien Grall <julien.gr...@linaro.org> This typedef is a left-over of the previous MMIO emulation implementation. Signed-off-by: Julien Grall <julien.gr...@linaro.org> --- Changes in v2: - Patch added --- xen/include/asm-arm/mmio.h | 1 - 1 file changed, 1 delet

[PATCH v1 3/8] xen/arm: Support sign-extension for every read access

2015-09-25 Thread Julien Grall
in vGIG emulation. Although there is no reason to not have it generically. So move the support just after we get the data from the MMIO emulation. Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- I was thinking to completely drop the sign-extension support in Xen as it will b

Re: [PATCH v1 0/8] xen/arm: vgic: Support 32-bit access for 64-bit register

2015-09-25 Thread Julien Grall
Please ignore this version, I've sent it to the wrong mailing list. Sorry for the noise. On 25/09/15 15:50, Julien Grall wrote: > Hi all, > > This series aims to fix the 32-bit access on 64-bit register. Some guest > OS such as FreeBSD and Linux (only in the ITS) use 3

[PATCH v1 8/8] xen/arm: vgic-v3: Support 32-bit access for 64-bit registers

2015-09-25 Thread Julien Grall
for them doesn't hurt. Note that we would need some extra care when they will be implemented (for instance GICR_PROPBASER). Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- This is technically fixing boot of FreeBSD ARM64 guest with GICv3. AFAICT, Linux is not using 32-bit

[PATCH v1 5/8] xen/arm: vgic: Optimize the way to store GICD_IPRIORITYR in the rank

2015-09-25 Thread Julien Grall
. The emulation code will now have to generate the GICD_PRIORITYR register for read access and split it to store in a convenient way. Signed-off-by: Julien Grall <julien.gr...@citrix.com> --- The real reason is I'd like to drop vgic_byte_* helpers in favors of more generic access helper. Although it woul

Re: [Xen-devel] [PATCH] xen-blkback: free requests on disconnection

2015-09-21 Thread Julien Grall
Hi Konrad, On 09/09/2015 16:02, Konrad Rzeszutek Wilk wrote: Konrad, would you like me to resend the patch with the modified commit message, or do you plan to amend it yourself while committing? I will amend it. Thanks! What the status for this patch? Regards, -- Julien Grall

Re: [PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux

2015-09-18 Thread Julien Grall
overhead with my series is about 0.56%. 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/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

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

2015-10-05 Thread Julien Grall
On 05/10/15 17:01, Roger Pau Monné wrote: > El 11/09/15 a les 21.32, Julien Grall ha escrit: >> The minimal size of request in the block framework is always PAGE_SIZE. >> It means that when 64KB guest is support, the request will at least be >> 64KB. >> >> Althoug

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

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