Received: from eggs.gnu.org ([2001:4830:134:3::10]:56570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6xai-0007q5-IF for qemu-devel@nongnu.org; Wed, 16 Nov 2016 05:37:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6xaf-0002Rz-Ev for qemu-devel@nongnu.org; Wed, 16 Nov 2016 05:37:20 -0500 References: <1479291246-29969-1-git-send-email-thuth@redhat.com> <96303746-6cb1-e333-dda0-c5ab0134b05b@redhat.com> From: Laurent Vivier Message-ID: Date: Wed, 16 Nov 2016 11:37:11 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] tests/postcopy: Use KVM on ppc64 only if it is KVM-HV List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , David Gibson , qemu-ppc@nongnu.org, "Dr. David Alan Gilbert" , Stefan Hajnoczi Cc: qemu-devel@nongnu.org, Andrea Arcangeli , Greg Kurz , Eric Blake On 16/11/2016 11:26, Thomas Huth wrote: > On 16.11.2016 11:18, Laurent Vivier wrote: >> >> >> On 16/11/2016 11:14, Thomas Huth wrote: >>> The ppc64 postcopy test does not work with KVM-PR, and it is also >>> causing annoying warning messages when run on a x86 host. So let's >>> use KVM here only if we know that we're running with KVM-HV (which >>> automatically also means that we're running on a ppc64 host), and >>> use TCG otherwise. >>> >>> Signed-off-by: Thomas Huth >>> --- >>> v2: >>> - Check also /dev/kvm to make sure that we're allowed to access KVM >> >> I'm not sure it's a good idea as we will fail silently whereas QEMU >> sends an error message. It's common mistake we should be aware of. > > But if I run "make check" as a normal user who does not have access > right to /dev/kvm, this is IMHO not a fatal error (since this could be > on purpose), thus we should not issue an error message here and simply > use TCG instead. > > If you want to see at least a warning in this case, I think we should > rather go with v1 of this patch that used "kvm:tcg". I think it's better to have a warning, so let's got with v1... Laurent