From patchwork Thu Feb 28 16:51:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 1049615 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=kvm-ppc-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 449JVy1pbQz9sBR for ; Fri, 1 Mar 2019 03:52:10 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733302AbfB1QwJ (ORCPT ); Thu, 28 Feb 2019 11:52:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55366 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731621AbfB1QwJ (ORCPT ); Thu, 28 Feb 2019 11:52:09 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BE44530CD326; Thu, 28 Feb 2019 16:52:08 +0000 (UTC) Received: from thuth.com (ovpn-116-149.ams2.redhat.com [10.36.116.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 08BE55DD74; Thu, 28 Feb 2019 16:52:06 +0000 (UTC) From: Thomas Huth To: Paolo Bonzini , =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= , kvm@vger.kernel.org Cc: kvm-ppc@vger.kernel.org, David Hildenbrand , Laurent Vivier , David Gibson Subject: [kvm-unit-tests PULL 1/5] powerpc: Enable HTM capability for h_cede_tm testcase Date: Thu, 28 Feb 2019 17:51:56 +0100 Message-Id: <1551372720-17321-2-git-send-email-thuth@redhat.com> In-Reply-To: <1551372720-17321-1-git-send-email-thuth@redhat.com> References: <1551372720-17321-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 28 Feb 2019 16:52:09 +0000 (UTC) Sender: kvm-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org From: David Gibson The h_cede_tm case is specifically about an edge case with the H_CEDE hypercall while using hardware transactional memory (HTM). Current qemu versions don't enable HTM instructions in guests by default, so we should explicitly enable them in order to execute this test. Signed-off-by: David Gibson Reviewed-by: Thomas Huth Signed-off-by: Thomas Huth --- powerpc/unittests.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerpc/unittests.cfg b/powerpc/unittests.cfg index 4eda258..af535b7 100644 --- a/powerpc/unittests.cfg +++ b/powerpc/unittests.cfg @@ -63,7 +63,7 @@ file = emulator.elf [h_cede_tm] file = tm.elf smp = 2,threads=2 -extra_params = -append "h_cede_tm" +extra_params = -machine cap-htm=on -append "h_cede_tm" groups = nodefault,h_cede_tm [sprs]