From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753015AbdHKNXa (ORCPT ); Fri, 11 Aug 2017 09:23:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57160 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752883AbdHKNX2 (ORCPT ); Fri, 11 Aug 2017 09:23:28 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1049272F2B Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=hdegoede@redhat.com From: Hans de Goede To: Arnd Bergmann , Greg Kroah-Hartman , Alexander Viro Cc: Hans de Goede , Michael Thayer , "Knut St . Osmundsen" , Larry Finger , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC 0/2] Add Virtual Box vboxguest and vboxsf guest drivers to the mainline kernel Date: Fri, 11 Aug 2017 15:23:22 +0200 Message-Id: <20170811132324.6216-1-hdegoede@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 11 Aug 2017 13:23:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Greg, Arnd, Alexander, et al., Here is a first RFC version of my cleaned up version of the VirtualBox vboxguest and vboxsf guest drivers. This is an RFC because there are still some checkpatch and other small style issues which I need to fix. I'm posting this now because the majority of the major cleanup these 2 drivers needed before being suitable for mainlining has been done now and I believe the code is ready for a quick look by others (but not ready yet for a full review). I've removed all depenencies on vbox's OO-independent runtime and the runtime itself, reducing the vboxguest driver from 100000+ lines of code to aprox. 6500 and the vboxsf driver from 60000 lines to 5000. This reduces the non debug vboxguest.ko size from 450kB to less then 100 kB. I've also cleaned up various other warts such as doing hardware init in module_init rather then in a pci_probe callback. The vboxguest driver introduces a new userspace API + ABI in the form of ioctls on a character device. VirtualBox upstream not willing to commit to keeping this ABI stable was one of the things which has kept this driver driver out of mainline sofar. I've been talking to VirtualBox upstream about mainlining the guest drivers and VirtualBox upstream has agreed to consider the userspace ABI stable and only extend it in a backwards compatible manner. As said this is a RFC, the main comments I'm looking for is an answer to these 2 questions: Greg, Arnd would you be willing to merge the vboxguest driver under drivers/misc (in principle), assuming I do the remaining cleanup and the driver gets a favorable review of course ? Al, the same question for you for the vboxsf (shared folder) driver? Regards, Hans