From nobody Mon Jul 1 16:03:21 2024 X-Original-To: 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 4WCW6f25LFz5PHdQ for ; Mon, 01 Jul 2024 16:03:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCW6d1d0Gz4H0J for ; Mon, 1 Jul 2024 16:03:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719849801; a=rsa-sha256; cv=none; b=i/cyaqzAOl9hpDm3V0+LCXySDgf/Ubg3TBH5LcWq0Fdyp1Q7bNBwsXUU+k/Me2C4G4eGvF qWyEjZAi/TzNAztLk4Awjnj2nOsv5ZdSHdc+qtBgdloRIYXYEDZ+VPj8v+aJjlt/YTa7HZ jCkjr+D/BKslIcXlEvJJWqtlvOnuCGRuAjfsZ3DEoex1pCde4Z4i5HWEWdbsx8QbZAvQG7 gK3XGTI2lcChkLQPD0tAq0Ir3m0Sei0LlCl0wapzqJJpmeZlL0bTlkJmylpdineNQNHKtM aB2qoXT9jsuJRgoqz7dY1OXS6Xgpfui101jFmfPK0LoZeAzYdsBje6SuavLTAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719849801; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=56SL278kVxVthvYvVU+uMgtm0UiiVfwkk5DOYhpIe6o=; b=yL6JdPZNasVHsJ0jDBCUZ0jTLWHiLqqKaVzCcZUbBzkEXu44cmWCECML5s7bheRNrmyTeO NjKKCzl/44DepWDGzi+U6x8IcBvT/lKtLLoYmI3VvEK1MwB2dNV4aoado2y59+GO3SdaRx 5gYi2XRFZzO6pFLOSuHgaiDfvNwGwvyvhvGxdh3h5rlZgtR0UXz1zEztuXdQ0z+XhxN5SG kz+M2yX0ah4UuRrsmbx9yd8R4wrhYk0NmBP4d0P7KFBhR3Ns5XD6jMHkOWV324LlZmnQ1e oWEiWxFGJcT7AQgNi7rYbsA7zrEGBaVvEKJV4y8CCX6ptFxUOQQERRJC1KG2dw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WCW6d1DMCz1B7P for ; Mon, 1 Jul 2024 16:03:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 461G3L6i086842 for ; Mon, 1 Jul 2024 16:03:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 461G3Lja086841 for virtualization@FreeBSD.org; Mon, 1 Jul 2024 16:03:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 279720] virtualization/bhyve: it does not boot from the slot where the parameter bootindex=1 is declared. Date: Mon, 01 Jul 2024 16:03:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marietto2008@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279720 --- Comment #8 from mario felicioni --- Sorry,your patch does not work for me : ..... make[2]: Leaving directory '/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdeMod= ulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe' Fd File Name:BHYVE (/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE.f= d) Generate Region at Offset 0x0 Region Size =3D 0x40000 Region Name =3D DATA Generate Region at Offset 0x40000 Region Size =3D 0x1000 Region Name =3D None Generate Region at Offset 0x41000 Region Size =3D 0x1000 Region Name =3D DATA Generate Region at Offset 0x42000 Region Size =3D 0x42000 Region Name =3D None Generate Region at Offset 0x84000 Region Size =3D 0x348000 Region Name =3D FV Generating FVMAIN_COMPACT FV Generating PEIFV FV #### Generating DXEFV FV ######### Generate Region at Offset 0x3CC000 Region Size =3D 0x34000 Region Name =3D FV Generating SECFV FV # Fd File Name:BHYVE_VARS (/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE_V= ARS.fd) Generate Region at Offset 0x0 Region Size =3D 0x40000 Region Name =3D DATA Generate Region at Offset 0x40000 Region Size =3D 0x1000 Region Name =3D None Generate Region at Offset 0x41000 Region Size =3D 0x1000 Region Name =3D DATA Generate Region at Offset 0x42000 Region Size =3D 0x42000 Region Name =3D None Fd File Name:BHYVE_CODE (/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE_C= ODE.fd) Generate Region at Offset 0x0 Region Size =3D 0x348000 Region Name =3D FV Generate Region at Offset 0x348000 Region Size =3D 0x34000 Region Name =3D FV Fd File Name:MEMFD (/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/MEMFD.f= d) Generate Region at Offset 0x0 Region Size =3D 0x6000 Region Name =3D None Generate Region at Offset 0x6000 Region Size =3D 0x1000 Region Name =3D None Generate Region at Offset 0x7000 Region Size =3D 0x1000 Region Name =3D None Padding region starting from offset 0x8000, with size 0x8000 Generate Region at Offset 0x8000 Region Size =3D 0x8000 Region Name =3D None Generate Region at Offset 0x10000 Region Size =3D 0x10000 Region Name =3D None Generate Region at Offset 0x20000 Region Size =3D 0xE0000 Region Name =3D FV Generate Region at Offset 0x100000 Region Size =3D 0xB00000 Region Name =3D FV GUID cross reference file can be found at /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/Guid.xref FV Space Information SECFV [5%Full] 212992 (0x34000) total, 11808 (0x2e20) used, 201184 (0x311e0) free PEIFV [11%Full] 917504 (0xe0000) total, 106104 (0x19e78) used, 811400 (0xc6= 188) free DXEFV [45%Full] 11534336 (0xb00000) total, 5210672 (0x4f8230) used, 6323664 (0x607dd0) free FVMAIN_COMPACT [41%Full] 3440640 (0x348000) total, 1437760 (0x15f040) used, 2002880 (0x1e8fc0) free - Done - Build end time: 17:34:22, Jul.01 2024 Build total time: 00:01:29 =3D=3D=3D> Staging for edk2-bhyve-g202308_5 =3D=3D=3D> Generating temporary packing list /bin/mkdir -p /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/ install -m 0644 /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE.fd /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE= _UEFI.fd install -m 0644 /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE_CO= DE.fd /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE= _UEFI_CODE.fd install -m 0644 /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE_VA= RS.fd /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE= _UEFI_VARS.fd install -m 0644 /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/FV/BHYVE_CO= DE.fd /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE= _UEFI.fd /bin/mkdir -p /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/uefi-firmware/ install -l rs /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE= _UEFI.fd /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/uefi-firmware/BH= YVE_UEFI.fd install -l rs /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE= _UEFI_CODE.fd /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/uefi-firmware/BH= YVE_UEFI_CODE.fd install -l rs /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/edk2-bhyve/BHYVE= _UEFI_VARS.fd /usr/ports/sysutils/edk2/work-bhyve/stage//usr/local/share/uefi-firmware/BH= YVE_UEFI_VARS.fd =3D=3D=3D=3D> Compressing man pages (compress-man) =3D=3D=3D> Installing for edk2-bhyve-g202308_5 =3D=3D=3D> Checking if edk2-bhyve is already installed =3D=3D=3D> Registering installation for edk2-bhyve-g202308_5 Installing edk2-bhyve-g202308_5... [root@marietto /usr/ports/sysutils/edk2]=3D=3D> pkg remove edk2-bhyve=20=20= =20=20=20=20 Updating database digests format: 100% Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 2 packages (of 0 packag= es in the universe): Installed packages to be REMOVED: bhyve-firmware: 1.0_2 edk2-bhyve: g202308_5 Number of packages to be removed: 2 The operation will free 7 MiB. Proceed with deinstalling packages? [y/N]: y [1/2] Deinstalling bhyve-firmware-1.0_2... [1/2] Deleting files for bhyve-firmware-1.0_2: 100% [2/2] Deinstalling edk2-bhyve-g202308_5... [2/2] Deleting files for edk2-bhyve-g202308_5: 100% [root@marietto /usr/ports/sysutils/edk2]=3D=3D> FLAVOR=3Dbhyve make reinsta= ll =3D=3D=3D> Deinstalling for edk2-bhyve =3D=3D=3D> edk2-bhyve not installed, skipping =3D=3D=3D> Installing for edk2-bhyve-g202308_5 =3D=3D=3D> Checking if edk2-bhyve is already installed =3D=3D=3D> Registering installation for edk2-bhyve-g202308_5 Installing edk2-bhyve-g202308_5... I launch the vm using these params : /usr/sbin/./bhyve-win -S -c sockets=3D4,cores=3D2,threads=3D1 -m 8G -w -H \ -S -c sockets=3D4,cores=3D2,threads=3D1 -m 8G -w -H \ -s 0,hostbridge \ -s 1,ahci-hd,/mnt/$vmdisk0'p2'/bhyve/img/Windows/11/Windows11.img,bootindex= =3D1 \ -s 2,ahci-hd,/dev/$vmdisk5 \ -s 8:0,passthru,2/0/0 \ -s 8:1,passthru,2/0/1 \ -s 8:2,passthru,2/0/2 \ -s 8:3,passthru,2/0/3 \ -s 13,virtio-net,tap12 \ -s 29,fbuf,tcp=3D0.0.0.0:5912,w=3D1600,h=3D950,wait \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd \ vm0:12 < /dev/null & sleep 2 && vncviewer 0:12 this is what happens : vm exit[0] reason VMX rip 0x00000000000f0015 inst_length 3 status 0 exit_reason 2 (Triple fault) qualification 0x0000000000000000 inst_type 0 inst_error 0 --=20 You are receiving this mail because: You are the assignee for the bug.=