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

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Mon, 02 Dec 2024 22:39:17 UTC
ok I've used this :

.op_flags = VIE_OP_F_IMM8

After the compilation is finished,I copied the compiled vmm.ko module
from /usr/obj/usr/src/amd64.amd64/sys/modules/vmm/vmm.ko
to /boot/kernel and to /boot/modules.

Regarding the bhyve executable,I'm using two custom versions of it,called
bhyve-lin and bhyve-win. When I upgrade the system,they cannot change. What
can change is bhyve,but I don't use it. In addition,to be sure,I copied
bhyve-lin and bhyve-win from the system where I don't have the error. With
this being said,the recompilation of vmm.ko didn't solve my issue.


On Mon, Dec 2, 2024 at 11:26 PM Mark Peek <mp@freebsd.org> wrote:

> On Mon, Dec 2, 2024 at 1:35 PM Mario Marietto <marietto2008@gmail.com>
> wrote:
>
>> Yes,I have also exchanged the bhyve binary. Now I'm trying to apply your
>> patch and then I will rebuild vmm.
>> I see that your code is :
>>
>> [0xF6] = {
>>                 /* XXX Group 3 extended opcode - not just TEST */
>>                 .op_byte = 0xF6,
>>                 .op_type = VIE_OP_TYPE_TEST,
>>                 .op_flags = VIE_OP_F_IMM,
>>         },
>>
>> but it seems wrong. Shouldn't be .op_flags = VIE_OP_F_IMM8 ?
>>
>
> Yes, per the discussion in the bug report, that was the change I need to
> make before submitting it for review. Please make that change in your copy.
>
> And per email after this one, yes, that compilation of vmm.ko looks fine.
>
> Mark
>


-- 
Mario.