From patchwork Mon Nov 14 09:55:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042002 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15817C433FE for ; Mon, 14 Nov 2022 09:56:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236279AbiKNJ4d (ORCPT ); Mon, 14 Nov 2022 04:56:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236243AbiKNJ4b (ORCPT ); Mon, 14 Nov 2022 04:56:31 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0959038A2; Mon, 14 Nov 2022 01:56:31 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id m14-20020a17090a3f8e00b00212dab39bcdso13305783pjc.0; Mon, 14 Nov 2022 01:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ooseHmVLLt4/9zPKjmPpC1Mx4v+3GYdtTTFlVzlVkC0=; b=NVdpzrRBsawOQO2VFvUgQSlCWiQA6Cb4TxB5BPPFNzFehOgBSDZW9U36fM5ckbdOQW 9Hb6sadY4OVW05QD6tngzIcDHFJm6Mhr6uFDNHCdK6RJhvTxXTYtb8qi4E6cH83ZDyqd 7T+Hwqqg0f9mcyo2h+x/Q6vtgvMLtWpmyvA7uWOaHsMmUQkod9IfuVTplG+q5gqbxbfF UYZLQ//uqqz4Qd5i7xHpyXnuqLb/Zt8C1Crt/2klV/bK0LnK7wtDFQTNrs5bJ7uezM84 iBXKNl8Oajpoh2D9plhZiq4kd7igIFIqwsvrb2JOtLC1l4lrBF2zgALf3e9dSV+qKBlI fGqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ooseHmVLLt4/9zPKjmPpC1Mx4v+3GYdtTTFlVzlVkC0=; b=hVyeQYD8H90LfJ4lkebagsBeFiK25Ip0BEEazFaJ3TpVwMZQ1m7yJR5+VmRVz7Om/j EFGUv9t1MOjVgSf1SRQS/f0m8z+XyHz2/+/D0uzOt/HF54Dshz8mZlFN3EnFAFhXEYM6 2Ai6MikkANx4Pp1NRgJYCTE6qGpGYgIiSDrhnA02/B527ObQ2PJULS0cQWQFAELUNoAf hp20yJVbCPdNHs/vRx/JTclWV4oQAEZAiSDmCJ2YAuh+nmSgIyqCsK9OjCn6K5MJdG9A qxuO1YITHm723E1tFBeVO8Csx2A6YQuvSwmL5Hq2Ra6X2lMOMeZyRIFiiHy0z83DG/Vf 7hJQ== X-Gm-Message-State: ANoB5plg7rbeS39DWO+uGWoMv7PSc1IBy8gLVDpYDZqbEqehYvfEtY+y foG8GEOnGf5CKfA1t6+zjyX42Xpo5igOcH0B X-Google-Smtp-Source: AA0mqf4IKMzxXrUOxeZkI4JnEoB3V0dG6zF/7mZPOR7R3diNA2JS1CJA4eEMPxXa268HZGigwfIddA== X-Received: by 2002:a17:902:d395:b0:187:3a54:9b93 with SMTP id e21-20020a170902d39500b001873a549b93mr13345751pld.2.1668419790540; Mon, 14 Nov 2022 01:56:30 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:30 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/14] KVM: x86: Remove unnecessary export of kvm_cpu_has_pending_timer() Date: Mon, 14 Nov 2022 17:55:53 +0800 Message-Id: <20221114095606.39785-2-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Sean Christopherson Don't export x86's kvm_cpu_has_pending_timer(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Sean Christopherson --- arch/x86/kvm/irq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/irq.c b/arch/x86/kvm/irq.c index d8d50558f165..04a009fbdf8a 100644 --- a/arch/x86/kvm/irq.c +++ b/arch/x86/kvm/irq.c @@ -31,7 +31,6 @@ int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) return r; } -EXPORT_SYMBOL(kvm_cpu_has_pending_timer); /* * check if there is a pending userspace external interrupt From patchwork Mon Nov 14 09:55:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042003 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11B86C4332F for ; Mon, 14 Nov 2022 09:56:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236364AbiKNJ4g (ORCPT ); Mon, 14 Nov 2022 04:56:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236281AbiKNJ4e (ORCPT ); Mon, 14 Nov 2022 04:56:34 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C7565FD2; Mon, 14 Nov 2022 01:56:33 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id 130so10491058pfu.8; Mon, 14 Nov 2022 01:56:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Gu/vESHLT6XUoo6CrxlXuWquoLDjp7p3uStugx9OU4Y=; b=jybDcBc9IYDuDKUUjDN7GS6mB7fVbkc+rmbUs7kQhDSpkxuhk0Zs2enp+Y+PMzre51 jifjnzUPfQfX4rngaD0K0iyUMFnyXYjmF03Mn5Uz7PMjgy5EvTAbQI21k6ThzumX1FUc L+Ke2GzEWrx9b7UHoY1vcQjAVu9HnAQXfPpS7fnZZhS8oOUYj606T/6PHa7LKeXBhs6o Aagr/jmhC8q2H4A6UnUSqxn0jXB9ipVOPTBwnbG9Ms2RPrTjU06YdyeZRPQWcJGKSKUM fde/OP37RzVBdeYsJMd6+Sp7Xi5CzhOZZwmYk/t7URXoTeKrIKGYvZVZUbLvui4Ob3Rd ZaRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gu/vESHLT6XUoo6CrxlXuWquoLDjp7p3uStugx9OU4Y=; b=iWRN3CvsdFvq0JWz1BTS/S0gZa8xjVXgMbtTlZf+AiAh/MfE2w6wAJXewU0wYj+tlu 4+Jc54CkJcabmsN0btQ4VotgwmXGRCjwYNDO6MV0bAnRsN7tyFg7pbQMXPdqbL/ciYtw 6NnSts5o7/Y3edWSRQFQ1h5Vzoy7rrQXwt5Ukz8ySwti+C4vKpntH57/SnQgP9wcckb+ xbROGwYYOaxgvOpUkO1X14zvSH6iuSAWpV0tIrj241Efsq9CwWsRaDArUnbTbh/WmBtV T63HAv6DA09ruA1kBg7YddrE2UcgtOUeHW3R4Qg3cnuJjRMU781ZOQTmCaFe18hiabo1 duAA== X-Gm-Message-State: ANoB5pkjug+Txw1fJbP8/z2/9PusX29SkEPsc+6JALMIE24sNd0rsU3T 89m9mjtiNX3Roycp4DAnpg0= X-Google-Smtp-Source: AA0mqf66n3blePU4NdT1T45ATbdiiN9dT4Tiav8AQ08OGC1BD75KI4PpkuvB7LMcwOjdJEqDPiPc7g== X-Received: by 2002:a63:5465:0:b0:43f:88cc:473 with SMTP id e37-20020a635465000000b0043f88cc0473mr11348875pgm.491.1668419792996; Mon, 14 Nov 2022 01:56:32 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:32 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/14] KVM: x86: Remove unnecessary export of kvm_inject_pending_timer_irqs() Date: Mon, 14 Nov 2022 17:55:54 +0800 Message-Id: <20221114095606.39785-3-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_inject_pending_timer_irqs(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Like Xu --- arch/x86/kvm/irq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/irq.c b/arch/x86/kvm/irq.c index 04a009fbdf8a..a70952eca905 100644 --- a/arch/x86/kvm/irq.c +++ b/arch/x86/kvm/irq.c @@ -149,7 +149,6 @@ void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu) if (kvm_xen_timer_enabled(vcpu)) kvm_xen_inject_timer_irqs(vcpu); } -EXPORT_SYMBOL_GPL(kvm_inject_pending_timer_irqs); void __kvm_migrate_timers(struct kvm_vcpu *vcpu) { From patchwork Mon Nov 14 09:55:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042004 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9A10C4332F for ; Mon, 14 Nov 2022 09:56:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236315AbiKNJ4o (ORCPT ); Mon, 14 Nov 2022 04:56:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236399AbiKNJ4h (ORCPT ); Mon, 14 Nov 2022 04:56:37 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F3E7BE24; Mon, 14 Nov 2022 01:56:35 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id 4so9638496pli.0; Mon, 14 Nov 2022 01:56:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Iv8aD5Z+J8UMbfgYhwe609HmQbmCamCps+Dpq149rpE=; b=FXStPibLbOG/9CCbZ8D/H9eLK7qnJZTYehf/duOCNvVyF+HgQ1FbkJPuA1PI7t1g1S 5jJpjSiCiHyl5zFVThANYqAw3RipQ53N4UgzlebIpdwgjLcb9MxmdQaZla4kX7dGCWgh 3S68ZQ5uCXe3FDytDdpMuH/pBDs8UxEOBoHYPf9GRPZajXfIs0+1E/bwjlW/EC0tySU7 CuyK3SKCVPIGwObKUXA8JG7JpmFoRenYWTDovPmfBhkvCPFfTI5aRhXiRlJv6jEG3z0m 9gOYYEl/GGiEbqKheSaGO+Cr2kjgBDKfLyRvxWWXNyqlDXLOuRYogSD5djnIu2CuVdei 6Zew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Iv8aD5Z+J8UMbfgYhwe609HmQbmCamCps+Dpq149rpE=; b=h9NkQVkwh3Fa+4ugDQ61dlICQo5Euxi6dzP7P2Jxz8x+bIif5Ymk3kmfT1xwwQnhpx uPtmQiXqUqI3sdO1ZVXH6J7lppJ6GLqh8zHiqli+tHENSDdemeXcwNkb9N+qE4kfkVV0 QM4hggLEjX6bS+DeSlfZ08PgWHelguzi5sRZBU/aeX8YIQKHuSJ2XkRCNbPITU9Io6lK QFDFNSKAliIMqd0bMcHF6rSZL+z3mn6fzofdSklYqpqdOTjX7Lg12CAp06IjZaAqCp/R hsuFRdqzJjyIAr4GpoJ/KA8U9D2PJGGkkJtlh7TL8oK9SR14fqs0v37OmJxiVbHtK2PN +sUQ== X-Gm-Message-State: ANoB5pkFAfr1Ovku596H4Mg2nQfiDrzUVDI0IyZmqDceeh3eHx7nMM2f YpT99iM7DTMWllOuB1s51hw= X-Google-Smtp-Source: AA0mqf74+7evEHWgYxy2OtfB5uirGA0xxicccVzJJREgHAU4SQkSiDZxt+Rin/iTcrWvbKAyAIuciA== X-Received: by 2002:a17:903:552:b0:185:4889:7e03 with SMTP id jo18-20020a170903055200b0018548897e03mr13225424plb.80.1668419794919; Mon, 14 Nov 2022 01:56:34 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:34 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/14] KVM: x86: Remove unnecessary export of kvm_get_apic_base() Date: Mon, 14 Nov 2022 17:55:55 +0800 Message-Id: <20221114095606.39785-4-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_get_apic_base(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Like Xu --- arch/x86/kvm/x86.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index e46e458c5b08..1c5a675dc04a 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -463,7 +463,6 @@ u64 kvm_get_apic_base(struct kvm_vcpu *vcpu) { return vcpu->arch.apic_base; } -EXPORT_SYMBOL_GPL(kvm_get_apic_base); enum lapic_mode kvm_get_apic_mode(struct kvm_vcpu *vcpu) { From patchwork Mon Nov 14 09:55:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042005 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99525C4332F for ; Mon, 14 Nov 2022 09:56:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236629AbiKNJ4t (ORCPT ); Mon, 14 Nov 2022 04:56:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236419AbiKNJ4j (ORCPT ); Mon, 14 Nov 2022 04:56:39 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0723165A2; Mon, 14 Nov 2022 01:56:37 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id s196so9828426pgs.3; Mon, 14 Nov 2022 01:56:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sZzbiUUovd/knB9WKfRQOL0A2eGvTbe8l4R1H4rSzDg=; b=QWvM9ArtgMtR6hTyVC8lBBUinc428E0xRHcZYLDJKB6peRLsW1DxSnlXIJG8sgAmof LOsEvPthMMigNG1sKlwnEhK9gfDKukd/hoVWTW4ahYt6f5tT/p9PqNArh97hi6yFAevz 1DPACG8BKRKoF7ola4/ogOWRjyfA4+FL87OXbuGmGuQPfB/+agImSuavB/H0cNtEGm2p 1GgSWBsSdIixxX4r21ig0wUFy+34uBuIpdm/gRrV4bjpbA56L9aNMpDpdXeqH6hJmETa wU/MSvqN+1e9ot9ogTqJnNU5qClO9V/WYOPEt1LQqVABpsxuZQCihjd2dzMlMrzUjM1e pk/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sZzbiUUovd/knB9WKfRQOL0A2eGvTbe8l4R1H4rSzDg=; b=WoiCnxffb5+dk0WSnMBTYc8LkySGdcIG5E/fdjJhIG/wNQQu3L0KK3US2ilhbVH0Ks PR2487q3Zu+JPkcHu8SVlxYIhvteMvs2mUwEk+5L04pY5sZvDkDq7qYMK1gLBMWGfIEl CmLU9a2xjDAZRcCKXomsEHRa6z89A/6c7Skhr9ZB7m6HG9SNdI5gs18f0Yx5LbAgQ//R 5/7syfbGG1baC4PRsC+vIWAzfldUUdQVjGzNHJpOOY5NxKYWGvXcTwV+rma6w2UCEoq+ u8rE6m5im3tRPrUdLc6ahGb9wjiPJcopgs/PqZ3/9htT/tVwgoEqI8iPjADsUn8+DVur o3SA== X-Gm-Message-State: ANoB5pnxFcoZwEulU/dNcTJ7d7oKEkUnVYyxhqq1/98Psmie8pqQMLxx 8ycTXVBXX6SiQRY97Sr6afUT+MGjHX+zbB3m X-Google-Smtp-Source: AA0mqf5PDmly7AdCJGPD6R5du9295x5scJD8lpbMqByzhP9dEWBPp7jVslw95qCIeHhiXSB4Hk7zUg== X-Received: by 2002:a63:d810:0:b0:46f:98ce:2311 with SMTP id b16-20020a63d810000000b0046f98ce2311mr10986521pgh.413.1668419797169; Mon, 14 Nov 2022 01:56:37 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:36 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/14] KVM: x86: Remove unnecessary export of kvm_set_apic_base() Date: Mon, 14 Nov 2022 17:55:56 +0800 Message-Id: <20221114095606.39785-5-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_set_apic_base(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Like Xu --- arch/x86/kvm/x86.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1c5a675dc04a..38a42ca86ab2 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -490,7 +490,6 @@ int kvm_set_apic_base(struct kvm_vcpu *vcpu, struct msr_data *msr_info) kvm_recalculate_apic_map(vcpu->kvm); return 0; } -EXPORT_SYMBOL_GPL(kvm_set_apic_base); /* * Handle a fault on a hardware virtualization (VMX or SVM) instruction. From patchwork Mon Nov 14 09:55:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042008 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBF70C43219 for ; Mon, 14 Nov 2022 09:57:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236825AbiKNJ5r (ORCPT ); Mon, 14 Nov 2022 04:57:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236749AbiKNJ4x (ORCPT ); Mon, 14 Nov 2022 04:56:53 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0AF31EC4E; Mon, 14 Nov 2022 01:56:40 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id s196so9828553pgs.3; Mon, 14 Nov 2022 01:56:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Epb28JUv2/E4MT6KWLm8hPFpYfNx380cSmfNBWjUaXY=; b=kkwra97tiBy7QaRptCYB1p+uZUwKFVrLTxMHeN5WBgTK7NRwWxzaM+udt+5vNcc6J4 sMf3TKM7jYEhawkt6UTZBeyzIgSbZ6TKJzlq/+5sYrZEe9KXSt2VVNQUWq0aewLx6OA4 m335IcCgQAna5lXGfwFK4JbmyHWlszmp0nw6fvqrdsN6BpVvvGFVfSnAkRX+qvvGfqRL PnoVkem39EhkW1Zpt5PnOb97SY+ERzDkvX1Zz/gmhVRS15xn3TMWo02wF7R8wIGIVcMz ZOqxO45BDVLtOh8zXO2Cl0fPhnNGU4tzH9IsHuYr4/EYqRIQqN0/CAWOEV7x6weNdxNM kG8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Epb28JUv2/E4MT6KWLm8hPFpYfNx380cSmfNBWjUaXY=; b=pPzHJpgmU6bxnKTj0BNjt+fDMBbuEIPB7dz/m2A1iKRUB4DXCQBiO/oglmDGSSISYF KiGgPiOP5cBPoyyG8TKXRE/zkPXwz8oXKECOQd0U2oRk5iE9DsJZ83FMFTDu93Sw2jNR IegncB8EH1WjAOlq56C24L52din1/Zz3sseeo33oiSonNsHSkDZ06rbYOc5WW0XP6uOY UsF1eKpyDmQ7GY/YLIVHaXV/Z+v3KvtCWtRtppOFtkJ+nV0RSXmpjag42ut14TEZVENV BrH/uDncMFQ6jrvBPFLcd5/+uMka1OqE9Pbb4mSCp10MVXbPIvYyq7G0FD3W4NZRaAtZ 3IPA== X-Gm-Message-State: ANoB5plt77TI+6w+ddmclZJzt9TLbNOQtiSy+aw31wFYEaNj8/6PAzni dsfhIP+xsLupoW732VtFo5k= X-Google-Smtp-Source: AA0mqf4taJ0tuBhBX9p99SZ9/fAPB5BcZs6J4EbbrbYCE2f75pVjfbgugJU2XmHBB89EURtMburQZA== X-Received: by 2002:a65:4d0e:0:b0:439:3b80:615d with SMTP id i14-20020a654d0e000000b004393b80615dmr11498561pgt.255.1668419800344; Mon, 14 Nov 2022 01:56:40 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:40 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/14] KVM: x86: Remove unnecessary export of kvm_inject_page_fault() Date: Mon, 14 Nov 2022 17:55:57 +0800 Message-Id: <20221114095606.39785-6-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_inject_page_fault(), the helper isn't used by KVM x86's vendor modules. Add declaration to header file out of existing callers' need. Signed-off-by: Like Xu --- arch/x86/kvm/x86.c | 1 - arch/x86/kvm/x86.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 38a42ca86ab2..818aff135261 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -774,7 +774,6 @@ void kvm_inject_page_fault(struct kvm_vcpu *vcpu, struct x86_exception *fault) kvm_queue_exception_e_p(vcpu, PF_VECTOR, fault->error_code, fault->address); } -EXPORT_SYMBOL_GPL(kvm_inject_page_fault); void kvm_inject_emulated_page_fault(struct kvm_vcpu *vcpu, struct x86_exception *fault) diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h index 9de72586f406..69811b4f3eac 100644 --- a/arch/x86/kvm/x86.h +++ b/arch/x86/kvm/x86.h @@ -307,6 +307,7 @@ int x86_decode_emulated_instruction(struct kvm_vcpu *vcpu, int emulation_type, int x86_emulate_instruction(struct kvm_vcpu *vcpu, gpa_t cr2_or_gpa, int emulation_type, void *insn, int insn_len); fastpath_t handle_fastpath_set_msr_irqoff(struct kvm_vcpu *vcpu); +void kvm_inject_page_fault(struct kvm_vcpu *vcpu, struct x86_exception *fault); extern u64 host_xcr0; extern u64 host_xss; From patchwork Mon Nov 14 09:55:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042007 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72785C433FE for ; Mon, 14 Nov 2022 09:57:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236542AbiKNJ5o (ORCPT ); Mon, 14 Nov 2022 04:57:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236912AbiKNJ5F (ORCPT ); Mon, 14 Nov 2022 04:57:05 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CE9FBE24; Mon, 14 Nov 2022 01:56:43 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id u8-20020a17090a5e4800b002106dcdd4a0so13290219pji.1; Mon, 14 Nov 2022 01:56:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zYqHxPIIGiydwMniNgTkMQToQgboZx9lhkgkluMSPm8=; b=VdrqI4Vyw7A9PqbXfHc7X5zw7szDlFu2N1gJXuRArP9njEYvYi+6mH/3KS7QcqW1cd UNJr6K1h+eOv7mTxRNm2UKH/dobbm/FtrbK9rGGUgApgcDG2u5J4fmQQm47WwI11yhlT 94jLOcaCyhEFcNTPaT+EFRISkxO8SnPFVy4Mmuk/bRo2P+bDf9Ntk5eHZk3AL1LAlOKL BKT5ZbPKJfN5u6QAZ5Cpb7W1DkaZ5p1i4voKL3wBjgBMr0b3PWwXxaK9Rw10b1OaRijY BEnH5F1T06cNywBjftKME/XuGJdkZGlj3b3xFUcErchpAzFslAlAtpCo2mFEsSufp8/r iAmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zYqHxPIIGiydwMniNgTkMQToQgboZx9lhkgkluMSPm8=; b=nxUEeCqmzr/ZOSXwiF1jmpLiJfXLYQTYEDkYApSvLo/UVl7ZyhIh/zBltCBvsardWh Yl1TVkaNf/I499yg1ZSRlxhypw1C1BKJIneqePc4f/c14Xn1chRiAwqW+1qxtZaoezlx kQxZ3gox9VCprUzLmYjRwUnOak0sENZEsYFkE9eGOTNnQyizJpjOVNAuAyYeZuHTSKyF 74dGIGGtQFVPVby/qjbj7ASkcFeuXXGW7rPFAVF9IgCOx3hIYdrBhxks3clTgqPv6s2e nw9p6VeexTL4o3jW7VvEqViCKhlK7dv80y7e8SaI1iofi/Wgn3QbYDLq1ubaRYCyQuz6 2/uw== X-Gm-Message-State: ANoB5pkl1ODHd5jW/DMnNL93TrshptXBE5l1dUSrKXCLWEaE1pjsprgo I8fV81Qz8sUjHMVf7uw9OYQ= X-Google-Smtp-Source: AA0mqf5B7qvKQJGIFLjWC0mix23jpeFB4p03FZYnJc8WrkKaYo5LUsgr4ZwzT1gK/4ve56lVq+YyxQ== X-Received: by 2002:a17:902:c20c:b0:186:9c32:79d9 with SMTP id 12-20020a170902c20c00b001869c3279d9mr13524247pll.47.1668419802570; Mon, 14 Nov 2022 01:56:42 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:42 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/14] KVM: x86: Remove unnecessary export of kvm_inject_nmi() Date: Mon, 14 Nov 2022 17:55:58 +0800 Message-Id: <20221114095606.39785-7-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_inject_nmi(), the helper isn't used by KVM x86's vendor modules. Add declaration to header file out of existing callers' need. Signed-off-by: Like Xu --- arch/x86/kvm/x86.c | 1 - arch/x86/kvm/x86.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 818aff135261..c03e599166b8 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -802,7 +802,6 @@ void kvm_inject_nmi(struct kvm_vcpu *vcpu) atomic_inc(&vcpu->arch.nmi_queued); kvm_make_request(KVM_REQ_NMI, vcpu); } -EXPORT_SYMBOL_GPL(kvm_inject_nmi); void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code) { diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h index 69811b4f3eac..c5ff5b05af49 100644 --- a/arch/x86/kvm/x86.h +++ b/arch/x86/kvm/x86.h @@ -308,6 +308,7 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu, gpa_t cr2_or_gpa, int emulation_type, void *insn, int insn_len); fastpath_t handle_fastpath_set_msr_irqoff(struct kvm_vcpu *vcpu); void kvm_inject_page_fault(struct kvm_vcpu *vcpu, struct x86_exception *fault); +void kvm_inject_nmi(struct kvm_vcpu *vcpu); extern u64 host_xcr0; extern u64 host_xss; From patchwork Mon Nov 14 09:55:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042009 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E68F6C4332F for ; Mon, 14 Nov 2022 09:57:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236896AbiKNJ5t (ORCPT ); Mon, 14 Nov 2022 04:57:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236966AbiKNJ5L (ORCPT ); Mon, 14 Nov 2022 04:57:11 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A91C31F2F7; Mon, 14 Nov 2022 01:56:44 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id l6so9897596pjj.0; Mon, 14 Nov 2022 01:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pBtZZOL+325kqQMxoFTyaL/a2aOjAFcbc7WVXFwsces=; b=Siw+4L71eXfC/fT+8IWelVZQPojdafaVztZTv+RK3oQb2PqaQAV+M99p13z1zD7uS7 vpoy+ZWQez65aP1x+ua+hpXCFfyRZQoUPuMCzzjLL2By8nSbNkOlEJmxCZdhYe5iBNlN C2BlpLOCzi8RoaAfG89p2GkubSklI9GXcSDeECR9BmXlS6GSOik8/MTPP4WlzMU+Jxst VED7583xm8K0HYU6krwZEDcRHGUkbGgjg1Ej7XWeytMX/pqNUIXEoiLMwYIwcFBlqSwv RF6BDxiyvgF3aC5Hs93KY5vrLNLmliG+tfZjoLwuIT+BrI9C9vzz0Uc9fC7X60KcXjud eC+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pBtZZOL+325kqQMxoFTyaL/a2aOjAFcbc7WVXFwsces=; b=r1G+QJFCLSE39z0/+sEOmdEW7OgKCeX397fwzEXjbQEYYKisEitQcgclKo9f8MJjdN a/Cl5WeZDYxgoMK0qCcWJ+2QU0lQTAg7ffutX/lmud9ltySpfouXocDHmA/TiUDBKK2Z u9EpH9cJbtNj8uHQj0YIcXDf1/7NZlUVeUB5Om3O8WAkgojqP8O+TfHIJnQlXdBZ/SQ4 lFTB+YXzIiMd4fwMvdHQ2JtisE7bCfMoWBGEJHfkhbQCbEgvJmZ3d2Ub9FSmfepEuMY4 PYMkDk+bhpF1zg/jP1VYIfqWNV2o0wLjJtg4zCeVqzAarbN3O2D9Y7Nb0g3UHOKO/AgV ZuJQ== X-Gm-Message-State: ANoB5pk/xEpKz9oz7+iA9Xha+BJMJRozqhCNEpJ777AeSKTg5kmhQmii P8jgAhc22V1G9OkIAUi3QDM= X-Google-Smtp-Source: AA0mqf7u4Xe3gQ/Qk3wsjc0KoZ2K7vSje7ttQiub4iRj0UK6DBJ0V7Nzr2VtisPHklSbtOYp7s6cuQ== X-Received: by 2002:a17:90b:2290:b0:212:dadc:23e3 with SMTP id kx16-20020a17090b229000b00212dadc23e3mr13059031pjb.129.1668419804238; Mon, 14 Nov 2022 01:56:44 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:43 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/14] KVM: x86: Remove unnecessary export of kvm_require_cpl() Date: Mon, 14 Nov 2022 17:55:59 +0800 Message-Id: <20221114095606.39785-8-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_require_cpl(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Like Xu --- arch/x86/kvm/x86.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index c03e599166b8..ee63b5ab507d 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -826,7 +826,6 @@ bool kvm_require_cpl(struct kvm_vcpu *vcpu, int required_cpl) kvm_queue_exception_e(vcpu, GP_VECTOR, 0); return false; } -EXPORT_SYMBOL_GPL(kvm_require_cpl); bool kvm_require_dr(struct kvm_vcpu *vcpu, int dr) { From patchwork Mon Nov 14 09:56:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042006 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBB15C433FE for ; Mon, 14 Nov 2022 09:57:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236399AbiKNJ5k (ORCPT ); Mon, 14 Nov 2022 04:57:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236983AbiKNJ5O (ORCPT ); Mon, 14 Nov 2022 04:57:14 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABA2D1F608; Mon, 14 Nov 2022 01:56:46 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id io19so9583116plb.8; Mon, 14 Nov 2022 01:56:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9O/MeRTj6vUllTHQtkLeqz0csgML4hUFgOMRjMmUV24=; b=bQ1zwF6qZi8Dcje/G5UL3RxSEmA77bJ6t5DsCzbBw7Xqci5D8WYvcD856OASHsKDW9 AJ4SvTboMYuOldY9f+cHVc0dMMqQAaMjxXobCRbCYiJizoFCKVl7n0POH+daiipBXl6K ISH/+/q58PHWS7Yk1g/ysMjo4NvbKJkli4fn0982Ue29odIfMQZC7LXD7BzDet8+sTmW EtiGJmn+VCJsb4iMSGO9gC4B/N9qYu0YGs93hzXLXZ45vLGRs4o7VF2B0WYvn2yHdBio ydZRAbERJy5m7Mstc+nwU1H+E/TD6ISuZCNhgl5WaWcJU8MHspZdSnlbI4DNhwRlqNAi +Zqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9O/MeRTj6vUllTHQtkLeqz0csgML4hUFgOMRjMmUV24=; b=pNbqiJQUFSK4WU0Z+ZL2h+JpxoPjirl6gVp7lCOIZ0IOb/ayh7L25YCUcO1mvVn5Jh X7pGZwsgC+WXJji/CMuV76HofUA8QO0CokFlN+bZK+01umzDum9HrKpHfm2DY9iBna+F ++PefB/4f+aBbO9c0lYtrqeKVRu/rsoYW2Eh3rT5FwOzkw7QCD1wVGnszrMpzR++T1+y Ci5v7EFhVOhGwE29NDNQmN2vFKOMJ+8oZKyfkMEBUXLH0UxKBRmf6ombUymx8rQ4DJND U69/csLByx+VHrByL6tMzwq6a9nXjrzmCLTP/P3l1jmXFmS9tt49s3I3RcU5SXPkBPuT RXcg== X-Gm-Message-State: ANoB5plraLZhTsAshmM5tQ1jRAY64smf6v2w3lNFpIVJBjJ2tyZJ3zxF mBBiIwKgn+PQshR0hNlqZyuJ/G5HVQ0I/0bd X-Google-Smtp-Source: AA0mqf48C8XpHVGl+JjJVl4NXtJbrISs0aFuyY18GczBhq1/sc/h0c+JvLtpyF4t3aXxd/+R+IoiMQ== X-Received: by 2002:a17:90a:5a4a:b0:20a:f469:7307 with SMTP id m10-20020a17090a5a4a00b0020af4697307mr13185831pji.213.1668419806240; Mon, 14 Nov 2022 01:56:46 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:45 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/14] KVM: x86: Remove unnecessary export of kvm_emulate_as_nop() Date: Mon, 14 Nov 2022 17:56:00 +0800 Message-Id: <20221114095606.39785-9-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_emulate_as_nop(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Like Xu --- arch/x86/kvm/x86.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index ee63b5ab507d..41b6361dde62 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2058,7 +2058,6 @@ int kvm_emulate_as_nop(struct kvm_vcpu *vcpu) { return kvm_skip_emulated_instruction(vcpu); } -EXPORT_SYMBOL_GPL(kvm_emulate_as_nop); int kvm_emulate_invd(struct kvm_vcpu *vcpu) { From patchwork Mon Nov 14 09:56:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042010 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1188C433FE for ; Mon, 14 Nov 2022 09:58:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236956AbiKNJ6T (ORCPT ); Mon, 14 Nov 2022 04:58:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237029AbiKNJ5T (ORCPT ); Mon, 14 Nov 2022 04:57:19 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A93BE1F63D; Mon, 14 Nov 2022 01:56:48 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id io19so9583200plb.8; Mon, 14 Nov 2022 01:56:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cmf8HZalToYEZyqhmS66CbNmx+ryp8w0AolHigIfczE=; b=m2LI1kCnRbnjDK3j4Y2S/phpe+XWA5iy5kHbuTnedqVJJYXfPM67fKLznsu6Y1Wkjn +EQQoCvAyiK+YxNUjzfW40ggaygyjSd/ELixiY1NXV6KObZ431ktjQY0HRinpVckbhj5 eG1c2+n9U4nOKaO0/9smIsRvc5S0jRNf+OSoIVwlxyXyAqUSdcczD3afz99J0oJW3+if aqRJSztJ6ej+sap65JiFkMong7aXkXwG9qerAxv74l2yd1OKtOKZiRJ72ziWOk1Smckf r4E0YdF0eh7v3662Zt8ozMFaNhDdMqeaZ4XFTrC/2eZMfCU53HUml2oiAHGDcODmigUd tgPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cmf8HZalToYEZyqhmS66CbNmx+ryp8w0AolHigIfczE=; b=l5j6AoZLApU4Na5eI2eoSG2PeTp/G0JvDpYRMOw+3+9RDiC5QYyDZF3p1yXn2W1mQU U2EjjPLG3wPdSsHYhCVsDpz6U1GAMfa0dbUgSD218VFbxHYtmkEh5iHJbpZBzJODNvm2 yblZAvKP17F2tAOFRhfZhHOT1sa8vX4AKsSGb0gwiP5QJz2HF2Skn7PQUwjwbJEntSUI itu98v3yfGUsegJR+mMiqqClTFtMw42wfC+OGvnXRwu8pKIN9hEnfZG+jze5IadZZFTy /TCofhcW1xQWvxjd700kxhNz3QV9qlcbAtHM89dJHHKp1Cr7df0NhdLRuLXNt+y48GBx ks4g== X-Gm-Message-State: ANoB5pn2s+riVAnbPRB+A/RaxgCGM5aA3FfGsPOhgUjFamKFu/BEwUCh REUWxSV+QE6Vyvo/VG+kVA0= X-Google-Smtp-Source: AA0mqf6dwe24dHEoLsNBzJ5cAH4GDY9D7+4N37B5uAdEpvx06C++/vp86rMm5qZuL8eJtem12sYiIw== X-Received: by 2002:a17:90a:9914:b0:20a:4804:4ccf with SMTP id b20-20020a17090a991400b0020a48044ccfmr13129293pjp.209.1668419808059; Mon, 14 Nov 2022 01:56:48 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:47 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/14] KVM: x86: Remove unnecessary export of kvm_scale_tsc() Date: Mon, 14 Nov 2022 17:56:01 +0800 Message-Id: <20221114095606.39785-10-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_scale_tsc(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Like Xu --- arch/x86/kvm/x86.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 41b6361dde62..f325710a4f25 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2503,7 +2503,6 @@ u64 kvm_scale_tsc(u64 tsc, u64 ratio) return _tsc; } -EXPORT_SYMBOL_GPL(kvm_scale_tsc); static u64 kvm_compute_l1_tsc_offset(struct kvm_vcpu *vcpu, u64 target_tsc) { From patchwork Mon Nov 14 09:56:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042011 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DFA4C4332F for ; Mon, 14 Nov 2022 09:58:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236996AbiKNJ6f (ORCPT ); Mon, 14 Nov 2022 04:58:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237054AbiKNJ50 (ORCPT ); Mon, 14 Nov 2022 04:57:26 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29DA71F9E7; Mon, 14 Nov 2022 01:56:52 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id j12so9596212plj.5; Mon, 14 Nov 2022 01:56:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cHXylZQvPkKg9YRk/My2nXgPbyRXz0efTEnwBB4Zh7E=; b=No5nQ8OGpsAJ1HGg3Ujor+9jh7yqxyoSyG7j6rnDLgsxAvrdmx+i8e9RvkulPMVMMM fMFVb+8JGj4BJzDdV6y1xwo7Mxjic/feECoCBjwygy7XmJsVUVt0MwGRJgx0k5cI/KE8 Umi7LVxs4yEWpQxdjQY91uXt6m92sTwncmwZxCMu0VHWaNmcigq5gUkuFBuXlYq7WYXj 3HwCZ8UpHT7iqdXEQDJ8pNUb93+mkm9x8loazezqOSm+AAV9z+0iYfJ5bQQrHhqav8jz k0dtDmPFPjjJ8FflsuvVKQvcJvIcl4faSD8EDxe1JrLT3vFswFmzvf206Pplz8UVlko9 MugA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cHXylZQvPkKg9YRk/My2nXgPbyRXz0efTEnwBB4Zh7E=; b=mrCSmBIhq3ERY6JwRQbm95+SWoqOYAwUAIS4kfQ41eLa3EcfsXzzAEg4dfHxQnSclt SKcGuOEp4JFjwcyRCXIJUABSRi3seDjoNz6Do0SCDu6bJkXGhIk9GWXxUpmh+uHvGIbY 6VISvmjijJQnadHXYA94f4QXuJD/T3TDuDSOBF9JleOEn6A/CRLMOxQmv8X+M1mRr3Lz qTFjRen/0LtwPpy19tJxLGFkHrXl7HXjOF5Heho3ZV5FBlGgoM32mJmj2/mzRd+r+dfE SvuLD3X8kHYFqqXyiKDhTboH1GpoUZU7VeedCeIgC8oHiBAtsNy55JGqBDdlZ5KaWXDQ CsFA== X-Gm-Message-State: ANoB5pnaCqx1MzbzbT6ihh8H+LL9ohRl5z39/Xkh50MAx4XZlZtHdPRB w9aq2dcEn5g7AMuIy9KLUdk= X-Google-Smtp-Source: AA0mqf6KzxOQ2r6jOPW1epE/CfEQLV0eVgb8HzJeT1Vf+F+3YgERCy8FCibCxQb8Qba5ItFpDsq6tQ== X-Received: by 2002:a17:902:ea05:b0:179:fe95:f6d9 with SMTP id s5-20020a170902ea0500b00179fe95f6d9mr12582203plg.51.1668419809926; Mon, 14 Nov 2022 01:56:49 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:49 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/14] KVM: x86: Remove unnecessary export of kvm_vcpu_is_reset_bsp() Date: Mon, 14 Nov 2022 17:56:02 +0800 Message-Id: <20221114095606.39785-11-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_vcpu_is_reset_bsp(), the helper isn't used by KVM x86's vendor modules. Move up the code block out of existing callers' need. Signed-off-by: Like Xu --- arch/x86/kvm/x86.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index f325710a4f25..f3cb3e02bfa6 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -11496,6 +11496,11 @@ int kvm_arch_vcpu_precreate(struct kvm *kvm, unsigned int id) return static_call(kvm_x86_vcpu_precreate)(kvm); } +bool kvm_vcpu_is_reset_bsp(struct kvm_vcpu *vcpu) +{ + return vcpu->kvm->arch.bsp_vcpu_id == vcpu->vcpu_id; +} + int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) { struct page *page; @@ -11993,12 +11998,6 @@ int kvm_arch_check_processor_compat(void *opaque) return ops->check_processor_compatibility(); } -bool kvm_vcpu_is_reset_bsp(struct kvm_vcpu *vcpu) -{ - return vcpu->kvm->arch.bsp_vcpu_id == vcpu->vcpu_id; -} -EXPORT_SYMBOL_GPL(kvm_vcpu_is_reset_bsp); - bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu) { return (vcpu->arch.apic_base & MSR_IA32_APICBASE_BSP) != 0; From patchwork Mon Nov 14 09:56:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042012 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05261C433FE for ; Mon, 14 Nov 2022 09:58:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237045AbiKNJ64 (ORCPT ); Mon, 14 Nov 2022 04:58:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236943AbiKNJ6B (ORCPT ); Mon, 14 Nov 2022 04:58:01 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 001411EAF2; Mon, 14 Nov 2022 01:57:04 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id d59-20020a17090a6f4100b00213202d77e1so13277363pjk.2; Mon, 14 Nov 2022 01:57:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UTLEyqbjC9BryqtpbllpLrImB8bg3DlkHgH/+DPhCkw=; b=krlwna1jIZMzCZL1mKGmz+yePRa9bwt5HUMkNclRCaIp9UmHMlixJvXBNFM2BOml0H DOQkj7g8DGnszDvPRX18AByQeND6zUKNh06/gHynqmjudA2WlqEG+tF5r98idlfghtfL z/qjqGAwfzpvwWCo+ZwCinbX2H7/Jg3XzoXVzZaMfuiz3o3jctyze/r8C5dNadGBHp0k kSH0ikEKTKGKp51IFf66br1ahssoy1Q4JHyz1jReuNmhLmN2FDwxIcgIb8znux73pYyX cGHACxICaq4mcZB4G2CupKMWF6ta+Ra0K/vB2ERMI30Rxilh9SuvbeJ9wORyKqUqpiQz HXLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UTLEyqbjC9BryqtpbllpLrImB8bg3DlkHgH/+DPhCkw=; b=djfb9nZyUtC5SX9hCPnTATQo3p1mOfhYqJ+PqlbI/XqoWkmlnIwxfxUjjgnv7gOqEK aScBmx0d8+41TvXrbMuGven/M1sU0YHrDfgchQsBWib1EOpO1/9oCF2PHat4iADTwFEU ND1FB+ohvOIDWY5J09YNAqd/Gj+FLL1uPMWs6rW+Mz2xFmx3M6ewmJgqq29tI4azsX54 vldEItFWcDSNfq4lxTqpd9ohgEJ5T0LntnC67z0Acv5dxdXR0wHEyifgUkLMsdXMUGXY 9ROIlDFer2BbTcKJWRGlznHuXH0S2A07sSg0R06tDPcux0VNlfFXu7FL1Vbb0ylUPJOv vYTw== X-Gm-Message-State: ANoB5pk7N/OchoiI5pzIqsMEnBelhVTxvIW0q/AhKYFRd9LiHADgn25e 0d7d2C2OaKHMNWTXELLl+/Y= X-Google-Smtp-Source: AA0mqf74WUDi/0NYgJRUaYerIPJgJ8VH+3io111L5pqECEnE2yLSXNbHO0J4CJfiXH4YzabW7OgpIQ== X-Received: by 2002:a17:902:f612:b0:186:6c10:7260 with SMTP id n18-20020a170902f61200b001866c107260mr12837936plg.26.1668419811854; Mon, 14 Nov 2022 01:56:51 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:51 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/14] KVM: x86: Remove unnecessary export of kvm_hv_assist_page_enabled() Date: Mon, 14 Nov 2022 17:56:03 +0800 Message-Id: <20221114095606.39785-12-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_hv_assist_page_enabled(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Like Xu --- arch/x86/kvm/hyperv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c index 0adf4a437e85..072303aa4e42 100644 --- a/arch/x86/kvm/hyperv.c +++ b/arch/x86/kvm/hyperv.c @@ -895,7 +895,6 @@ bool kvm_hv_assist_page_enabled(struct kvm_vcpu *vcpu) return false; return vcpu->arch.pv_eoi.msr_val & KVM_MSR_ENABLED; } -EXPORT_SYMBOL_GPL(kvm_hv_assist_page_enabled); bool kvm_hv_get_assist_page(struct kvm_vcpu *vcpu, struct hv_vp_assist_page *assist_page) From patchwork Mon Nov 14 09:56:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042014 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C508C433FE for ; Mon, 14 Nov 2022 09:59:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237060AbiKNJ7G (ORCPT ); Mon, 14 Nov 2022 04:59:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236966AbiKNJ6Y (ORCPT ); Mon, 14 Nov 2022 04:58:24 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8890C1FCF1; Mon, 14 Nov 2022 01:57:09 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id d13-20020a17090a3b0d00b00213519dfe4aso10143027pjc.2; Mon, 14 Nov 2022 01:57:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8/1cVZ8FDNH+FL7lpDPpqS01r7LahosMaqUYnakKkmk=; b=Ajmk7nuU+z/i0n1/2VymsUa+kQ7uUdedQzTsN89DhaXeyYw30pRmM78V9jh49Wow/4 fnspVMLTVg6b/AXkzLiOsTLBTOkBt5xCU9pA7xobaCBMaF4NbF5n7oG70HHWU4KmYnzZ i4bger8/RpHaD8efPAmmyEYDUqI835bjLVKClgb7CcmaTw0+ja6rrnuUlxhGsvoWdd+/ CQQUpDPUJIv1Uu8q9/LW3vvQkQ4jUHBu2Q/AGxn0bh9s5METx71eP6rfKIxZVcnt/o4S s/+UMytHKCaoiliZlju09wsUs5dBe/xev/LTJ3opdJdOU6bGpucREIZuPVSpSdDyaW+u xmVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8/1cVZ8FDNH+FL7lpDPpqS01r7LahosMaqUYnakKkmk=; b=oNtUMPYDoJRGGUTRkcWFFCzjNlgOWlfgJrDitveYWNRgNlTZ09Qnl7DnOTmS7vU1lR AC2ni+aJ9zEOF8X089X5AtpikPXVR8D0oUZ4g39yqhw/D2mDYUaU7VIwUxkUkB6YDvIS Kdl7oQGVdwJz+A90OT8Iw8XtxOb2b/8a6oxG8uHKUVQqff0TJrVAZ9/Kiw7kAIwGYcJP DavBuc75lkxm9PjftKtzpQCgWn2E+oGGTOejJhy3W+Sc21eKBnwVF5CdQKipGFpbZAIZ f4eLltWSzlY4fCpzxSaDGQ90UI470CT3x5ere6XNYeaZgzfKP3CcBaBrohtFa+Cy3azM 5wAQ== X-Gm-Message-State: ANoB5pkLd2YY/baQuSc3kOz+R3pqNVNsm75OaqJyPmDoZR98VkYK8mTS yNuKhnHXsCkUvM+KJqAsrjawgZcxyaBPLt2t X-Google-Smtp-Source: AA0mqf5v9ZZ1BgBqRBmyaVFWllOj6FKTuvTPK6gKKLCip/fGxpOjImT5/y9wBPguaLXB/wqKyf/nlw== X-Received: by 2002:a17:902:e848:b0:186:f1b6:c3dd with SMTP id t8-20020a170902e84800b00186f1b6c3ddmr12271978plg.20.1668419813701; Mon, 14 Nov 2022 01:56:53 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:53 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/14] KVM: x86: Remove unnecessary export of kvm_can_use_hv_timer() Date: Mon, 14 Nov 2022 17:56:04 +0800 Message-Id: <20221114095606.39785-13-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_can_use_hv_timer(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Like Xu --- arch/x86/kvm/lapic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 1bb63746e991..5243e619fb0d 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -160,7 +160,6 @@ bool kvm_can_use_hv_timer(struct kvm_vcpu *vcpu) && !(kvm_mwait_in_guest(vcpu->kvm) || kvm_can_post_timer_interrupt(vcpu)); } -EXPORT_SYMBOL_GPL(kvm_can_use_hv_timer); static bool kvm_use_posted_timer_interrupt(struct kvm_vcpu *vcpu) { From patchwork Mon Nov 14 09:56:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042013 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5222EC433FE for ; Mon, 14 Nov 2022 09:59:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237054AbiKNJ7C (ORCPT ); Mon, 14 Nov 2022 04:59:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236970AbiKNJ61 (ORCPT ); Mon, 14 Nov 2022 04:58:27 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB16B1FCFA; Mon, 14 Nov 2022 01:57:09 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id d13-20020a17090a3b0d00b00213519dfe4aso10143097pjc.2; Mon, 14 Nov 2022 01:57:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bB9HJirhisx3kp/ZaMEke/U77Qzx+ccScf9+6dZL8Nk=; b=CKgu1TtBXStLVDqtwlA/m7sYxkPhNeqIHQBcTqq1ULx84QTN75Ai3t+vXNZGdnkARM qaIqJiK+iuRtvLEsQmI7uRv8wUkPMdJquaHd+bLQPEqfPsjD07CxpLGGy/IYxzakWhHT aPDuQs9yrgV1+/32PksGzrhPpAyCKlRgB/x8xh3kEIKX+mAS5HGkbcarKCpHF8NBJH0V V5uvnzdHXVjiuK6R/qLYdAaB2D29YZfPBy1N7/3ruvUxKFd/SMk4/SF42cFkVhV9n5NU PjmK4b2eBcqFDOwLxK1LP8C5J5t0N1tgkryHNGGjcPqDqwe66pmwpLWuirDJsKSFa8w3 +gbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bB9HJirhisx3kp/ZaMEke/U77Qzx+ccScf9+6dZL8Nk=; b=jz9w7nVfNCx6I449vjygJmG6HCynyw08tnYohzri4IpUy22N8wd54w6OmsVunT7+Kg fYlig+7+aZ8BJkuHOWZn08rzS/FjO4uHKdHpQBPMKpVjCz5DpUBSXXhd8ib0xAnvSJfK ryHjDSqJD+N2KOIG+HTRWhc50HGLWKwjYNqMd60jMJ2wEjHKIf5PMw3udAZuuRGFUYwA zppky+DddigpdeBE+neQ988LV4BZ9CBQRFmxP5iaapgBLIRZWcY9r0Yn63NHIjiVKxDD LLa9dJEYyKKthhbSW9Tr7ahawApy3epN1AzrgmZECXmnbHjZxuPiH8l62XppkDV5O1IL eSSA== X-Gm-Message-State: ANoB5pkvu2f1ZeO0g818uV9rSNSyTxTgSndPo4fJjXSLvrTBZn6gxnro HXbI2QuOC1sitvK6tQ/YwBY= X-Google-Smtp-Source: AA0mqf7kwrRosWCRmtuNPi4Yx6pfZ0CV447TytTF6RF1n3H/CBY+hnwRssDRzaR5W/05fyPt3XDjZA== X-Received: by 2002:a17:90b:24e:b0:212:c6f4:fa5 with SMTP id fz14-20020a17090b024e00b00212c6f40fa5mr13278473pjb.49.1668419815362; Mon, 14 Nov 2022 01:56:55 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:55 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/14] KVM: x86: Remove unnecessary export of kvm_lapic_hv_timer_in_use() Date: Mon, 14 Nov 2022 17:56:05 +0800 Message-Id: <20221114095606.39785-14-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_lapic_hv_timer_in_use(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Like Xu --- arch/x86/kvm/lapic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 5243e619fb0d..f59e7db2af2f 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -1913,7 +1913,6 @@ bool kvm_lapic_hv_timer_in_use(struct kvm_vcpu *vcpu) return vcpu->arch.apic->lapic_timer.hv_timer_in_use; } -EXPORT_SYMBOL_GPL(kvm_lapic_hv_timer_in_use); static void cancel_hv_timer(struct kvm_lapic *apic) { From patchwork Mon Nov 14 09:56:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Like Xu X-Patchwork-Id: 13042015 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AE34C43219 for ; Mon, 14 Nov 2022 09:59:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236395AbiKNJ7P (ORCPT ); Mon, 14 Nov 2022 04:59:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236981AbiKNJ6e (ORCPT ); Mon, 14 Nov 2022 04:58:34 -0500 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A37E1FF81; Mon, 14 Nov 2022 01:57:10 -0800 (PST) Received: by mail-pf1-x435.google.com with SMTP id q9so10507050pfg.5; Mon, 14 Nov 2022 01:57:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ccZiWPsj90sIvFSVbuXn3m5I4XZuLJxz6wzsnjwAo5w=; b=k8cTh9C06Opq104Iymh5+kbFbPD7WZPNGa7NSxb0kfk01Rht+Y8vodld11NScwj1Mq GBG/q+uexLG+y0/X1zrdhGk2W8+AW68F5ZJ8b2bWFgA+duw+xOv15DDXVkDeW8tOWb9D lyVMd4dOX7+CBj51RM6pSVDzsldk6sV35WEKY389ncXkv2KAOs20gxwn7usITqUTEFT9 UmLXcMNdKutk1pFLre5vgPzWLVFlYT+nrtwvPkGK2nivFbM4A4pXEFoh1RPgpyk6XH2C K09FN7Fz6pkuHZC325s7SErYOsK/Fvcv9tFtzS3XWQVNjSPXjiGmaiCEim8rKXrQePaK 41xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ccZiWPsj90sIvFSVbuXn3m5I4XZuLJxz6wzsnjwAo5w=; b=V4osZdCR79Fn/K3bcsE1vTu29sxSOk4OZD1/E0xfXssLpFkjvIjLJDPQod6Lo0eEPM mc3wqpilJLbQgjGgSSjaQgJil3mgW8D77LqzmQZa55UQ3pNTVQY0zLWQZOS5N5nxr/Mg THfpqMeumUfAtakI8ovGzVu4Xv4zDeek2aydoz3V/FGVR6zwR1eup6xuuDSxjGCuANot vjXoaJRvFmIDsGZy0Eg9QS8vQkq79BW9EI39tCWPEPdGQlVrE/kUFcI7dsJ+IZBpAULk 0Ik8zEojkeHzfqHMHitIHYKIuDkbkNlJLGj4ZkyjGNws8pNLn7S2WWWKoNMwbR4058bC oWWA== X-Gm-Message-State: ANoB5pkQloDGpJ5Oo13htK1XRkbVBxD6iFBnzcuPznP9JBT6Md1eKFYy eCBrsKI7Y+SJ9EEkLpiCXg8= X-Google-Smtp-Source: AA0mqf6rKk1TAJ1xRxMxsJCgCfngtD6Auhmpz6x7+FlXTw0eG3bhllrlDX7cMkDQ3Ef87psdHJcSXQ== X-Received: by 2002:a62:e117:0:b0:53e:6210:96de with SMTP id q23-20020a62e117000000b0053e621096demr13163504pfh.58.1668419817537; Mon, 14 Nov 2022 01:56:57 -0800 (PST) Received: from localhost.localdomain ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id d29-20020aa797bd000000b0056c6e59fb69sm6266472pfq.83.2022.11.14.01.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:56:57 -0800 (PST) From: Like Xu X-Google-Original-From: Like Xu To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/14] KVM: x86: Remove unnecessary export of kvm_apic_update_apicv() Date: Mon, 14 Nov 2022 17:56:06 +0800 Message-Id: <20221114095606.39785-15-likexu@tencent.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114095606.39785-1-likexu@tencent.com> References: <20221114095606.39785-1-likexu@tencent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Like Xu Don't export x86's kvm_apic_update_apicv(), the helper isn't used by KVM x86's vendor modules. Signed-off-by: Like Xu --- arch/x86/kvm/lapic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index f59e7db2af2f..b55042462d39 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -2430,7 +2430,6 @@ void kvm_apic_update_apicv(struct kvm_vcpu *vcpu) apic->isr_count = count_vectors(apic->regs + APIC_ISR); } } -EXPORT_SYMBOL_GPL(kvm_apic_update_apicv); void kvm_lapic_reset(struct kvm_vcpu *vcpu, bool init_event) {