Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp844279ybn; Wed, 25 Sep 2019 08:31:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqza4pnhOkMIs90/ED0gnaJLqUi/0XuZw2WVqhtT9YFRUebUhv04Dbs61Mb6+hdueJt5olfW X-Received: by 2002:a05:6402:290:: with SMTP id l16mr3614838edv.178.1569425477651; Wed, 25 Sep 2019 08:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569425477; cv=none; d=google.com; s=arc-20160816; b=Hx/3H1fDovf5y99ol0GXWvROqZwsh5qaRjIBh2h4z9jhEalm+J4JCWf0jofzoIM8Xh YW8ZR5Knz8wx66JVOFNz0rMQkV7OipHun0JSxpBXuveGyqJWnLZSRHChLK8lNkY1zVLW TEAmlz+vFFFKyTKGJvj1T7BEPX9BATzCRPHWADM9j/xrpJreswskYCGXfXucXxY17B7b 5cpaiLiAiSLRVV5JH4cilSodbxkOa9d6Aj6Q7jyYTD390/eajGwtJhvsF1rOyd7OxZkX e3KFmNSDjZhPcZYa67CCTnJwvcNLCRl/TcoJS3VnViHLXpjqYaeD9SWi6+jdaaLIMl9r 8BzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GsArsM2UAMXAIhKQHzkEyS5Us7TO2hIWn0TeFIkEI4A=; b=00rWfHldM8EMq0uF9OrDlAbZLMFIE03fj9347ljsMwBDtbaA/D/8lVFV43wWq5yd3a uDUlJsCt9CnjGRKu5AEpIa3wPlVlPExqjRkS/rhQ/NLvpdEj7kpGz5dHi/mNcF/3RUvj G09BVi1A0AkMf+T53JFLCcdNKeENDS7zy/Een4nvzBOcvcQ80Ml1y1bP8fkxQdgsaLku 6eR79y35qPPWK7F/38BPlHSTIDYk0bPrulDiDb8JhTnQ3Ls79npuDwlLUZNlSZLfv1Al QvU/DMH8AK2Vyh1Ldl9BD3cAsJAUnrTVpBlA2hz1SF4uLGW8ClH8bUypeHL72jB3Xwbk j7hA== 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 d2si2928559ejc.136.2019.09.25.08.30.53; Wed, 25 Sep 2019 08:31:17 -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 S1732303AbfIWPjt (ORCPT + 99 others); Mon, 23 Sep 2019 11:39:49 -0400 Received: from mga03.intel.com ([134.134.136.65]:59368 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726922AbfIWPjt (ORCPT ); Mon, 23 Sep 2019 11:39:49 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Sep 2019 08:39:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,540,1559545200"; d="scan'208";a="179166708" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.41]) by orsmga007.jf.intel.com with ESMTP; 23 Sep 2019 08:39:48 -0700 Date: Mon, 23 Sep 2019 08:39:48 -0700 From: Sean Christopherson To: Andrea Arcangeli Cc: Paolo Bonzini , Vitaly Kuznetsov , "Dr. David Alan Gilbert" , Marcelo Tosatti , Peter Xu , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/17] KVM monolithic v1 Message-ID: <20190923153948.GB18195@linux.intel.com> References: <20190920212509.2578-1-aarcange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190920212509.2578-1-aarcange@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 20, 2019 at 05:24:52PM -0400, Andrea Arcangeli wrote: > Andrea Arcangeli (17): > x86: spec_ctrl: fix SPEC_CTRL initialization after kexec > KVM: monolithic: x86: convert the kvm_x86_ops methods to external > functions > KVM: monolithic: x86: handle the request_immediate_exit variation > KVM: monolithic: x86: convert the kvm_pmu_ops methods to external > functions > KVM: monolithic: x86: enable the kvm_x86_ops external functions > KVM: monolithic: x86: enable the kvm_pmu_ops external functions > KVM: monolithic: x86: adjust the section prefixes > KVM: monolithic: adjust the section prefixes in the KVM common code > KVM: monolithic: x86: remove kvm.ko IMO, the conversion to a monolithic module should occur immediately, i.e. "KVM: monolithic: x86: remove kvm.ko" should be patch 01/nn. Removing kvm_x86_ops and kvm_pmu_ops isn't a preqrequisite to making KVM a monolothic module, rather they're enhancements that are made possible *because* KVM is a monolithic module. With that ordering, I suspect the convert->enable->use of kvm_x86_ops can be collapsed into a single patch. > KVM: monolithic: x86: use the external functions instead of kvm_x86_ops > KVM: monolithic: x86: remove exports > KVM: monolithic: remove exports from KVM common code > KVM: monolithic: x86: drop the kvm_pmu_ops structure > KVM: monolithic: x86: inline more exit handlers in vmx.c > KVM: retpolines: x86: eliminate retpoline from vmx.c exit handlers > KVM: retpolines: x86: eliminate retpoline from svm.c exit handlers > x86: retpolines: eliminate retpoline from msr event handlers