Re: Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9
- Reply: Mario Marietto : "Re: Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9"
- Reply: Mark Peek : "Re: Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9"
- In reply to: Mark Peek : "Re: Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Dec 2024 21:34:28 UTC
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 ?
On Mon, Dec 2, 2024 at 10:16 PM Mark Peek <mp@freebsd.org> wrote:
> On Mon, Dec 2, 2024 at 1:05 PM Mario Marietto <marietto2008@gmail.com>
> wrote:
>
>> 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 ?
>>
>
> I'm assuming you applied the patch and rebuilt the vmm.ko module. Did you
> also recompile the bhyve binary per my comments in my last message? The
> emulated instructions are detected in vmm.ko but are emulated in the bhyve
> binary. In other words, vmm_instruction_emul.c is used in both vmm.ko and
> bhyve.
>
> Mark
>
--
Mario.