From patchwork Thu Apr 18 20:15:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thadeu Lima de Souza Cascardo X-Patchwork-Id: 10907947 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3E9F413B5 for ; Thu, 18 Apr 2019 20:15:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 267CA28CE4 for ; Thu, 18 Apr 2019 20:15:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15F1928CE6; Thu, 18 Apr 2019 20:15:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC99C28CE4 for ; Thu, 18 Apr 2019 20:15:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390196AbfDRUPm (ORCPT ); Thu, 18 Apr 2019 16:15:42 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:47930 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389927AbfDRUPm (ORCPT ); Thu, 18 Apr 2019 16:15:42 -0400 Received: from [177.198.83.244] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hHDRc-00042r-6W; Thu, 18 Apr 2019 20:15:40 +0000 From: Thadeu Lima de Souza Cascardo To: kvm@vger.kernel.org Cc: Thadeu Lima de Souza Cascardo Subject: [kvm-unit-tests PATCH] x86: svm: add tsc-adjust to guest CPU flags Date: Thu, 18 Apr 2019 17:15:31 -0300 Message-Id: <20190418201531.22181-1-cascardo@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The svm test uses -cpu qemu64, which may not include tsc-adjust on some qemu versions. That makes the tsc-adjust test fail. If that flag is added, it works fine on a AMD Quad-Core Processor. Signed-off-by: Thadeu Lima de Souza Cascardo --- x86/unittests.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/unittests.cfg b/x86/unittests.cfg index 2abf6d5502d7..2f9d4cc5786e 100644 --- a/x86/unittests.cfg +++ b/x86/unittests.cfg @@ -197,7 +197,7 @@ arch = x86_64 [svm] file = svm.flat smp = 2 -extra_params = -cpu qemu64,+svm +extra_params = -cpu qemu64,+svm,+tsc-adjust arch = x86_64 [taskswitch]