From nobody Mon Mar 21 11:17:47 2022 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 819E01A18C88 for ; Mon, 21 Mar 2022 11:18:24 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KMXDH4wmNz3Ptl for ; Mon, 21 Mar 2022 11:18:23 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-yb1-xb2b.google.com with SMTP id u103so27345896ybi.9 for ; Mon, 21 Mar 2022 04:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BJbrUinVPwSBcXeICPMszozg0XZJr2UYl6cSCXuEiR8=; b=W2Y7aKbMJuuBkzAbaIhze/s1ZwaFJ5UqgMGqPDL//5gcKI9XtZiA/Jyjm80bC8DkAL S4UElGZeNIB1xbVywzvlAwGQq9MdD28iJXzokKAG51XzBR/nVNHbQJy2ag8ZfxVs+weQ j/5rw0azoOImxm464nfKMG5RTS5YlgSatZ1Q9SEwJoJnL3VwG5evWuj+Vs9fsjGs+xWB 8wZzevjqvjb9w9qQbwzLPouKIrzg8C6PVMVCBVFW0zMOyIsedcRaW/u4wN30xSVXEAHS Ohy1A0Gdx1d7xWgtnDnRsaTQvtWcUyiM/2PmMI/YSI71tiLUIaFI7enP+t2JDvt/58x8 60ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BJbrUinVPwSBcXeICPMszozg0XZJr2UYl6cSCXuEiR8=; b=8FsvD9iSibVo89sQNZFLWrS/O662fv7iPaKt7DbW+HQKUwEAf8UCnKMhvMfCvjEb5L 5DRoT+7Z9qqB9eYqubnqn9r61Ll1+VFvBmwHm3nytTs8ZB1avCtJiImXOM9uI/tZh0Vh AgrKtkN0M3aAlAa7q6SYrGmVqY8SBNalzLujyhPRee/g0ZzaJnJTckbeB/Fc9EPkXkIx 7BEt7N1ZVFam4OYB8KgSirf8VeZHBfv6yAtV1N5DjYx9+5SeAptARi6NHxGsCxTOB3We b+5dn9qpVx7Dd514PXqk5vp5g0G56U+PH27aR7zI9Wr4YjxOjKe8USjeoAEUOeFfQyJr R9LA== X-Gm-Message-State: AOAM530/awjbGLCKQBq8vOGhH1GLB1t9oN+Tar5JNuepwJOQrZdzvnWJ sh1sGKbQhHe4CaZnbXnQsfhPx0E8OIJ1nEdEGFiRXWl0gTw= X-Google-Smtp-Source: ABdhPJzEDcuuoQW/Dxz5gtBzRZ7eXfyP4Wbz2RDgWEkJf3gM58MbQpdsjNZ2j93+BV/ZfIwM+0pGe3LiRL/usuHSDws= X-Received: by 2002:a25:ef46:0:b0:633:7b72:c5bd with SMTP id w6-20020a25ef46000000b006337b72c5bdmr22087387ybm.375.1647861503079; Mon, 21 Mar 2022 04:18:23 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Mon, 21 Mar 2022 12:17:47 +0100 Message-ID: Subject: Re: bhyve NVMe 1.4 support To: Chuck Tuffli Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000087bb5605dab8a7d7" X-Rspamd-Queue-Id: 4KMXDH4wmNz3Ptl X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=W2Y7aKbM; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::b2b as permitted sender) smtp.mailfrom=marietto2008@gmail.com X-Spamd-Result: default: False [-1.43 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.43)[-0.432]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(1.00)[1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b2b:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --00000000000087bb5605dab8a7d7 Content-Type: text/plain; charset="UTF-8" Just to inform you that I've passed through the M2 disk as a PCI device and now all the partitions inside the disk are correctly detected by Linux. Il giorno lun 21 mar 2022 alle ore 00:26 Mario Marietto < marietto2008@gmail.com> ha scritto: > if i want to boot any os installed physically on a disk,not matter what,it > will not boot if i want also pass thru a disk or a graphic card. this is > the reason why im trying to pass as much as disks i can using the -s slot. > I see that the usb disks can be passed through using -s with the virtio-blk > or virtio-scsi driver,but none of these drivers work with the m2 / nvme > disk. > > Il mar 7 dic 2021, 16:58 Chuck Tuffli ha scritto: > >> I've been working on a patch series to get bhyve's NVMe emulation >> compliant with the v1.4 specification. The compliance tests now pass, >> and I will work on getting the patches up for review "soon". In the >> meantime, there is a copy of the full changes if anyone is interested >> in testing on current or 13-stable. >> >> https://people.freebsd.org/~chuck/nvme-1.4/pci_nvme.c >> >> --chuck >> >> -- Mario. --00000000000087bb5605dab8a7d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Just to inform you that I've passed through the M2 dis= k as a PCI device and now all the partitions inside the disk are correctly = detected by Linux.


Il mar 7 dic 2021, 16:58 Chuck Tuffli <chuck@tuffli.net> ha scritto:
I've been working on= a patch series to get bhyve's NVMe emulation
compliant with the v1.4 specification. The compliance tests now pass,
and I will work on getting the patches up for review "soon". In t= he
meantime, there is a copy of the full changes if anyone is interested
in testing on current or 13-stable.

https://people.freebsd.org/~chuck/nv= me-1.4/pci_nvme.c

--chuck



--
Mario.
--00000000000087bb5605dab8a7d7--