Message ID | 20171206200346.116537-14-brijesh.singh@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> 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 3F4FB602BF for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 6 Dec 2017 20:31:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FA1C2A12B for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 6 Dec 2017 20:31:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2467F2A11F; Wed, 6 Dec 2017 20:31:08 +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=unavailable 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 987E72A11D for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 6 Dec 2017 20:31:07 +0000 (UTC) Received: from localhost ([::1]:57677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1eMgLS-0000eQ-TV for patchwork-qemu-devel@patchwork.kernel.org; Wed, 06 Dec 2017 15:31:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <brijesh.singh@amd.com>) id 1eMfvy-0006FP-3j for qemu-devel@nongnu.org; Wed, 06 Dec 2017 15:04:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <brijesh.singh@amd.com>) id 1eMfvu-0002f8-SO for qemu-devel@nongnu.org; Wed, 06 Dec 2017 15:04:46 -0500 Received: from mail-sn1nam01on0068.outbound.protection.outlook.com ([104.47.32.68]:30256 helo=NAM01-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <brijesh.singh@amd.com>) id 1eMfvu-0002du-Lt for qemu-devel@nongnu.org; Wed, 06 Dec 2017 15:04:42 -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=89YLcPphvxaDLY0eerdcr1fSpvPK8yJdBxh6qEgSUTI=; b=LYTXTb80LigJDdJmMRqapjO4W2whFdyev80rkIoyuDvWDMoq4Wq0MV5/2k6MlxhYFOys7+m2v0LPwQ1pG4NDxuAR8qXBdHLvLC4rwkGGBuMWxZh9holgpciGCrQG6u/d3NGm/22lxNENWSewnFoCQQVlMc/bbeRzsGx7aoUVArI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from wsp141597wss.amd.com (165.204.78.1) by SN1PR12MB0158.namprd12.prod.outlook.com (10.162.3.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Wed, 6 Dec 2017 20:04:37 +0000 From: Brijesh Singh <brijesh.singh@amd.com> To: qemu-devel@nongnu.org Date: Wed, 6 Dec 2017 14:03:36 -0600 Message-Id: <20171206200346.116537-14-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171206200346.116537-1-brijesh.singh@amd.com> References: <20171206200346.116537-1-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR14CA0035.namprd14.prod.outlook.com (10.171.172.149) To SN1PR12MB0158.namprd12.prod.outlook.com (10.162.3.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a0299cf6-4468-4eb5-5727-08d53ce4951d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603286); SRVR:SN1PR12MB0158; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0158; 3:G1opEDrEiAJa0MqVNTCxWRa4TQaYqXxZcrSyQkRUjveig5WWHOJxEIdSDNoNNqlG7n/18bem/NvMVy007HMtYPy4ILwNJdD6V1TChDSh3+qLhcypRfkSYyXC6e7dfk9CseEFkZHDVnAeFxExhGfPTI6wM/dDo7sZ+uN3dg4UVjsJyLEUjo9iJ2666P6HyPhzEAOXieIJYDtXpW2i+c9gGLtXt8EZwM+k8f2whbaSRjAs1j25GLf97wmR7g/zNYDc; 25:wVv19Q9P8JK39Pmic029WYGKUlOENpr9LAXR7+J5/DEF1S92pYzbSlbQFklWOxFm4avUARJaTt7r+0ns7LrbQ8Sfe4ZRtN+ckXHJNLa4H21m3Qyb4NOU4VXLIvjaOdyFZa2I9+cXa5ZCnLZp5ZXGRlWuYpA1CAHhncbeGCuE3bu3eViPKs5TM+hmtrLGux9Aomdayqtj+sVkiITwMUg/Y/5okiO4F6Po0eo2iJe+5MYo0f+AwaOKBI9UoumtFhZRgR/CW3CnWV3u7TzLIW3Os875WZQuiwAPZfLDEDqDleHKXAQexj+oTkuYCRUTbzuqESxiVQ57wEXdzIMgrt5npw==; 31:BdUI0vBW8UqsIaxwCfNOWyLC7hFLWTTr8yzbE76PObbUE7RecfKMDbIlKzQ93byC4lJ85vU5uGQy1QmMO6X4uGio7zvtFl3A+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C55BEBF1E5E7D6FE5320@SN1PR12MB0158.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231022)(6055026)(6041248)(20161123555025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(6072148)(201708071742011); SRVR:SN1PR12MB0158; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN1PR12MB0158; X-Forefront-PRVS: 05134F8B4F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(366004)(199004)(189003)(16526018)(16586007)(33646002)(53416004)(105586002)(39060400002)(4326008)(305945005)(2351001)(106356001)(2361001)(7736002)(7696005)(86362001)(52116002)(8936002)(316002)(53936002)(97736004)(76176011)(51416003)(36756003)(66066001)(1076002)(3846002)(25786009)(6116002)(47776003)(50226002)(68736007)(54906003)(6916009)(2950100002)(478600001)(8666007)(5660300001)(8656006)(8676002)(101416001)(81156014)(81166006)(2906002)(7416002)(48376002)(6486002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0158; 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; SN1PR12MB0158; 23:mvinc4XC74Ogp5sv5tlqS6bQNdrzW364jTcgsSmTl?= =?us-ascii?Q?IPSqfP4c2Ld5crTNTjyxN0CPuX1Hy+jBvpwuAM8CVeIOb62xofHcEkX2wnzh?= =?us-ascii?Q?GZFXSq3htIbqoeXMFmZDw5KGZKSGIPya5QeplYKaLkNCPbMf9OHoBTIHcGzv?= =?us-ascii?Q?2DqR3o9sSRmAGi4AaJtP8hNXD/WHvqndYlGKnkt5xgm08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xsB90MkvOq2yLEgfv4zXvdfLA4YyMtOi SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0158; 20:zTjJ7NJ/2N5kgLvscjiv1JC1oDQ4v+Srra8vmRLKMRMAqUe7NTjxR2h32AfUDo9qFoJzHNVXqhHJ9a1fTxpk8dpEhhfVr6XcqF+DGHtwdVJiHsJ17sVXK1aM18ayJlf0wFZ2sXh9z95N7QWAf5CfsfPAHKOhIExBq0uQPdMjJPgDXetuZP+TXaPmlphuoGUogo3bJDY34auwkHu+C8PLVil9YZOifI6jFtGvXDU0DiDQFKJxv/1FcW6Im0p0PaWe X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2017 20:04:37.7544 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a0299cf6-4468-4eb5-5727-08d53ce4951d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0158 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.32.68 Subject: [Qemu-devel] [PATCH v5 13/23] hmp: display memory encryption support in 'info kvm' X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: "Edgar E . Iglesias " <edgar.iglesias@xilinx.com>, Peter Maydell <peter.maydell@linaro.org>, Peter Crosthwaite <crosthwaite.peter@gmail.com>, Eduardo Habkost <ehabkost@redhat.com>, kvm@vger.kernel.org, Marcel Apfelbaum <marcel@redhat.com>, Markus Armbruster <armbru@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Alistair Francis <alistair.francis@xilinx.com>, Christian Borntraeger <borntraeger@de.ibm.com>, Brijesh Singh <brijesh.singh@amd.com>, Stefan Hajnoczi <stefanha@gmail.com>, Cornelia Huck <cornelia.huck@de.ibm.com>, Paolo Bonzini <pbonzini@redhat.com>, Thomas Lendacky <Thomas.Lendacky@amd.com>, Borislav Petkov <bp@suse.de>, Richard Henderson <rth@twiddle.net> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/hmp.c b/hmp.c index 35a704182494..3184ed5d1550 100644 --- a/hmp.c +++ b/hmp.c @@ -88,6 +88,8 @@ void hmp_info_kvm(Monitor *mon, const QDict *qdict) monitor_printf(mon, "kvm support: "); if (info->present) { monitor_printf(mon, "%s\n", info->enabled ? "enabled" : "disabled"); + monitor_printf(mon, "memory encryption: %s\n", + info->mem_encryption ? "enabled" : "disabled"); } else { monitor_printf(mon, "not compiled\n"); } diff --git a/qapi-schema.json b/qapi-schema.json index 18457954a841..7eec403cd34a 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -314,9 +314,12 @@ # # @present: true if KVM acceleration is built into this executable # +# @mem-encryption: true if Memory Encryption is active (since 2.11) +# # Since: 0.14.0 ## -{ 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} } +{ 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool', + 'mem-encryption' : 'bool'} } ## # @query-kvm: diff --git a/qmp.c b/qmp.c index e8c303116af2..baf367af55c0 100644 --- a/qmp.c +++ b/qmp.c @@ -69,6 +69,7 @@ KvmInfo *qmp_query_kvm(Error **errp) info->enabled = kvm_enabled(); info->present = kvm_available(); + info->mem_encryption = kvm_memcrypt_enabled(); return info; }
update 'info kvm' to display the memory encryption support. (qemu) info kvm kvm support: enabled memory encryption: disabled Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com> Cc: Eric Blake <eblake@redhat.com> Cc: Markus Armbruster <armbru@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> --- hmp.c | 2 ++ qapi-schema.json | 5 ++++- qmp.c | 1 + 3 files changed, 7 insertions(+), 1 deletion(-)