From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an1zh-0000pC-1h for qemu-devel@nongnu.org; Mon, 04 Apr 2016 06:44:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1an1zd-0005H7-1X for qemu-devel@nongnu.org; Mon, 04 Apr 2016 06:44:28 -0400 Date: Mon, 4 Apr 2016 20:43:46 +1000 From: Anton Blanchard Message-ID: <20160404204346.1cf44df8@kryten> In-Reply-To: <57021123.6050506@ozlabs.ru> References: <20160404164457.539a55f0@kryten> <57021123.6050506@ozlabs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] PR KVM and TM issues List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy , Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt , Michael Neuling , David Gibson , Alexander Graf Cc: qemu-ppc@nongnu.org, linuxppc-dev@lists.ozlabs.org, qemu-devel@nongnu.org Hi Alexey, > > I can't get an Ubuntu Wily guest to boot on an Ubuntu Wily host in > > PR KVM mode. The kernel in both cases is 4.2. To reproduce: > > > > wget -N https://cloud-images.ubuntu.com/wily/current/wily-server-cloudimg-ppc64el-disk1.img > > > > qemu-system-ppc64 -cpu POWER8 -enable-kvm -machine pseries,kvm-type=PR -m 4G -nographic -vga none -drive file=wily-server-cloudimg-ppc64el-disk1.img,if=virtio > > > > Should TM work inside a PR KVM guest? > > If I read the kernel code correctly (kvmppc_set_one_reg_hv vs. > kvmppc_set_one_reg_pr), no, it should not be expected to work. I see a couple of issues, patches to follow: 1. QEMU needs to clear the TM feature bit in the ibm,pa-features array when running in PR KVM mode. 2. Linux needs to clear the user TM feature bits if TM gets disabled at runtime via the ibm,pa-features bit. Anton