From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1C493F1ACA; Wed, 20 May 2026 17:16:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779297367; cv=none; b=JrsBFLERYjQJVSHwJBhQsFFNbHXF2FlcZXsEmTY3VanjXGeH8YxJrf5zxBEi0J+orJGuRr2TWCkAq6c31OkS3l48IvIWcCobG6Qa47op8gJxGsyodEURxYDcJk7Z/bFnhZK07zzmdHK243YO4sUc2l6fO5/FID7UFLgxdePvnYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779297367; c=relaxed/simple; bh=PXvSbANKYjYvunX1Ew5+YjvUrSZfd8wtauvppfdD4KQ=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=dh9EmSIVhG7c1cy26QpNtJQ3B8ANGzcuswrxi9onqTvNlTZ6cC+WVBhmplLAnp/7HGqART6UaC/9q/gzWPdSKmY6CttSfG+gvDeUpmn8exBsrFpCvQfDCQd/gqxarrAiFwlwQ7Z+wQgK7kIpEcSsXI5tY+p8U7Ih0CGKq9xOm5k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=bueYDKXe; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="bueYDKXe" Received: by linux.microsoft.com (Postfix, from userid 1241) id CF5A820B7168; Wed, 20 May 2026 10:15:59 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com CF5A820B7168 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1779297359; bh=R2ZZOAVumVjHe9058fhmUj1oT/TuUdahfEOP4265b1Y=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=bueYDKXekMFz2Ou8ngVl8eYDqJUMB6X/jWowWrU1NP/+hZY+WeYg5HK+Qoz95wNNn z2ivUyghIbqVs7Snss8qhP1i33ZAFzHEzJ5Wie0h1ns7S/u7RfHOW9csHQrHXQsnmM F6R9azOTwe7HmZRKSW8YmpJljNU3BFSHZ2AJ3idk= Received: from localhost (localhost [127.0.0.1]) by linux.microsoft.com (Postfix) with ESMTP id CD6A930705A4; Wed, 20 May 2026 10:15:59 -0700 (PDT) Date: Wed, 20 May 2026 10:15:59 -0700 (PDT) From: Jork Loeser To: Arnd Bergmann cc: "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , "Anirudh Rayabharam (Microsoft)" , Stanislav Kinsburskii , Arnd Bergmann , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mshv: add vmbus dependency In-Reply-To: <20260520074044.923728-1-arnd@kernel.org> Message-ID: <52a29c5-715e-8ea-af1-dafebfca7a84@linux.microsoft.com> References: <20260520074044.923728-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Wed, 20 May 2026, Arnd Bergmann wrote: > From: Arnd Bergmann > > When the vmbus driver is not part of the kernel, the mvhv_root > driver now fails to link: > > ERROR: modpost: "hv_vmbus_exists" [drivers/hv/mshv_root.ko] undefined! > > Avoid this by adding an explicit Kconfig dependency. Note that > stubbing out the hv_vmbus_exists() based on configuration would > also work for some cases, but not with MSHV_ROOT=y and HYPERV_VMBUS=m. > > Fixes: f1a9e67c1138 ("mshv: limit SynIC management to MSHV-owned resources") > Signed-off-by: Arnd Bergmann > --- > drivers/hv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig > index 52af086fdeb2..21193b571a80 100644 > --- a/drivers/hv/Kconfig > +++ b/drivers/hv/Kconfig > @@ -75,6 +75,7 @@ config MSHV_ROOT > # e.g. When withdrawing memory, the hypervisor gives back 4k pages in > # no particular order, making it impossible to reassemble larger pages > depends on PAGE_SIZE_4KB > + depends on HYPERV_VMBUS > select EVENTFD > select VIRT_XFER_TO_GUEST_WORK > select HMM_MIRROR > -- > 2.39.5 > Yes, this is the right short-term fix. We will need to solve the root case (no VMBUS required) with a separate SYNIC driver abstraction. Reviewed-by: Jork Loeser Thank you! Jork