From owner-freebsd-x11@freebsd.org Tue May 21 19:00:44 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED75015B5FA5 for ; Tue, 21 May 2019 19:00:43 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 84D857391D for ; Tue, 21 May 2019 19:00:43 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 43E5215B5F97; Tue, 21 May 2019 19:00:43 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F14115B5F96 for ; Tue, 21 May 2019 19:00:43 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B81F873917; Tue, 21 May 2019 19:00:42 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from [10.46.14.95] (wsip-72-212-151-146.ph.ph.cox.net [72.212.151.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: johalun) by smtp.freebsd.org (Postfix) with ESMTPSA id 3E4F7947E; Tue, 21 May 2019 19:00:42 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Subject: Re: Accelerated graphics in vbox 6 To: Jung-uk Kim Cc: vbox@freebsd.org, FreeBSD X11 References: <4a697e5a-8ecc-cda9-6f80-3e78d09c924f@FreeBSD.org> <874a0def-1e1e-971b-ae65-4e700295a9e9@FreeBSD.org> From: Johannes Lundberg X-Tagtoolbar-Keys: D20190521120040753 Message-ID: Date: Tue, 21 May 2019 12:00:40 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <874a0def-1e1e-971b-ae65-4e700295a9e9@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: B81F873917 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.982,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 May 2019 19:00:44 -0000 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 the GL test result to the given file > > Logging can alternatively be enabled by specifying the > VBOXGLTEST_LOG= 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 >