From owner-freebsd-emulation@freebsd.org Tue May 21 18:46:32 2019 Return-Path: Delivered-To: freebsd-emulation@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 723CB15B5AFE for ; Tue, 21 May 2019 18:46:32 +0000 (UTC) (envelope-from jkim@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 CBB0C73126 for ; Tue, 21 May 2019 18:46:31 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8950515B5AFA; Tue, 21 May 2019 18:46:31 +0000 (UTC) Delivered-To: emulation@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 4B5C915B5AF9 for ; Tue, 21 May 2019 18:46:31 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DB05B73122 for ; Tue, 21 May 2019 18:46:30 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: by freefall.freebsd.org (Postfix) id C90482E0C; Tue, 21 May 2019 18:46:30 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id C3D792E0B; Tue, 21 May 2019 18:46:30 +0000 (UTC) (envelope-from jkim@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 8513973120; Tue, 21 May 2019 18:46:30 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (static-71-168-218-4.cmdnnj.fios.verizon.net [71.168.218.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jkim/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 467D79354; Tue, 21 May 2019 18:46:30 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: Accelerated graphics in vbox 6 To: Johannes Lundberg , vbox@freebsd.org Cc: FreeBSD X11 References: <4a697e5a-8ecc-cda9-6f80-3e78d09c924f@FreeBSD.org> From: Jung-uk Kim Openpgp: preference=signencrypt Autocrypt: addr=jkim@FreeBSD.org; prefer-encrypt=mutual; keydata= mQENBFJBztUBCAChqNyGqmFuNo0U7MBzsD+q/G6Cv0l7LGVrOAsgh34M8wIWhD+tztDWMVfn AhxNDd0ceCj2bYOe67sTQxAScEcbt2FfvPOLp9MEXb9qohZj172Gwkk7dnhOhZZKhVGVZKM4 NcsuBDUzgf4f3Vdzj4wg6WlqplnTZo8lPE4hZWvZHoFIyunPTJWenybeV1xnxK7JkUdSvQR0 fA59RfTTECMwTrSEfYGUnxIDBraxJ7Ecs/0hGQ7sljIj8WBvlRDU5fU1xfF35aw56T8POQRq F4E6RVJW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k01aB/1o62 Q3Gk/F6BwtNY9OXiqF7AcAo+K/BMIaqb26QKeh+IIgK1NN9dQiq3ByTbl4zpGZa6MmsnnRTu mzGKt2nkz7vBzH6+hZp1OzGZikgjjhYWVFoJo1dvf/rv4obs0ZJEqFPQs/1Qa1dbkKBv6odB XJpPH0ssOluTY24d1XxTiKTwmWvHeQkOKRAIfD7VTtF4TesoZYkf7hsh3e3VwXhptSLFnEOi WwYofg== Message-ID: <874a0def-1e1e-971b-ae65-4e700295a9e9@FreeBSD.org> Date: Tue, 21 May 2019 14:46:23 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <4a697e5a-8ecc-cda9-6f80-3e78d09c924f@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="R16zC5lZuS2lg0DtDbNYgr29EFOAHf0yZ" X-Rspamd-Queue-Id: DB05B73122 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.986,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-Mailman-Approved-At: Tue, 21 May 2019 19:28:09 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 May 2019 18:46:32 -0000 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 To: Johannes Lundberg , vbox@freebsd.org Cc: FreeBSD X11 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 the GL test result to the given file Logging can alternatively be enabled by specifying the VBOXGLTEST_LOG=3D 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--