Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp819871ybn; Tue, 24 Sep 2019 10:00:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZS1P9DThG9PYV1n5PXKYcQHUBNiw1VPWoRgiqUIM2qXfZ++Ka8fr9i6LuItNW0ElJpN90 X-Received: by 2002:a19:3805:: with SMTP id f5mr2470176lfa.173.1569344441856; Tue, 24 Sep 2019 10:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569344441; cv=none; d=google.com; s=arc-20160816; b=c4M8JVJipoM1Jt1O6SfEMttAXJ6tOLlU69Bqlm9K+e3ShL8DSyZyeeHkQA8LcJ7hh6 P5UV+aHCw9E1/wWdftU3EbBykI9Z5CxA8iWvSFoK/5/NpZEaFGSJHMn8p0GwMNT3BDdE 2xlKkQzbqnDC09A1OP9qwvRd8yECsE7BsdWLM8WAbrC2edwo2olu+5IdLzGXFz/7pEQ0 dJz1uj+E9pjHTRKith+P70dPFnxhBKCXA3qZ0jiUPvznt+CiMq5u6g5YgNF1qLRPfZtt wgBq5SrXcK9toJ9Ul004pUTduelJqhmStDxSSIG23Qs5HGNM3R09Ron1FkRXyxHgCNCf 66IQ== 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:openpgp:from:references:cc:to:subject; bh=7Y8XgF9VSWF/4IabhykeB5kMw3gTyZVDX47zu96+jbI=; b=LKVwl2zmw8eOA+4LF740ch8i7KzEFyBMj3kZZP9fheJ7ga4Agpw9TLNP4hT3TLhFuD irtU7v7mX57sKRGpXLtmfYlFiJLYOZ1ZRIk5Gpbr7Zvd3/qex91IDPMlgGqAh6e8oPZj m9b5PVzy9Bb8QK7oK7zb2X0r6KmcqHcOBVuGzC0tnVKNJUIPD/a8NRY6Hf50hY/51hbB yRkJfEmXDbJjy+QKXGfdnXjgP3hhN8uEf/OqD8yGR4voXIo9zGYU4S1MZcA0kwcgY2uQ nQiS0wPneIncYjqFRn4BK7IUt3VP28507UszWKE2g/th/We81pXyfyQgatqDX7xBwLzt 1VQQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f45si1505969edb.166.2019.09.24.10.00.18; Tue, 24 Sep 2019 10:00:41 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436609AbfIWKCy (ORCPT + 99 others); Mon, 23 Sep 2019 06:02:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48520 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407586AbfIWKCy (ORCPT ); Mon, 23 Sep 2019 06:02:54 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D3B4A3B71F for ; Mon, 23 Sep 2019 10:02:53 +0000 (UTC) Received: by mail-wr1-f70.google.com with SMTP id a4so4623787wrg.8 for ; Mon, 23 Sep 2019 03:02:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7Y8XgF9VSWF/4IabhykeB5kMw3gTyZVDX47zu96+jbI=; b=IaGNKsMwMzQLN8zjOcmWh19ZrPQ74EVw4TzGDrWUDW+G418z1tOKvSgbdDtO2sB33b 78Zph5XeE9ThCsPd97BzC5LFxZb7FKnHeas2xos9sFD3XlW65G6Q+eF5gJ3px1TNkClA qq24JkVtZ4xd7z1P7kCt7EP8YUWgP4wDuvBP/M3aqpQdZqy2AbwQI5AtB2VtST6PLSoa ClEdaymCO7rRLP97uV04ULNtlfA9S6JIGxf49pFOluVdBsrgofyRvKiRkHYIvO6/fv1K h0mDXNvwV8ZyJaIIF9hsFXznt7SxChI5WTCs8X4dDG0R3FfBU+Lq4vqiTyVDJb8tfjru pTtg== X-Gm-Message-State: APjAAAW8h2+XhjdNVEmV/kdDphkx5kZ9fZw3UgDjJ8aDhHZqzEjDK0PF VD3YVKBPg1B4wkgeJxjwgCTQRu+KbzFTg5TjW7ATTHzrZ5zhNMw7iHqTqOQeJ2+Jzg9Z/AnlgpE 1RYvmvFw6/TXrLLROOhsnGse8 X-Received: by 2002:a7b:c932:: with SMTP id h18mr12000162wml.86.1569232972397; Mon, 23 Sep 2019 03:02:52 -0700 (PDT) X-Received: by 2002:a7b:c932:: with SMTP id h18mr12000146wml.86.1569232972164; Mon, 23 Sep 2019 03:02:52 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:9520:22e6:6416:5c36? ([2001:b07:6468:f312:9520:22e6:6416:5c36]) by smtp.gmail.com with ESMTPSA id g73sm16566505wme.10.2019.09.23.03.02.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Sep 2019 03:02:51 -0700 (PDT) Subject: Re: [PATCH 10/17] KVM: monolithic: x86: use the external functions instead of kvm_x86_ops To: Andrea Arcangeli Cc: Vitaly Kuznetsov , "Dr. David Alan Gilbert" , Marcelo Tosatti , Peter Xu , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190920212509.2578-1-aarcange@redhat.com> <20190920212509.2578-11-aarcange@redhat.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: <38f723ba-9746-d550-c86f-61807a6f17eb@redhat.com> Date: Mon, 23 Sep 2019 12:02:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190920212509.2578-11-aarcange@redhat.com> Content-Type: text/plain; charset=utf-8 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 20/09/19 23:25, Andrea Arcangeli wrote: > Now that the new methods are plugged in and they are functional use > them instead of invoking the pointer to functions through kvm_x86_ops. > > Signed-off-by: Andrea Arcangeli > --- > arch/x86/include/asm/kvm_host.h | 10 +- > arch/x86/kvm/cpuid.c | 22 +-- > arch/x86/kvm/hyperv.c | 6 +- > arch/x86/kvm/kvm_cache_regs.h | 10 +- > arch/x86/kvm/lapic.c | 28 +-- > arch/x86/kvm/mmu.c | 26 +-- > arch/x86/kvm/mmu.h | 4 +- > arch/x86/kvm/pmu.c | 24 +-- > arch/x86/kvm/pmu.h | 2 +- > arch/x86/kvm/trace.h | 4 +- > arch/x86/kvm/vmx/pmu_intel.c | 2 +- > arch/x86/kvm/x86.c | 304 ++++++++++++++++---------------- > arch/x86/kvm/x86.h | 2 +- Let's make the prefix kvm_x86_ instead of kvm_x86_ops_. Paolo