From patchwork Thu Mar 8 12:49:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 10268041 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B709E60211 for ; Thu, 8 Mar 2018 13:10:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7F1A297B8 for ; Thu, 8 Mar 2018 13:10:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C68229905; Thu, 8 Mar 2018 13:10:06 +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=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CFD4C297B8 for ; Thu, 8 Mar 2018 13:10:05 +0000 (UTC) Received: from localhost ([::1]:38571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etvJ6-0006PK-Kz for patchwork-qemu-devel@patchwork.kernel.org; Thu, 08 Mar 2018 08:10:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etv0K-0005qN-UD for qemu-devel@nongnu.org; Thu, 08 Mar 2018 07:50:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etv0G-0004Q9-Nx for qemu-devel@nongnu.org; Thu, 08 Mar 2018 07:50:40 -0500 Received: from mail-cys01nam02on0081.outbound.protection.outlook.com ([104.47.37.81]:30931 helo=NAM02-CY1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1etv0G-0004Pk-G6 for qemu-devel@nongnu.org; Thu, 08 Mar 2018 07:50:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2T9xoob0PFlzagMeAX0jQfPZCw4xR2/Xhzs4qo3A5E4=; b=WbR2EHUouXQsaF+BjOpyXj6l/raIgHUkOQyKb+cHUl1a9myitHiPA8uSqajnRxgE9MRImLjnz3VzanRVVQtNQhRm0RLRE2t1uF3ocgTXZoEO8NoJBD7Xwwa4mfndFGxvTwa5CEPHx8vJiWinXNETVmNrNuhlMNrsf/+WQClmm40= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from wsp141597wss.amd.com (165.204.78.1) by DM2PR12MB0156.namprd12.prod.outlook.com (2a01:111:e400:50ce::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Thu, 8 Mar 2018 12:50:32 +0000 From: Brijesh Singh To: qemu-devel@nongnu.org Date: Thu, 8 Mar 2018 06:49:01 -0600 Message-ID: <20180308124901.83533-29-brijesh.singh@amd.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180308124901.83533-1-brijesh.singh@amd.com> References: <20180308124901.83533-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR14CA0031.namprd14.prod.outlook.com (2603:10b6:404:13f::17) To DM2PR12MB0156.namprd12.prod.outlook.com (2a01:111:e400:50ce::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8e92fca9-8fbe-410f-93df-08d584f32ed8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM2PR12MB0156; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 3:oDquW+MG5FAhmuEPQo6xrIgu+LiLqYJlHig4DSamIAzZMMRrhy/2xSC6Q3c6nJNv+FF7zjfDpDOnP8q+jMKj0lvW5/NXZLyeOSiPksbRc3hsw0SMncbZh05AxtR+cCSaqFGC4CQnki6KYEYsiBwd0Occv8p4DPicTz53QiL6pzDtBW5XUt8ugRd7+BB9Qz3SITFKX//W+0a+pqVQh5dxSjRt2dYkhPPMrGyBx2C05l1h8UF9+Au2TzQ9ihythQX4; 25:8rpC1lPJQJOaBNj1iT5HutkYSgeWbmH6AWQFRc/YNmXw0NjwihruPPIoYwv1ONdOz/T5FpOj7erRCoqpHSbFCoBSIaGEm5ihLCQl3052SFtAC1+5xRxUF06Idcf6vDAfvje9/1Kmf8I+dxvIl+WGXxcb98aknMuKbtVy9PExSI1zShumqXAHKMHigypYMKzItFcJ935DlG7c4wBVu7J2KTYyOpR88wFmDRw489Ay89MKO2WNK269pPP7P0jXBh1mwJi1ui63ByCIZxK289UNiV4TyBHQByEUjpC3vPJei2bly6QnroYffCpI0zNFyGkRhO80LB0IWwiNcTKDj0Cvjg==; 31:H8+2uYarVz+Umo6Hdamdb6pfSdkIaML3ROzeM0EHWLEmfIEzxUY4P5DvRlB5k00RzQWbGb7HhPfB+3goE39gVsusZchQU1bffUMMWIzcwKUfMUN88VRb+z5aNloBVGOXQcHFqkC2ExNFG5z+JqoYe8Gqx7rHT3kQPSRz1WFF2JCVEVqb/7Aj7m91VeCjivkjYqEHz9JMoXRPxh7gGorhbdqVQVz+2MnJYD01k6WPh+w= X-MS-TrafficTypeDiagnostic: DM2PR12MB0156: X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 20:7Fa7e/G6cgpWFsRaL/32OeJc6uu8z7geEhtKVXSmKqpFNXtkeiNmG0dXWa8mkXRUV5KM5vrASHSG+RQwVK5s11yYi0WLwDLsL5n0h9XjgpKqvC1ffZBBPS+LOfUZUmdeht4NdUZmjAobsC/kNN35U9k4TDf4zJC7w9mkjJT3wydUWDDu0KK/bUjlTvCi8SN8JPNdkMSJDW5pN1rv+T7gJkTNsKioQxeqFMjuWPVbts2SnfXpenOZ2RliGTc3Ud7b4+gM7ze+lubwUoy/+GgR8exa/LEQwHwmjePfvXInzELxmPQsiShxqfMYFaFnUhb6BhlANFysWNYXwwtOcGjBB5Cm4D/pO5JhhNvl5QsYj3xIZt/BILEOYyo/HyXXsSOBn2zF+H7J2vLgGU1yjnG36jcewfgykEti1NZdlArAu416LYyEcLtAvzHtfaHdqFSPVzPekjo8rXq5gPieOebmRrjtsB9q9E/EuOEsSPKaCesNjdCUNYcLy1sXCyy3ydfQ; 4:3leLs2xKWSeX6UL/NWT5F5ASEubqN3HTc0FIS0oJQrhtIbbP/WEiPQx3LbBvC4Elp6LsRTEH6oq6l8X3XCOiG+Cdu9bgpV55bSzBc/HohJ2EBEAkeGy/FzD1mnbWVf6YZJWAvQJUP0ZiLomsG1pT4S1L8zuvsVPNteodvckeu4AA2yd73i76nQdhh0DA5+juo4YC6FlRb8JquuScFgFDj45KWd4Osl8Hb6yo8TfGHe3Y+004HPPoDfRb7f/Q8bsQRTcYwN7zVvFF3DvCNNdRVOb/ETTyb9LO+al7RTizYTp0TKirCOCC+5hJLnFrcX6d X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231220)(944501244)(52105095)(3002001)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:DM2PR12MB0156; BCL:0; PCL:0; RULEID:; SRVR:DM2PR12MB0156; X-Forefront-PRVS: 060503E79B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(1496009)(39380400002)(39860400002)(376002)(396003)(346002)(366004)(199004)(189003)(50226002)(53936002)(2950100002)(6916009)(2906002)(2361001)(6666003)(2351001)(106356001)(81156014)(2870700001)(53416004)(8676002)(81166006)(7736002)(36756003)(305945005)(8936002)(105586002)(50466002)(68736007)(97736004)(47776003)(66066001)(25786009)(4326008)(39060400002)(6486002)(7416002)(5660300001)(3846002)(478600001)(76176011)(7696005)(52116002)(6116002)(16526019)(186003)(26005)(1076002)(8656006)(386003)(23676004)(54906003)(86362001)(316002)(59450400001)(8666007)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0156; H:wsp141597wss.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR12MB0156; 23:Cj3Il6HOVLSzCA6nPy1h/A1Q7+Lvii7R8334wtxYu?= =?us-ascii?Q?YyF4PVTyoMurGeWHoehzIt/xOhOjzxGBFYknvEuFR9RSWnBaDMYTM88JLhGh?= =?us-ascii?Q?OOAaGnLTt6v4qZgBDOm6SP23qeTnXAvOfEYTgxrewjbJabYzhph6u05jwS35?= =?us-ascii?Q?v2kqU8ZPNwvtzCn2sd/oOO8tm2RCqcK4uNJI309aQ6GKE9xgZK2fBQj6G/A6?= =?us-ascii?Q?C4f8Vdp62hIqcU89MilTYnox1R23d93pn90CwKfvbME3vpsIuuNSl5K7zuOn?= =?us-ascii?Q?O5UwRpGE5rBjrTGjujNHKeN0M3Cqt+zSP1Sl2RRyT8FifHSVQ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f7AHM4xreSZst/eoDztnoy7wIK3qjvYDPlW/zmsFaI+FN9zKvTLYyC13JOxvo/2/53rp1JKoCKTdvHB+FXWHuLrE=; 7:y6i+Es0QGEnK4ddAsoCCJP4//4diKBWFqSrWI6wXgs+xBAVA5pjdzLkjHjOkXGiZirBdcOyVBAizvv9ePVgJz267kda2vLb6ufXNcRO7tz+lZaKfzBRBUaYTxh06BbcJTTaDFiR29zFLTrZaZba2Nv0+naDzlj2uEn1PHmiV4UqwojkciQz1tBxbNGBKWSBr4L56LjEoa5iNeA/cO73RUxKHRX6CjcDmpIuAceRQvxMw1rnv4WrH+ocYIXzZyZBY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0156; 20:8edPU8NnSFBUKGVd2/+ldgjKAXlB3+IfEUfX6drbTUyd/EOjXfEQM6KTAEqlkiITUgSEdNacZLG95ZxkWmY/Dc3cx2AtXZQHFBPhGBP4eF8v8r4MLPgQWJRvp2T9EgPaK39nPxhTJC5TuCuRwQRH1b2aeGFqw8wN35LwvAjeV+Vea4gxQi1cmZKa6EVGZ0yJ1RncRFBiXb3FHT/IgrcZzgBJUFiLiOCqEM/xH7nButO0GIacqawzfHa6jJvUkr7U X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2018 12:50:32.0345 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e92fca9-8fbe-410f-93df-08d584f32ed8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0156 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.37.81 Subject: [Qemu-devel] [PATCH v12 28/28] tests/qmp-test: blacklist sev specific qmp commands X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Brijesh Singh , kvm@vger.kernel.org, "Michael S. Tsirkin" , Stefan Hajnoczi , Alexander Graf , "Edgar E. Iglesias" , Markus Armbruster , Bruce Rogers , Christian Borntraeger , Marcel Apfelbaum , Borislav Petkov , Thomas Lendacky , Eduardo Habkost , Richard Henderson , "Dr. David Alan Gilbert" , Alistair Francis , Cornelia Huck , Peter Crosthwaite , Paolo Bonzini Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Blacklist the following commands to fix the 'make check' failure. query-sev-launch-measure: it returns meaninful data only when we launch SEV guest otherwise the command returns an error. query-sev: it return an error when SEV is not available on host (e.g non X86 platform or KVM is disabled at the build time) query-sev-capabilities: it returns an error when SEV feature is not available on host machine. Cc: "Daniel P. Berrangé" Cc: "Dr. David Alan Gilbert" Cc: Markus Armbruster Reviewed-by: "Dr. David Alan Gilbert" Signed-off-by: Brijesh Singh --- tests/qmp-test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/qmp-test.c b/tests/qmp-test.c index 22445d9ec258..7470c6b754bc 100644 --- a/tests/qmp-test.c +++ b/tests/qmp-test.c @@ -204,6 +204,11 @@ static bool query_is_blacklisted(const char *cmd) "query-gic-capabilities", /* arm */ /* Success depends on target-specific build configuration: */ "query-pci", /* CONFIG_PCI */ + /* Success depends on launching SEV guest */ + "query-sev-launch-measure", + /* Success depends on Host or Hypervisor SEV support */ + "query-sev", + "query-sev-capabilities", NULL }; int i;