From nobody Tue Mar 22 21:17:35 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 953931A39212 for ; Tue, 22 Mar 2022 21:17:48 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) (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 4KNPTR530gz4ptP for ; Tue, 22 Mar 2022 21:17:47 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: by mail-yb1-xb29.google.com with SMTP id l2so35981909ybe.8 for ; Tue, 22 Mar 2022 14:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuffli-net.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QNF8wv4Yl0l0e4uHtqQfQKp6ui5GzyrVODKZyhbakI0=; b=rtrdh3/yCFtWAwyJapjg3d6evMThRdYUIlZ4Jag81GMklA6/1T7GNdOuBqnLuK1AmP oRInvGVxvJBSELX1dPdNS8L6l0Rpx7ZXUFEkbBHOhQlV/eDhmE6qpfsO06jNYEMkT8Zv SFATjyK85FEKYKlhj87jLZ6kqABlgd/8QEKiWw3NXczD0wFY105w2GgmxzpmeEWI1J5D eQaqAG0n9VbL40ZINu0U8XToKnImAvGHQH4hj7OVKpi5/lIA4dk++xJcqbDd03MYEMVV uuj29nprAPAFZVn19PjjVzN34WSGwIP2sxLb/yvPziHM1pHT2bxeZZhHB8UEudEcuYfc JvbQ== 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:content-transfer-encoding; bh=QNF8wv4Yl0l0e4uHtqQfQKp6ui5GzyrVODKZyhbakI0=; b=v3s04TW0nCGEuue9OuUeesGs1EaXsw66YrWqhTV0JZ5Xlx8FaEiS+nLVKijyMnkgdG UQhlKP9wqcLTcJPxjPsc+hWxQFHVeuCb48DsgSaxqKa+GgUD3Qv4Wy4904zAUckG3y53 8+B05oFM++1durAKtkz+Y3U6WL6Uj8wk4RVk0ML19rxpoPFGeLPHXzaDBKL2OCIIbNvO 7gL9jt80h7eAMOLKB4vJiXBNPeONG1dIu8bLShAaTyeZO34+lxCwVFYQdxj2wiJW42MR /+KdOT+7SrG0SKElZmWRkDhHunV3IEXHzHW2ww8FLUAXkdKwCAWaR5+1fcFU2W9IForG c2Ww== X-Gm-Message-State: AOAM530IY1/O23QPvN6Vquy20FevLQdjudcrA0E9aRQ92wanh41DF+CC fGZe9TWeV+V3JWDMCNMPPm75AAKQN3laiiwZu17xYDCw0Y2q4A== X-Google-Smtp-Source: ABdhPJyf9SUOQTvqVzCTAIsOtZFTlMoimqp3I0MwFSDP05Np0EtSC4Jiv4bYmkoH7ukwz21UiFYEodKxuGxmisin3AU= X-Received: by 2002:a25:e78b:0:b0:633:bccb:751a with SMTP id e133-20020a25e78b000000b00633bccb751amr20908455ybh.95.1647983866040; Tue, 22 Mar 2022 14:17:46 -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: Chuck Tuffli Date: Tue, 22 Mar 2022 14:17:35 -0700 Message-ID: Subject: Re: bhyve NVMe 1.4 support To: Mario Marietto Cc: FreeBSD virtualization Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4KNPTR530gz4ptP X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tuffli-net.20210112.gappssmtp.com header.s=20210112 header.b="rtrdh3/y"; dmarc=none; spf=permerror (mx1.freebsd.org: domain of chuck@tuffli.net uses mechanism not recognized by this client) smtp.mailfrom=chuck@tuffli.net X-Spamd-Result: default: False [-3.29 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[tuffli-net.20210112.gappssmtp.com:s=20210112]; FREEFALL_USER(0.00)[chuck]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; DMARC_NA(0.00)[tuffli.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[tuffli-net.20210112.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b29:from]; R_SPF_PERMFAIL(0.00)[empty SPF record]; MLMMJ_DEST(0.00)[freebsd-virtualization]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.99)[-0.991]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N It sounds like you might be hitting PR 260178: bhyve: passthru makes ahci-hd boot fail The jist is, direct block I/O will fail in combination with PCI pass-thru devices. See the proposed fix at https://reviews.freebsd.org/D34607 On Mon, Mar 21, 2022 at 4:18 AM Mario Marietto wro= te: > > Just to inform you that I've passed through the M2 disk as a PCI device a= nd now all the partitions inside the disk are correctly detected by Linux. > > Il giorno lun 21 mar 2022 alle ore 00:26 Mario Marietto 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-bl= k or virtio-scsi driver,but none of these drivers work with the m2 / nvme d= isk. >> >> 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.