From mboxrd@z Thu Jan 1 00:00:00 1970 From: geoff@infradead.org (Geoff Levand) Date: Mon, 03 Nov 2014 17:49:37 -0800 Subject: [PATCH 09/10] arm64/kexec: Enable kexec in the arm64 defconfig In-Reply-To: <20141103200516.GC30366@leverpostej> References: <9570f274b9649430b34e5c7e15b63679b94c2c50.1414099246.git.geoff@infradead.org> <20141024103150.GC24265@leverpostej> <1414799415.23621.52.camel@smoke> <20141103200516.GC30366@leverpostej> Message-ID: <1415065777.12884.8.camel@smoke> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Mark, On Mon, 2014-11-03 at 20:05 +0000, Mark Rutland wrote: > On Fri, Oct 31, 2014 at 11:50:15PM +0000, Geoff Levand wrote: > > On Fri, 2014-10-24 at 11:31 +0100, Mark Rutland wrote: > > > On Fri, Oct 24, 2014 at 12:10:59AM +0100, Geoff Levand wrote: > > > > Signed-off-by: Geoff Levand > > > > --- > > > > arch/arm64/configs/defconfig | 1 + > > > > 1 file changed, 1 insertion(+) > > > > > > > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > > > > index d92ef3c..ebf8b3f 100644 > > > > --- a/arch/arm64/configs/defconfig > > > > +++ b/arch/arm64/configs/defconfig > > > > @@ -39,6 +39,7 @@ CONFIG_PREEMPT=y > > > > CONFIG_KSM=y > > > > CONFIG_TRANSPARENT_HUGEPAGE=y > > > > CONFIG_CMA=y > > > > +CONFIG_KEXEC=y > > > > > > Given this is going to be incompatible with KVM, and KVM is already in > > > defconfig, I don't think we can add this until that incompatibility is > > > fixed (or at the very least detected and handled gracefully). > > > > Sure, I can put in a workaround to print out a message and fail the > > kexec_load sys call if KVM is configured. > > What would be the plan for fixing up kexec to work with kvm were we to > do that? As we discussed at on this ML and in detail at Linaro Connect, KVM needs to shut itself down properly and free up the resources it acquired at startup, mainly the hyp mode vectors. I don't have any time free to do that now, but if no one fixes it by the time I do have some time, then I'll work on it. Kexec needs no fixing for this that I know of. -Geoff