Re: Accelerated graphics in vbox 6

Jung-uk Kim <[email protected]>
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]>
On 19. 5. 21., Johannes Lundberg wrote:
> Hi vbox folks! (cc: x11 list)
> 
> According to this
> https://www.phoronix.com/scan.php?page=article&item=virtualbox-60-vmsvga&num=1
> vbox can now use the vmwgfx kernel driver for accelerated graphics. With
> 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/drivers/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 works
> 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..).  It
> would be cool if we could get accelerated graphics in vbox, with freebsd
> 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 drm
> 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=<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:
...
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
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlzkR4UACgkQfJ+WJvzb
8UbVMQf/eMtwNKsO0wtvUjYTV20r4vaY3nHqQrkB5O3SRnZDlys51dPpoIUBwWeC
3BqLytu4B41r4RZYb5C8rnO6ggp0CJiDZDhZtC4680tzPkufjk30lILuhnPjqfdB
tU3Z4HSSHE108VwFzNlYBL4IhP379KN2VFy7hB1GxxD4IR+ixhl/qNtWY4a7m9FF
ibHf332GBk3OVuLOpjUoPiyl28P56I89pT4mAcsjoohfUiclZe9xBlGELRCo3PD3
oSC+2Dyznxk9Y5dbdhSiEbK5iO6Um9WYKStLh77jfl5luivMYT6zgyaQDv/dC7wV
WC149MKF7qZfL5GBeh0ggwwL7zyTiA==
=bmkd
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.