Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2444285rdb; Thu, 21 Sep 2023 20:59:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOpHv0asZ9pGADDRe7z4W1888TPYCkIN8ZivPAizQBRuRbLAyu6I6hY8BYCjWQcj/BNBE/ X-Received: by 2002:a05:6a20:a59c:b0:15c:b7bb:2bd9 with SMTP id bc28-20020a056a20a59c00b0015cb7bb2bd9mr7180835pzb.6.1695355175298; Thu, 21 Sep 2023 20:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695355175; cv=none; d=google.com; s=arc-20160816; b=CEasmRferle64Re04rHZwRnsi5dhsdzYYbHIRB3WoizM2xH+NPq8ys6FBO/1PO/eTy UPUDnxPV7Mzh3YClkDvNM7barRV82DWXC8HhN6NaU86jyNRESAAejvENZwiZ5pAJrkkN MQo2uIMXkWoX85mjlMJ+CEutllD4nf52pdAp57605ei0sAZhZdMrPi9s/LdKPwRadwSZ UXXQCAGo+nDbvGDmgCsKJyr6ECrLpl5d5uNhyeYwX0lE7mNMiNMYcLuQnhG70CKeoZFP MQiMn2m9IEwnNLF0Dp0q5lM7XBzdMGcF4BI9wLH+uq+ucFX9j1ME+XJSyprY+Y4qeVkz eNpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=+CYT1qzL77ITSUiOiG5QEUM8nPiTvooU7tBhQsqM/d0=; fh=hWaW46Gtxa3OsIgLsdZZepWgbJSvnkI5Giqo8/jvujY=; b=n5N3XSYRNEZQXsZxeMXcQwkL+9+dRXkMI42qX2ZiX3pLKJu0AJqs8AaRt94qXH4Q89 VEENJ6iM2HrAWkDitNBmSEu6pzZmo4HxdvYongUPb6Gkh+iF5yxOPxIAswGGveUp66Qk MgyMTj9C2ZDgWI1cUzuFu1P68It8PNCxnYCa/PLndtiYnFiMAis74m3p22tQdYhqokSM TNsRwBAcflAebymHnVuZgoGVIUN5r9lx671SlyJNE0U869IBIvhGcLceqyX8T80KTsg5 lTrZiciveeJdWN6RygvKMrKEWY357+Sra/VSKFxEqRj7IJPyJOJchgQFezJRcU07aaul u02g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Bxk57YQd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id j4-20020a170903028400b001c5c370d4d3si2999708plr.534.2023.09.21.20.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 20:59:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Bxk57YQd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 921F7844BC5D; Thu, 21 Sep 2023 13:16:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231494AbjIUUQg (ORCPT + 99 others); Thu, 21 Sep 2023 16:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231423AbjIUUQD (ORCPT ); Thu, 21 Sep 2023 16:16:03 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA76B40068; Thu, 21 Sep 2023 10:14:56 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1127) id 3CEC8212C497; Thu, 21 Sep 2023 10:14:08 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3CEC8212C497 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1695316448; bh=+CYT1qzL77ITSUiOiG5QEUM8nPiTvooU7tBhQsqM/d0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Bxk57YQd0srLJzlZokrzXcny5XIx+dF2kGt7HYXVpIUe0SakExM0oIxva5SYAUg/4 xUYtOtU39CtQBe1UJl3ntPkxhwJIZ0WhMG11AndfPt7z5qykB0IBS7t9BgNVy4Otc1 fDIuapaILU/4/D3d6l/6+Ljha+rQIYQlcNFbkkZo= Date: Thu, 21 Sep 2023 10:14:08 -0700 From: Saurabh Singh Sengar To: Mathias Krause Cc: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, mikelley@microsoft.com, ssengar@microsoft.com Subject: Re: [PATCH] x86/hyperv: Remove hv_vtl_early_init initcall Message-ID: <20230921171408.GA26395@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1695185552-19910-1-git-send-email-ssengar@linux.microsoft.com> <0e86d1cb-a042-7d80-b410-0cc4b31744aa@grsecurity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0e86d1cb-a042-7d80-b410-0cc4b31744aa@grsecurity.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-17.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,SPF_HELO_PASS,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:16:48 -0700 (PDT) On Thu, Sep 21, 2023 at 09:17:24AM +0200, Mathias Krause wrote: > On 20.09.23 06:52, Saurabh Sengar wrote: > > There has been cases reported where HYPERV_VTL_MODE is enabled by mistake, > > on a non Hyper-V platforms. This causes the hv_vtl_early_init function to > > be called in an non Hyper-V/VTL platforms which results the memory > > corruption. > > > > Remove the early_initcall for vhv_vtl_early_init and call it at the end of vhv_vtl_early_init need to be replaced with hv_vtl_early_init here. Wei, Do you need a V2 for it ? - Saurabh