Date: Thu, 2 May 2024 10:13:56 +0200 From: Mario Marietto <marietto2008@gmail.com> To: Yusuf Khan <yusisamerican@gmail.com> Cc: freebsd-drivers@freebsd.org, freebsd-x11@freebsd.org, freebsd-hackers <freebsd-hackers@freebsd.org>, FreeBSD Mailing List <freebsd-questions@freebsd.org>, FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Re: How to use Virtio GPU on FreeBSD as guest OS. Message-ID: <CA%2B1FSih_QedR=HXpmwdWNCKfCVpBFOPqNOKogM1YwHttnB1KNQ@mail.gmail.com> In-Reply-To: <CAJoG2%2B9rX17i1Z35bCgvoWQPs=fULP2GxxML%2BL6c5UMLq97t5A@mail.gmail.com> References: <CA%2B1FSih=g6UYa=2Pi5WRLFKxPq7K-twgns=aeAKeQ_hoY1s6kQ@mail.gmail.com> <CAJoG2%2B9rX17i1Z35bCgvoWQPs=fULP2GxxML%2BL6c5UMLq97t5A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000006ea444061774319f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable What I find strange is that this configuration works on Windows 11 to virtualize FreeBSD using -device vmware-svga : I:\OS\vms\qemu\qemu-system-x86_64w.exe -accel whpx -machine q35 -cpu kvm64,hv_relaxed,hv_time,hv_synic -m 8G -device vmware-svga,id=3Dvideo0,vgamem_mb=3D16,bus=3Dpcie.0,addr=3D0x1 -audiodev dsound,id=3Dsnd0 -device ich9-intel-hda -device hda-duplex,audiodev=3Dsnd0 = -hda "I:\Backup\FreeBSD\FreeBSD-140-zfs.img" -device hda-duplex,audiodev=3Dsnd0 -drive file=3D\\.\PhysicalDrive4 -drive file=3D\\.\PhysicalDrive5 -drive file=3D\\.\PhysicalDrive6 -drive file=3D\\.\PhysicalDrive8 -drive file=3D\\.\PhysicalDrive12 -rtc base=3Dlocaltime -device usb-ehci,id=3Dusb,bus=3Dpcie.0,addr=3D0x3 -device usb-tablet -device usb-kb= d -smbios type=3D2 -nodefaults -netdev tap,id=3Dmynet0,ifname=3D"OpenVPN-TAP-Windows",script=3Dno,downscript=3Dno = -device e1000,netdev=3Dmynet0,mac=3D52:55:00:d1:55:01 -device ich9-ahci,id=3Dsata -= bios "I:\OS\vms\qemu\OVMF_combined.fd" One can think that it will work even on Linux for the same setup (qemu + hyper-V on Windows 11),but it does not. I'm experiencing a lot of problems when I add -accel whpx on a Debian VM. These problems go away if I remove it. Adding " -device vmware-svga,id=3Dvideo0,vgamem_mb=3D16,bus=3Dpcie.0,addr= =3D0x1" to the qemu / Debian parameters will cause it won't boot. So,this : I:\OS\vms>I:\OS\vms\qemu\qemu-system-x86_64.exe -machine q35 -cpu kvm64,hv_relaxed,hv_time,hv_synic -m 8G -device vmware-svga,id=3Dvideo0,vgamem_mb=3D16,bus=3Dpcie.0,addr=3D0x1 -audiodev dsound,id=3Dsnd0 -device ich9-intel-hda -device hda-duplex,audiodev=3Dsnd0 = -hda "I:\Backup\Linux\Debian.img" -drive file=3D\\.\PhysicalDrive5 -drive file=3D\\.\PhysicalDrive6 -drive file=3D\\.\PhysicalDrive8 -rtc base=3Dloca= ltime -device usb-ehci,id=3Dusb,bus=3Dpcie.0,addr=3D0x3 -device usb-tablet -devic= e usb-kbd -smbios type=3D2 -nodefaults -netdev user,id=3Dnet0 -device e1000,netdev=3Dnet0,id=3Dnet0,mac=3D52:54:00:11:22:33 -device ich9-ahci,id= =3Dsata -bios "I:\OS\vms\qemu\OVMF_combined.fd" will cause the Debian VM to freeze before reaching the login prompt. I don't know if Linux has the proper vmware-svga driver,I didn't find it. Regarding virtualizing Windows 7 on Windows 11 using the same setup,I can't add -accel whpx and most importantly,what I care more, the -device vmware-svga does not work. So,in this kind of setup, *FreeBSD is the winner because it supports everything (hyper-V and the vmware-svga 3D accelerated device.* On Sat, Apr 27, 2024 at 9:41=E2=80=AFPM Yusuf Khan <yusisamerican@gmail.com= > wrote: > So your issue is that the performance is worse than Linux? > > There is no 3d graphics driver for virtio in mainline drm-kmod but > https://github.com/freebsd/drm-kmod/pull/119 has > experimental support, although that PR exists it seems to be > non-functional with a crash. > --=20 Mario. --0000000000006ea444061774319f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"> <div class=3D"gmail-h7 gmail-bg" role=3D"listitem" aria-expanded=3D"true" t= abindex=3D"-1"><div class=3D"gmail-Bk"><div class=3D"gmail-G3 gmail-G2"><di= v><div id=3D"gmail-:1hj"><div><div class=3D"gmail-adn gmail-ads"><div class= =3D"gmail-gs"><div class=3D"gmail-"><div id=3D"gmail-:1im" class=3D"gmail-i= i gmail-gt"><div id=3D"gmail-:1il" class=3D"gmail-a3s gmail-aiL"><div dir= =3D"ltr"><div>What I find strange is that this configuration works on Windo= ws 11 to virtualize FreeBSD using=20 -device vmware-svga :<br></div><div><br></div><div>I:\OS\vms\qemu\qemu-syst= em-x86_64w.exe -accel whpx -machine q35 -cpu kvm64,hv_relaxed,hv_time,hv_sy= nic -m 8G -device vmware-svga,id=3Dvideo0,vgamem_mb=3D16,bus=3Dpcie.0,addr= =3D0x1 -audiodev dsound,id=3Dsnd0 -device ich9-intel-hda -device=20 hda-duplex,audiodev=3Dsnd0 -hda "I:\Backup\FreeBSD\FreeBSD-140-zfs.img= " -device hda-duplex,audiodev=3Dsnd0 -drive file=3D\\.\PhysicalDrive4 -drive= =20 file=3D\\.\PhysicalDrive5 -drive file=3D\\.\PhysicalDrive6 -drive=20 file=3D\\.\PhysicalDrive8 -drive file=3D\\.\PhysicalDrive12 -rtc=20 base=3Dlocaltime -device usb-ehci,id=3Dusb,bus=3Dpcie.0,addr=3D0x3 -device = usb-tablet -device usb-kbd -smbios type=3D2 -nodefaults -netdev tap,id=3Dmy= net0,ifname=3D"OpenVPN-TAP-Windows",script=3Dno,downscript=3Dno -= device e1000,netdev=3Dmynet0,mac=3D52:55:00:d1:55:01 -device ich9-ahci,id= =3Dsata -bios "I:\OS\vms\qemu\OVMF_combined.fd"</div><div><br></d= iv><div>One can think that it will work even on Linux for the same setup (qemu +=20 hyper-V on Windows 11),but it does not. I'm experiencing a lot of=20 problems when I add -accel whpx on a Debian VM. These problems go away=20 if I remove it. <br></div><div><br></div><div> <div>Adding " -device vmware-svga,id=3Dvideo0,vgamem_mb=3D16,bus=3Dpcie.0,addr=3D0x1&quo= t; to the qemu / Debian parameters will cause it won't boot. So,this :<= /div><div><br></div><div><br></div><div>I:\OS\vms>I:\OS\vms\qemu\qemu-sy= stem-x86_64.exe -machine q35 -cpu kvm64,hv_relaxed,hv_time,hv_synic -m 8G -= device vmware-svga,id=3Dvideo0,vgamem_mb=3D16,bus=3Dpcie.0,addr=3D0x1 -audiodev dsound,id=3Dsnd0 -device ich9-intel-hda -device=20 hda-duplex,audiodev=3Dsnd0 -hda "I:\Backup\Linux\Debian.img" -dri= ve=20 file=3D\\.\PhysicalDrive5 -drive file=3D\\.\PhysicalDrive6 -drive=20 file=3D\\.\PhysicalDrive8 -rtc base=3Dlocaltime -device=20 usb-ehci,id=3Dusb,bus=3Dpcie.0,addr=3D0x3 -device usb-tablet -device=20 usb-kbd -smbios type=3D2 -nodefaults -netdev user,id=3Dnet0 -device=20 e1000,netdev=3Dnet0,id=3Dnet0,mac=3D52:54:00:11:22:33 -device ich9-ahci,id= =3Dsata -bios "I:\OS\vms\qemu\OVMF_combined.fd"</div><div><br></d= iv><div><br></div><div></div><div>will cause the Debian VM to freeze before reaching the login prompt. I=C2=A0=20 don't know if Linux has the proper vmware-svga driver,I didn't find= it.</div><div><br></div> </div><div>Regarding virtualizing Windows 7 on Windows 11 using the same setup,I can't add -accel whpx and most= =20 importantly,what I care more, the=20 -device vmware-svga does not work. So,in this kind of setup,<b>FreeBSD is= =20 the winner because it supports everything (hyper-V and the vmware-svga 3D a= ccelerated device.<br></b></div></div></div></div></div></div></div></div><= /div></div></div></div></div><table cellpadding=3D"0" class=3D"gmail-cf gma= il-gJ"><tbody><tr class=3D"gmail-acZ"><td class=3D"gmail-gH"><br></td><td c= lass=3D"gmail-gH gmail-acX gmail-bAm" rowspan=3D"2"></td></tr></tbody></tab= le><table cellpadding=3D"0" class=3D"gmail-cf gmail-gJ"><tbody><tr class=3D= "gmail-acZ gmail-xD"><td colspan=3D"3"><table cellpadding=3D"0" class=3D"gm= ail-cf gmail-adz"><tbody><tr><td class=3D"gmail-ady"></td></tr></tbody></ta= ble></td></tr></tbody></table></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Sat, Apr 27, 2024 at 9:41=E2=80=AFPM Yusuf= Khan <<a href=3D"mailto:yusisamerican@gmail.com">yusisamerican@gmail.co= m</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin= :0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"= >So your issue is that the performance is worse than Linux?<br> <br> There is no 3d graphics driver for virtio in mainline drm-kmod but<br> <a href=3D"https://github.com/freebsd/drm-kmod/pull/119" rel=3D"noreferrer"= target=3D"_blank">https://github.com/freebsd/drm-kmod/pull/119</a> has<br> experimental support, although that PR exists it seems to be<br> non-functional with a crash.<br> </blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d= iv> --0000000000006ea444061774319f--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSih_QedR=HXpmwdWNCKfCVpBFOPqNOKogM1YwHttnB1KNQ>