From nobody Fri Jul 28 14:16:49 2023 X-Original-To: freebsd-x11@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 4RC8qh53jfz4pdmL; Fri, 28 Jul 2023 14:18:08 +0000 (UTC) (envelope-from ronald@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RC8qh26stz3jf6; Fri, 28 Jul 2023 14:18:08 +0000 (UTC) (envelope-from ronald@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690553888; 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=vagg/7oRqhUZEOYPPE9nd+SjGRdxiMiXrS5m0Te/BOU=; b=EAGpqCdN5/SQ7PTScdriewwykG5DM/WbRkNOn2MEGU7bM0Kd15a8AqHfE+O/TglspVO6TD Fq7DQexEyeFdXTN7zCYeiH4sIx3lJYNqw6RozaVqZaDkkymcZGm6CE0Fn0xo2Pu2bNpZrT ysHAW1pDoWXZhT4Yq0AU4w2GNv2BKtSqlytj4evAI3e1SwyR4jEOyTWMp/LyR2YV3j1364 GuLyeEHaEYB/jIJTlQhRtKnvHsO9VtnL+tusvry+5cZD9LZxr9orKIFybk4G0b93KEL7Qi Za69ySWs7CYTbBlDmhVEIdARh2Fv0PX0Eptowm+W+3ZCn8GmsWj3RAIBaALKmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690553888; 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=vagg/7oRqhUZEOYPPE9nd+SjGRdxiMiXrS5m0Te/BOU=; b=q9eghB1ctYOuCYpMWoJXsb8uDNVSOI1okyG1zlN6TWt9FRPXmZ8lP3b8vPVJvvDNw7TY56 De9Bev4O4IsHt34myPJuKq9wraPuykofUxsuNR7JToyeQc3nhrzVeo4jq5eLvLgqPkPdeh EEfxfPp5wpVGAaxvbW7MXaDJqGJl35BR/h3vRHigWWz03B3gV6LfYQni7l0S+W5gkcXfeZ ETDx/wmZKr0NpdGpibtpSiYm82muN6DOTAq5I9Ye53OZY0WEAWGwA/tG1sWmtcee+ip2BR 8p/0td8m87wXlTjmjaqkF1MULlzUXS2JjF2nmkLGZUu1ty3MwhiERR4qNrNWrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690553888; a=rsa-sha256; cv=none; b=o9iX9OaxnzTBT2XdiSCil34oIefQq4Sb9m4miAdEuUhlC/AHD9IZvys4ChQFhgnArKjhqQ 6eiUbJC85AapLCGOIlALUnNmONXDxbpWkyPTcYoxJTDf0s1pPTTSu0BTqrSO5YNqhmMExb ZRXgJcaMPK951EFrfdvdOiCUx2UYRr9bPQaAdfkTJGDRlZ6E0nZjYmd+SuODNEyQffMAdK 6QjYGjRR6IneVSyNamN9hiwlL3Mkmf1ih0lLFmjIr5MMjcR3ddl1Zm2HoXWM28n9lGiWMQ zc8k3VoA/inr/ee+fcODuia31w5WhqfUz9w9lHgGdsvCAlPSHIUNe0UL96xpWg== Received: from [192.168.1.109] (84-105-120-103.cable.dynamic.v4.ziggo.nl [84.105.120.103]) (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 did not present a certificate) (Authenticated sender: ronald/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RC8qg2D5fz16ZJ; Fri, 28 Jul 2023 14:18:07 +0000 (UTC) (envelope-from ronald@FreeBSD.org) Message-ID: <5b3e32fa-f5cf-b965-a3f6-2788a1c6ef37@FreeBSD.org> Date: Fri, 28 Jul 2023 16:16:49 +0200 List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Subject: Re: Virtual GPU for FreeBSD as guest virtualized with qemu / kvm -- best alternative ? Cirrus ? To: Mario Marietto , freebsd-x11@freebsd.org, FreeBSD virtualization , FreeBSD Mailing List , freebsd-hackers , freebsd-drivers@freebsd.org References: Content-Language: en-US From: Ronald Klop In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/23/23 16:27, Mario Marietto wrote: > Hello to everyone. > > > I would like to virtualize FreeBSD on Windows 11 with qemu-kvm (for Windows). I've end up with the following parameters which are working : > > > |I:\OS\qemu\Linux\qemu\qemu-system-x86_64w.exe -accel whpx -machine q35 \ -cpu Westmere,vendor=GenuineIntel,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check \ -m 8G -vga qxl -audiodev dsound,id=snd0 -device ich9-intel-hda -device \ hda-duplex,audiodev=snd0 \ -hda "I:\OS\ISO\FreeBSD\FreeBSD-13.2-RELEASE-amd64-disc1.iso" \ -hdb "I:\OS\qemu\Linux\FreeBSD.img" -rtc base=localtime \ -device nec-usb-xhci,id=xhci -device usb-tablet -device usb-kbd \ -global nec-usb-xhci.msi=off -smbios type=2 -nodefaults -netdev user,id=net0 \ -device virtio-net-pci,netdev=net0,id=net0,mac=52:54:00:11:22:33 \ -device ich9-ahci,id=sata -bios "I:\OS\qemu\Linux\OSX-KVM-master\OVMF_combined.fd"| > > > Now I'm trying to configure Xorg and the xfce4 desktop environment. Since I'm using qemu,there are a lot of display devices available to try,but I don't know which one is good for FreeBSD. In the website below there is a good list of all options available : > > > https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/ > > > On FreeBSD I have installed the package drm-kmod and it suggests to me to add to the rc.conf file one of these parameters : > > > 1. > > for amdgpu : kld_list="amdgpu" > > 2. > > for intel : kld_list="i915kms" > > 3. > > for radeonkms : kld_list="radeonkms" > > > qemu does not cover any of those. I don't know which option is decent for my case. I would like to try with the cirrus display driver. Maybe this one : > > > https://www.freshports.org/x11-drivers/xf86-video-cirrus/ > > > |So,I have installed this package : pkg install xf86-video-cirrus > > | > > I've rebooted and I have changed |-vga qxl to -vga cirrus| > > FreeBSD recognized it at 0:1:0 > > > 2023-07-23 15_21_33-QEMU.png > > I have created xorg.conf with this content : > > |Section "Device" Identifier "Device0" Driver "cirrus" BusID "PCI:0:1:0" Screen 0 EndSection| > > > error : no screens found. > This is the reason why it does not work : > > > 2023-07-23 15 49 44.png > > but the module seems to be there : > > |cd /usr/local/lib/xorg/modules/drivers/ ls *cirrus_drv.so* ; modesetting_drv.so ; scfb_drv.so ; vesa_drv.so ;| > > > What should I do ? > > -- > Mario. A https://www.freshports.org/x11-drivers/xf86-video-qxl/ driver exists. It didn't work on my qemu on Mac/ARM. Maybe it works for you. Ronald.