[PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux
Julien Grall
julien.grall at citrix.com
Mon Sep 7 08:33:38 PDT 2015
Hi all,
ARM64 Linux is supporting both 4KB and 64KB page granularity. Although, Xen
hypercall interface and PV protocol are always based on 4KB page granularity.
Any attempt to boot a Linux guest with 64KB pages enabled will result to a
guest crash.
This series is a first attempt to allow those Linux running with the current
hypercall interface and PV protocol.
This solution has been chosen because we want to run Linux 64KB in released
Xen ARM version or/and platform using an old version of Linux DOM0.
There is room for improvement, such as support of 64KB grant, modification
of PV protocol to support different page size... They will be explored in a
separate patch series later.
TODO list:
- Convert swiotlb to 64KB
- Convert xenfb to 64KB
- Support for multiple page ring support
- Support for 64KB in gnttdev
- Support of non-indirect grant with 64KB frontend
- It may be possible to move some common define between
netback/netfront and blkfront/blkback in an header
I've got most of the patches for the TODO items. I'm planning to send them as
a follow-up as it's not a requirement for a basic guests.
All patches has been built tested for ARM32, ARM64, x86. But I haven't tested
to run it on x86 as I don't have a box with Xen x86 running. I would be
happy if someone give a try and see possible regression for x86.
I know that Konrad as a test-suite for x86. Konrand, would it be possible to
give a run to for this series?
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
Comments, suggestions are welcomed.
Sincerely yours,
Cc: david.vrabel at citrix.com
Cc: konrad.wilk at oracle.com
Cc: boris.ostrovsky at oracle.com
Cc: wei.liu2 at citrix.com
Cc: roger.pau at citrix.com
Status of each patch:
A: Reviewed-by - Acked-by
M: Patch modified in this series
m: Minor changes in this series (i.e renaming due to previous patches, typoes)
L: Missing Acked-by from a Linux maintainers (Boris, David, Konrad)
N: Missing Acked-by from a Netback maintainers (Ian or Wei)
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 gnttab_page_grant_foreign_access_ref_one
A block/xen-blkfront: Split blkif_queue_request in 2
A m block/xen-blkfront: Store a page rather a pfn in the grant structure
A block/xen-blkfront: split get_grant in 2
A m L xen/biomerge: Don't allow biovec's to be merged when Linux is not
using 4KB pages
A xen/xenbus: Use Xen page definition
A m L tty/hvc: xen: Use xen page definition
M L xen/balloon: Don't rely on the page granularity is the same for Xen
and Linux
A xen/events: fifo: Make it running on 64KB granularity
A xen/grant-table: Make it running on 64KB granularity
A m block/xen-blkfront: Make it running on 64KB page granularity
A block/xen-blkback: Make it running on 64KB page granularity
A m net/xen-netfront: Make it running on 64KB page granularity
m N net/xen-netback: Make it running on 64KB page granularity
A m xen/privcmd: Add support for Linux 64KB page granularity
A arm/xen: Add support for 64KB page granularity
arch/arm/include/asm/xen/page.h | 18 +-
arch/arm/xen/enlighten.c | 6 +-
arch/arm/xen/p2m.c | 6 +-
arch/x86/include/asm/xen/page.h | 2 +-
drivers/block/xen-blkback/blkback.c | 5 +-
drivers/block/xen-blkback/common.h | 17 +-
drivers/block/xen-blkback/xenbus.c | 9 +-
drivers/block/xen-blkfront.c | 552 +++++++++++++++++++++++-------------
drivers/net/xen-netback/common.h | 18 +-
drivers/net/xen-netback/netback.c | 163 +++++++----
drivers/net/xen-netfront.c | 122 +++++---
drivers/tty/hvc/hvc_xen.c | 4 +-
drivers/xen/balloon.c | 59 +++-
drivers/xen/biomerge.c | 8 +
drivers/xen/events/events_base.c | 2 +-
drivers/xen/events/events_fifo.c | 2 +-
drivers/xen/grant-table.c | 32 ++-
drivers/xen/privcmd.c | 8 +-
drivers/xen/xenbus/xenbus_client.c | 6 +-
drivers/xen/xenbus/xenbus_probe.c | 3 +-
drivers/xen/xlate_mmu.c | 124 +++++---
include/xen/grant_table.h | 51 ++++
include/xen/page.h | 27 +-
23 files changed, 855 insertions(+), 389 deletions(-)
--
2.1.4
More information about the linux-arm-kernel
mailing list