From nobody Mon Dec 02 20:14:14 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 4Y2FPF65DHz5gMp8 for ; Mon, 02 Dec 2024 20:14:25 +0000 (UTC) (envelope-from mp@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4Y2FPF5VrWz4tTC for ; Mon, 2 Dec 2024 20:14:25 +0000 (UTC) (envelope-from mp@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733170465; 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=qLrtCxm1GdSwNogNyVS36BBIy/0kAekO8HZm3EYskaU=; b=LXCg51O15/Wh3lLbYE4K3/JjsqrdPlc4WTuLndY/zonBN+ADrG9/yo5ek0KOJ77x9mYL32 p47smB6gEVXpSelXGKH1RKIwO8Ai+SJLOryQDSagPMPixTaD3O2yJK9HUqfP8xPnLA9HOf tGaT6YsJyIsVw1yXYql91VbhPaCqDAeVzBQpodmbCpHeIPkjeMSafz9EU4tiIYgFviQQ50 w4ygQjeY4zClU8z0mzuj66mRPI7k5jpHzIBBJqWouLjbgxI/5Pa1UjuWvNDu8IS2Iw874u fuUlG1SYFrM/F7BCd9rvwU5/vtMHXItkxKbupWkfrVkTpxi5XKVL9e6dpudBPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733170465; 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=qLrtCxm1GdSwNogNyVS36BBIy/0kAekO8HZm3EYskaU=; b=Iay8ELPDD4RHp5/wDeWmWwO1rgYxRlwiMu40Oo+1UkkQNmkktUB83evQyUvNJC9+LEho7t DK+MIa7HTZgLznfZRz92BD6wlRIYey6srB8HOvw4hMhEkSlQY4zoQoHprVtjfzN/jvOW+y E9cR0qak8UMzNKLRvUrsdB8yAKfCXJTNC0pJ73t7wX1dzVjPD5dG8ErQCV2NbMwRsZ0+wF X6AhIT1/HWdOGeR4yQ2Whh4IQ0NcPz16Kj3NcNv4w+Q9HwPRykmEpbN4IGi0hK3xoLTQhA akrKMQerAP2PwgZnrtfVbumHp2nJnPwY8x1MJQjF56NN/EdHX5zSlymGNTlFzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733170465; a=rsa-sha256; cv=none; b=EcCFZ6LKwvnV99G0hzyfotTOb8TAsxT13f7JD+oyvGT/cbDcAPtpmLEBsVjxaVqOOrZLwm 4OyR1ulSO9asNxKnOXo3wnSWhWeQFul3KXz+pBJGp3HjAv15oQYtaXxWhBGGiJSuJtR9z2 5JDiNWbiW8G/JfzTmRi++jSV+JbpCrxjdjJrRjCkoOm6oIK1qh0ShU+C0RyetMupN9dFMI yeiIh6l0FwxyyjM8jGOPnD2oggIej5ulhrk7CjS7CvELQPn0vWMB5lu/uSzTVxGPn5H+Al BQS2pDlhz2oOSzaTfh8b5FJkWWxPWC75wxGggxjklWRkJJ5uT2lU86UB+yy80A== Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (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 4Y2FPF4x4dz1Bg7 for ; Mon, 2 Dec 2024 20:14:25 +0000 (UTC) (envelope-from mp@freebsd.org) Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-46684744070so41438701cf.1 for ; Mon, 02 Dec 2024 12:14:25 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWZ75S3Y6QH7AS9I/UcMncrLuENzSQiWVgTGIyx95QExiE8xtSWi6VeEEkbyznplOiQ7tNXnYXhzRDgaiX+cqldMpl583yE@freebsd.org X-Gm-Message-State: AOJu0YxoXbSBHJunh6u8lyw45Gl67H9oWHV4BhzzB5hhs4m3iawrTqqc UZsXcJt/SECCk7B0ZcOkhC2HnILiTLXQCY25dNpscvpe6XIxKIFneldZi85kkGKFoeb3x3Z71Bz RVIZRUF9T79xOgwmAiqaf43VbQDMlA+eSbdIDVA== X-Google-Smtp-Source: AGHT+IGYipjU8OSnCues8iYbFsokJWolTeA0NRfppZ8Ym/IbzHCpR5bibjweT+JHXRhhdyyueHqTTZc6LcinaZYC8u0= X-Received: by 2002:ad4:5ecc:0:b0:6d8:a5f7:f108 with SMTP id 6a1803df08f44-6d8a5f7f871mr77060036d6.26.1733170465246; Mon, 02 Dec 2024 12:14:25 -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 12:14:14 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9 To: Mario Marietto Cc: =?UTF-8?Q?Corvin_K=C3=B6hne?= , FreeBSD virtualization Content-Type: multipart/alternative; boundary="000000000000eab7e506284f3150" --000000000000eab7e506284f3150 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 2, 2024 at 11:54=E2=80=AFAM Mario Marietto wrote: > Hello to everyone. > > Recently I've upgraded one of my FreeBSD systems and I see a strange erro= r > 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=3D2,cores=3D2,threads=3D2 -m 8G -w -H -A = \ > -s 0,hostbridge \ > -s > 1,ahci-hd,/mnt/zroot-133/bhyve/img/Android/DarkMatter-qemu.img,bootindex= =3D1 \ > -s 8:0,passthru,4/0/0 \ > -s 11,hda,play=3D/dev/dsp,rec=3D/dev/dsp \ > -s 13,virtio-net,tap13 \ > -s 29,fbuf,tcp=3D0.0.0.0:5913,w=3D1440,h=3D900,wait \ > -s 30,xhci,tablet \ > -s 31,lpc \ > -l > bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd,/usr/local/shar= e/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=3D282852 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 --000000000000eab7e506284f3150 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Dec 2, 2024 at 11:54=E2=80=AFAM M= ario Marietto <marietto2008@gm= ail.com> wrote:
H= ello to everyone.

Recently I've upgraded one o= f 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 wh= ere I haven't applied the latest pkg upgrades where Android is still ab= le to boot.
The bhyve parameters that I use in both systems = are the following :

/usr/sbin/./bhyve -S -c socket= s=3D2,cores=3D2,threads=3D2 -m 8G -w -H -A \
-s 0,hostbridge \
-s 1,a= hci-hd,/mnt/zroot-133/bhyve/img/Android/DarkMatter-qemu.img,bootindex=3D1 \=
-s 8:0,passthru,4/0/0 \
-s 11,hda,play=3D/dev/dsp,rec=3D/dev/dsp \-s 13,virtio-net,tap13 \
-s 29,fbuf,tcp=3D0.0.0.0:5913,w=3D1440,h=3D900,wait \
-s 30,xhc= i,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYV= E_UEFI_CODE.fd,/usr/local/share/uefi-firmware/BHYVE_UEFI_VARS.fd \
vm0:1= 3 < /dev/null & sleep 5 && vncviewer 0:13 && echo vn= cviewer 0:13 &

The error I get on this ZFS sys= tem :

FreeBSD marietto 14.1-RELEASE-p5 FreeBSD 14.= 1-RELEASE-p5 GENERIC amd64

is :

Failed to emulate instruction sequence [ 41f646040874064c017d88eb= 144c89 ] at 0xbea5fcf9

But I don't get= this error on the system installed on the UFS disk (it is also 14.1-RELEAS= E-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64). Any suggestions about how I ca= n fix it ?


This = looks like a duplication of this bug:
https://bugs.freebsd.org/bugzilla/show= _bug.cgi?id=3D282852

I need to tweak the patch= (attached to the bug) before submitting for review. Note that both the ker= nel and bhyve need to be recompiled after applying the patch.
Mark
=C2=A0
--000000000000eab7e506284f3150--