Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2438495pxb; Mon, 11 Jan 2021 09:36:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwb4cCkdGM+N7Z/4jG/pgcI4T27BxD8Dy5uw/EnLpdSNAgxX5Jh5qIaYDxZzcllyBaVS5C X-Received: by 2002:a17:906:339a:: with SMTP id v26mr383756eja.107.1610386597918; Mon, 11 Jan 2021 09:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610386597; cv=none; d=google.com; s=arc-20160816; b=lioNVVLvcMmBdBTiZ2nfDIVu7Eke7ueQPyHHe4Ndp6wu7s6MQHfgFjXufIm2mRi4fG GSTjIDoM1wmlhOvDiwjipGyv6M1L7Ft/62J0NJHNacdxbmVhZcJs9T/b1NdBQ+QfvXlQ cC//N9SYGMbUN/3nA6IMsF0K+eXhUrt9H760t6IpTSc714bgMsunCnMqpPs2er+Md/wh UbANSlqrURg5OWUUPYwF95wEZr7O93fcd0ZB6jAjzLqPvRVCfjUQjBE7mlNCB3OrNmgN I19B0iYtFtYVdEySls3uLpwhSMtizc3rp7EgndCYNMTGE/iQzLsI7eBY6CMNO+SB364T MStQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=zsTOKgciTV89wIpixObU4B7sv76RXsMzj7Th3SejzMQ=; b=Q5iQqqVeuUJDe1FcUMy5NWxdIZGqdxs0QVw9LrLFZPJ7CVK5T2m1HAbmxB8UqD2PoI VrSguGKhQdbwM9/kQiMBfPSJraJOfFUWBRFc7PEuvC8YVxxCLDnbmUfwt/3L2wuyagBE iXfpYxJOe5vwjKVFtQ+YvlQVgTpVHhUantHdk5RxiHVFgh/kBrotmA3opGphw15Iz+MK q7tYwPS4Y/n2YNgmEppn6jL0TYXmlMwGDL/HDJYhMAX9Guhrvcz+y3G0tJf2UU4HV8Cq +lAVNulu2vhYnKYdx2gp49TZNJR3ykucHSxTmQ4FaVMz4MSBJWVNpWaXrlHSOZ3pjtOD sa3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TG+yET7T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kt26si43268ejb.443.2021.01.11.09.36.13; Mon, 11 Jan 2021 09:36:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TG+yET7T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389579AbhAKRdc (ORCPT + 99 others); Mon, 11 Jan 2021 12:33:32 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:60061 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728844AbhAKRda (ORCPT ); Mon, 11 Jan 2021 12:33:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610386324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zsTOKgciTV89wIpixObU4B7sv76RXsMzj7Th3SejzMQ=; b=TG+yET7T8TXhtt4nVvh0VRd/WhUCMbhfooXcJAZKFHNHYPJJBDnaPJp3Bz2dWaDHBma/we DFAYors+/886estPDFZbAZgY70MMd28//yBGETH1j5cYmY1Xne0A3cV2+wdzdtdmF7s2Zi Bso+kxSA7Qu1pfubmPw9caUFEdHQ6dY= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-50-lMe6FmgJPmqc99WWaGG6ng-1; Mon, 11 Jan 2021 12:32:03 -0500 X-MC-Unique: lMe6FmgJPmqc99WWaGG6ng-1 Received: by mail-ed1-f72.google.com with SMTP id bf13so14387edb.10 for ; Mon, 11 Jan 2021 09:32:02 -0800 (PST) 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zsTOKgciTV89wIpixObU4B7sv76RXsMzj7Th3SejzMQ=; b=n5BjVUXzd1/STsSbOO1sgXKVhbcJUDirx7FSlw5mI/A2SXMbgadz/hjCqwxtEup/nf VLyrHeRDLWKLkpy7ADRpXIhu2ZzxelN+JUqmi3cpT50idWmoFUgWtNp7Scuk3le9xLuY 0HnZYPcJzmA3ZMuvajMZBypAdj0+Nzgfov+Zp3vBB6f3232z/1paFNc9aX1ZAkZUH5/8 DsAyCrQhxslOyX2O0L1XbLQIYVzehQmnVizxe4Fblk1029qHCVPHrOLbgKnPhGhyFDKN EIt+vjHc6yKKEn+c872Sn9D1n09BFIm+DNOjrHSX0zed4Vy0awzVanzTsFYSbW0LKUxG wL3A== X-Gm-Message-State: AOAM530b9gc1gl6Yo0nYvngTMi+zi/JPX6DN/85/It2uyR+PTh4/BV4D GYO1ZCcT6YF8AWJqVyy8kSwjch+CIXdnmfx1Kupo62zGrmbqi0ARQI885VewMRt7nxrtC5y2cZm EhdQS1f3Ye4g9oiXwZFIe1xzVVMJLXY+Io1RP7F4mGNuJnVDsxvI3yG9NVKMSv0ZLczDXAVxNAD rm X-Received: by 2002:a17:906:65a:: with SMTP id t26mr378414ejb.394.1610386321183; Mon, 11 Jan 2021 09:32:01 -0800 (PST) X-Received: by 2002:a17:906:65a:: with SMTP id t26mr378393ejb.394.1610386320959; Mon, 11 Jan 2021 09:32:00 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id dk16sm105625ejb.85.2021.01.11.09.31.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Jan 2021 09:32:00 -0800 (PST) Subject: Re: [PATCH 0/2] Use static_call for kvm_x86_ops To: Jason Baron , kvm@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, peterz@infradead.org, aarcange@redhat.com, x86@kernel.org, linux-kernel@vger.kernel.org References: From: Paolo Bonzini Message-ID: Date: Mon, 11 Jan 2021 18:31:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/01/21 17:57, Jason Baron wrote: > Hi, > > Convert kvm_x86_ops to use static_call. Shows good performance > gains for cpuid loop micro-benchmark (resulsts included in patch 2). > > Thanks, > > -Jason > > Jason Baron (2): > KVM: x86: introduce definitions to support static calls for kvm_x86_ops > KVM: x86: use static calls to reduce kvm_x86_ops overhead > > arch/x86/include/asm/kvm_host.h | 71 +++++++++- > arch/x86/kvm/cpuid.c | 2 +- > arch/x86/kvm/hyperv.c | 4 +- > arch/x86/kvm/irq.c | 2 +- > arch/x86/kvm/kvm_cache_regs.h | 10 +- > arch/x86/kvm/lapic.c | 28 ++-- > arch/x86/kvm/mmu.h | 6 +- > arch/x86/kvm/mmu/mmu.c | 12 +- > arch/x86/kvm/mmu/spte.c | 2 +- > arch/x86/kvm/pmu.c | 2 +- > arch/x86/kvm/trace.h | 4 +- > arch/x86/kvm/x86.c | 299 ++++++++++++++++++++-------------------- > arch/x86/kvm/x86.h | 6 +- > 13 files changed, 259 insertions(+), 189 deletions(-) > Thank you thank you thank you! :) (Except that now I have to find another task for a new KVM developer, but that's not a big deal). Paolo