From nobody Sun Mar 13 09:20:33 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 551481A1E4C6 for ; Sun, 13 Mar 2022 09:20:45 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KGZ0F1m3nz3rJy for ; Sun, 13 Mar 2022 09:20:45 +0000 (UTC) (envelope-from vmaffione@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647163245; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wBadJ9oEcaElFZ4njX0VNaUmhhPteU9SjuCVw42SjyM=; b=FAr1/1DQYjfpYpR14fzZm6oq2xRBBa9Dcr/i7IE1ChPToNZv9WO7y23DNgZWoYjXdfrLSM vIGz7ENySbGNWLtpb+noay2a0zQT5OQA5ZjLX+Ns3KS89w4w0s8byun2ifJiy9oZmLas1S CmZjkHBOusjXd7FtWfvhyc6ZQBelNESn3GmuKFImKqpYO/wzigxyST3DhunWwjOfRLi0m5 THMlA68plGsbQjdNvINj9ajV+oBRrkFlui0pcMF4hYN1MIxqUHfvmQQemTgCJ1iNAjqyI3 GOhjxDhgNRZDQziSwe+e64fwsNxYJlpUS3YPaeoAPcYHF4kEE09YAaaUzLQjQw== Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: vmaffione) by smtp.freebsd.org (Postfix) with ESMTPSA id 1509823681 for ; Sun, 13 Mar 2022 09:20:45 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: by mail-vk1-f178.google.com with SMTP id i43so6853722vkd.12 for ; Sun, 13 Mar 2022 01:20:45 -0800 (PST) X-Gm-Message-State: AOAM5311sQiKKnYpiVXPHfmeKYrTgxcbcGoT+Ko4tsbPwzVav7QCMus3 oSqee4GaG5g1K1ub4vuD1q7RQ5ggw+Ptb50jrmo= X-Google-Smtp-Source: ABdhPJxv32izMMzyp41uVc4rwnLg5+8esgqlXYYXA3k4F5VpDt0QdVQ7nY6sa5QfblBpt/X7aAV7/zV/NXHcIv4nnSo= X-Received: by 2002:a1f:a486:0:b0:337:281a:d94 with SMTP id n128-20020a1fa486000000b00337281a0d94mr8183135vke.37.1647163244473; Sun, 13 Mar 2022 01:20:44 -0800 (PST) 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: Vincenzo Maffione Date: Sun, 13 Mar 2022 10:20:33 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Assertion failed: (n >= 2 && n <= BLOCKIF_IOV_MAX + 2), function pci_vtblk_proc, file /usr/src/usr.s bin/bhyve/pci_virtio_block.c, line 324. To: Mario Marietto Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000012f52705da161494" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647163245; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wBadJ9oEcaElFZ4njX0VNaUmhhPteU9SjuCVw42SjyM=; b=TJif3GnAB4pokLVJcTNeK0q0hDPkFfA82JaFtEkQpaoH9it+Wc3hX32BmXTlNKRLIUPSZw a53U9+P7R1okB0jMulz20T2O3UX1sEPyQV5qPZ2cmg8XvABgMM8E2sMoP9V/s7/+h5bTV2 j5lGC8KPvT8k6mvZbkJkKq9s1hCJ1BD4i6DmF+PJxuy/0k63m3RVUpOYSty9YTYBxQr0pO YS3SaehEAv0tHQWpjF7FXvwbuuS9Mi1/fd14YgW4bb/jAennO734IqQH7yADY218Fxxf3r zThdq1ayx9pzfxt65sINsXYx4twungczcnAub1+SGeZotB5IrVJ6Ph8li2Shvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647163245; a=rsa-sha256; cv=none; b=ev82PRSeSsCzrKltfYPuF8cFXRTECNzAw2M5qIW7HRB9GKwgCnmijndP9s1cgAWPHO4lKr nkghaol39V+0YnrPWPGcjdg1mluyoTh0ugXy7aB6/qRT2vjDax3YthmR3s2kX0BlXLlFlO RafS7peal7fd9jmZrcUn1jFzT20DdM03uYapcOYVX4YyYaPjuIbaRcinvOsQM/o04CkAbP TCSySS0f1DwxAeszFDp5Fn6L6Kk3lpFRVhZOaV/PFF0VzV51ZThVSd0RmxUy7ottfdNSM3 7ifnsNEq/oDoip0kMbp8FEGpJfaZA3byEUDDnYBIqLT6yZcCCGpWQrmswkGb1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --00000000000012f52705da161494 Content-Type: text/plain; charset="UTF-8" I'd say that's a bug by definition, since bhyve should not crash even in case of invalid input from the guest virtio driver. I don't know if it can apply in your case, but have you tried to use virtio-scsi in place of virtio-blk? The former is supposed to be the recommended one. Cheers, Vincenzo Il giorno dom 13 mar 2022 alle ore 00:13 Mario Marietto < marietto2008@gmail.com> ha scritto: > Hello. > > I want to understand if I'm dealing with a bug or with a regular method of > working. So,please be patient with me. What I want to achieve is to pass > thru two of my NTFS "formatted" disks to a Windows 11 VM,but without > passing them thru using the USB controller. I'm using : > > FreeBSD marietto 13.0-RELEASE FreeBSD 13.0-RELEASE #5 n244809-dff3dead3734: Wed Feb 23 13:16:32 CET > 2022 marietto@marietto:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 > > > more about this bug,here : > > > https://forums.freebsd.org/threads/usb-3-0-disks-not-recognized-by-windows-if-passed-through-as-slots.84402/#post-559856 > > -- > Mario. > --00000000000012f52705da161494 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'd say that's a bug by definition, since bhy= ve should not crash even in case of invalid input from the guest virtio dri= ver.
I don't know if it can apply in your case, but have you = tried to use virtio-scsi in place of virtio-blk? The former is supposed to = be the recommended one.

Cheers,
=C2=A0 V= incenzo

Il giorno dom 13 mar 2022 alle ore 00:13 Mario Marietto &l= t;marietto2008@gmail.com> = ha scritto:
Hello.

I=20 want to understand if I'm dealing with a bug or with a regular method o= f working. So,please be patient with me. What I want to achieve is to=20 pass thru two of my NTFS "formatted" disks to a Windows 11 VM,but= =20 without passing them thru using the USB controller. I'm using :

FreeBSD marietto 13.0-RELEASE Free=
BSD 13.0-RELEASE #5 n244809-dff3dead3734: Wed Feb 23 13:16:32 CET
2022     marietto@marietto:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64<=
/code>

more about this bug,here :
=

--
Mario.
--00000000000012f52705da161494--