Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3185013rwb; Wed, 30 Nov 2022 16:56:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf4er+rbWVM+QTMLRDMHXJ4bbpSJEIaNbgdaDW32KtdUaA+/9FGghLFhK2Zlg1xB67xV1F9A X-Received: by 2002:a17:907:1387:b0:7bd:b901:4b86 with SMTP id vs7-20020a170907138700b007bdb9014b86mr20157599ejb.712.1669856170530; Wed, 30 Nov 2022 16:56:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669856170; cv=none; d=google.com; s=arc-20160816; b=iLeiLXbwYi2q84TzLws0fUwX9GjIsd7KN5rYEcmJyyXuKXP7pvdtchuTydTAczthPj T4aMI1+FDwBfFZaEbHwpRlektpMHC7Mmhl/sISLAPjOv4BR3EsyEPugjleHiKC50NdH6 8sVm4vglZzQ2BjDFAmux554fKur7CVo394KEdjc4pA2Vtkw+3LXIsLUGxPlQ1JkGBsdj Clv7nL50Pl9laPvPnpdEwDC/xFzWdv5P0MgjzDbkv+KvfqMgxYt7ldOlg4hP932YiYuw c+kxK6ORo1PSVKtwoL9GD4VMe1bV5VIv5m3P4ojCXk6Db2coTjETeRJ36KwmUAHZOpjN Eezw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=uhI8yDhdR7lIAaqvku/gdFE7HWy6VU8JNAGQp8QsO6I=; b=RnCKHDGN1TP5gdJQjrKZnRy0Fc6v6y4wJd+3U9ZLmEzKAi6B91uJsizUuQ4OG+bcIS S82meZvY4BbPHdwB594+dVI2zExFvFXgE6vrsrw4LoBhzWPOJo1N6FLrMcgbB2sEXWIQ k0vHn3VJ5nhF/EUyx1uaVqJhY7Jm6xE5K4wn1RgLP/2OBUQeUum942l3sRYfKRHicQ4L w/uJ6VLB4j+jNKtW7TLQMbN1vqj3zIP0xHtAsXViEaDvRAVkJftSnb/Fbt6iwqOEY2C/ Hwr2xpaGpnB7GJciCoEIJm0aBvWZtc4mQ3XosXmJo166x/yS27hKLDteexDqeOrWgPb7 FWMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=JGKTwFHT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk30-20020a1709077f9e00b007a7424836d5si2476629ejc.234.2022.11.30.16.55.50; Wed, 30 Nov 2022 16:56:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=JGKTwFHT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229783AbiK3XLW (ORCPT + 83 others); Wed, 30 Nov 2022 18:11:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbiK3XKl (ORCPT ); Wed, 30 Nov 2022 18:10:41 -0500 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FE3263D77 for ; Wed, 30 Nov 2022 15:10:02 -0800 (PST) Received: by mail-pg1-x54a.google.com with SMTP id a33-20020a630b61000000b00429d91cc649so87821pgl.8 for ; Wed, 30 Nov 2022 15:10:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=uhI8yDhdR7lIAaqvku/gdFE7HWy6VU8JNAGQp8QsO6I=; b=JGKTwFHTr3zFyFeRyDhx800NTwE8fbKBoChRZ4rCsQDcOc/eGjPbGsVDNkCwWmSHdn 4zWsAcy02h7DG9I7KIrR/3G3ynUAl5zHFprvqWawNYq0ujuz0rj9xQPN87hRttEvJWya MaZkpYk6hJDhRKiSggxmfSLSCGk6wAycOhmze7v3vnTNsBJM82DsGnT9K7gXXth5q453 GXnW0gnhFQMQ7rKcFFJUmj9xHXOE1CyUnZYbsfJ9eekI1f6DwJJHgA0YwjDavFZGHgxi PIdF3Xw7u6ZSs+rqvW6sJFzKLF1Mn/CCKFnzXLHVYU5aHYTg5a9RqdAAC/8bhq/W34bo HRWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uhI8yDhdR7lIAaqvku/gdFE7HWy6VU8JNAGQp8QsO6I=; b=IHEjL2j/rN4Nsm9sgKD8LB//+/ae8Am2hgU7t+hdD8Sp70tp13lgdDI5gvkwiqMqwV YWH6Q8Bt/2f2Ipr/Zm6+9GO5XRxaXw4YQWF3dFT8CWncwdmOlanrN2/IeLbolSsXZZBr zVpKQ2Gr8Wno4hKoVE357y4UmqfNABHA6Sb/AdwdQEkp2iWkvz7Udc7kERLxZbaLPGCu gKSgG1PrA++FdOk0oMmH2wXs5iNvngBHWhfkusLJqnV43ITbl88K7tZy8SbvFjKglQdg bQP4aYGDTQtg8bm+OeJS4dTS5Z0+Rs6TblE4/hGm0ApUnbkiEWcB77cfxuG2gReOKBZe 9fqg== X-Gm-Message-State: ANoB5pk1N3otP/ZsZ8I02C/ZtrGcdljEnr0qSa7hZXqKxanygDHaiNA7 BB0XXiAXPpOSAnR9X3H6UNfwvLgAXaI= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a62:3084:0:b0:56d:dd2a:c494 with SMTP id w126-20020a623084000000b0056ddd2ac494mr44472082pfw.76.1669849796263; Wed, 30 Nov 2022 15:09:56 -0800 (PST) Reply-To: Sean Christopherson Date: Wed, 30 Nov 2022 23:08:55 +0000 In-Reply-To: <20221130230934.1014142-1-seanjc@google.com> Mime-Version: 1.0 References: <20221130230934.1014142-1-seanjc@google.com> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog Message-ID: <20221130230934.1014142-12-seanjc@google.com> Subject: [PATCH v2 11/50] KVM: VMX: Don't bother disabling eVMCS static key on module exit From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Huacai Chen , Aleksandar Markovic , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Matthew Rosato , Eric Farman , Sean Christopherson , Vitaly Kuznetsov , David Woodhouse , Paul Durrant Cc: James Morse , Alexandru Elisei , Suzuki K Poulose , Oliver Upton , Atish Patra , David Hildenbrand , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Yuan Yao , Cornelia Huck , Isaku Yamahata , "=?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?=" , Fabiano Rosas , Michael Ellerman , Kai Huang , Chao Gao , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Don't disable the eVMCS static key on module exit, kvm_intel.ko owns the key so there can't possibly be users after the kvm_intel.ko is unloaded, at least not without much bigger issues. Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/vmx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index d85d175dca70..c0de7160700b 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -8490,10 +8490,6 @@ static void vmx_exit(void) kvm_exit(); -#if IS_ENABLED(CONFIG_HYPERV) - if (static_branch_unlikely(&enable_evmcs)) - static_branch_disable(&enable_evmcs); -#endif vmx_cleanup_l1d_flush(); allow_smaller_maxphyaddr = false; -- 2.38.1.584.g0f3c55d4c2-goog