Date: Tue, 21 May 2019 12:00:40 -0700 From: Johannes Lundberg <johalun@FreeBSD.org> To: Jung-uk Kim <jkim@FreeBSD.org> Cc: vbox@freebsd.org, FreeBSD X11 <x11@FreeBSD.org> Subject: Re: Accelerated graphics in vbox 6 Message-ID: <d2bc45b6-171d-01d9-4962-ab4665111003@FreeBSD.org> In-Reply-To: <874a0def-1e1e-971b-ae65-4e700295a9e9@FreeBSD.org> References: <4a697e5a-8ecc-cda9-6f80-3e78d09c924f@FreeBSD.org> <874a0def-1e1e-971b-ae65-4e700295a9e9@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi On 5/21/19 11:46 AM, Jung-uk Kim wrote: > 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 It's been there for quite some time and no progress have been made for the time I've been tracking it. Seems abandoned to me and my impression is that that one is scrapped in favor of vmwgfx... Do anyone know if vboxvideo is suppose to be in working state (the one in linux kernel)? > > 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? vmwgfx seems like the better choice if it's used by both vmware and vbox (v6+). But if it's suppose to be in a working state I can take a look.. > >> 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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d2bc45b6-171d-01d9-4962-ab4665111003>