18 Jun 2013 04:17
[RFC PATCH 1/2] KVM: ARM: Transparent huge pages and hugetlbfs support
Christoffer Dall <christoffer.dall <at> linaro.org>
2013-06-18 02:17:40 GMT
2013-06-18 02:17:40 GMT
From: Christoffer Dall <cdall <at> cs.columbia.edu> Support transparent huge pages in 32-bit KVM/ARM. The whole transparent_hugepage_adjust stuff is far from pretty, but this is how it's solved on x86 so we duplicate their logic. This should be shared across architectures if possible (like many other things), but can always be changed down the road. The pud_huge checking on the unmap path may feel a bit silly as the pud_huge check is always defined to false, but the compiler should be smart about this. Signed-off-by: Christoffer Dall <christoffer.dall <at> linaro.org> --- arch/arm/include/asm/kvm_host.h | 7 +- arch/arm/include/asm/kvm_mmu.h | 6 +- arch/arm/kvm/mmu.c | 158 +++++++++++++++++++++++++++++++++------- 3 files changed, 137 insertions(+), 34 deletions(-) diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h index 1f3cee2..45a165e 100644 --- a/arch/arm/include/asm/kvm_host.h +++ b/arch/arm/include/asm/kvm_host.h <at> <at> -33,10 +33,9 <at> <at> #define KVM_VCPU_MAX_FEATURES 1 -/* We don't currently support large pages. */ -#define KVM_HPAGE_GFN_SHIFT(x) 0 -#define KVM_NR_PAGE_SIZES 1(Continue reading)
This of course goes on top of the basic support series.
Heiko Stuebner (4):
arm: rockchip: add snoop-control-unit
arm: rockchip: add sram dt nodes and documentation
arm: rockchip: add power-management-unit dt node
arm: rockchip: add smp bringup code
.../devicetree/bindings/arm/rockchip/pmu.txt | 16 +++
.../devicetree/bindings/arm/rockchip/smp-sram.txt | 29 ++++
arch/arm/boot/dts/rk3066a.dtsi | 24 ++++
arch/arm/mach-rockchip/Kconfig | 1 +
arch/arm/mach-rockchip/Makefile | 1 +
arch/arm/mach-rockchip/core.h | 22 +++
arch/arm/mach-rockchip/headsmp.S | 32 +++++
arch/arm/mach-rockchip/platsmp.c | 145 ++++++++++++++++++++
arch/arm/mach-rockchip/rockchip.c | 2 +
9 files changed, 272 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/rockchip/pmu.txt
create mode 100644 Documentation/devicetree/bindings/arm/rockchip/smp-sram.txt
create mode 100644 arch/arm/mach-rockchip/core.h
create mode 100644 arch/arm/mach-rockchip/headsmp.S
RSS Feed