Date: Sun, 16 Jun 2024 12:56:43 +0200 From: Mario Marietto <marietto2008@gmail.com> To: Oleksandr Kryvulia <shuriku@shurik.kiev.ua> Cc: virtualization@freebsd.org Subject: Re: Fwd: bhyve passthru problem Message-ID: <CA%2B1FSihOV9za57Pb9z9BKJYS3%2BJAi8PtMLZJLfHjy%2B7FcpUz4w@mail.gmail.com> In-Reply-To: <f07364ea-6653-4761-bbee-d1c205e71fba@shurik.kiev.ua> References: <a63589a8-2cb2-4952-83b1-7a97e2f8cd44@shurik.kiev.ua> <38c9656c26fc3cee7ba733168c0fa2cdd01209d9.camel@FreeBSD.org> <c8c87fc3-2665-44c3-a8cf-6dcbd6525c38@freebsd.org> <92b37bf8-7ef9-4abd-8617-af12fbb35e13@shurik.kiev.ua> <CA%2B1FSiiw3Y3Po=MiCPYM3a4-738uOO3daX0XNybQ9gBhwTB0OQ@mail.gmail.com> <86822716-b32d-4663-9b73-87d7c977b70a@shurik.kiev.ua> <CA%2B1FSiia8b22C6TJJeWTO6b_yrCKV_4vx-1UnsVsB%2BZigDCMOQ@mail.gmail.com> <f07364ea-6653-4761-bbee-d1c205e71fba@shurik.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000701546061affb636 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've realized that using the latest version is not a guarantee of functionality. On Sun, Jun 16, 2024 at 12:41=E2=80=AFPM Oleksandr Kryvulia <shuriku@shurik= .kiev.ua> wrote: > 16.06.24 12:55, Mario Marietto: > > I've zipped and uploaded my boot directory to my google drive > > > https://drive.google.com/file/d/1MIw0G4LqducG86rtwSm9GjEWFyuCA-Vx/view?us= p=3Dsharing > > Try to exchange your boot files with those files. Anyway I'm using the > kernel of FreeBSD 14.0--RELEASE p6 for my cpu *Intel*=C2=AE *Core*=E2=84= =A2 *i9*-*9900K + > GPU =3D Nvidia RTX 2080 ti. You can try the default kernel shipped with > FreeBSD 14.0-RELEASE p6 to make it easier. * > > This explains all. I am using latest current )) > > > 15.06.24 13:47, Mario Marietto: > > Ciao Oleksandr. > > I can't produce patches,I'm not a programmer. But I conduct experiments > every day,changing parameters,system files between different FreeBSD > versions,operating systems and tools. > > Can't you use virtio-net instead of passing through the physical network > interface,like this for example : -s 13,virtio-net,tap18 \ in your bhyve > guest ? > > You can try these bhyve versions : (try both) > > > https://drive.google.com/drive/folders/14OMOjdyS5NPQ75ISatcpCWegU0udzG0r?= usp=3Dsharing > > Unfortunately both of your vmm.ko modules fail to load on my system: > > KLD vmm.ko: depends on kernel - not available or version mismatch > > On Sat, Jun 15, 2024 at 9:17=E2=80=AFAM Oleksandr Kryvulia <shuriku@shuri= k.kiev.ua> > wrote: > >> 14.06.24 10:50, Peter Grehan: >> >> I don't know why bhyve validates the BAR size. The commit adding this >> >> check is old [1] and doesn't explain it. What bhyve could do is >> >> rounding up the BAR size to a full page size when allocating memory f= or >> >> the BAR. >> >> >> >> [1] https://github.com/freebsd/freebsd- >> >> src/commit/7a902ec0eccc752c9c38533ed123121eaaea1225 >> > >> > At the time, BIOSs would often place device BARs of less than a page >> > size in the same physical page. Since EPT only gives page granularity, >> > this would result in all those devices being available to the guest >> > even if they hadn't been passed through. >> > >> Peter, can you explain how can I use this device in a guest without >> passing through? >> >> >> > > -- > Mario. > > > > --=20 Mario. --000000000000701546061affb636 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I've realized that using the latest version is not a g= uarantee of functionality.<br></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Sun, Jun 16, 2024 at 12:41=E2=80=AFPM Olek= sandr Kryvulia <<a href=3D"mailto:shuriku@shurik.kiev.ua">shuriku@shurik= .kiev.ua</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D= "margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le= ft:1ex"><u></u> =20 =20 =20 <div> 16.06.24 12:55, Mario Marietto:<br> <blockquote type=3D"cite"> =20 <div dir=3D"ltr"> <div>I've zipped and uploaded my boot directory to my google drive</div> <div><br> </div> <div><a href=3D"https://drive.google.com/file/d/1MIw0G4LqducG86rtwS= m9GjEWFyuCA-Vx/view?usp=3Dsharing" target=3D"_blank">https://drive.google.c= om/file/d/1MIw0G4LqducG86rtwSm9GjEWFyuCA-Vx/view?usp=3Dsharing</a></div> <div><br> </div> <div>Try to exchange your boot files with those files. Anyway I'm using the kernel of FreeBSD 14.0--RELEASE p6 for my cpu <= span><i>Intel</i>=C2=AE <i>Core</i>=E2=84=A2 <i>i9</i>-<i>9900K=C2=A0+ GPU =3D Nvidia R= TX 2080 ti. You can try the default kernel shipped with FreeBSD 14.0-RELEASE p6 to make it easier.=C2=A0</i> </span></div> <div><br> </div> </div> </blockquote> This explains all. I am using latest current ))<br> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div class=3D"gmail_quote"><br> <div> 15.06.24 13:47, Mario Marietto:<br> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div>Ciao Oleksandr.</div> <div><br> </div> <div>I can't produce patches,I'm not a programmer. = But I conduct experiments every day,changing parameters,system files between different FreeBSD versions,operating systems and tools.=C2=A0</div> <div><br> </div> <div>Can't you use virtio-net instead of passing throug= h the physical network interface,like this for example : -s 13,virtio-net,tap18 \ in your bhyve guest ?</div> <div><br> </div> <div>You can try these bhyve versions : (try both)<br> </div> <div><br> </div> <div><a href=3D"https://drive.google.com/drive/folders/14OM= OjdyS5NPQ75ISatcpCWegU0udzG0r?usp=3Dsharing" rel=3D"noreferrer" target=3D"_= blank">https://drive.google.com/drive/folders/14OMOjdyS5NPQ75ISatcpCWegU0ud= zG0r?usp=3Dsharing</a></div> </div> <br> </blockquote> <span lang=3D"en"><span><span>Unfortunately</span></span></span= > both of your vmm.ko modules fail to load on my system:<br> <br> KLD vmm.ko: depends on kernel - not available or version mismatch <br> <br> <blockquote type=3D"cite"> <div class=3D"gmail_quote"> <div dir=3D"ltr" class=3D"gmail_attr">On Sat, Jun 15, 2024 at 9:17=E2=80=AFAM Oleksandr Kryvulia <<a href=3D"mail= to:shuriku@shurik.kiev.ua" rel=3D"noreferrer" target=3D"_blank">shuriku@shu= rik.kiev.ua</a>> wrote:<br> </div> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0= px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">14.06.24 10:50, Peter Grehan:<br> >> I don't know why bhyve validates the BAR size. The commit adding this<br> >> check is old [1] and doesn't explain it. Wha= t bhyve could do is<br> >> rounding up the BAR size to a full page size when allocating memory for<br> >> the BAR.<br> >><br> >> [1] <a href=3D"https://github.com/freebsd/freebs= d-" rel=3D"noreferrer noreferrer" target=3D"_blank">https://github.com/free= bsd/freebsd-</a><br> >> src/commit/7a902ec0eccc752c9c38533ed123121eaaea1225<br> ><br> > =C2=A0At the time, BIOSs would often place device BA= Rs of less than a page <br> > size in the same physical page. Since EPT only gives page granularity, <br> > this would result in all those devices being available to the guest <br> > even if they hadn't been passed through.<br> ><br> Peter, can you explain how can I use this device in a guest without <br> passing through?<br> <br> <br> </blockquote> </div> <br clear=3D"all"> <br> <span class=3D"gmail_signature_prefix">-- </span><br> <div dir=3D"ltr" class=3D"gmail_signature">Mario.<br> </div> </blockquote> <br> </div> </div> </div> </blockquote> <br> </div> </blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d= iv> --000000000000701546061affb636--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSihOV9za57Pb9z9BKJYS3%2BJAi8PtMLZJLfHjy%2B7FcpUz4w>