Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1008874rwd; Sat, 20 May 2023 10:42:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ771OB9S+wFVcwLV5uD8HZWoi1fCtBScGtnjk7NIbLvbMHMpH7aJ8lqHdkI0ZFkcNwKFpmk X-Received: by 2002:a05:6a21:3386:b0:102:4597:de69 with SMTP id yy6-20020a056a21338600b001024597de69mr6833779pzb.30.1684604546410; Sat, 20 May 2023 10:42:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684604546; cv=pass; d=google.com; s=arc-20160816; b=CbIbULj9sr6h0aPLhI1VtX2TNyHPsUHDlsJ7ybQbmAKLzpbJ/6+btD2fWa40x61tWK NEAitMh+AvD76bd/otcc+xJyKk2WhtccRaHjZodxMat6HM7mrFo0WXAxzqFBNmifd0Ot uL1eACpN6omSRugcXYYp5yyt7cZQGqAOR3jteFU221QXPR1iaPQ6uBOxogcDmXqdbCT9 crxwLSdmM0SxxfTjFyuibyilHZPhQLgRVqf8lKOEnuqxPlGfGsaU8lWBY4D0gt8HEPcl SbWD+WOzEXQQ0DZlo84WQedTNuBs4srJROrhfoQSi5Ts22gwMGCqp22ji50XVV6nCpBM qcrA== 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 :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=Nk0UmCgHLKyKXa++q0JQFeNiFBT+4gy/Zuvgh/xKXpc=; b=Z8cp588Iobxt144Edm47vazlFivDvUdzuaNaHVXYIcHz5pOx3m5g9MAq9x6bHM5sR2 bglv00nm6Jg19u/rOKrQK3ZYJ5MAwIB4jUSFoMx4Wf5z+EquNOGhBoaUCRfX9eR2HLhc fAB1eBLs8RwqbayKVCLHgS2sKEY00JYwHJGTwyVN6NCcn3I68nngGX85soLuqUofRBWA OwGS+IP6XBofNzbpI+yi1gl6x2xd9WyYSaYeYKosg9u2py3eSVsp11V4Obf6kvOakEk6 c4AKj5rqC0SBPEP29WUHeYQTXmZzQvmKZaPcC9Dw5wYUrojEawUnRFcyTYWsE9kPouH7 7wow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=Ba+1fp78; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x30-20020a63b21e000000b005348b4f79f1si1799699pge.345.2023.05.20.10.42.01; Sat, 20 May 2023 10:42:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=Ba+1fp78; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbjETQuU (ORCPT + 99 others); Sat, 20 May 2023 12:50:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjETQuS (ORCPT ); Sat, 20 May 2023 12:50:18 -0400 Received: from DM5PR00CU002.outbound.protection.outlook.com (mail-centralusazon11021025.outbound.protection.outlook.com [52.101.62.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAFDDE9; Sat, 20 May 2023 09:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GDHDFd7ef5PF2wyXnoipFijmtsnRMOtpgKYJND272HNw3vq1ctZHaVzc3FRltPk7IXJpygr8jgMU0B2iw93B/78XM93xUHtSEo0p328FjX1BdBAG+8auiiXKbDI6y9AP+UncuUg2Hm0Nn7X8qKuXRk0ZW3vGTxaWl53QEQ+84M4kk7ztkq3YbePJtai6AoDfnARsT4aZTdJTtcSa3yhjexOcuMJZZHaYGt1JJOVpHJefKbOGjy/i3O8lzs+NuuYBiXxEI8IpXgY7d71lW9WuGIDrdDidW9Rgznbj8qcFOapnPPd5rL2J4eyRJDhJcUcfQW0jkzFySyXxthoX3++dwQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Nk0UmCgHLKyKXa++q0JQFeNiFBT+4gy/Zuvgh/xKXpc=; b=CrZ5nagMDs50o619/14SGqFf9tUmifgUUKm5pAdgtoOQz/KXcArKk1bWRg6uZlOoQJ9SF49KRfkFmFNAjy4832vOcNIfzFz8fWnDh8UZ1a1xC9QU2FE9yaMGzTniLPuQRwTcDgy5sAJ9Dh6hh1SrIyRDwwKnKZ8Zp2Gg6r/nl8zKN/dFlRwR/O82jJQbO7Mhhl71n9a1YNisU1+q31ileSyYxNxmBWmF811QYkyWxg2perR/xBhGFZT3S4EUc4XRE8J373V9cMu5HKjFpzHSfHvFgJ7BSUNHlzx8zPwdnYN4D0D5Y4lRLHbpeykNUQ3Vo0DinmaOIYyEVl64+W/F3Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Nk0UmCgHLKyKXa++q0JQFeNiFBT+4gy/Zuvgh/xKXpc=; b=Ba+1fp78OtzW0YtY/kB15D9acvlEt8wlvjtxogMmqGcgh6QqKg+sGlmXBGR1b9sFcOryifTevvoJrzKyl1aKxrqD5mMGO/yAdXVrCzZx+624H3QpgaeuTbtiSlnF69c2Sa7rzXG1SxBq8/d9Ww36g8Nc//JdNIXNxaV+6PEywPU= Received: from BYAPR21MB1688.namprd21.prod.outlook.com (2603:10b6:a02:bf::26) by SN7PR21MB3955.namprd21.prod.outlook.com (2603:10b6:806:2dd::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.12; Sat, 20 May 2023 16:50:14 +0000 Received: from BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::a4f7:2466:97b5:bd31]) by BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::a4f7:2466:97b5:bd31%5]) with mapi id 15.20.6433.010; Sat, 20 May 2023 16:50:13 +0000 From: "Michael Kelley (LINUX)" To: Saurabh Sengar , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" CC: Saurabh Singh Sengar Subject: RE: [PATCH 2/2] Drivers: hv: Kconfig: Add HYPERV_VTL_MODE dependencies Thread-Topic: [PATCH 2/2] Drivers: hv: Kconfig: Add HYPERV_VTL_MODE dependencies Thread-Index: AQHZhBiSXHyss6LMXEKxhJqATsYYqa9jayRA Date: Sat, 20 May 2023 16:50:13 +0000 Message-ID: References: <1683816877-10747-1-git-send-email-ssengar@linux.microsoft.com> <1683816877-10747-2-git-send-email-ssengar@linux.microsoft.com> In-Reply-To: <1683816877-10747-2-git-send-email-ssengar@linux.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=c4755354-b2f0-4b02-974e-488479445ce0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2023-05-20T16:39:37Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR21MB1688:EE_|SN7PR21MB3955:EE_ x-ms-office365-filtering-correlation-id: 4b04b05a-e7e3-4558-6d51-08db59524855 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VuL8tJUZYcVKKvzSnq6BqaFQUtZlC3qlfySJ2XVKaxWzS8fvQcEIQaTKddqEi7BdoEZldqCt3S1IP+YJxobB29U5G4Lh8xIhTS59ccG/q0WQNB+BXT/DPbUTVWZC8MaozWzsUkxwb+dSGA2RD+G2VnvIAbC3PGdlCBOCX41SzAY1L29mTZ/kpwu/jC/CqsNfUffoGWBiFlq/v2bxAc3q+vX9fQp6GXQH+pK1IDiLBirL4IHKF4MChObBRcrBIA85YDW9iHIv2NnnU73OhDljfasXEvTW3wUikZ+qhEfp5Al4obYXuVLm3TFH9Qss7cuFIWjP1XbsPI/REXBIUvBXn3cx3i4wUdiVaQK1PRJKLSxk+YQHsP+EWop9CQzR7loRWrHJoCQDSaSwvdjvh3VFKyAi0FArHOmhqJcJCbRC0Ap3VGlX0+yBrfoDJhob9SupeGOtHMCLVwtJjS7EYLMa/LVHFFHMUT0tRnvbpeL/XcqHJW70N8NwGjiI8mrUgF2MMXhGJmo7u7dlxbsnhkk4c/w97IgjlWIrvulOOMwfv0r2enFjrM8y8Q0uTWCCxBvj6c6kVGX8wiarSeu0sltx0ZCvmyiVWf8WQiWid2bW7+z8QrDNs2Es5PpTySBhjfHvd+VQUfRKbpLh1nS2LCnwQ94Bg0iYyxSldujdfaXRhWOsnTiy4wBPBhNxZatoCxaD x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR21MB1688.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(346002)(376002)(366004)(396003)(136003)(451199021)(55016003)(8990500004)(83380400001)(186003)(2906002)(478600001)(4326008)(66476007)(76116006)(66946007)(66556008)(41300700001)(7696005)(786003)(316002)(64756008)(110136005)(66446008)(71200400001)(10290500003)(52536014)(26005)(5660300002)(9686003)(6506007)(107886003)(8676002)(8936002)(38070700005)(38100700002)(82950400001)(82960400001)(122000001)(921005)(86362001)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?6HTFJydf7jiR8RqBIXy8F043YrVn/86XZwknxQFYZ0MK+sfXOgiDqGH2i7ff?= =?us-ascii?Q?NjcPknVV5IprjL2AP2WOScn/1E04OkxbSO1YTAV5QI1ZiHqRUOXEm2vaEI0a?= =?us-ascii?Q?WTBCNhkIdBzujt6tFuYBnqD5BxDvbm/TwhfH9mEi499OZA1lt5xl1F25GbO6?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OF1qNLsQ6FAc9Hwyq2LlGtS5?= =?us-ascii?Q?qtWhcB6jdQQ+UewciBJ0Y8/A+PGzJ3MsBW2qnH9qgGAQm2dzupmy0AGzVSr2?= =?us-ascii?Q?Be4wb4D2br3x07oeWOagF+raKGG4Yq9ZdnXvbJK9HH0U7b9rFEJCI8Ne/d93?= =?us-ascii?Q?CT0t+v0vFoVXr/ubBaExzegxO9N0dUUY0ZjnpIq7vcF+6aRXju3aAX4zLFwV?= =?us-ascii?Q?sZF5DHlIWPeXSL1Y8lCfEuWUY7pcELFj7xpUMbNnScaoHY5u/5ncxZ7hSULy?= =?us-ascii?Q?oVZbkjt22BD8ajE+8cOsvECIDqscq+a2PFGxmxQsADcuNrC4GQS7zRWJwX1+?= =?us-ascii?Q?s3e52ftSJoLbsKNTI7tchE7Rk2CU9/OfNypVuZWgYgXgnNdhzg7X4l+ajVAW?= =?us-ascii?Q?Ipja+hMpfeXsMXl12qs3nQQ2aRlScrny9G9XsC6u/KzzzWbW6Y8FxvqOEtr+?= =?us-ascii?Q?71XO44rROJ4DdJGVoQvxWLVp+3H2kV6KQprOqSgBe8jHAD61dW5CtLLBkOMS?= =?us-ascii?Q?WrFtAMfPDRLVwf5QogJzFsxLUXxri2OzlYeQjiy4uLary3ghRWexqbCBwaE3?= =?us-ascii?Q?IQ=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR21MB1688.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b04b05a-e7e3-4558-6d51-08db59524855 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2023 16:50:13.8327 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: l5QJI8h9rqUprod9IQTPQ5tGhdPiZeBJrsaUF4MNgPzitVBaisM/UFsaTSZIs82JP2N48OB+Rb/5GsHUh4kV0J+7frxIZllQ+nGS+mK+vz0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR21MB3955 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Saurabh Sengar >=20 > MTRRs are not per-VTL and are controlled by VTL0, make sure it > is disabled for all other VTLs. Clarifying the wording a bit: MTRRs are not per-VTL, but are always controlled by VTL0. Allow building for VTLs other than VTL0 only when MTRR functionality is disabled. >=20 > X86_MPPARSE scans low memory for MP tables, which is not required > for Hyper-V VTL platforms. Is the above statement saying that MP tables aren't required, so remove the code to save space? Or is there a problem/failure if MP table code runs and scans low memory? *Requiring* that it be disabled, and the reference to scanning low memory makes me think it might be the latter, in which case I'd suggest this more forceful wording: The MP table code scans low memory, which causes failures in VTLs other than VTL0. Allow building for VTLs other than VTL0 only when MP table functionality is disabled. If you can give slightly more detail about "causes failures" (a panic? some other problem?) that would be good too. Michael >=20 > Signed-off-by: Saurabh Sengar > --- > drivers/hv/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig > index 00242107d62e..c8d443886b9d 100644 > --- a/drivers/hv/Kconfig > +++ b/drivers/hv/Kconfig > @@ -16,6 +16,8 @@ config HYPERV > config HYPERV_VTL_MODE > bool "Enable Linux to boot in VTL context" > depends on X86_64 && HYPERV > + depends on !MTRR > + depends on !X86_MPPARSE > default n > help > Virtual Secure Mode (VSM) is a set of hypervisor capabilities and > -- > 2.34.1