From nobody Mon Dec 2 22:39:17 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y2Jd90RHLz5gYfY for ; Mon, 02 Dec 2024 22:39:57 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y2Jd82ScGz4Cmt; Mon, 2 Dec 2024 22:39:56 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-7ea8de14848so3212460a12.2; Mon, 02 Dec 2024 14:39:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733179194; x=1733783994; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VlaELxr689lsVdLNqRE95fnNTmaFID0dA7JNL4iHUlk=; b=a6MpVUDGSwesDw4eVCcIHdTe5GBBqFDz7b9ecLVrqQ+DGhbQ1lNgrC04Yc5i+f7126 RVDVhtIpzRREo2WHZIt+RHmZ9WFtkWLGphZA15EQ0hIVDhP3poSSdqcNXv016+BqYRFU aMnDYGqScD2HZ5ZBaQr0UtAPyPHbg8Mh7OIg/kKMh4+c9D/rFZo2Ss4nOHDxykRWZs1o r0ZoPYJ5TdPPlDPVMm2bA1WJQRJeQ7gz7moIetxK40fS1yIT8qzKUWunqL4WHAn3wze8 9ErF9NqyJsuLii+C2KX/2NVWuVM7i+le6dSC7RLts52/WaMrC/l0j1AT4HqN9UqLpFao kRqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733179194; x=1733783994; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VlaELxr689lsVdLNqRE95fnNTmaFID0dA7JNL4iHUlk=; b=VYK1dtyw8xoeG/1hLJFV+l3l9rJH0NtmwqtZD83XSOz/3n7oFYVpzW53/wsXg1Oc95 Eq7tWlQYdC+bh7H2WEr7DC2rfWIzZ9yqpPPJFQNFJEHbOe6exjWEwxadmnzQR0ZgtrCY Qcc/yg9Il6AYbbK3uqRZmfKyc3i3aQY8vOrvBGEkO4xNzm+vo9OK5oYGUKucDBr5aT+q Y12VkNyPKxIbtOJq8SO9zKWKxvyr/S72X4AFewkBbDhifnBB18u2MnlZrQcg/1W89zsP rbI/s4jDVIjxQk9WjeoLNyKAC/QpDj/eoZh/t/PvXMzlWUylO/oH1Qn/1B/lw9qzhz2W AhvA== X-Forwarded-Encrypted: i=1; AJvYcCUiTUY9yilSjyTttOyHkdFV8JBe/CL++q5e7LyTOP6Ukj/iZEOS3WchyD6zRzOx/BE5FpTInOUjdn/hY31bP2R/hGSoBgk5@freebsd.org X-Gm-Message-State: AOJu0YwrFiand9EuMJlUJk5AngLQ5n0urrDqL4FZlCe3vW3tqREozh4H 4TDd3andNrFgJfUcWEJypA3LPkuSRJls6xc2/9CtBSe8UtF8KF3vLnBZRVtuTgl4QpWrazd8JK6 bx2bEHFaipr1I70An7DNN3qnWSEj1q5W3IVIVKg== X-Gm-Gg: ASbGncv+TlX0188kYHu7FETdgqjWi0SiFDS2i+4aWuI+fIDbo60FLkc1cI688ZpHkUN jxFoz0nNptCFGcgeuL8Mrcuvh3y2Yq8ky X-Google-Smtp-Source: AGHT+IF9zWTXkXIVMPeO4v/VokrsmPgDFhyjPlyqxxos+NVygBc4rXNsgB9wid3FunCV5GFytLuPZ19rPXH0MQ9y6+g= X-Received: by 2002:a05:6a21:99a7:b0:1e0:cfc0:df34 with SMTP id adf61e73a8af0-1e1653b7b73mr440483637.16.1733179194283; Mon, 02 Dec 2024 14:39:54 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Mon, 2 Dec 2024 23:39:17 +0100 Message-ID: Subject: Re: Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9 To: Mark Peek Cc: =?UTF-8?Q?Corvin_K=C3=B6hne?= , FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000035200e0628513a0e" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Y2Jd82ScGz4Cmt X-Spamd-Bar: ---- --00000000000035200e0628513a0e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ok I've used this : .op_flags =3D 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=E2=80=AFPM Mark Peek wrote: > On Mon, Dec 2, 2024 at 1:35=E2=80=AFPM Mario Marietto > 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] =3D { >> /* XXX Group 3 extended opcode - not just TEST */ >> .op_byte =3D 0xF6, >> .op_type =3D VIE_OP_TYPE_TEST, >> .op_flags =3D VIE_OP_F_IMM, >> }, >> >> but it seems wrong. Shouldn't be .op_flags =3D 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 cop= y. > > And per email after this one, yes, that compilation of vmm.ko looks fine. > > Mark > --=20 Mario. --00000000000035200e0628513a0e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
ok I've used this :

.op_= flags =3D VIE_OP_F_IMM8

After the compilation is f= inished,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 ex= ecutable,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 bhyv= e,but I don't use it. In addition,to be sure,I copied bhyve-lin and bhy= ve-win from the system where I don't have the error. With this being sa= id,the recompilation of vmm.ko didn't solve my issue.
=C2=A0

On Mon, Dec 2, 2024 at 11:26=E2=80=AFPM Mark Peek <mp@freebsd.org> wrote:
On Mon, Dec= 2, 2024 at 1:35=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
=
Yes,I have also exchanged the bhyve binary. Now I&#= 39;m trying to apply your patch and then I will rebuild vmm.
I see that your code is :

[0xF6] =3D {
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* XXX Group 3 extende= d opcode - not just TEST */
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 .op_byte =3D 0xF6,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 .op_type =3D VIE_OP_TYPE_TEST,
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 .op_flags =3D VIE_OP_F_IMM,
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 },

but it seems wrong. Should= n't be .op_flags =3D VIE_OP_F_IMM8 ?

<= /div>
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 yo= ur copy.

And per email after this one, yes, that c= ompilation of vmm.ko looks fine.

Mark
<= /div>


--
Ma= rio.
--00000000000035200e0628513a0e--