From: Nicholas Piggin Date: Thu, 01 Apr 2021 10:14:20 +0000 Subject: Re: [PATCH v4 24/46] KVM: PPC: Book3S HV P9: Use large decrementer for HDEC Message-Id: <1617272048.6127blp34g.astroid@bobo.none> List-Id: References: <20210323010305.1045293-1-npiggin@gmail.com> <20210323010305.1045293-25-npiggin@gmail.com> <11ba0a43-a64a-ca06-581c-e8b7dc97b1d7@ozlabs.ru> In-Reply-To: <11ba0a43-a64a-ca06-581c-e8b7dc97b1d7@ozlabs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alexey Kardashevskiy , kvm-ppc@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Excerpts from Alexey Kardashevskiy's message of March 26, 2021 12:05 pm: > > > On 23/03/2021 12:02, Nicholas Piggin wrote: >> On processors that don't suppress the HDEC exceptions when LPCR[HDICE]=0, >> this could help reduce needless guest exits due to leftover exceptions on >> entering the guest. >> >> Reviewed-by: Alexey Kardashevskiy >> Signed-off-by: Nicholas Piggin > > > ERROR: modpost: "decrementer_max" [arch/powerpc/kvm/kvm-hv.ko] undefined! > > > need this: > > --- a/arch/powerpc/kernel/time.c > +++ b/arch/powerpc/kernel/time.c > @@ -89,6 +89,7 @@ static struct clocksource clocksource_timebase = { > > #define DECREMENTER_DEFAULT_MAX 0x7FFFFFFF > u64 decrementer_max = DECREMENTER_DEFAULT_MAX; > +EXPORT_SYMBOL_GPL(decrementer_max); Added. Thanks, Nick