From patchwork Tue Sep 13 14:49:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 9329401 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 214E46048F for ; Tue, 13 Sep 2016 16:09:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11B7129559 for ; Tue, 13 Sep 2016 16:09:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05D412955D; Tue, 13 Sep 2016 16:09:27 +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=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 C578429559 for ; Tue, 13 Sep 2016 16:09:25 +0000 (UTC) Received: from localhost ([::1]:49923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjqGy-0001SX-Pi for patchwork-qemu-devel@patchwork.kernel.org; Tue, 13 Sep 2016 12:09:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjpZC-0005lR-TB for qemu-devel@nongnu.org; Tue, 13 Sep 2016 11:24:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjpZ7-00055t-U6 for qemu-devel@nongnu.org; Tue, 13 Sep 2016 11:24:10 -0400 Received: from mail-bn3nam01on0042.outbound.protection.outlook.com ([104.47.33.42]:8736 helo=NAM01-BN3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjpZ7-00054J-OW for qemu-devel@nongnu.org; Tue, 13 Sep 2016 11:24:05 -0400 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=jGqpiEfc07hGOCP08XtU7I3aRoC1k0uaXjUYm6nBSrE=; b=X74mLtZdjs/ceaaUfNL7qR551fbWtDOLjeQPxLOIZ6URPBkPOALNyU/97qNpTUh/cBceRsN4U+AgThY3mVRDZ/OdlGv2JSW6noY5JBkKZgImOfZlV3T9hvjrBOTjX4MmraICShQOFraIEIDWiEBlSxA/FDKAxk0x0u9pG3MiitY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from [127.0.1.1] (165.204.77.1) by SN1PR12MB0672.namprd12.prod.outlook.com (10.163.208.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9; Tue, 13 Sep 2016 14:49:43 +0000 From: Brijesh Singh To: , , , , , , , , Date: Tue, 13 Sep 2016 10:49:39 -0400 Message-ID: <147377817920.11859.9423132506504837623.stgit@brijesh-build-machine> In-Reply-To: <147377800565.11859.4411044563640180545.stgit@brijesh-build-machine> References: <147377800565.11859.4411044563640180545.stgit@brijesh-build-machine> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BLUPR0301CA0039.namprd03.prod.outlook.com (10.162.113.177) To SN1PR12MB0672.namprd12.prod.outlook.com (10.163.208.30) X-MS-Office365-Filtering-Correlation-Id: 9c13bb47-3695-4426-51ec-08d3dbe532f7 X-Microsoft-Exchange-Diagnostics: 1; SN1PR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DBHHprsyXPEIqwI24o32g=; 20:vkhxWeSa5xjHSjldTStAk6uUKXINFAdxrKygdD0Jwsb4/PyBInO8UTp7uudtD6RvI1EExK+XigCkCEih97bB1qGYmn0Bch7+KDC2FerWbjrrAKm9PaccLBz8bGSXNvGv+QiQSzlM02qu0a0r8xtSB+DTEiDKnJiHhboJF11tAMuSMHl/0msD8dZdUa8gls72uO4uGEd4QT0wNn2VjPKBuPzZ4q70p6+QqIY5Pwy26wJw7Yk3qMhv2FBssFKvPi7yzap7xdDT7dLjk5OdNmI0Cphx1myv+PMLe67u3laslpSoBU8kTG4aktr0CO9lBBGVnpd95rY026/FEeTMWwYU218U7+mT1GxP79XVFfEsZtTHHS3Bhh84QeivWdJrSz3fdSZRNF6SLFz4HsGC9LL4gQrBcVQ4lcwbfTkD/WGejsDF8TXzzRImPNL9YZ3HnH1E2DhFznaHfY7j/YPJyaIFlAKV5GmiiXQY+ZR2sfufHV7Nl8JeQ2C8qBMmkpFHAIds X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:SN1PR12MB0672; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0672; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0672; 4:UuITE7xU8AEOfm/LY4XwMh1HKaxryQPDc+ahLPIDUQ+/NkA88NhXdUC80VqtPpZIhpUV03feDjLJbWMDlEDU+HFPr0wxys14N0aXVaC+avXCBee2jK1u+ZhnEY0LprOoXoLACUYyoj/y3dNl/fXEwKFo/UMzVrFegpNS1BFqWuRzu6UNdrMsvnqWRxMX9GmO9lsv3ldpCFnV4wBdcAUuByQRzgOuOIucATSI+KaBi8aq9MjrG01O+c/f8lUHns6aTS/wnCqwQ6tMz39BIQsmxaAGujpgwLEk8bgB4Rpb9zAE/omkcN055jYalakEr6UE2MFuLXp49bI/Cztl26b6mOehWJPsjPkTZ5qBEIUP5HG9LfPM2PB6BNRBaMT7KyGrH7aPrySmRGksetUKlGcpONcXgf1lLZwHBdJWof1+oMbsXeyotVZqQ6E0xLQfVeaQ X-Forefront-PRVS: 0064B3273C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(7916002)(199003)(189002)(2906002)(189998001)(81156014)(19580395003)(8676002)(101416001)(33716001)(50986999)(81166006)(76176999)(54356999)(2950100001)(42186005)(19580405001)(33646002)(83506001)(92566002)(7846002)(2201001)(3846002)(6116002)(77096005)(305945005)(68736007)(9686002)(86362001)(229853001)(586003)(230700001)(66066001)(5660300001)(4001350100001)(106356001)(97736004)(5001770100001)(107886002)(103116003)(7736002)(105586002)(50466002)(47776003)(23676002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0672; H:[127.0.1.1]; 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: =?utf-8?B?MTtTTjFQUjEyTUIwNjcyOzIzOlNQSDgvQXJleDdQN2IwNFhxenhlU05kajAx?= =?utf-8?B?UW9wL0h5aGxOaXp6cjV0NEdhaDltbXJlTHBId0R5bnFrS25jcno3MENxaGtP?= =?utf-8?B?OUU4ZmRZS21ldWRlTG9wUHdxU1FsejhYL01SNVFBeGNROUg0d1JmKy9HTjJE?= =?utf-8?B?bmhvL0J6N2tsZzlDeVYzY0VhT2RHZTUyV2JUTEdqNFdYRG1SSlZwZXJSRDVO?= =?utf-8?B?ZXNwaGh0R2o3dXF0USs1dnc1SUpqYUgwRmJhMU5vaU41SEFXSlh6YzJ0aTNU?= =?utf-8?B?QjV1Z3ZIWWR0TmQrSHlTQXJpSy9xbVZtK0JjZkNNSklrWjhrR0dJVi91ckNk?= =?utf-8?B?aTU3ajJxQ3hyMTVMZEtQUTQrMTNwRVZ0Vm1v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+TT1kW7Bf976vNejnSsrHrjoLwyumxk43fbtrMHHFVvuBs51M=; 7:oI6oySb0jBHjPw8BtunjshSr1s3gEY7D3zTMsqh0W0XrsC0dP+5TsGe2mZC2eUvst61bm5MCMzRQEf5GAl9qwugWoEyBfGT3NwRetvlXqCzV2N+4OYrrAnlAqx3yAlh+8q7RQDzRvP/RjtsonXu1DgS33cqUy14OyIzHZ4UglOZb9Infr4WLvkHpEd9X3wQZ0bK1TGJ+FzwpE6HUM8oFbDL64gKAaD/gCZ91cdy1OH6IKBykVFZD+kHpkWe4gj9W SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0672; 20:+YtW3B630tb7xkLcIXwVpn1YtKm6d7v9LoSWoQJBt9hVn5ahJWjsJy139Pt7C/q81K6PPpHpZCQ6LaMWEYVlB0tewoPPQg1jIVyVoFrgu3vlWK24I2HuxXnWMQCQASKnRNfzkpAAitYWycwJnh4XIWW2cjm3CyztlzpZIZwNm4TfUsQ5AICdRXhj2TKcc95BYkz+IXYiN87tIeyQT90FeQSqUb6of+OxxWQ3NOJNhthcwQmkKQn1ObnQgPZmt3ZP X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2016 14:49:43.0188 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0672 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.33.42 X-Mailman-Approved-At: Tue, 13 Sep 2016 11:45:47 -0400 Subject: [Qemu-devel] [RFC PATCH v1 17/22] target-i386: add cpuid Fn8000_001f 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: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Fn8000_001f cpuid provides the memory encryption (aka C-bit) Signed-off-by: Brijesh Singh --- target-i386/cpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 6a1afab..e039c08 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -2625,6 +2625,9 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count, *edx = 0; } break; + case 0x8000001F: + host_cpuid(index, 0, eax, ebx, ecx, edx); + break; case 0xC0000000: *eax = env->cpuid_xlevel2; *ebx = 0;