From patchwork Wed Feb 28 21:10:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 10249885 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 75D1D60362 for ; Wed, 28 Feb 2018 21:42:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64F9426E7B for ; Wed, 28 Feb 2018 21:42:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 597C627852; Wed, 28 Feb 2018 21:42:48 +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 7C0D027165 for ; Wed, 28 Feb 2018 21:42:47 +0000 (UTC) Received: from localhost ([::1]:47147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er9Us-0002QB-Iv for patchwork-qemu-devel@patchwork.kernel.org; Wed, 28 Feb 2018 16:42:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er90Z-0001bL-Gd for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:11:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1er90V-0006Da-I7 for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:11:27 -0500 Received: from mail-dm3nam03on0612.outbound.protection.outlook.com ([2a01:111:f400:fe49::612]:53061 helo=NAM03-DM3-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 1er90V-0006CB-Bx for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:11:23 -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=qHTpoSQcMUphi8JVrI/JbMcgbDzj6YSeECrJdNi5E/o=; b=uFvqhouqYn3AEXojtNSAooijhHKYs/QbvNFCShcZ3W7zBX3p3WNkySx5p9TzBMw/vZiRcMlFXHe3Is9bCP5zIdcmWBtdDFWjFxt8VPyg/Ba51dEwELFuR45m4E7qgIIxPV/1xKzAzupO4utRD2Id9b+UKdcnqRDKL8YPYBNnUJU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from wsp141597wss.amd.com (165.204.78.1) by DM2PR12MB0155.namprd12.prod.outlook.com (2a01:111:e400:50ce::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Wed, 28 Feb 2018 21:11:20 +0000 From: Brijesh Singh To: qemu-devel@nongnu.org Date: Wed, 28 Feb 2018 15:10:28 -0600 Message-ID: <20180228211028.83970-29-brijesh.singh@amd.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180228211028.83970-1-brijesh.singh@amd.com> References: <20180228211028.83970-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: DM5PR10CA0008.namprd10.prod.outlook.com (2603:10b6:4:2::18) To DM2PR12MB0155.namprd12.prod.outlook.com (2a01:111:e400:50ce::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 627a37fa-0728-412e-2e6a-08d57eefd130 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM2PR12MB0155; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 3:tdrKNR6LOUDpvptGzQQ8PO9DQ9enjcMTGRNTFhsS4rn/J7j9GHfP4uzEgCphLgRdWaSyjXNR1FnYBDTVCmzUyi0coan6SlIlhl4ticLfDS1DzOHrHMGEx/ed+RhHvesM/QZ6tsthCCY7sIGDM3rGBtB3jdtGQ7+t68JZAK3IgsXWznB5COvl2pkA1i4OYX+7x1aUqUyYbVPfrjjpjNRSJLGGTOxgBAfDGYLsWW+LQlSxoe/yqiIF56fSdbOOYAvt; 25:IIW7Fk4OMPzce6FYCDDstoP/fMfyEuOY9xh0t74y1jcb947RI4N650wcptwKjpXvHdVj47YRbb82NcD+JXH6nB3ehnZaptcCR8H6Lob83S59p169JDDP2fxyUl2O/3aB3YB7EzC6ZQ8f7kfZSlAyPMYCGJZGLjFL34coRlvgMIBE84aGshbToxh+ylpmHpzDTY/m0f6jOs/n890WRv/YVjHwMFbSs/hjz4kuetwjXj6Ag/az7IunYv4v4z945SgUrRdUzf+9RkAPqt3pAppsTptEjmpHkI2S/5b0JOlD5rczCQKR516zUJoRq6Gb3Igbc0AhSGaU6hPzYLF+9aikXA==; 31:Vgqqi1CoWdXReGG2kG8BNhhsd2AmXcOph2iZpiCm8EObZ049Qw0+IqaZHbCMRzXpO7IXhajNw0R0tNUdFBKWjOt528BWg82lYl/4fqzj1k6e0WVR59npxAF0bbqM6pLTTV/8UAXvZADAvxiF1Id6Yf8GRRgkX6qaX2Dy87uIl9/IUyT+kwVxM67vWCFH3LAd3p/iSbAp57heVaTLJHtuHDZkQ83f9nx2IE7CutmGHTg= X-MS-TrafficTypeDiagnostic: DM2PR12MB0155: X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 20:SkPk2RoVGbRtLVflNJaB6PfehSUT3flCkkLFxZTAn1QNSMJO0mc9r3MnchCgqUBxi6KgjlQ7l/SPKJZotdAq+dIy/VNQFzgZZ2Z+Vco6dtK0pfiRFN8kOzFiJMIG2Qq/+N93hpLKPXg/gc6t2ppIFtulaqJgDnS7qsW6tZo7Caknoe0049an7591ymqsW4LY8DRwmaR545QFRi+jwTng2V61GeaTE+hj+ZOv15+9H9Wn8eXkPomXAiye0t4CQM6Yi60znLHifz/rAs0l335zlyq9bVg5TVoRqMtW94GH0oruPzoUBy7qo0UsgRnCp1DfvyH96mm4Guup/xAA2D7dS8WvUv2kTtYHVaIp0YtgO0ciJ6Vws9beBc6FFKH8RGlu7DWPYGTWNbIYD7lF4bizOMt3MsnusNNHEidWPPPOofXgJpAsdBfHXLDpoVKu8QLuqzRDeTOJ4nnM+3J8MmqSsIgnGF3/LEoRnXrbEQ8nI0pSvWUbp9UoTseFVYV04i1x; 4:zZfv0voeLOdIpTl5RWc/WJbSofibOvvM46INpdcjDKzYY2Dt48vJF94U2cV/j5ZEKc4c4IUupG4xeBjGjnt4To+gKV+aeMY1XD2Svns354r7a3qNIwr87BNZW7UO+WZVqnhdYFkpxgGLY+1g+AHnODztvZAY7zOxt+OOzniVAQ9HHwloX6/ovF/jurS1mvCzd8ogWKOl9LK1kyodbNDDS0gzEFM91N3wy+1lnGF7uEFYqS6/PrKX8ijse/UpAafBXSsuBNaLEyPP9ZAkUuxGloqtc2F5WgSNVRm7Jmm54WwCwtuDSZ3ypgFvp7cmxL7O 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)(8121501046)(5005006)(3231220)(944501219)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041288)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM2PR12MB0155; BCL:0; PCL:0; RULEID:; SRVR:DM2PR12MB0155; X-Forefront-PRVS: 0597911EE1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(1496009)(39860400002)(39380400002)(396003)(346002)(366004)(376002)(189003)(199004)(6486002)(6116002)(1076002)(2351001)(36756003)(16526019)(54906003)(53416004)(26005)(53936002)(66066001)(186003)(47776003)(59450400001)(2361001)(478600001)(8666007)(316002)(81166006)(50226002)(8676002)(8936002)(386003)(106356001)(2870700001)(97736004)(5660300001)(2950100002)(23676004)(305945005)(4326008)(76176011)(7736002)(39060400002)(8656006)(105586002)(68736007)(50466002)(7696005)(25786009)(52116002)(3846002)(2906002)(86362001)(81156014)(7416002)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0155; H:wsp141597wss.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; DM2PR12MB0155; 23:4XBPBdF+0Dy5s0JpEtfif7KBgyR328KPI9zhzEdLI?= =?us-ascii?Q?99kSIaZ0WDhd6usX96dPM+J/PKj7hguB/U7m5kjH2U8js6CpTk/r8C0mg65b?= =?us-ascii?Q?aesPRsYgL9dtvfVZVdYve9p4mAjd2kZmIdaAjdwDAQSqdB6b7rFn0w2VknL7?= =?us-ascii?Q?kSK9+0TUKLN5eTwoF1xf72lM7hWNI8CJnZoUD/txEfTu7mvZ03CxP084RbEn?= =?us-ascii?Q?kByNd3WF5m30ZJBbI2GNXiXi2OmmcpXWlVguI448C4VcSzQmfhKz/U95OS++?= =?us-ascii?Q?fhN4awa7lrMxigwAddUXaxs1Rf9HzeYLAs7hXF0+Kp/zHT1yxQQiOBgK8KDD?= =?us-ascii?Q?kfZjcdxq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M046?= =?us-ascii?Q?MvEIoLZolp3F7G8O5IMqYmQ7x9G/QNlZ3sNR9Ae?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 6:covBHhml+BrbEkuDRaU1oHOvEFFI/DKEDZaGWmMb3MiCTm70gYgiVuqR5dLlXKKouMacsp4DLgdYo+02Bo74yDP9hhvLslsyyJ4Ok//l6S3HwRz2Y0b8OAGXHgIxOESaYKNrrAiV98Pk5DxsIpzuNludjEY35K079bIjp85B1aOXJTklVUkO0ya9drL2kMphm1fkx1hd1Q4exYkYm1s5Z4uAI4zKveqT9U+/DYMo2cTYWO/lE3dETLI25bjeff6SbNEB7upkiIBHtHUv0sg6U90gmrlg6XWTg1pHi96CMV0cY1rJfp1EWknt8OBvmIrCQvvil1Z0jyLcLjM6TfnAbSHH0BjCrHpmmmosUQykcdw=; 5:E3OomUdb0NoVXJyJG1TPnYXZnT2eRkheC16ogdc2jpvKmXnX6dDW6q6xc9Zh8ppKi6OkvnqvYcLVLn3l+FrKLqP52QRZqjTmi4o3cb2n4c0YEZ+dJk7aeIYItcGIvESZq7SkN304zHt/T/kxi/wIJrplGbaWSsrY/y+OI3akF9U=; 24:Fec+9dNIU+itSzgnmmmdv3suQ9UsYEImS/NxTamaRvme5fhCRtxFzfLeC5bkUJFx5b3T/db6/mIvrPqpHMb8Go6/5eSEkLa2QukCdZyTf+M=; 7:+4M1pWZy+KbuE7XrSZci5Y3zjrUM2Pvd0VydjNzOg4zW8nzVEQMNlV9bG8hj6HrHandiN8h3gWuqpobm7cvKJHz+LAHJPHm+qm72vnewYi5evMKZx/OoTPd5zl7DgSeCRc84rutsEzSi0myFyBeECEeaPAcSQEhIVF6t3cvzPKFDM0bpnm0g/9M13NXySqaxYbGTWzn3ISVynwieCMo7U+LL3D190b1N69UYPbU8pFdXQr/2dyUT44YOwMXXOkH1 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 20:ceomWPHE6W1H0Bo+na6NYEO087GCnFIeycT3dMO+W2Ci18gxWbvKRh3+urz12VG7oYrujiRfbY+Qm5tqIpW4aj37Rwjhise7orUS7q9kQBRKNRe8ToLHPTBBs4isb9xa+XgHbIblmp9dlqeUlwJ57Ip/k6BGMCfXiTN+N/Eo+Lo/l4Im7wNJ+HASJgd8cGdd2C/52Vl/irVcyLVeNyNnGzXBRS/r0Rqg0jZXL3Dqb6l7h/kH3JfSw8A+lY9nfDQs X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2018 21:11:20.4203 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 627a37fa-0728-412e-2e6a-08d57eefd130 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0155 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 2a01:111:f400:fe49::612 Subject: [Qemu-devel] [PATCH v10 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 --- Hi Dave, I updated the patch to include other SEV specific QMP command so that build passes on non x86 arch, I have still kept your R-b, if you don't agree with changes then let me know. thanks tests/qmp-test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/qmp-test.c b/tests/qmp-test.c index 580848307ad1..50573dbf4fbd 100644 --- a/tests/qmp-test.c +++ b/tests/qmp-test.c @@ -203,6 +203,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;