From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [kvm-unit-tests PATCH 0/6] arm: enable MMU Date: Mon, 17 Nov 2014 13:26:58 +0100 Message-ID: <5469E992.7070800@redhat.com> References: <1414684625-9445-1-git-send-email-drjones@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: christoffer.dall@linaro.org To: Andrew Jones , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Return-path: Received: from mail-wi0-f175.google.com ([209.85.212.175]:60888 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750944AbaKQM1F (ORCPT ); Mon, 17 Nov 2014 07:27:05 -0500 Received: by mail-wi0-f175.google.com with SMTP id l15so5568733wiw.2 for ; Mon, 17 Nov 2014 04:27:04 -0800 (PST) In-Reply-To: <1414684625-9445-1-git-send-email-drjones@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 30/10/2014 16:56, Andrew Jones wrote: > This first patch of this series fixes a bug caused by attempting > to use spinlocks without enabling the MMU. The next three do some > prep for the fifth, and also fix arm's PAGE_ALIGN. The fifth is > prep for the sixth, which finally turns the MMU on for arm unit > tests. > > Andrew Jones (6): > arm: fix crash on cubietruck > lib: add ALIGN() macro > lib: steal const.h from kernel > arm: apply ALIGN() and const.h to arm files > arm: import some Linux page table API > arm: turn on the MMU > > arm/cstart.S | 33 +++++++++++++++++++++++ > config/config-arm.mak | 3 ++- > lib/alloc.c | 4 +-- > lib/arm/asm/mmu.h | 43 ++++++++++++++++++++++++++++++ > lib/arm/asm/page.h | 43 +++++++++++++++++++++++------- > lib/arm/asm/pgtable-hwdef.h | 65 +++++++++++++++++++++++++++++++++++++++++++++ > lib/arm/mmu.c | 53 ++++++++++++++++++++++++++++++++++++ > lib/arm/processor.c | 11 ++++++++ > lib/arm/setup.c | 3 +++ > lib/arm/spinlock.c | 7 +++++ > lib/asm-generic/page.h | 17 ++++++------ > lib/const.h | 11 ++++++++ > lib/libcflat.h | 4 +++ > 13 files changed, 275 insertions(+), 22 deletions(-) > create mode 100644 lib/arm/asm/mmu.h > create mode 100644 lib/arm/asm/pgtable-hwdef.h > create mode 100644 lib/arm/mmu.c > create mode 100644 lib/const.h > Tested on CubieTruck and applied, thanks. Paolo