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
Description: OpenPGP digital signature