Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1187329iol; Sun, 12 Jun 2022 08:27:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw08EF9A27NnSy+SQsr0tua7pxSP7F03WxNVzVaqYUGjUEaMKBAUPoQ72w8k1I3cZ/FZpVS X-Received: by 2002:a17:90b:17c7:b0:1e8:5136:c32a with SMTP id me7-20020a17090b17c700b001e85136c32amr10885288pjb.43.1655047647199; Sun, 12 Jun 2022 08:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655047647; cv=none; d=google.com; s=arc-20160816; b=N9P78HHt11TAwVzpb2kT7CS6BYVNLJ9JtGJDfZ9zO0sMqxBZb5G1i8ERb3jN57zrLR hiABtIrd4E7v60/kVKJxGgcU4Ew7mconFfDox1CVm5nYDupDJSR6qem7YYxA80bZghqU agvgsXXx8XfzW29iw2N8dBd275jGFku/5TkfU9+FSHVn0TuRi/nRJNEk5azWUso9iwEc YrU3ynoYiF1gGfwrkQqIn6XOkHEDB3YIFGJ7fhww7mBY486lLqx+7Kd2MUGK/un3gben q5QYIjtpn4U3LDwhA8Onc+OIKdGguX+v/5NIjnbj+uOu0mMHB+bj4upQjP0ra6bTlAC3 XXXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=8949V5CkqyzJmj/F28orMCphXAq0WN6FhR9kVZMtcgQ=; b=vVtTYiG8Lwdg70KzKhS5dEvPMySpXQZhBFVkHrMHL1j+uixF0H+U/M9JboafiBBhxe QG/l3jJTJuqVoqtJrK/Qidj55Xq0T7VP77v99hV+41/D3NIwpDx+9+nI0cFpxzHxgNbn O5iqVEIjAaZ1HgtUhMQpFuJ/GOZ9QvCwPUIjq2jp3PHktcMxleUa/x48XbJ408mdHxHb HZOlLUHgxUOJGfysmQ9ARSlITOa+r956Xog//IVa3VRHzOTP++ZhPfniRG1VBuNB8VFR dNCb6+ObPtgxgvJAhzA8S4H1barnLw+txqlicMiJgv/yxDTFac9v7hqluQQuhGudTpdU Y0Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="nhagWru/"; 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=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jc15-20020a17090325cf00b0016786f2d1d8si6016239plb.475.2022.06.12.08.27.15; Sun, 12 Jun 2022 08:27:27 -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=@sipsolutions.net header.s=mail header.b="nhagWru/"; 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=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234737AbiFLI6o (ORCPT + 99 others); Sun, 12 Jun 2022 04:58:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235287AbiFLI6m (ORCPT ); Sun, 12 Jun 2022 04:58:42 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 108803FBCD for ; Sun, 12 Jun 2022 01:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=8949V5CkqyzJmj/F28orMCphXAq0WN6FhR9kVZMtcgQ=; t=1655024321; x=1656233921; b=nhagWru/09LdxRa962Zudz0HTQ5L+kd3ndJwl/+yVFnD6C1 1HqMioOOIU7Cfa6EeFZH6+Rv3MmVykO5Til+bFxDxOtlb917RtqoroOyOYtCtDZqw7nwN42DxR1tk Pjw8W0ud84oTK6wjSO/AaAXWDYQWcwSsSsC0tVTnqziLRRE2AfkcTaDrNghqGwAjecu5EzFF5nvPP vEnoFKs5msOW7TmyWw5T6cgnV5LOcQCa//zce0AZW9Fp06lxOXnn+gR11kvuTvODHJE1tS3HVkCNQ h7a/B9n845fYPVNTVuBqSaGQg030La0fjng2wI5wnU6a2u+LcN68sX5kCS3VHEuQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1o0JQL-003NzK-1O; Sun, 12 Jun 2022 10:58:21 +0200 Message-ID: <726db8fdf6c7fc271a825badbf1b07a5eebe6d36.camel@sipsolutions.net> Subject: Re: [PATCH] um: virt-pci: set device ready in probe() From: Johannes Berg To: "Michael S. Tsirkin" , Vincent Whitchurch Cc: Richard Weinberger , Anton Ivanov , kernel@axis.com, Xuan Zhuo , Jason Wang , linux-um@lists.infradead.org, linux-kernel@vger.kernel.org Date: Sun, 12 Jun 2022 10:58:20 +0200 In-Reply-To: <20220610203029-mutt-send-email-mst@kernel.org> References: <20220610151203.3492541-1-vincent.whitchurch@axis.com> <20220610203029-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.2 (3.44.2-1.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, 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 On Fri, 2022-06-10 at 20:34 -0400, Michael S. Tsirkin wrote: >=20 > Also fixes this commit: >=20 > commit 68f5d3f3b6543266b29e047cfaf9842333019b4c > Author: Johannes Berg > Date: Fri Mar 5 13:19:58 2021 +0100 >=20 > um: add PCI over virtio emulation driver Hm, why? It worked before the harden change. > BTW Johannes I think you need to spec this device and get > an ID - what's the plan for that? Current hack of punting > this to userspace isn't really any good long term. Yeah, agree, it dropped off my radar (and the process is a bit cumbersome IMHO). But I'm not quite sure what you mean wrt. "punting to userspace", here in the virt-pci code I'm punting to the Kconfig :-) Did you just mix that up, or was there some additional userspace thing you're thinking of? The only userspace thing I can think of it is in virtio_uml where you have the ID on the command-line, but that's because it implements the virtio device bus over vhost-user which doesn't have ID discoverability in the protocol. That could also be fixed I guess, but it's a bit of a chicken & egg problem, if you don't have the ID and discovering it were not supported, you'd end up with an unusable device unless you specified the ID, in which case you don't need to discover it... johannes