Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2154379ybl; Sun, 18 Aug 2019 19:49:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbHVABjtjDKO6cbg9E7nSTPR4BHNZzhqbPGjUf6AGuzHYETHwRDFf6yzj+2UtyghOGYSfd X-Received: by 2002:a63:c1c:: with SMTP id b28mr17991031pgl.354.1566182970602; Sun, 18 Aug 2019 19:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566182970; cv=none; d=google.com; s=arc-20160816; b=kbFgXQ6eOdle82eW8h9kLBzn8HyJKmMJreTS1QN8+JUF961R/qL+oc8kkWklK855tH nFohnZp9T0AT0tXKBb4LMDnWhnZdeoGbm1KoN3WPkSNafdiemHgv8D4R774lCe80OJoz oXz1sgyRrqI9F4Zpzfdci6Tq/3gd3ip8XyYDuFiCrGSJfy2/MQSuTGUEsIwVu5EV7oLx 1vuL4Fdp8EGtqrmkHlzujVEs4+sIPcZSg9TykEOdVmbfXxiwOzsx3rihA9hDk3Mhnhp3 rfc9tfk8q3MEfvKTA+p45WGdqgoI6LhaRUXaoQEjJkUVzoZaRo46kMRUF4tlc+6VIo+1 CvQw== 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; bh=2R0IYd/c0eQeHvU0nKjC37Fy7iXKMHdiDNMPUBqbzuI=; b=jCh+xn0uf1+jTNkMvdchQh2IFNW2s4Y2UJsmw5DA8SaHysntpmWB7QWV+OH0dp4Ed+ ATRgJxB30kLm/GakSNpzUFyQLjiiqHWRBQ3g/krdDfTQX5uivIsIe4PEdRDB5x4r24WF irJYCeVII4yeSYhJF+4s4lz+OcdBHYx3p8pvKjyeUDGMqjMgRDhV5WDBeOBpCYYIoH0F 7aluYzqrYv6JP7HrGB4nRmvJKN0r3A5yijTtFAVjLWtTs1/3CFYAWmOSH4baLjMyRQRH Ys4IoI+NnhYGzCQPg8a9YyJBuCIOW1BafVuT7YIh4YSc20r6xNhYNODLAPwxaTcUD5td eplA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b96si7907331plb.56.2019.08.18.19.49.15; Sun, 18 Aug 2019 19:49:30 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726483AbfHSCqd (ORCPT + 99 others); Sun, 18 Aug 2019 22:46:33 -0400 Received: from mga18.intel.com ([134.134.136.126]:28880 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726132AbfHSCqd (ORCPT ); Sun, 18 Aug 2019 22:46:33 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Aug 2019 19:46:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,403,1559545200"; d="scan'208";a="261698076" Received: from genxtest-ykzhao.sh.intel.com (HELO [10.239.143.71]) ([10.239.143.71]) by orsmga001.jf.intel.com with ESMTP; 18 Aug 2019 19:46:31 -0700 Subject: Re: [RFC PATCH 00/15] acrn: add the ACRN driver module To: Greg KH Cc: Borislav Petkov , devel@driverdev.osuosl.org, x86@kernel.org, linux-kernel@vger.kernel.org References: <1565922356-4488-1-git-send-email-yakui.zhao@intel.com> <20190816063925.GB18980@zn.tnic> <20190816070343.GA1368@kroah.com> From: "Zhao, Yakui" Message-ID: <30d31b78-7da6-5344-6f64-b7273b40f611@intel.com> Date: Mon, 19 Aug 2019 10:39:32 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20190816070343.GA1368@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019年08月16日 15:03, Greg KH wrote: > On Fri, Aug 16, 2019 at 08:39:25AM +0200, Borislav Petkov wrote: >> On Fri, Aug 16, 2019 at 10:25:41AM +0800, Zhao Yakui wrote: >>> The first three patches are the changes under x86/acrn, which adds the >>> required APIs for the driver and reports the X2APIC caps. >>> The remaining patches add the ACRN driver module, which accepts the ioctl >>> from user-space and then communicate with the low-level ACRN hypervisor >>> by using hypercall. >> >> I have a problem with that: you're adding interfaces to arch/x86/ and >> its users go into staging. Why? Why not directly put the driver where >> it belongs, clean it up properly and submit it like everything else is >> submitted? >> >> I don't want to have stuff in arch/x86/ which is used solely by code in >> staging and the latter is lingering there indefinitely because no one is >> cleaning it up... > > I agree, stuff in drivers/staging/ must be self-contained, with no > changes outside of the code's subdirectory needed in order for it to > work. That way it is trivial for us to delete it when it never gets > cleaned up :) Thanks for pointing out the rule of drivers/staging. The acrn staging driver is one self-contained driver. But it has some dependency on arch/x86/acrn and need to call the APIs in arch/x86/acrn. If there is no driver, the API without user had better not be added. If API is not added, the driver can't be compiled correctly. The ACRN driver is one new driver. Maybe it will have some bugs and not be mature. So we want to add the driver as the staging. What is the better approach to handle such scenario? > > You never say _why_ this should go into drivers/staging/, nor do you > have a TODO file like all other staging code that explains exactly what > needs to be done to get it out of there. Ok. The TODO file will be added in next version. > > thanks, > > greg k-h >