Date: Mon, 2 Dec 2024 22:04:57 +0100 From: Mario Marietto <marietto2008@gmail.com> To: Mark Peek <mp@freebsd.org> Cc: =?UTF-8?Q?Corvin_K=C3=B6hne?= <c.koehne@beckhoff.com>, FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Re: Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9 Message-ID: <CA%2B1FSigkus=xw6Y%2BQzD8hK9Dmkt6LR1hsY-U8V=yQ3yReTSL8g@mail.gmail.com> In-Reply-To: <CAGGgMJemKNkEB87sHABECYrQT37tzPcF74o6dejAz4=nMApCBQ@mail.gmail.com> References: <CA%2B1FSijzwf6xHOv7-CfmdFPmxD46vFEdaJ4V6xy29G4BYEetWA@mail.gmail.com> <CAGGgMJemKNkEB87sHABECYrQT37tzPcF74o6dejAz4=nMApCBQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000d5a35a06284fe80f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Mark, I see that your patch is about to modify the code of the vmm.ko module. I've just exchanged the vmm.ko module that I'm using on the ZFS system with the module that I use on the UFS system (where I don't see the error) but this operation didn't solve the problem. I suspect that the wrong code is not inside the vmm.ko module. Can you offer a quick technical explanation of the reason why the exchange of the modules does not work for me ? On Mon, Dec 2, 2024 at 9:14=E2=80=AFPM Mark Peek <mp@freebsd.org> wrote: > On Mon, Dec 2, 2024 at 11:54=E2=80=AFAM Mario Marietto <marietto2008@gmai= l.com> > wrote: > >> Hello to everyone. >> >> Recently I've upgraded one of my FreeBSD systems and I see a strange >> error when I try to boot Android 7.1.1. I have never seen this error bef= ore >> and I also have another system where I haven't applied the latest pkg >> upgrades where Android is still able to boot. >> The bhyve parameters that I use in both systems are the following : >> >> /usr/sbin/./bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 8G -w -H -A= \ >> -s 0,hostbridge \ >> -s >> 1,ahci-hd,/mnt/zroot-133/bhyve/img/Android/DarkMatter-qemu.img,bootindex= =3D1 \ >> -s 8:0,passthru,4/0/0 \ >> -s 11,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ >> -s 13,virtio-net,tap13 \ >> -s 29,fbuf,tcp=3D0.0.0.0:5913,w=3D1440,h=3D900,wait \ >> -s 30,xhci,tablet \ >> -s 31,lpc \ >> -l >> bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd,/usr/local/sha= re/uefi-firmware/BHYVE_UEFI_VARS.fd >> \ >> vm0:13 < /dev/null & sleep 5 && vncviewer 0:13 && echo vncviewer 0:13 & >> >> The error I get on this ZFS system : >> >> FreeBSD marietto 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64 >> >> is : >> >> *Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 >> ] at 0xbea5fcf9* >> >> But I don't get this error on the system installed on the UFS disk (it i= s >> also 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64). Any >> suggestions about how I can fix it ? >> > > > This looks like a duplication of this bug: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282852 > > I need to tweak the patch (attached to the bug) before submitting for > review. Note that both the kernel and bhyve need to be recompiled after > applying the patch. > > Mark > > --=20 Mario. --000000000000d5a35a06284fe80f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello Mark,</div><div><br></div><div>I see that your = patch is about to modify the code of the vmm.ko module. I've just excha= nged the vmm.ko module that I'm using on the ZFS system with the module= that I use on the UFS system (where I don't see the error) but this op= eration didn't solve the problem. I suspect that the wrong code is not = inside the vmm.ko module. Can you offer a quick technical explanation of th= e reason why the exchange of the modules does not work for me ? <br></div><= /div><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" = class=3D"gmail_attr">On Mon, Dec 2, 2024 at 9:14=E2=80=AFPM Mark Peek <<= a href=3D"mailto:mp@freebsd.org">mp@freebsd.org</a>> wrote:<br></div><bl= ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef= t:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D= "ltr">On Mon, Dec 2, 2024 at 11:54=E2=80=AFAM Mario Marietto <<a href=3D= "mailto:marietto2008@gmail.com" target=3D"_blank">marietto2008@gmail.com</a= >> wrote:</div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quo= te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204= );padding-left:1ex"><div dir=3D"ltr"><div>Hello to everyone.</div><div><br>= </div><div>Recently I've upgraded one of my FreeBSD systems and I see a= strange error when I try to boot Android 7.1.1. I have never seen this err= or before and I also have another system where I haven't applied the la= test pkg upgrades where Android is still able to boot. <br></div><div>The b= hyve parameters that I use in both systems are the following :</div><div><b= r></div><div>/usr/sbin/./bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 8= G -w -H -A \<br>-s 0,hostbridge \<br>-s 1,ahci-hd,/mnt/zroot-133/bhyve/img/= Android/DarkMatter-qemu.img,bootindex=3D1 \<br>-s 8:0,passthru,4/0/0 \<br>-= s 11,hda,play=3D/dev/dsp,rec=3D/dev/dsp \<br>-s 13,virtio-net,tap13 \<br>-s= 29,fbuf,tcp=3D<a href=3D"http://0.0.0.0:5913" target=3D"_blank">0.0.0.0:59= 13</a>,w=3D1440,h=3D900,wait \<br>-s 30,xhci,tablet \<br>-s 31,lpc \<br>-l = bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd,/usr/local/share/= uefi-firmware/BHYVE_UEFI_VARS.fd \<br>vm0:13 < /dev/null & sleep 5 &= amp;& vncviewer 0:13 && echo vncviewer 0:13 &</div><div><br= ></div><div>The error I get on this ZFS system :</div><div><br></div><div>F= reeBSD marietto 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64</div>= <div><br></div><div>is :</div><div><br></div><div><b>Failed to emulate inst= ruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9</b><br></= div><div><br></div><div>But I don't get this error on the system instal= led on the UFS disk (it is also 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GEN= ERIC amd64). Any suggestions about how I can fix it ?</div></div></blockquo= te><div><br></div><div><br></div><div>This looks like a duplication of this= bug:<br><a href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282= 852" target=3D"_blank">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D= 282852</a></div><div><br></div><div>I need to tweak the patch (attached to = the bug) before submitting for review. Note that both the kernel and bhyve = need to be recompiled after applying the patch.</div><div><br></div><div>Ma= rk</div><div>=C2=A0</div></div></div> </blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Ma= rio.<br></div> --000000000000d5a35a06284fe80f--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSigkus=xw6Y%2BQzD8hK9Dmkt6LR1hsY-U8V=yQ3yReTSL8g>