Date: Tue, 21 May 2019 14:46:23 -0400 From: Jung-uk Kim <jkim@FreeBSD.org> To: Johannes Lundberg <johalun@FreeBSD.org>, vbox@freebsd.org Cc: FreeBSD X11 <x11@FreeBSD.org> Subject: Re: Accelerated graphics in vbox 6 Message-ID: <874a0def-1e1e-971b-ae65-4e700295a9e9@FreeBSD.org> In-Reply-To: <4a697e5a-8ecc-cda9-6f80-3e78d09c924f@FreeBSD.org> References: <4a697e5a-8ecc-cda9-6f80-3e78d09c924f@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --R16zC5lZuS2lg0DtDbNYgr29EFOAHf0yZ Content-Type: multipart/mixed; boundary="9j3BooshPGAT3YPwubm3VgpZ3sSpJmVCN"; protected-headers="v1" From: Jung-uk Kim <jkim@FreeBSD.org> To: Johannes Lundberg <johalun@FreeBSD.org>, vbox@freebsd.org Cc: FreeBSD X11 <x11@FreeBSD.org> Message-ID: <874a0def-1e1e-971b-ae65-4e700295a9e9@FreeBSD.org> Subject: Re: Accelerated graphics in vbox 6 References: <4a697e5a-8ecc-cda9-6f80-3e78d09c924f@FreeBSD.org> In-Reply-To: <4a697e5a-8ecc-cda9-6f80-3e78d09c924f@FreeBSD.org> --9j3BooshPGAT3YPwubm3VgpZ3sSpJmVCN Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 19. 5. 21., Johannes Lundberg wrote: > Hi vbox folks! (cc: x11 list) >=20 > According to this > https://www.phoronix.com/scan.php?page=3Darticle&item=3Dvirtualbox-60-v= msvga&num=3D1 > vbox can now use the vmwgfx kernel driver for accelerated graphics. Wit= h > that I assume that virtualbox's own drm driver project is scrapped. Actually, they moved vboxvideo KMS/DRM driver to Linux kernel. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/d= rivers/gpu/drm/vboxvideo And DDX driver was moved to Xorg repository. https://cgit.freedesktop.org/xorg/driver/xf86-video-vbox > I've been working on porting vmwgfx from Linux to our linuxkpi. It work= s > pretty well with freebsd 13 as vmware guest on macos as long you're > using only one vcpu (some race condition issue to be solved..).=C2=A0 I= t > would be cool if we could get accelerated graphics in vbox, with freebs= d > as both host and guest since vmware can't run as host on freebsd. Can you please port the vboxvideo driver to linuxkpi? > Do you have any idea what would be required to get the host side of > things working? Will it work automagically if the freebsd host has a dr= m > driver loaded or do we need to port some code form linux/ to freebsd/ > within virtualbox? Host driver is not necessary but it requires certain OpenGL extensions and VirtualBox comes with a tool to check 2D/3D acceleration requirements for hosts. % /usr/local/lib/virtualbox/VBoxTestOGL --help Oracle VM VirtualBox Helper for testing 2D/3D OpenGL capabilities 6.0.8 (C) 2009-2019 Oracle Corporation All rights reserved. Parameters: --test 2D test for 2D (video) OpenGL capabilities --test 3D test for 3D OpenGL capabilities --log <log_file_name> log the GL test result to the given file Logging can alternatively be enabled by specifying the VBOXGLTEST_LOG=3D<log_file_name> env variable For example: % /usr/local/lib/virtualbox/VBoxTestOGL --test 3D --log vbox.log % cat vbox.log 00:00:00.000237 VBoxTestGL 6.0.8 r130347 freebsd.amd64 (May 16 2019 20:29:43) release log 00:00:00.000248 Log opened 2019-05-21T18:26:09.011262000Z 00:00:00.000304 OS Product: FreeBSD 00:00:00.000317 OS Release: 13.0-CURRENT 00:00:00.000329 OS Version: FreeBSD 13.0-CURRENT r347991 BEASTIE 00:00:00.000338 Executable: /usr/local/lib/virtualbox/VBoxTestOGL 00:00:00.000339 Process ID: 3330 00:00:00.000340 Package type: BSD_64BITS_GENERIC (OSE) 00:00:00.000350 Testing 3D Support: =2E.. 00:00:00.396090 Testing 3D Succeeded! > I'm happy to work together with you and put more effort into getting > vmwgfx running stable in vmware/vbox if we can get host side of things > working in vbox 6. Thanks for working on it! Jung-uk Kim --9j3BooshPGAT3YPwubm3VgpZ3sSpJmVCN-- --R16zC5lZuS2lg0DtDbNYgr29EFOAHf0yZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlzkR4UACgkQfJ+WJvzb 8UbVMQf/eMtwNKsO0wtvUjYTV20r4vaY3nHqQrkB5O3SRnZDlys51dPpoIUBwWeC 3BqLytu4B41r4RZYb5C8rnO6ggp0CJiDZDhZtC4680tzPkufjk30lILuhnPjqfdB tU3Z4HSSHE108VwFzNlYBL4IhP379KN2VFy7hB1GxxD4IR+ixhl/qNtWY4a7m9FF ibHf332GBk3OVuLOpjUoPiyl28P56I89pT4mAcsjoohfUiclZe9xBlGELRCo3PD3 oSC+2Dyznxk9Y5dbdhSiEbK5iO6Um9WYKStLh77jfl5luivMYT6zgyaQDv/dC7wV WC149MKF7qZfL5GBeh0ggwwL7zyTiA== =bmkd -----END PGP SIGNATURE----- --R16zC5lZuS2lg0DtDbNYgr29EFOAHf0yZ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?874a0def-1e1e-971b-ae65-4e700295a9e9>