From nobody Fri Mar 31 20:25:52 2023 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 4PpBdf4VDZz43D9C for ; Fri, 31 Mar 2023 20:26:30 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PpBdf2kznz3hKG; Fri, 31 Mar 2023 20:26:30 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-54606036bb3so271117507b3.6; Fri, 31 Mar 2023 13:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680294388; x=1682886388; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=N06p2ueto/aa3B9axECD5MymQ4KYG7auVEz81C/uVBw=; b=qE+13Sxcgi4LNPyENu6RJdJ23aBcQTMKu8zMDk1EjLdZfV5EYVtFgSLOh+t8VVk7hW ekF3oKQ1pW0BNH6O7GS5WftT0aXpzPtf58ubM9nKCq9f97BgfLrSoIL3R9NKgLHRGpO4 64HhPFBJJ6pwMcKptNK9NH5gyLGUlxlqAY52sT7nH/G9yXzBL/gm3iorFcuIJ1vDaIyh YGZIxUyTifQCbMvwUZGw0YVheXwlCHvJi3dVyjEHwcJXOO5gvaQjNxYDzo1flcbd4Dj8 PNtk1ADg8kafWPW6wRQBLnG4vuJp0cGCY+AhdeuDkjWy8xAjTV81Gnh960GHVUQwlKcH o1/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680294388; x=1682886388; 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=N06p2ueto/aa3B9axECD5MymQ4KYG7auVEz81C/uVBw=; b=6qaOI8Jw1r6kjg3eKlfjqd1ChGPdS21/0cPhV5/KK3A+iP/0a/DVGQa0EmyKyPCDKq 1WVdAUeZNLsQ9mf47OzjTiNYlENpLutA2FpsBVAvTDm11bjt2vRKbNePzDQZ9dcGhYkk fp235RPv43gatgqau+jTxRw6OmoqEatio6a+8USccSrdf0SLnOoNeUe6FdO9KmDVn+MA 2B8ESonwaPbqSwlznSo2KjweJI0nCNntRynS6u7IUSod+XJQ/6FXpeH7DhLAlBEJufGV WyC9JdnbCBd6r+VnnQGzw6h5Rw+yk6mE7vgx350K3qiBhcQ2fh2nrwfAFm2RoSIF1UeR YCVw== X-Gm-Message-State: AAQBX9fOG+5zDkfp76stSR+QSgoDtG3enuguVq+Jd7LBcV6+LOIYIXSf BoZH8ArpuPyleK2I2uxbV9jZqItpAEcZl2z2CbZC425lPAH3gQ== X-Google-Smtp-Source: AKy350bM8TKOl/Y0Oh3FLmENbNTh5JvV3JJVlmxzzjTiWyUHe2zgd+ruVklZ0HNDyu7b8pTVZsGkPGPDiG2rnALo94g= X-Received: by 2002:a81:b617:0:b0:544:b864:5532 with SMTP id u23-20020a81b617000000b00544b8645532mr13555360ywh.3.1680294388250; Fri, 31 Mar 2023 13:26:28 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: <20230331123936.540020-1-corvink@FreeBSD.org> In-Reply-To: From: Mario Marietto Date: Fri, 31 Mar 2023 22:25:52 +0200 Message-ID: Subject: Re: [PATCH] OvmfPkg/BhyveBhf: install bhyve's ACPI tables To: =?UTF-8?Q?Corvin_K=C3=B6hne?= Cc: virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000213f5f05f83806cc" X-Rspamd-Queue-Id: 4PpBdf2kznz3hKG X-Spamd-Bar: ---- 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-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --000000000000213f5f05f83806cc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello. Nothing of unusual is happened and I didn't see any ACPI output message : (I'm running FreeBSD 13.2-RC5 releng/13.2-n254613-0386b9bd6cda GENERIC amd6= 4 ) 19-Ubuntu-2210-ACPI-vm19 : #!/bin/sh setxkbmap it bhyvectl --vm=3Dvm0:19 --destroy vms=3D"$(ls /dev/vmm/*)" vncs=3D"$(ps ax | awk '/vncviewer [0]/{print $6}')" echo $vms echo $vncs if ! pciconf -l pci0:2:0:0 | grep -q "^ppt"; then echo "rtx 2080ti slot 2/0/0 is not attached to ppt,attaching..." kldload nvidia-modeset devctl detach pci0:2:0:0 devctl set driver pci0:2:0:0 ppt else echo "rtx 2080ti slot 2/0/0 is already attached to ppt" fi if ! pciconf -l pci0:2:0:1 | grep -q "^ppt"; then echo "rtx 2080ti slot 2/0/1 is not attached to ppt,attaching..." devctl detach pci0:2:0:1 devctl set driver pci0:2:0:1 ppt else echo "rtx 2080ti slot 2/0/1 is already attached to ppt" fi if ! pciconf -l pci0:2:0:2 | grep -q "^ppt"; then echo "rtx 2080ti slot 2/0/2 is not attached to ppt,attaching..." devctl detach pci0:2:0:2 devctl set driver pci0:2:0:2 ppt else echo "rtx 2080ti slot 2/0/2 is already attached to ppt" fi if ! pciconf -l pci0:2:0:3 | grep -q "^ppt"; then echo "rtx 2080ti slot 2/0/3 is not attached to ppt,attaching..." #devctl detach pci0:2:0:3 devctl set driver pci0:2:0:3 ppt else echo "rtx 2080ti slot 2/0/3 is already attached to ppt" fi echo "rtx 2080ti is fully attached to ppt" for vm in $vms; do session=3D"${vm##*/}" echo "bhyve session =3D $session" echo "vnc session =3D $vncs" if ! printf '%s\n' "${vncs}" | grep "${session}"; then printf 'VNC session not found,destroying ghost vms\n' bhyvectl --vm=3D$session --destroy else printf 'Found VNC session %s\n' "${session},no ghost vms found,not destroying them" fi done vmdisk0=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (NM13N4= CZ)/ && d{print d}'` echo "Seagate M3 Portable 1.8 TB ; $vmdisk0" vmdisk1=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (2022285F1175)/ && d{print d}'` echo "CT1000P1SSD8 ; $vmdisk1" vmdisk2=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (2015020204055E)/ && d{print d}'` echo "TOSHIBA External USB 3.0 1.8 TB ; $vmdisk2" vmdisk3=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (20130506005976F)/ && d{print d}'` echo "TOSHIBA External USB 3.0 932G ; $vmdisk3" vmdisk4=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (BE0191500218)/ && d{print d}'` echo "G-DRIVE USB ; $vmdisk4" vmdisk5=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (38434B4237354B45)/ && d{print d}'` echo "Elements 25A3 ; $vmdisk5" vmdisk6=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (WD-WCAV2X597309)/ && d{print d}'` echo "WDC WD3200AAJS-00L7A0-298 GB ; $vmdisk6" vmdisk7=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (0774911DDC4200A6)/ && d{print d}'` echo "SanDisk Cruzer-15GB ; $vmdisk7" vmdisk8=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (60A44C4138D8F311190A0149)/ && d{print d}'` echo "Kingston DataTraveler 2.0 ; $vmdisk8" vmdisk9=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (20140100006C)/ && d{print d}'` echo "Corsair Force 3 SSD ; $vmdisk9" vmdisk10=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (1924E20B2AE5)/ && d{print d}'` echo "CT500MX500SSD4 ; $vmdisk10" vmdisk11=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (575845583038524844323238)/ && d{print d}'` echo "WD-2500BMV ; $vmdisk11" vmdisk12=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (57442D575845323039544433303334)/ && d{print d}'` echo "WD-3200BMV ; $vmdisk12" vmdisk13=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (S3Z2NB0KB99028V)/ && d{print d}'` echo "Seagate M3 Portable 1.8 TB ; $vmdisk13" pkexec zpool import -f -R /mnt/zroot2 zroot2 bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A \ -s 0,hostbridge \ -s 1,virtio-blk,/mnt/zroot2/zroot2/bhyve/img/Linux/ubuntu2210.img,bootindex=3D= 1 \ -s 9,passthru,5/0/0 \ -s 10,virtio-blk,/dev/$vmdisk1 \ -s 11,virtio-blk,/dev/$vmdisk3 \ -s 12,virtio-blk,/dev/$vmdisk13 \ -s 13,virtio-net,tap19 \ -s 14,virtio-9p,sharename=3D/ \ -s 29,fbuf,tcp=3D0.0.0.0:5919,w=3D1600,h=3D950,wait \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/home/marietto/Desktop/Files/OS/FreeBSD/Scripts/corvin/bhyve/ACPI/B= HYVE_CODE_DEBUG.fd \ vm0:19 < /dev/null & sleep 2 && vncviewer 0:19 marietto@marietto:/usr/home/marietto/bhyve # sudo ./19-Ubuntu-2210-ACPI-vm19 vm_open: vm0:19 could not be opened: No such file or directory ls: /dev/vmm/*: No such file or directory rtx 2080ti slot 2/0/0 is not attached to ppt,attaching... rtx 2080ti slot 2/0/1 is not attached to ppt,attaching... rtx 2080ti slot 2/0/2 is not attached to ppt,attaching... rtx 2080ti slot 2/0/3 is not attached to ppt,attaching... rtx 2080ti is fully attached to ppt Seagate M3 Portable 1.8 TB ; da4 CT1000P1SSD8 ; nvd0 TOSHIBA External USB 3.0 1.8 TB ; da2 TOSHIBA External USB 3.0 932G ; da5 G-DRIVE USB ; da0 Elements 25A3 ; da1 WDC WD3200AAJS-00L7A0-298 GB ; ada2 SanDisk Cruzer-15GB ; Kingston DataTraveler 2.0 ; Corsair Force 3 SSD ; da3 CT500MX500SSD4 ; ada0 WD-2500BMV ; WD-3200BMV ; Seagate M3 Portable 1.8 TB ; ada1 fbuf frame buffer base: 0x661ba800000 [sz 16777216] TigerVNC Viewer 64-bit v1.12.0 Built on: 2021-11-23 05:59 Copyright (C) 1999-2021 TigerVNC Team and many others (see README.rst) See https://www.tigervnc.org for information on TigerVNC. Fri Mar 31 22:04:09 2023 DecodeManager: Detected 16 CPU core(s) DecodeManager: Creating 4 decoder thread(s) CConn: Connected to host 0 port 5919 CConnection: Server supports RFB protocol version 3.8 CConnection: Using RFB protocol version 3.8 CConnection: Choosing security type None(1) CConn: Using pixel format depth 24 (32bpp) little-endian rgb888 wrmsr to register 0x140(0) on vcpu 0 wrmsr to register 0x140(0) on vcpu 1 wrmsr to register 0x140(0) on vcpu 2 wrmsr to register 0x140(0) on vcpu 3 wrmsr to register 0x140(0) on vcpu 4 wrmsr to register 0x140(0) on vcpu 5 wrmsr to register 0x140(0) on vcpu 6 wrmsr to register 0x140(0) on vcpu 7 rdmsr to register 0x64e on vcpu 2 rdmsr to register 0x34 on vcpu 2 rdmsr to register 0xc0011029 on vcpu 3 Unhandled ps2 mouse command 0xe1 Unhandled ps2 mouse command 0x0a Unhandled ps2 mouse command 0x01 Unhandled ps2 mouse command 0x41 Unhandled ps2 mouse command 0x88 rdmsr to register 0x64d on vcpu 5 rdmsr to register 0x64d on vcpu 0 On Fri, Mar 31, 2023 at 3:18=E2=80=AFPM Corvin K=C3=B6hne wrote: > On Fri, 2023-03-31 at 14:59 +0200, Mario Marietto wrote: > > Hello Corvin. > > > > I will try your patch very soon if you want to write carefully all > > the commands that I should issue. Thanks. > > > > I build the firmware as DEBUG and RELEASE version and attached them for > easy testing. Just replace "-l bootrom,/usr/local/share/uefi- > firmware/BHYVE_UEFI.fd" in your bhyve command with "-l > bootrom,/path/to/my/attached/BHYVE_CODE_RELEASE.fd" > > If you encounter any issues, please use the DEBUG version as firmware. > It should log debug information on bhyve's serial output. Please attach > it to your error description. > > For those familiar with building EDKII, you can find my patch at: > https://github.com/Beckhoff/edk2/tree/phab/corvink/acpi-tables > > > -- > Kind regards, > Corvin > --=20 Mario. --000000000000213f5f05f83806cc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.

Nothing of unusual = is happened and I didn't see any ACPI output message : (I'm running= FreeBSD 13.2-RC5 releng/13.2-n254613-0386b9bd6= cda GENERIC amd64)
<= /span>

19-Ubuntu-2210-ACPI-vm19 :
=
#!/bin/sh

setxkbmap it
bhyvectl --vm=3Dvm0:= 19 --destroy
vms=3D"$(ls /dev/vmm/*)"
vncs=3D"$(ps ax = | awk '/vncviewer [0]/{print $6}')"
echo $vms
echo $vncs=

if ! pciconf -l pci0:2:0:0 | grep -q "^ppt"; then
echo= "rtx 2080ti slot 2/0/0 is not attached to ppt,attaching..."
k= ldload nvidia-modeset
devctl detach pci0:2:0:0
devctl set driver pci0= :2:0:0 ppt
else
echo "rtx 2080ti slot 2/0/0 is already attached = to ppt"
fi

if ! pciconf -l pci0:2:0:1 | grep -q "^ppt&q= uot;; then
echo "rtx 2080ti slot 2/0/1 is not attached to ppt,attac= hing..."
devctl detach pci0:2:0:1
devctl set driver pci0:2:0:1 p= pt
else
echo "rtx 2080ti slot 2/0/1 is already attached to ppt&q= uot;
fi

if ! pciconf -l pci0:2:0:2 | grep -q "^ppt"; th= en
echo "rtx 2080ti slot 2/0/2 is not attached to ppt,attaching...&= quot;
devctl detach pci0:2:0:2
devctl set driver pci0:2:0:2 ppt
el= se
echo "rtx 2080ti slot 2/0/2 is already attached to ppt"
= fi

if ! pciconf -l pci0:2:0:3 | grep -q "^ppt"; then
ec= ho "rtx 2080ti slot 2/0/3 is not attached to ppt,attaching..."#devctl detach pci0:2:0:3
devctl set driver pci0:2:0:3 ppt
else
e= cho "rtx 2080ti slot 2/0/3 is already attached to ppt"
fi
<= br>echo "rtx 2080ti is fully attached to ppt"

for vm in $v= ms; do
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 session= =3D"${vm##*/}" =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 echo "bhyve session =3D $session"
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo "vnc session =3D $v= ncs" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 if ! printf '%s\n' "${vncs}" | grep "$= {session}"; then
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 printf '= VNC session not found,destroying ghost vms\n'
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 bhyvectl --vm=3D$session --destroy =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 else
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 printf 'Found VNC sess= ion %s\n' "${session},no ghost vms found,not destroying them"=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
done
<= br>vmdisk0=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: = (NM13N4CZ)/ && d{print d}'`
echo "Seagate M3 Portable 1= .8 TB ; $vmdisk0"

vmdisk1=3D`geom disk list | awk '/^Geom n= ame: /{d=3D$NF} /^ *ident: (2022285F1175)/ && d{print d}'`
e= cho "CT1000P1SSD8 ; $vmdisk1"

vmdisk2=3D`geom disk list | = awk '/^Geom name: /{d=3D$NF} /^ *ident: (2015020204055E)/ && d{= print d}'`
echo "TOSHIBA External USB 3.0 1.8 TB ; $vmdisk2&quo= t;

vmdisk3=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *= ident: (20130506005976F)/ && d{print d}'`
echo "TOSHIBA= External USB 3.0 932G ; $vmdisk3"

vmdisk4=3D`geom disk list | = awk '/^Geom name: /{d=3D$NF} /^ *ident: (BE0191500218)/ && d{pr= int d}'`
echo "G-DRIVE USB ; $vmdisk4"

vmdisk5=3D`g= eom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (38434B4237354B= 45)/ && d{print d}'`
echo "Elements 25A3 ; $vmdisk5&quo= t;

vmdisk6=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *= ident: (WD-WCAV2X597309)/ && d{print d}'`
echo "WDC WD3= 200AAJS-00L7A0-298 GB ; $vmdisk6"

vmdisk7=3D`geom disk list | a= wk '/^Geom name: /{d=3D$NF} /^ *ident: (0774911DDC4200A6)/ && d= {print d}'`
echo "SanDisk Cruzer-15GB ; $vmdisk7"

v= mdisk8=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (60A= 44C4138D8F311190A0149)/ && d{print d}'`
echo "Kingston = DataTraveler 2.0 ; $vmdisk8"

vmdisk9=3D`geom disk list | awk &#= 39;/^Geom name: /{d=3D$NF} /^ *ident: (20140100006C)/ && d{print d}= '`
echo "Corsair Force 3 SSD ; $vmdisk9"

vmdisk10= =3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (1924E20B2= AE5)/ && d{print d}'`
echo "CT500MX500SSD4 ; $vmdisk10&= quot;

vmdisk11=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} = /^ *ident: (575845583038524844323238)/ && d{print d}'`
echo = "WD-2500BMV ; $vmdisk11"

vmdisk12=3D`geom disk list | awk = '/^Geom name: /{d=3D$NF} /^ *ident: (57442D575845323039544433303334)/ &= amp;& d{print d}'`
echo "WD-3200BMV ; $vmdisk12"
vmdisk13=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: = (S3Z2NB0KB99028V)/ && d{print d}'`
echo "Seagate M3 Por= table 1.8 TB ; $vmdisk13"

pkexec zpool import -f -R /mnt/zroot2= zroot2

bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A= \
-s 0,hostbridge \
-s 1,virtio-blk,/mnt/zroot2/zroot2/bhyve/img/Lin= ux/ubuntu2210.img,bootindex=3D1 \
-s 9,passthru,5/0/0 \
-s 10,virtio-= blk,/dev/$vmdisk1 \
-s 11,virtio-blk,/dev/$vmdisk3 \
-s 12,virtio-blk= ,/dev/$vmdisk13 \
-s 13,virtio-net,tap19 \
-s 14,virtio-9p,sharename= =3D/ \
-s 29,fbuf,tcp=3D0.0.0.0:5919,w=3D1600,h=3D950,wait \
-s 30,xhci,tablet \
-s 31,= lpc \
-l bootrom,/home/marietto/Desktop/Files/OS/FreeBSD/Scripts/corvin/= bhyve/ACPI/BHYVE_CODE_DEBUG.fd \
vm0:19 < /dev/null & sleep 2 &am= p;& vncviewer 0:19

ma= rietto@marietto:/usr/home/marietto/bhyve # sudo ./19-Ubuntu-2210-ACPI-vm19 =

vm_open: vm0:19 could not be opened: No such = file or directory
ls: /dev/vmm/*: No such file or directory
rtx 2080ti slot 2/0/0 is not attached to ppt,attaching...
rtx 2080ti slot 2/0/1 is not attached to ppt,attaching...
rtx 2080ti slot 2/0/2 is not attached to ppt,attaching...
rtx 2080ti slot 2/0/3 is not attached to ppt,attaching...
rtx 2080ti is fully attached to ppt
Seagate M3 Portable 1.8 TB ; da4
CT1000P1SSD8 ; nvd0
TOSHIBA External USB 3.0 1.8 TB ; da2
TOSHIBA External USB 3.0 932G ; da5
G-DRIVE USB ; da0
Elements 25A3 ; da1
WDC WD3200AAJS-00L7A0-298 GB ; ada2
SanDisk Cruzer-15GB ; =C2=A0
Kingston DataTraveler 2.0 ; =C2=A0
C= orsair Force 3 SSD ; da3
CT500MX500SSD4 ; ada0
WD-2500BMV ; =C2=A0
WD-3200BMV ; =C2=A0
Seagate M3 Portable 1.8 T= B ; ada1
fbuf frame buffer base: 0x661ba800000 [sz 16777216]

TigerVNC Viewer 64-bit v1.12.0
Built on: 2021-11-23 05:59
Copyright (C) 1999-2021 TigerVNC Team and many others (see README.rst)
See https://www.= tigervnc.org for information on TigerVNC.

Fri Mar 31 22:04:09 2023
DecodeManager: Detected 16 CPU core(s)
DecodeManager: Creating 4 decoder thread(s)
CConn: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Connected to host 0 port 59= 19
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
CConnection: Choosing security type None(1)
CConn: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Using pixel format depth 24= (32bpp) little-endian rgb888
wrmsr to register 0x140(0) on vcpu 0
wrmsr to register 0x140(0) on vcpu 1
wrmsr to register 0x140(0) on vcpu 2
wrmsr to register 0x140(0) on vcpu 3
wrmsr to register 0x140(0) on vcpu 4
wrmsr to register 0x140(0) on vcpu 5
wrmsr to register 0x140(0) on vcpu 6
wrmsr to register 0x140(0) on vcpu 7
rdmsr to register 0x64e on vcpu 2
rdmsr to register 0x34 on vcpu 2
rdmsr to register 0xc0011029 on vcpu 3
Unhandled ps2 mouse command 0xe1
Unhandled ps2 mouse command 0x0a
Unhandled ps2 mouse command 0x01
Unhandled ps2 mouse command 0x41
Unhandled ps2 mouse command 0x88
rdmsr to register 0x64d on vcpu 5
rdmsr to register 0x64d on vcpu 0

On Fri, Mar 31, 2023 at 3:1= 8=E2=80=AFPM Corvin K=C3=B6hne <corvink@freebsd.org> wrote:
On Fri, 2023-03-31 at 14:59 +0200, Mari= o Marietto wrote:
> Hello Corvin.
>
> I will try your patch very soon if you=C2=A0 want to write carefully a= ll
> the commands that I should issue. Thanks.
>

I build the firmware as DEBUG and RELEASE version and attached them for
easy testing. Just replace "-l bootrom,/usr/local/share/uefi-
firmware/BHYVE_UEFI.fd" in your bhyve command with "-l
bootrom,/path/to/my/attached/BHYVE_CODE_RELEASE.fd"

If you encounter any issues, please use the DEBUG version as firmware.
It should log debug information on bhyve's serial output. Please attach=
it to your error description.

For those familiar with building EDKII, you can find my patch at:
https://github.com/Beckhoff/edk2/tree/= phab/corvink/acpi-tables


--
Kind regards,
Corvin


--
Mario.
--000000000000213f5f05f83806cc--