From nobody Wed Dec 4 05:16:12 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 4Y35NG6Llrz5fwwh for ; Wed, 04 Dec 2024 05:16:30 +0000 (UTC) (envelope-from scf@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 4Y35NG5V8qz4VfK; Wed, 4 Dec 2024 05:16:30 +0000 (UTC) (envelope-from scf@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733289390; 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=0GXIX2BHCX7i+f5nJ1r/Mf/nYI49PIcu+9nmvv0FT0g=; b=nFFPsmoVSOsayuGWEYzuPTCIsE48jAByH/hir4vxiqURigMZuL2pWQv0aCpxB7JgN5g1Ty AnEX6426itapQInydgy8Swl3Qmd2zVZAiBY7CA1+GES8dPDwrGPnhc0P52euQbBghetFkQ WHDe+CsaAXz0D3cbxzcgEAoYvFT98CKdeF2lOI1LqXEILESn1OyTj/tj8lO6bDevFrz4P3 SA0/nlE+hWpLfdE5N3lw991D69nf0D40uE5G0N2LcX/RSxYzjwI5T7uJlhZ1qM4z7u6qp5 z2J0TQd6vtrk2cRaljG43H9JVXttLnVcq+4fgO3O7G+VdTngsU2dFJO9EwGt/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733289390; 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=0GXIX2BHCX7i+f5nJ1r/Mf/nYI49PIcu+9nmvv0FT0g=; b=uwCkSnDotQRuJvWp1PIEujsfT3n2ZcNTY/bvYFQ2uZpROhs//N3C/BOBNR50Zsx7+FTqpB hP4gEdiwFN/2wBRk7iKNgs/sqlTBZOkEoy9jFlzU2+DTvgKsAHJiWxyNMPsyF2yw2u5ci7 jm5Wks1CTxPin+zr4q53gTbFydfgYD6s+4gWDlyvGFWz4GECJo3M+lyx01S3muIakn3IPq 8GT1Gw8Mfvxn1OSBFpCZkl0wwmi/k+shLtRCJrXuzmnumvAos6FcQShWqZ7uq5tRpirGKh li2af0VStkcbcfcIEJWn9AdlzeXiNtboM3kcrLsM9LLgsKs0y2aiOefBu53XeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733289390; a=rsa-sha256; cv=none; b=CGXYZVkmRZO0zhjJh2CDUleDhOjjAKgZ9hgEBn/ePdFUMiSgwiH0qjmyixRVpDw3cht7ES EMYKgQH6qjuhcBbazJRHXQJLBnMginQxKkOiYRYgXBcIy3QhtjH8OoVJ6MdrwAaF0nKBy/ nQOYwqbU73MyDBbVKls4qNBIlGanTdJ1GXiPyNO32fIZEsdGR/8iMduU2I7h18NJuVZ1QW jg08t033sLYeLO1Jq6OQcuytQVynfdOGJ8QDJEGFmp1THbuJqcXdXUngCMYTkrSb+2tR2Z RJlBElL8oTEFkFdye2etp/xCAHpwiic7BmJqyj63dIffbDzD3WNWKXSX1q29rw== Received: from thor.farley.org (1609341-v107.1360-static.crmlinaa.metronetinc.net [104.254.222.35]) (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 did not present a certificate) (Authenticated sender: scf/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Y35NG3mQLzj30; Wed, 4 Dec 2024 05:16:30 +0000 (UTC) (envelope-from scf@FreeBSD.org) Date: Wed, 4 Dec 2024 00:16:12 -0500 (EST) From: "Sean C. Farley" To: Mario Marietto cc: FreeBSD virtualization Subject: Re: Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at 0xbea5fcf9 In-Reply-To: Message-ID: <7905a2e7-3107-bf4d-10f7-2547a2af8df3@FreeBSD.org> References: 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 Content-Type: text/plain; format=flowed; charset=US-ASCII On Mon, 2 Dec 2024, Mario Marietto wrote: > Hello to everyone. > > Recently I've upgraded one of 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 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=2,cores=2,threads=2 -m 8G -w -H -A \ > -s 0,hostbridge \ > -s > 1,ahci-hd,/mnt/zroot-133/bhyve/img/Android/DarkMatter-qemu.img,bootindex=1 \ > -s 8:0,passthru,4/0/0 \ > -s 11,hda,play=/dev/dsp,rec=/dev/dsp \ > -s 13,virtio-net,tap13 \ > -s 29,fbuf,tcp=0.0.0.0:5913,w=1440,h=900,wait \ > -s 30,xhci,tablet \ > -s 31,lpc \ > -l > bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd,/usr/local/share/uefi-firmware/BHYVE_UEFI_VARS.fd > \ > vm0:13 < /dev/null & sleep 5 && vncviewer 0:13 && echo vncviewer 0:13 & Do you actually want the UEFI variables to be written to /usr/local/share/uefi-firmware/BHYVE_UEFI_VARS.fd? That file is actually installed by edk2-bhyve. You should pick a different location for the variables file to be written. Plus, reinstall edk2-bhyve to make sure nothing unexpected happens, especially if you have had multiple bhyve instances using that same file. Probably, save it just in case there are any values you need to keep first. $ pkg which /usr/local/share/uefi-firmware/BHYVE_UEFI_VARS.fd /usr/local/share/uefi-firmware/BHYVE_UEFI_VARS.fd was installed by package edk2-bhyve-g202308_5 $ ls -l /usr/local/share/uefi-firmware/BHYVE_UEFI_VARS.fd lrwxr-xr-x 1 root wheel 32 Nov 29 03:28 /usr/local/share/uefi-firmware/BHYVE_UEFI_VARS.fd@ -> ../edk2-bhyve/BHYVE_UEFI_VARS.fd $ pkg which /usr/local/share/edk2-bhyve/BHYVE_UEFI_VARS.fd /usr/local/share/edk2-bhyve/BHYVE_UEFI_VARS.fd was installed by package edk2-bhyve-g202308_5 $ pkg check -s edk2-bhyve-g202308_5 Checking edk2-bhyve-g202308_5: 100% I would run that check to make sure it is still valid. When I first ran into the error, I just replaced the UEFI vars file with an old one from a ZFS snapshot to see what was happening, which worked until the next time I rebooted the VM. Sean -- scf@FreeBSD.org