Received: by 2002:a17:906:80c3:b0:7ae:d8f:8937 with SMTP id a3csp455198ejx; Wed, 16 Nov 2022 06:07:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xU/7tAsO/nrEb1CiG2q0TJya4RYcTJV5e96eL3x9x1GggEn3C97+JL1BHoHYIDLjMuMdj X-Received: by 2002:a0c:8dcb:0:b0:4c6:51b9:1b3 with SMTP id u11-20020a0c8dcb000000b004c651b901b3mr8944896qvb.10.1668607659885; Wed, 16 Nov 2022 06:07:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668607659; cv=none; d=google.com; s=arc-20160816; b=0BF9+UaIFB6IsF71sCf9PL+rbXV0syzG6bMM8c+56GXXxEbzbeyvmoUi3OD7JgOQ6o bLhFKaIH5i4XzrEY5f5YEQV6HLdPcTC7flypx9VBttxa7W8XRDQcxQ8Bni19YBkuoZya WW+K7gIMwe0B7ZtNrCpjkbACs8T0KCogTSaHrrVIZIb+w1+lvK7hhkZdziXZTy4Kv7r/ su4SsSa9YSTKeHswRk9wgYaHm52FvLmOrKN73LX8DWb7Nt1KuYnsGeuuNVnOcgmIGX1r RabKN0q/CQoC7i9cAeJqqyjFEdiSGYfJb5YJTdbNPtI4DfWBKLuMMWxdd9qVpK4FXYvq YD6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=1FjLSTPAGobxT1O5ZX56IXyw3raFqKvtitqrRpog/DQ=; b=ynH5GeNm3plb7oWFsCywBNBLeKasAJ4S2bjLzpqA/h89/Kacj5V/ibt8HUFXizuUOd o/AsvstdZMah0964mgdUQhAdQCeFzhwo2hMUwrhbecSVgm3NgpnXZvLL+6TY0G8eVWfz v8eMbNsN4YP+XPSU7uXEzfQWR/KpY2J4Cy0JkX/+lSzgR2Oj8K+VcAOgg/eM6vRM8X+Q /or7NOi6csN4r+O6vX3d0m8ISAnPp5PJ/ioYwKCmcP2wlDPzQGZMjeweXZL19KaIlBzK 7dMaLCLsXQXsk3lQRHT2Zd/AiXYzUCQHIdI+p2hU+G8Qhoih7P6SgioR4Nj0R7pZdW5N 5neA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=KRUBcILe; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d12-20020ac8534c000000b0035cee3c2131si8688777qto.334.2022.11.16.06.07.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Nov 2022 06:07:39 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=KRUBcILe; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovJ2Y-0005l0-3c; Wed, 16 Nov 2022 09:05:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovEZL-0008G9-ES; Wed, 16 Nov 2022 04:18:55 -0500 Received: from pi.codeconstruct.com.au ([203.29.241.158] helo=codeconstruct.com.au) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovEZI-0003wL-Mr; Wed, 16 Nov 2022 04:18:55 -0500 Received: from pecola.lan (unknown [159.196.93.152]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 18C9320031; Wed, 16 Nov 2022 17:18:36 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1668590320; bh=1FjLSTPAGobxT1O5ZX56IXyw3raFqKvtitqrRpog/DQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=KRUBcILeqd4juqrDCGkGRYTHmjqxCVcevf7l1Huk9wXAKKzlrtOJrLgMTmoF7L0Ag iZ0RrzqHemAVlJ45D6Qaf6oIgntB0qR4Tbu3yDvU0TL1des7zimjEw5CU6LY2T9a/+ y7FfI/OPcwKUG1CqbcqA7pfz9Z6+duYdnYAfyJXfi+DhPZF3miXUwSid2J9g1rYxJc fWHoBuzsawMWVWijF6HYeKpgIGLBbqQaRS3xk+KWqrZovotG5Mq9hL77I1OfWmljx+ GXtjj1juNhwtxrxhX+aDhcWp8aBRZTMtDXLV/gYiDZQwhHy3JH2dZOdk2f3FsNASvQ MnXEn6IKDka4w== Message-ID: <32acd8cb29f23013ec203cb635e7fc161ad2e5a6.camel@codeconstruct.com.au> Subject: Re: [PATCH 0/3] hw/{i2c,nvme}: mctp endpoint, nvme management interface model From: Jeremy Kerr To: Klaus Jensen , qemu-devel@nongnu.org Cc: Andrew Jeffery , Keith Busch , Corey Minyard , Peter Delevoryas , qemu-arm@nongnu.org, Peter Maydell , qemu-block@nongnu.org, Joel Stanley , =?ISO-8859-1?Q?C=E9dric?= Le Goater , Klaus Jensen , Matt Johnston Date: Wed, 16 Nov 2022 17:18:35 +0800 In-Reply-To: <20221116084312.35808-1-its@irrelevant.dk> References: <20221116084312.35808-1-its@irrelevant.dk> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.1-1 MIME-Version: 1.0 Received-SPF: pass client-ip=203.29.241.158; envelope-from=jk@codeconstruct.com.au; helo=codeconstruct.com.au X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 16 Nov 2022 09:05:16 -0500 X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: 7lxNJTUrtQeN Hi Klaus, [+CC Matt] > This adds a generic MCTP endpoint model that other devices may derive > from. I'm not 100% happy with the design of the class methods, but > it's a start. Thanks for posting these! I'll have a more thorough look through soon, but wanted to tackle some of the larger design-points first (and we've already spoken a bit about these, but rehashing a little of that for others CCed too). For me, the big decision here is where we want to run the NVMe-MI device model. Doing it in the qemu process certainly makes things easier to set up, and we can just configure the machine+nvme-mi device as the one operation. The alternative would be to have the NVMe-MI model run as an external process, and not part of the qemu tree; it looks like Peter D is going for that approach with [1]. The advantage there is that we would be able to test against closer-to-reality "MI firmware" (say, a device vendor running their NVMe-MI firmware directly in another emulator? are folks interested in doing that?) The complexity around the latter approach will be where we split the processes, and arrange for IPC. [1] suggests at the i2c layer, but that does seem to have complexities with i2c controller model compatibility; we could certainly extend that to a "generic" i2c-over-something protocol (which would also be handy for other things), or go higher up and use MCTP directly as the transport (say, the serial binding over a chardev). The former would be more useful for direct firmware emulation. My interest is mainly in testing the software stack, so either approach is fine; I assume your interest is from the device implementation side? Cheers, Jeremy [1]: https://github.com/facebook/openbmc/blob/helium/common/recipes-devtool= s/qemu/qemu/0007-hw-misc-Add-i2c-netdev-device.patch