Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp743350pxf; Thu, 11 Mar 2021 13:52:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTnnDDJH4fgNge+B1mFqoZNeZzixnU2DUOcGwBLcXFMPFLLBDIqH9GUkKkElen1tZQtTes X-Received: by 2002:a17:906:311a:: with SMTP id 26mr5147745ejx.395.1615499544599; Thu, 11 Mar 2021 13:52:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1615499544; cv=pass; d=google.com; s=arc-20160816; b=ofRBulNywlHKJL/jpit1trv4RyIy8fCF57EdPDkm1lNSL/xUDdT6EUCZIGPjlCiqxF YqnLoqaBYmvZ8NzW7HV3kACrxopiYAkx22ORWmF/+3Hj3ttkfjTYmWBT91DJlfVp+dFf skNQu2ZjMUEePycTTRb56ZsllhZyvPPWv0KmZ9ioOIyX90iyL8DEORibCRH+ioCX0rlm K3sXnhLcgCbYIRKfPXbOSWpjM5RpGwGnjFn95x4noITffIcEMkzLxuvVQOQVtpG4ii0n TSQqGZpcfOGVUcuq0G8qQcCPVwz6+4dJoy1iXCx2iuOKbmTg+indxW6ZmtyfrzLuakmo Ow4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=SJKGHO4zM0d41B3/n567GwmHcFZ+/HQm+HM7WeJQrqs=; b=FWwYsol0OWssF2jONlOdL9hEOExmEz/fl+L78XPdA1dVV4VTvDtyHAvmmzV84OEIbW dt4xrTsmjFPlHLcPqAjt7spwjq0oLIsayf55ilbk1XblJAInLMkQgRfSGWR/aZW4PoL0 QvJUVDpmNCGFO5U1y6fSjiA/E+ac8ztOdUqs7JtS9jju/EUJJhoxmO/9XuxCAKLBdoAk zy8UjI00lid6qLvDRwFvtN+bnrz6rVcC1DkQshQkjAmT+oszl60+6s9ncZWLSukx7SdS atYBaroi1gPrkNn8toEGnoiQgKfdbQW4ITY64ye11Xyl3GTUA0w/UbYDvuE4HKqbS2/k 6+vg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=zgS6eEew; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t24si2690681edw.402.2021.03.11.13.52.02; Thu, 11 Mar 2021 13:52:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=zgS6eEew; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231159AbhCKVvA (ORCPT + 99 others); Thu, 11 Mar 2021 16:51:00 -0500 Received: from mail-dm3nam07on2059.outbound.protection.outlook.com ([40.107.95.59]:55393 "EHLO NAM02-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231218AbhCKVul (ORCPT ); Thu, 11 Mar 2021 16:50:41 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MkcWo9Sndaoh+kH6AwQ8MksuNB8FkqZSH7jf+Dm8Sssw+p7OecNLmKbOJd70VrMQm+SFPkVzW9lEokcn1gZK5U6aialDYiR1WnMUQEtXADlwNYDL4AWsWJArl9TY8eGHS2nIgFF4uG97JP3GQxKZN3i6IQwYMGoDP+Od1LaKpsmmCl1SpzXdUVQZLDqe5RgDAm3LEcFG6ABi9vpP7X+6E96jjb+L1PFSEuecXqxo5sUoM9/gITBmIEJGSg9xZrXeD95GdpgcbWO6oPozaKDcRagxolxbP/T8igTYI5jQqRo9cGm98aH4XG9zLuIQDZNy5kkjJGgIELtKqtSIQ1PM9Q== 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=SJKGHO4zM0d41B3/n567GwmHcFZ+/HQm+HM7WeJQrqs=; b=Q2xTjepjBhMWVipzrZQYA4oVTlq8lHBweBSLOPSixH7IqdMVV1YcuErpcfNEYCWm0xSHYEvPG/2JGoQCtmJjlm+oXF5TkaxQVGMeJHR//RJKr2X1aPfQVTKkDL5Pt0SPI7FYskuD9jBDgE28LVInIocKzxaTNRcGkj6noCmDPmTs16lGG2pZIhTCHwAc/C4lmMA+SPiypUuV/Tfs6onPqwxNWoaIROXN5y7ACOMrLGci9SqCtZL97bbKp55jvH/AAC+DmUWi+2GIgT3BuEVYmYrgut7P1GPktoh2bSMsuDMKgX+Qx/07wrMlQQM9KF2OGqCqyJy88/oHGQON1Y2psQ== 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=SJKGHO4zM0d41B3/n567GwmHcFZ+/HQm+HM7WeJQrqs=; b=zgS6eEewfqDKwGVVFDI1I+75ZofZ829hLY+sMu98iL7V6iDh653DwrOSnZK3gkC14Riu53zaVbMFqDk80fC+D5plsirQJ4Jq5a1sWCRSJlMSppv1z2V5bV4hopGKWyv05B+wkWT7Z1576Jr7KR9vwMF1Iyb5nes312yAmT8X9cA= Received: from SN1PR12MB2560.namprd12.prod.outlook.com (2603:10b6:802:26::19) by SA0PR12MB4464.namprd12.prod.outlook.com (2603:10b6:806:9f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.31; Thu, 11 Mar 2021 21:50:39 +0000 Received: from SN1PR12MB2560.namprd12.prod.outlook.com ([fe80::20cf:9ae4:26fb:47b7]) by SN1PR12MB2560.namprd12.prod.outlook.com ([fe80::20cf:9ae4:26fb:47b7%7]) with mapi id 15.20.3912.030; Thu, 11 Mar 2021 21:50:39 +0000 Subject: Re: [PATCH v6 00/12] SVM cleanup and INVPCID feature support To: Borislav Petkov , Jim Mattson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , kvm list , Joerg Roedel , the arch/x86 maintainers , LKML , Ingo Molnar , "H . Peter Anvin" , Thomas Gleixner , Makarand Sonare , Sean Christopherson References: <0ebda5c6-097e-20bb-d695-f444761fbb79@amd.com> <0d8f6573-f7f6-d355-966a-9086a00ef56c@amd.com> <1451b13e-c67f-8948-64ff-5c01cfb47ea7@redhat.com> <3929a987-5d09-6a0c-5131-ff6ffe2ae425@amd.com> <7a7428f4-26b3-f704-d00b-16bcf399fd1b@amd.com> <78cc2dc7-a2ee-35ac-dd47-8f3f8b62f261@redhat.com> <20210311200755.GE5829@zn.tnic> <20210311203206.GF5829@zn.tnic> <20210311213600.GG5829@zn.tnic> From: Babu Moger Message-ID: <1caf0cd7-a419-442e-59bd-f1189685742c@amd.com> Date: Thu, 11 Mar 2021 15:50:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: <20210311213600.GG5829@zn.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN7PR04CA0116.namprd04.prod.outlook.com (2603:10b6:806:122::31) To SN1PR12MB2560.namprd12.prod.outlook.com (2603:10b6:802:26::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.236.31.136] (165.204.77.1) by SN7PR04CA0116.namprd04.prod.outlook.com (2603:10b6:806:122::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Thu, 11 Mar 2021 21:50:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 021f7c09-fea1-4b88-0ee4-08d8e4d7b582 X-MS-TrafficTypeDiagnostic: SA0PR12MB4464: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n5g2aLUy/5iB7A4d5+SvtgsKUnGXqKNqV5mj89K+JZCNNYvOIMDbXbrih0RBO+xQi9tqVEO3bIyQmQfQ/PSeE+6Qd4ZjGFV5IpzMfDe1XhK18hU/TBMJ6yEJbHoINo4jZn6NfzGuuHZpVKQfQzAhS3BzRthnRGzRQU9mpgc0yssHgN5PseNmKY8HeEyO3pAr6Pf5dD3h2BLb0z3Gw3cWdwcKKvWWeyjAhlaNphlKBXE4AUmdVFdJ4UlvBO4UNNbEEldY9tjoR3uFsIl4YuL3l9If1gkTd50jfoHz6VV4Bm+nF6hYd7hy2Uia6dSaqSaLX+qQQKH3QerG+eiLuhbbC7TtFXnbvbRh+P2FPpF5iW7qsCT0Y5g4gG6I1kKBQ9deJl3mutcg8Ul8J+amkb5rsCRrLrHtnjCLQxnqRs51zgb7uE5aYqPhjvmeVa+xV/CI/L7hLyH7hOQSjwrguEZ3tbqSGnq4rJp0Sa/fZy/LemwVQcGoRf5+Cexke95Rscjt3fTC5651bdQ1Y3Mtie/uJk2XLaZfc8G3+6mhITY6/o61i8Gqs4/rfjUWb7RnuF4VPAFNI2Y9xHllbl2fv8ub3rXzbaLrLA/o4ZkVYqzO++DrJ/kO02+KQ6G9kWUbn2suon0SwJbSbkKT2IA6VQ+1MQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN1PR12MB2560.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(366004)(346002)(136003)(376002)(39860400002)(54906003)(110136005)(53546011)(316002)(66556008)(186003)(16526019)(66476007)(66946007)(31696002)(16576012)(4744005)(5660300002)(26005)(52116002)(478600001)(31686004)(6486002)(956004)(7416002)(2616005)(4326008)(2906002)(8676002)(36756003)(44832011)(83380400001)(86362001)(8936002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?My9BU3dqeG52eUh5U2tUZnBMMVI3ZUFXNU9QVUFsd0Ywc09pT2N2dEtwV3BH?= =?utf-8?B?ME1TaXdsV2VUMXhMdUhXenBhV0o4emoxMVk3YjE3WFczRzBkUkJTaTg0Sm1w?= =?utf-8?B?bXhYc1ZxQXVlVDdKUU9pL2R2TFd2bVUweW4rODkxYkxhM0xScER5SE9uek44?= =?utf-8?B?LzlyZUNpRTZHZFdZa0JyTERYanNnWjdQQTY5QXJPY0JFVmNUWW4zNTJJSmow?= =?utf-8?B?WFpiNWs3OGhxRWl6cC9ZWkNvOW5LRzNXMUNjWWJtdzlJWTdzanM4aHhYN2U3?= =?utf-8?B?dTdmbjdId2QwWG5pRlJwOGIzMnRqUkhUSzR3Zno4MXNiRTBoQ3JWMnlka3h0?= =?utf-8?B?a2NJZGNQRzZscllqZjUwWmZiRkJhdVlKWnd2aHVObEhyKzYySDVsbmh3VEJh?= =?utf-8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EozUXNmRFhXTm4rNldLa2RKWlkx?= =?utf-8?B?bFQzVWNaQjFQaW5LU2U0ci8wbGdZc1pkWWthZmFBeXNURVFCNW9ZWXMrOXdH?= =?utf-8?B?dmI0dVUwVFYwN0thM01QOWR6V3RyeEE2OWhReFJENGkyK2I1RlJxZmtUeG50?= =?utf-8?B?bk4wNmJUVCt1em5QbktDM0hNRzg2dldXck05VC9JMm90V0pVWXo4QVd1SzZn?= =?utf-8?B?Z09FVXNtcDJ3YXhiNlRjVzlIdW41V2ZTbTl3S09zaXlWZjY4ejNuY0tpWWl5?= =?utf-8?B?Sm5oMW9FUkpOZGpxTzRkV1BNbGZNYUd3SnNhdFpDVUEyNVhIUzd4Rkh5OFZ3?= =?utf-8?B?VXhVMENCREF5L2NqRkZEdkNmNlhmNDBCZ29BR3ZNaHU5NWZ6eTM0QjdtKzRR?= =?utf-8?B?amR4Z21XOTBzZ1Rzc0dpaU5BZUhjdmFkKzdrUGp6eW01RjU3ck9MdzBqaHRG?= =?utf-8?Q?O3JcSiHybwFxWe5asVpcM+mUHLJPVSJU/LkK6wz?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 021f7c09-fea1-4b88-0ee4-08d8e4d7b582 X-MS-Exchange-CrossTenant-AuthSource: SN1PR12MB2560.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2021 21:50:38.8595 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: aOsAv/1Ec92GCBe+fxVL08avT0ui3CjpspysNo8FY+se0mkoYQggMkVAeHhiAIv2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4464 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/11/21 3:36 PM, Borislav Petkov wrote: > On Thu, Mar 11, 2021 at 01:23:47PM -0800, Jim Mattson wrote: >> I would expect kaiser_enabled to be false (and PCIDs not to be used), >> since AMD CPUs are not vulnerable to Meltdown. > > Ah, of course. The guest dmesg should have > > "Kernel/User page tables isolation: disabled." yes. #dmesg |grep isolation [ 0.000000] Kernel/User page tables isolation: disabled > > Lemme see if I can reproduce. >