Received: by 10.223.164.202 with SMTP id h10csp2090497wrb; Mon, 27 Nov 2017 11:45:03 -0800 (PST) X-Google-Smtp-Source: AGs4zMaU0kXLpxJGwQnf2I93U9f6tW4KjtJoENLixZje7XpuFQMCbEVnJTTNnbJUVRDi6RZF6XiV X-Received: by 10.101.88.76 with SMTP id s12mr38471389pgr.215.1511811903441; Mon, 27 Nov 2017 11:45:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511811903; cv=none; d=google.com; s=arc-20160816; b=qOuegow7t8X9g0xgXIY4wUr2h1ZshAW3bvBwCFHZfnph6T0Cj57bGGWpgAIis6mW9i /gfnelBuvJqLuDaiKy2D3uTBxwot5kakYe8WKY9+o+TpR+U0L5DbQc0QnRqECWdUjt+Y aWJpzlsbY2u4geancV4GlhShkAqcuBen9H3HhAV7ZKJQeNO1/NWA3z/Pi9KkWhdPrkzx 3j1wud982pPnVndm4cSJTaeDeoMGFyylPXRcUhoOBgNcXLurHhLwnGBBo72rljEOxuLx mig2hFnnHuQUQneUN/cUS8LLnqqCttKC/3Ypsftu+psXzc0KCGuhAdyW9OQpQxt07Ehz E8Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=hUtlngAdk3x9ygzFmTZ+wPbL/O6ccCGTq+O2NP9mF68=; b=vt2v0QLZWrsBiW2e3SrhYtBCMU/rXzwf1utVaQEDzBcrLiwZsO4Cic+zvvCjnyUAfs Ui9iuebENb6x8dtk4mywIpS0GfwD7EyKAzDyRgvHaD4u/dv75gD/CzxurWDEfv+mAWEc 5l5rk3pXDIbtzDadiNbM7YD8KKs8XuzpXpH/grZs+qdUDapAL1BBLnX8jNxUxjFTKA1s 7qnPdk2dmthLz2errNTdu6tFrFUgJtZEb+kkUNanFJs1MjG+23ZFmLUxueZ9wFvuWB9U hfyPEj1BCkGKfZr9NCUmy2nUHD65SehT26abfhdSx19ic+6ddER791I6kYloxau2K2rO 1iJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=m4f5kHbn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e63si23332267pfm.46.2017.11.27.11.44.51; Mon, 27 Nov 2017 11:45:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=m4f5kHbn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753448AbdK0ToL (ORCPT + 79 others); Mon, 27 Nov 2017 14:44:11 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:41434 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753100AbdK0ToJ (ORCPT ); Mon, 27 Nov 2017 14:44:09 -0500 Received: by mail-oi0-f65.google.com with SMTP id h81so20248517oib.8 for ; Mon, 27 Nov 2017 11:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hUtlngAdk3x9ygzFmTZ+wPbL/O6ccCGTq+O2NP9mF68=; b=m4f5kHbnZZDq5rwS/K+JMk/dcey21t93G6Oq03TUuYrUtDoaRSeNIIdUPtPuxtoJcq 9/pQpQo1whT2Z/11Ur/uUNHOtIpySAMeKU8ax9ofTn3VZH2vhG3m5R72Y5jtzH5iH1If Rj2DLlJFz2ejj/sODvBYjac70cecBiTbvoilI4b2wolkeWWz6h9vRzIgP7sLDJccGyN+ tRk6UXt3BruMgbbzsZ6a+ZV7gkI1qduUCVlm3Ngol62CmAtSpcYljSAJqUUH0ayG3pl7 WjCI3HMpVhk3E4rBYwdtxVBcUHN85/mLKnnjTrczzKQ+9Ce/x7SY4SDJaY8WgBiDAERx +54w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hUtlngAdk3x9ygzFmTZ+wPbL/O6ccCGTq+O2NP9mF68=; b=jA0ESqukCxv/OMfzLZuTaGUScAPQglYUtA+1eugp1teYDjlb5sR+B4hVWFx0V2iNnU Z+cltCRFsg6vaOXvloWQAXOJV81qfawopWNZ/Crtz4y5ou91pmqVPUaPE0gpKJkGOUTB pfsbttpy0yfRFQz7Jh0doFLyVTYHMdJzoJutwT1e+j5JKg+tY3XrT2FI0ujGnUSlfe6k OpctXQLcZ42rONpdztqIng2vl0XuJSmuKub3oN2loemG/wvbXu+W6fpiBkEigmBRd/Q3 LuD2GuR1Z4VSrflmT6pcIf4MbvQtN9f6UUKabm8b91IIeSxKx0XAOa5fJRoq4wfX5mDH 9TDQ== X-Gm-Message-State: AJaThX6/0846m5LlLcOYcy++oaJ9q6h6LylUHtbvbcqrzP+ag3ztHSS5 +YalCtNR9cdQBr8iMLq8Pjax1Q== X-Received: by 10.202.236.135 with SMTP id k129mr16915342oih.57.1511811849059; Mon, 27 Nov 2017 11:44:09 -0800 (PST) Received: from Larrylap.localdomain (cpe-24-31-251-255.kc.res.rr.com. [24.31.251.255]) by smtp.gmail.com with ESMTPSA id w47sm12585793ota.42.2017.11.27.11.44.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Nov 2017 11:44:08 -0800 (PST) Subject: Re: [PATCH resend v2 0/3] virt: Add vboxguest driver for Virtual Box Guest integration To: Hans de Goede , Arnd Bergmann , Greg Kroah-Hartman Cc: Michael Thayer , "Knut St . Osmundsen" , Christoph Hellwig , linux-kernel@vger.kernel.org References: <20171126151221.26410-1-hdegoede@redhat.com> From: Larry Finger Message-ID: Date: Mon, 27 Nov 2017 13:44:07 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171126151221.26410-1-hdegoede@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/26/2017 09:12 AM, Hans de Goede wrote: > Here is resend of v2 of my cleaned up version of the VirtualBox vboxguest > driver, rebased on top of current the master from Linus. > > Note there currently is an issue with vboxvideo in the current master from > Linus, this is fixed by this patch: > https://patchwork.freedesktop.org/patch/189812/ > > Once this is merged, I will do some further cleanups on the vboxsf driver > and also submit that upstream, if people want to test it before then, here > is a version which applies on top of this series: > https://github.com/jwrdegoede/linux-sunxi/commit/7f18b741945de3ae09ca8f1a9e48456ce32986c9 > > Changes in v2: > -Change all uapi headers to kernel coding style: Drop struct and enum typedefs > make type and struct-member names all lowercase, enum values all uppercase. > -Remove unused struct type declarations from some headers (shaving of another > 1000 lines) > -Remove or fixup doxygen style comments > -Get rid of CHECK macros, use a function taking in_ and out_size args instead > -Some other small codyingstyle fixes > -Split into multiple patches > > Here is (part of) the v1 cover-letter which is still relevant: > > VirtualBox upstream has declared the ioctl API for the /dev/vboxguest device > as being stable now, so once this passes review this is ready for merging. > > I'm only submitting the vboxguest driver for now, as the vboxsf driver > depends on this and it easier to first just get the vboxguest driver > upstream. > > I've removed all depenencies on vbox's OS-independent runtime and > the runtime itself, reducing the vboxguest driver from 100000+ lines > of code to aprox. 4300 lines. 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 from now on. Hans, I have finished reviewing the commits for vboxguest. Most of my comments are minor. I did have two problems when I tried to build these commits and the one that creates vboxsf. The more serious one is that it is possible to build vboxguest without vboxvideo. When that happens, a non-privileged user cannot start X. As I say in the review, I think that combination does not make sense and should not be allowed. When the system is booted, vboxsf is not loaded, and the shared folders are not automounted. Of course, that issue is not germane to these patches, but will be important when vboxsf is merged. From 1585142149585505361@xxx Sun Nov 26 15:15:55 +0000 2017 X-GM-THRID: 1585142010203838290 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread