Message ID | d0ef11c086690a3a876e07ffd9b7bf92665cd6bc.1610665956.git.thomas.lendacky@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=LYIK=GR=nongnu.org=qemu-devel-bounces+qemu-devel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF763C433E0 for <qemu-devel@archiver.kernel.org>; Thu, 14 Jan 2021 23:16:26 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9176823A59 for <qemu-devel@archiver.kernel.org>; Thu, 14 Jan 2021 23:16:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9176823A59 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org>) id 1l0Bqr-0006kO-Ly for qemu-devel@archiver.kernel.org; Thu, 14 Jan 2021 18:16:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Thomas.Lendacky@amd.com>) id 1l0BoQ-0004tT-O7 for qemu-devel@nongnu.org; Thu, 14 Jan 2021 18:13:54 -0500 Received: from mail-bn7nam10on2056.outbound.protection.outlook.com ([40.107.92.56]:64385 helo=NAM10-BN7-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Thomas.Lendacky@amd.com>) id 1l0BoN-0006I0-AC for qemu-devel@nongnu.org; Thu, 14 Jan 2021 18:13:54 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SknHPJFSytA+pbAblFPvdHTItQjqNMvQ/FiyTgj+3AtbrYlTWMWBILTI4FrKaR4gbEwj/0DksxVyKW8Dn38exJ5yCWS3q0k1kLPsVXUA5OxBTNoTl+oishdSQDSivUoM9eSqW8FF9pU7fcFer86DqW8HtYy5VKCtBOMroQtDTDg+F7afJwcDs020HI7/AqLkSZF56N6xQZCCUAzn2wJteThzkrjnJwvDcTipDLaKQPKTaqLx7MErbwOyyhgjHPgiy+h25L1KEo1vjDNJZ95uEMRFcK+WLeWku8UOMCu4Lph6giUO/h7DQuqEjqokhs5gWFF85YM7Ooe6oufmNkQIog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uR4/S7ATo2WmVto3ZLWqLM2d/h/9jnloCS7eA9/vH1Q=; b=CDZ1ipkqLk3MUnkRTXINv5FVkRH8H5KyBdQXEnEqgcDp3u2ZaJrVM/L5TKPa0c9rqIj0x+azrw82NgnUw9QN8Lv1qbEAJP7jlYmBhw5YHuWCXp+3eZFZO1+SggWKiO8YGfQfln0ya4N/Y1G9gNurYx5vIzZqkFUKgVRLUQaodguMgFoYMCKNjIYHyZeGKPTDVdK1RHiCrqBGMJZKkfxplrIIqBOLYEJY9Ovxv5BOwn6x9MMR020Uy0+GDoEFzO79/u6ZAqr/oLWJ3cCqheqbFkL67Q7QX6lvgugzW/g/055kTvwyhkUqlX0kWGbpizMZ8SCFJKdBwVWinJJqeD0uNQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uR4/S7ATo2WmVto3ZLWqLM2d/h/9jnloCS7eA9/vH1Q=; b=5l2SnoWAJb9kydjcnoyXAQf3KQGSn3IdRajWpCdpieNmamR6D6LLUKq/KaqLUUojbzSx1JUd5knfPkxLwis7qxwH2yV4CxV1GTOkjcVMTM1ZBJ9SR9BIXMjog2KcfxdoY42Q9YrmdnPAnDm2XVemDcPUJaFz4R6b2xAh82xliUc= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) by DM5PR12MB2503.namprd12.prod.outlook.com (2603:10b6:4:b2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9; Thu, 14 Jan 2021 23:13:46 +0000 Received: from DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::d95e:b9d:1d6a:e845]) by DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::d95e:b9d:1d6a:e845%12]) with mapi id 15.20.3763.011; Thu, 14 Jan 2021 23:13:46 +0000 From: Tom Lendacky <thomas.lendacky@amd.com> To: qemu-devel@nongnu.org, kvm@vger.kernel.org Subject: [PATCH v5 5/6] kvm/i386: Use a per-VM check for SMM capability Date: Thu, 14 Jan 2021 17:12:35 -0600 Message-Id: <d0ef11c086690a3a876e07ffd9b7bf92665cd6bc.1610665956.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <cover.1610665956.git.thomas.lendacky@amd.com> References: <cover.1610665956.git.thomas.lendacky@amd.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN6PR2101CA0020.namprd21.prod.outlook.com (2603:10b6:805:106::30) To DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from tlendack-t1.amd.com (165.204.77.1) by SN6PR2101CA0020.namprd21.prod.outlook.com (2603:10b6:805:106::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.1 via Frontend Transport; Thu, 14 Jan 2021 23:13:45 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d48aeb8f-2bcf-49be-362f-08d8b8e20b82 X-MS-TrafficTypeDiagnostic: DM5PR12MB2503: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DM5PR12MB25038195670C371105FBEA17ECA80@DM5PR12MB2503.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1oclUrQfFT73OTNkqcZYCwuKt2KqdvoTuBae/FBSr5pnyWHDqDrncs9fYhibh1NwAJ18zcMBmiNFfQ44as90u20ICq6WyXZeAx3XF1oy1rVOiQh6tX5aKSTLfjd1EaszbgvKEQj3Sexc2Wo2FCmG3FM88APWvqXRzoZ3KOdTUW8H5mw94Ig54LxM2PWMxcpIGHCCfOeoJn3lwSr+IMpVjVk6gZ6zpHD7oTDBrBf583myDf70ljqwEYGRHlphnQS3lFyYzxsQji3jQhHPROVVGiSOb8VJ77a9L4Vgz7WADLJD5k0lhuh1wKFDuDq0f92rw8Ukbybqzbzhwp9axy/sCHrRe4+hW+L++fjyOmg78Q1XdVLuTE12RoJ2qSNE1EJW X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR12MB1355.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(346002)(376002)(396003)(39860400002)(8936002)(54906003)(186003)(6666004)(6486002)(16526019)(86362001)(4744005)(7696005)(956004)(66476007)(66556008)(52116002)(316002)(5660300002)(7416002)(2616005)(4326008)(36756003)(26005)(478600001)(83380400001)(2906002)(66946007)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 2S12Q9u5jRlGFckMPfpYNdIrMzrAf3visZtI73PvnShlY3arBKUkvZEaFRMTDUbdqJ70SJWFhahjdDwde6N69tSdXPCacG6vzANX+1gRLTkzf6E7dVTGg7UA6UiMa+4MLOzbSC0K/9FJ3z5sh6JZ/LeRZDg6gtpayVZN39XMxCohnIW8zQe3DM8srd0LuFr3wUiRyTSeVBk8j64b0086f4jLxPKYYe38e3ECMQYrMEvYpifxURCoFqDiE6tFCYDNWxtooEBbt/lvN6m66KMUj6veR44+QjP60Yv+oxhGbe0DtX0p0jTKVPVJKlgJ7kZ2RS7DeM+6wBTts3VvR/nUnCA5HM36uyEEZpV91A0Huzxi5V4+RB+R9AQCEMh+IKTcv3IlwvofAkcp1ZztL9BTdUVYIT2jHbm1kiqf/xJSG2v5xdCyqFyweY0tpFE+aW1inyAIOWQrd+essHw1hsrv+2Upg8oA16RTTslrQLvrNeTZCOx7TK9+Hrz/0sCXwn4RHW1OZ1cpSo3ySKRZ6gLn23KbC1zrLPn43QNxewi5/Th/dsrvbIdtey9ghj8JrK+zR6NKrc51NH+RtBBneC7JvoeLqnSDr00Ton/YQGeduuxJP9K1U2qs5J2/OkbIbl/h2ihVMqlh2dsnY+alph2+Fi7LcPfYOAv7oiol7lNHhuVB0h+YA15xCiFJSgx1goH0pk3cl4f5ruXmEakvZ0m1ifpv6tRciJQ9MOswY+c/i9vmHJRQ/FWqFirSz+6dZMXB72LjZmhBmHZGOvzvyJabJFCS/rreBUSx0lffZnMs1IhDwyeKdRVEXsknrrLd3KalVA2WWmP7f3VP/wkzM0f48pzqsPQfMo2+7ZTJ+Z9kNiIxmn7+XYzk2/aO8nOfWwN5S+FxFII4AWCPi5xoH/dRI/Kl5xPRPKb37fhVtyvj/SphbqjZ08CpsrWIyAV2OKjDjEIemIbfP5wEFrmV+rZJImDZAFSdqB7jE9VPp3O8XtbcstiKBR2/MGcvxOxsqJj3 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1355.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2021 23:13:46.7218 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-Network-Message-Id: d48aeb8f-2bcf-49be-362f-08d8b8e20b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pS98DQ2L/k52nU8hmZGgcMBuaEmGO2BwqdcMcx+Ks7At7fMyRSfvBwE1sCzixW7/vQ6xojrhfk2nX6MTMpGE3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2503 Received-SPF: softfail client-ip=40.107.92.56; envelope-from=Thomas.Lendacky@amd.com; helo=NAM10-BN7-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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: <https://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: Brijesh Singh <brijesh.singh@amd.com>, Eduardo Habkost <ehabkost@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Connor Kuehl <ckuehl@redhat.com>, Sean Christopherson <seanjc@google.com>, Marcelo Tosatti <mtosatti@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Jiri Slaby <jslaby@suse.cz>, Richard Henderson <rth@twiddle.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> |
Series |
Qemu SEV-ES guest support
|
expand
|
diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c index bb6bfc19de..37fca43cd9 100644 --- a/target/i386/kvm/kvm.c +++ b/target/i386/kvm/kvm.c @@ -135,7 +135,7 @@ int kvm_has_pit_state2(void) bool kvm_has_smm(void) { - return kvm_check_extension(kvm_state, KVM_CAP_X86_SMM); + return kvm_vm_check_extension(kvm_state, KVM_CAP_X86_SMM); } bool kvm_has_adjust_clock_stable(void)