Re: Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Mon, 02 Dec 2024 21:04:57 UTC
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 PM Mark Peek <mp@freebsd.org> wrote:

> On Mon, Dec 2, 2024 at 11:54 AM Mario Marietto <marietto2008@gmail.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 before
>> 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=2,cores=2,threads=2 -m 8G -w -H -A \
>> -s 0,hostbridge \
>> -s
>> 1,ahci-hd,/mnt/zroot-133/bhyve/img/Android/DarkMatter-qemu.img,bootindex=1 \
>> -s 8:0,passthru,4/0/0 \
>> -s 11,hda,play=/dev/dsp,rec=/dev/dsp \
>> -s 13,virtio-net,tap13 \
>> -s 29,fbuf,tcp=0.0.0.0:5913,w=1440,h=900,wait \
>> -s 30,xhci,tablet \
>> -s 31,lpc \
>> -l
>> bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd,/usr/local/share/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 is
>> 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=282852
>
> 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
>
>


-- 
Mario.