From nobody Mon Dec 02 21:16:41 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 4Y2GnJ56GQz5gSKw for ; Mon, 02 Dec 2024 21:16:52 +0000 (UTC) (envelope-from mp@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y2GnJ4gppz43hq for ; Mon, 2 Dec 2024 21:16:52 +0000 (UTC) (envelope-from mp@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733174212; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eWRgypieEob4kKbH40Z3m6/1gj/IWMaUSeHgssiCN4k=; b=nTGQ5tPKsIVTAw9pzX3CDAGc5bGYMUj7ZBafF7XlK3RXiJ5wWyoG205uFfvm4ITDODOI4f 8TLPFj237l0nBggfCYkX4Cx8aNXBT4eadsli8hmoVNIbnncSaiuI8ULFQz4WIyYI9Lg0W4 yqEk5JEQPVQVngfDXHHwehjnvBdYqGIWwufl1g62bIxtkBCAwFO/haMa57EyOG5odPVO79 ll2T2tsxsxTn8ysSqLZ78qsZo1bS/reIDs3f/yEtUlG3nRDvj6sCpuB3sXcxg76X97Z+Ub aVSCNmgtukpKrMVDVPPM7/6f+XGxZW4Rm6O3u+zvZrK9Ystw3RnsFVOsdmsD+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733174212; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eWRgypieEob4kKbH40Z3m6/1gj/IWMaUSeHgssiCN4k=; b=WtkDPheNfi9VPJJjAc02JX4QiKTvwpBhKSh91WRyd8xL7AaS7syzqZU5vcekZ7Skw2cavM 0nx3XOmYuQI9/sqcBudQogNQpkRA3Ik7r3PyCSd1Ld51oFoI/Xd4L8hYlM00nPy/nbectV iqgoDHRTQWCWNddnO+5eXRvV8gzSTOiF5aaKxxyYMFAahtFBQvAoEhtVtT8aGiyhe9QGQp Ese3VxIAP/3qi4YbpQC6S9JyFnBNT5g5xG6YdUZpmGssREsSSr12yqrOw5MlwU9BcyIj4R GdDlZ0fdsiaa6Q9SAALgDD8bV9k3nEbBr8Ptc4YWPWfa+cTGpEUGpLYSaOu4Hw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733174212; a=rsa-sha256; cv=none; b=Gt1VqRI73EiF65oE7Ov4phO0NNxH/9LTb0xZUHWTIwJZGSJJJb44iZVY+EW9ylbtDVKA52 iWHA60DQfES0wFc9sdiyQwh36DqQsxY2hotzwgJmlnp8yl8xM66olrZ8BqdI+G7EZK0R6h SGw2It9rfz18ZmcOmTo8xdvLnq6yCRdgBS97FT3fuH0VNF27VxkkcaLRX76ETjTyBok2MI ZMxP6pC8BdYd70guIf4ZYyvfYo0oJgeZCtUGs6/MT1bCxJDg1/DfcDr3aK+dmpUGginxQZ 8EjM7pXsSBW/fapvIdSd+1XqoAPdXv9WiK/rT7VpIxzo8Xmnf82ZSsMB0bKfow== Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (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)) (Authenticated sender: mp) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Y2GnJ47pZz1FbX for ; Mon, 2 Dec 2024 21:16:52 +0000 (UTC) (envelope-from mp@freebsd.org) Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-7b65f8cb347so357035985a.3 for ; Mon, 02 Dec 2024 13:16:52 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXRsEZq6W1tmo6qK+XzK/6CRvKwEZcYgsBLuGMPvxEb2j0HGnEayC/6rQyg8lEAljOBtB+RB4ii1RK116vPR1q5XFOgmyia@freebsd.org X-Gm-Message-State: AOJu0YzRU6QOqhgdKL8bJD7HuRAHABfIr0pk6+R3/yVlx+CgT9NWmLQO EcKtV5qZlHt8gB4E9qNxMRDWNjPL8+k90SOEnEOuZKFT7wjz76kEidvWwKaSyYWeXntE8igC+Rz XfUwPVd1eQXtPcAGDwvekbj2naSC68u4EVZYeCw== X-Google-Smtp-Source: AGHT+IE2ZKK57SzKxUs1VXSQVGsgy3hDNk5SIS1i73J6DAwofK9ZAafxD3GdFy+uOaeuuTIQgu8T3iumnicJ+1oLsho= X-Received: by 2002:a05:6214:d84:b0:6d4:1ea3:981d with SMTP id 6a1803df08f44-6d8b740282emr1590996d6.43.1733174212109; Mon, 02 Dec 2024 13:16:52 -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: Mark Peek Date: Mon, 2 Dec 2024 13:16:41 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9 To: Mario Marietto Cc: Mark Peek , =?UTF-8?Q?Corvin_K=C3=B6hne?= , FreeBSD virtualization Content-Type: multipart/alternative; boundary="0000000000003f47f806285011af" --0000000000003f47f806285011af Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 2, 2024 at 1:05=E2=80=AFPM Mario Marietto 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 wi= th > 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 --0000000000003f47f806285011af Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Dec 2, 2024 at 1:05=E2=80=AFPM Ma= rio Marietto <marietto2008@gma= il.com> wrote:
He= llo 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 t= hat I'm using on the ZFS system with the module that I use on the UFS s= ystem (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 exchang= e of the modules does not work for me ?

I'm assuming you applied the patch and rebuilt the vmm.ko modu= le. Did you also recompile the bhyve binary per my comments in my last mess= age? The emulated instructions are detected in vmm.ko but are emulated in t= he bhyve binary. In other words, vmm_instruction_emul.c is used in both vmm= .ko and bhyve.

Mark=C2=A0
--0000000000003f47f806285011af--