Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp761863lko; Tue, 13 Jul 2021 09:40:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxswZ/E2fvkg9spzPuUdjoJIxjc2ZKYe4A9i15q35aOCpD1dOpFDOMfUirxGdEE3VJx5ud/ X-Received: by 2002:a05:6402:204:: with SMTP id t4mr6884808edv.34.1626194417350; Tue, 13 Jul 2021 09:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626194417; cv=none; d=google.com; s=arc-20160816; b=l+vWbYCpruCUIV2NxBNcti3FAZ1nY2ZP6VBd9C2WGuN6ziOFzx/9StgmCH24WFc1Rn nLJ0WRn93D+q3wzlORury4C6LE42NQXjWtkr48LOTXsk4nnMo2TC6bADUSxkz4/dG7DL sZufxevC7VqDV3mRqCe1KxglKAsGE26gfh71Lvo1eWqlwi4Buf/3Cf1NN2KmoOhAlpzB IjJyrD4a8FOreg9p/VB78yZc0p23TYuNIbzjCQd4GvvYH18uSk3QjEuPymdU5dcrK+/e 19JE1SfUuNoPr2mAT8IF+x4Wbfw074a6/tgfdFm+ZFgqJGUElfXjXLKDH3DxV0PkqXRO hPxQ== 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:references:mime-version :message-id:in-reply-to:date:reply-to:dkim-signature; bh=/kobFDO1v5kxfmrecOu9TTYWpLXIpef9EiaYGzHDjPQ=; b=ydQBgn9FiKTbDtGJUm4bKopiizDRvo486hBM6JrOqU+TFlA7SyRF7BD9GMGtDD3UMy mnYpciKOFMBCXF+Vxg66aj6GfbtcuHDhqxwWeEXfBWPPKrT9HmX3jiJ0qZ+g8u55DFK3 zdgYiJJaWwu+dtGpkjQUmzk1CObJfzSwLpf8LwR7eHlwplwwxW+uctGTTfBia9Trk3aX Wsb0dq8VPwBlBl8fH+N874r9a5Sxdr/mM7QBfviafkt9Ye9gDRGPu2wTJ6AAahHKHasy UUFDnQwc29dgTiF7VMXTXioeODdeSpMMMfE5Fsum/ZFw7Vj7uzG7lsO0tYHj7h3JMpSZ jJow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="gPT/NLx/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si21920661ejh.116.2021.07.13.09.39.49; Tue, 13 Jul 2021 09:40:17 -0700 (PDT) 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=@google.com header.s=20161025 header.b="gPT/NLx/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236119AbhGMQis (ORCPT + 99 others); Tue, 13 Jul 2021 12:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235276AbhGMQia (ORCPT ); Tue, 13 Jul 2021 12:38:30 -0400 Received: from mail-qk1-x749.google.com (mail-qk1-x749.google.com [IPv6:2607:f8b0:4864:20::749]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83C0DC0613EF for ; Tue, 13 Jul 2021 09:34:50 -0700 (PDT) Received: by mail-qk1-x749.google.com with SMTP id r190-20020a375dc70000b02903acea04c19fso17417884qkb.8 for ; Tue, 13 Jul 2021 09:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=reply-to:date:in-reply-to:message-id:mime-version:references :subject:from:to:cc; bh=/kobFDO1v5kxfmrecOu9TTYWpLXIpef9EiaYGzHDjPQ=; b=gPT/NLx/hKtf2TiWbAi/D/oofKe74s5iRoN0Y2bdIZ3lwZnppiDA0osrA7VY3/M91x AhQQK1JCZnN0jw3nhBgB7FiJZVFYCT9JnQ4BXAWhGEpVpUf3fMekheoovaZi78dj0FKw xh8UYd0NbDDf4N90irX4TGpk1MKh5fLo/yV/dBf1y/rCO+1lptagV7Ay7Hagh6Mzv7bO m2pa5xmKIXIdKs3V+x0KsQEks25FClM+X0oNmuNI/hV3qliSxyVSwvXFe6E2HR748cpg MQhKQOZPlr+Sq4p4tbQ8C9MUasRSNpLD540b8+KhTjCnfCYOWymQt2ZX4AVNBkr6vAev avnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:date:in-reply-to:message-id :mime-version:references:subject:from:to:cc; bh=/kobFDO1v5kxfmrecOu9TTYWpLXIpef9EiaYGzHDjPQ=; b=S9ULLhVTFvaIZoHcQn6CguyaZHumiPRuPlMEJwGTw2xZMz6EfDsF1/vn8RDSI0JnJH 8aOQvauS0fq3KQVBDAj6rDH5gE0aV9jMRzAGh3ipj+Jk/09XUP4Jp/Rnu/OViEwGGKhe Kg46RInxyHfwN6uciXDU0uIwTIWIy88hcQ5od2BTLWwUwtK/W9gL/uJbtTx7EjT9f1/S Ccmq0pz7IlVbQVL/n/+NNpuI2Z/KrLJQi5BCiIpgxp8WS1U7QGiYpWiCXOda5B23YdMh Z/tQL+wgNAxjcX/8OwAOgJq0tbd1vhfmeCmDsG+gMV0PkActoID7WiRFiI3HLxdRwWoW hdqg== X-Gm-Message-State: AOAM531KUcmFHQB/M9yV6+TCa2JvuAbHmDQHzPculN9mM6cRr8fuaMtu 0XTCO8OF7Zr4RjnOWxBfrNdW1z+SYF4= X-Received: from seanjc798194.pdx.corp.google.com ([2620:15c:90:200:825e:11a1:364b:8109]) (user=seanjc job=sendgmr) by 2002:a0c:9e6a:: with SMTP id z42mr5749421qve.37.1626194089669; Tue, 13 Jul 2021 09:34:49 -0700 (PDT) Reply-To: Sean Christopherson Date: Tue, 13 Jul 2021 09:33:17 -0700 In-Reply-To: <20210713163324.627647-1-seanjc@google.com> Message-Id: <20210713163324.627647-40-seanjc@google.com> Mime-Version: 1.0 References: <20210713163324.627647-1-seanjc@google.com> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog Subject: [PATCH v2 39/46] KVM: VMX: Don't redo x2APIC MSR bitmaps when userspace filter is changed From: Sean Christopherson To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Reiji Watanabe Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop an explicit call to update the x2APIC MSRs when the userspace MSR filter is modified. The x2APIC MSRs are deliberately exempt from userspace filtering. Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/vmx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index f605b43d28e1..d5a174ff20f9 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -3936,7 +3936,6 @@ static void vmx_msr_filter_changed(struct kvm_vcpu *vcpu) } pt_update_intercept_for_msr(vcpu); - vmx_update_msr_bitmap_x2apic(vcpu, vmx_msr_bitmap_mode(vcpu)); } static inline bool kvm_vcpu_trigger_posted_interrupt(struct kvm_vcpu *vcpu, -- 2.32.0.93.g670b81a890-goog