From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axAIt-0001VI-JI for qemu-devel@nongnu.org; Mon, 02 May 2016 05:38:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axAIi-0004iu-3U for qemu-devel@nongnu.org; Mon, 02 May 2016 05:38:06 -0400 MIME-Version: 1.0 In-Reply-To: <20160430104800.0a7c1d11@kryten> References: <20160404164457.539a55f0@kryten> <57021123.6050506@ozlabs.ru> <20160404204346.1cf44df8@kryten> <20160404210928.0d9ae644@kryten> <20160430104800.0a7c1d11@kryten> From: haris iqbal Date: Mon, 2 May 2016 15:06:46 +0530 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v2] spapr: Don't set the TM ibm, pa-features bit in PR KVM mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anton Blanchard Cc: Alexander Graf , Michael Neuling , Alexey Kardashevskiy , Michael Ellerman , QEMU Developers , Paul Mackerras , qemu-ppc@nongnu.org, linuxppc-dev@lists.ozlabs.org, David Gibson On Sat, Apr 30, 2016 at 6:18 AM, Anton Blanchard wrote: > We don't support transactional memory in PR KVM, so don't tell > the OS that we do. > > Signed-off-by: Anton Blanchard > --- > > v2: Fix build with CONFIG_KVM disabled, noticed by Alex. > > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > index b69995e..dc3e3c9 100644 > --- a/hw/ppc/spapr.c > +++ b/hw/ppc/spapr.c > @@ -696,6 +696,14 @@ static void spapr_populate_cpu_dt(CPUState *cs, void *fdt, int offset, > } else /* env->mmu_model == POWERPC_MMU_2_07 */ { > pa_features = pa_features_207; > pa_size = sizeof(pa_features_207); > + > +#ifdef CONFIG_KVM > + /* Don't enable TM in PR KVM mode */ > + if (kvm_enabled() && > + kvm_vm_check_extension(cs->kvm_state, KVM_CAP_PPC_GET_PVINFO)) { > + pa_features[24] &= ~0x80; > + } > +#endif > } > if (env->ci_large_pages) { > pa_features[3] |= 0x20; > This email was put in the spam folder by gmail. The message said "It has a from address in samba.org but has failed samba.org's required tests for authentication". Just bringing this to peoples attention. I thought a patch might go unnoticed else. -- With regards, Md Haris Iqbal, Placement Coordinator, MTech IT NITK Surathkal, Contact: +91 8861996962