Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1796289pxy; Fri, 23 Apr 2021 17:56:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1st+OMBMhdi2F77E9QdnzZhA87Gm9o8RL2qWOtHnb1Hbtp7pzF+17DEoyqmHzqHqILheT X-Received: by 2002:a17:907:161e:: with SMTP id hb30mr7061330ejc.280.1619225809080; Fri, 23 Apr 2021 17:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619225809; cv=none; d=google.com; s=arc-20160816; b=x4kShDFzvrUrzQIASUA54ct/2TKmF/jxdirBMio+BNTiJmeqPW2HBKQldje/EVij9m LKDR+jW0fjue/2x0TSVQb8PAiTLcwaadzsy94hdnsZgjaZwhwpy8YQxLvmVbwXQmEofi kpHtjaNkgM98/G+HKvmTYd87zSyfTGWe2dmpgJjihSh0I134m7vOz1Hvkawn+5ADMPGG cCnB0LHWD2ikyTul4erckAYKHlPU9Z9AcL/nCFsJdk979KEShc6S3NhMf/utWH3cj62J BjSpzpYSVA6b6wPUu/1DP/I5mvh59RbG2AvXhCrqfSzJnuhVH4pDPmux0PpOgdZQL2vo hvxQ== 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=cHlwUSJUjHnQJ6kDK9sfUkfBgeAVcW+1jr4rnQYo1Ko=; b=hXtBlJ8zewlzKnly+m8iBPixeKBnluK7U/mxHPJPildYgnt4fGToY/bGMJ2PfHh5h+ pab/1/QkE7ZbEim3lgEae4YFKOaCXZUDgH18vUa/Ir7rrqKrxSfOH0HtO042107fAm/u ZKnWtvkF7zWmdtd68Af5y5bPYWYZUEHY99DEkG2+Ec0KakS22QoMW3xnBFy5yUnf9x2+ VvA9z9FmcFl81y0lIeFNI7c5PGNYGPIIVLH0k/JRN2u2h6iPSalW506d7zt3ZsI5F7wD qNdEzkQb9ezyAQM5g3ExgVWl6g/4+jRdPiD0PfCcyw5P6fpDQ0mClqrYP8xpEeXsBOyD Te0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fumK39eu; 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 dn3si7475026ejc.178.2021.04.23.17.56.26; Fri, 23 Apr 2021 17:56:49 -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=fumK39eu; 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 S244287AbhDXAz5 (ORCPT + 99 others); Fri, 23 Apr 2021 20:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244677AbhDXAyY (ORCPT ); Fri, 23 Apr 2021 20:54:24 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44DF2C0612A8 for ; Fri, 23 Apr 2021 17:48:27 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id d89-20020a25a3620000b02904dc8d0450c6so26112788ybi.2 for ; Fri, 23 Apr 2021 17:48:27 -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=cHlwUSJUjHnQJ6kDK9sfUkfBgeAVcW+1jr4rnQYo1Ko=; b=fumK39euhhCQk2484+Hwff7kn91tSshSd9Oao+wPZHIv/x6YICMBz2CGSs2lqBhgJo RRSVdlnliIu3d5znNnEiGxMnWYvfq0A+0gfcvNZaz2ejSvhpOSfYlP7nXCW0tMkPei7y IA9nlGv4r/dckLaQYT/H5SYXrYoxyPPLLYB2oTteq7Em6/H4stXp2fzofJ0qBVGHDXco QeTDQrA9HBw0K2njlFLzyx6OyFGmgcb04pshJi/ZCdb3p9rSFhHVLTSP8LDexL1A1Cl5 wAJ2sdlqS2/P73F1uOHSYq45NGO+BN133HuQg0l52L/Tgdm81DVYlynl3j3zWGy/4+qS uPQg== 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=cHlwUSJUjHnQJ6kDK9sfUkfBgeAVcW+1jr4rnQYo1Ko=; b=en3eFBdrmifjvRcQXVEnipP3kHDZfCEekuAYISsVtlwUG7Jq6BTvWagDXhINKmklxT wTBFnBqKcI8dFj2it6p3uvJFihUHF7I3GOnbFU8BvwKsMeN2xx5JKMObjgmeHKe8kWyI Ya5iXZsxa4ckadE4/qXbMftLA/Je/AtsbFOmSMDsiSceTfpFimf89c3+vYMsn49QpIkt af8/JoRjRVEVJh97eQaTUEqVAtfqGTvBUv51nuh/F/qEKPkVGFfZHG4m/7AgOkSjkXrZ JTH1LCseh/U91vayij96td8gcDX7DAak8+dreBf+CofR/KRnsKxVvt3wHjvaNJFnomuO vBhw== X-Gm-Message-State: AOAM533fdNVgeTB84YQqdd5onekyiLSIvoTFLOaVknr+qgIw0HD86GBI K7ZBgxWWN8deydTAGf6Kx1d2emS6ov0= X-Received: from seanjc798194.pdx.corp.google.com ([2620:15c:f:10:ad52:3246:e190:f070]) (user=seanjc job=sendgmr) by 2002:a25:4bc6:: with SMTP id y189mr9589994yba.14.1619225306532; Fri, 23 Apr 2021 17:48:26 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 23 Apr 2021 17:46:41 -0700 In-Reply-To: <20210424004645.3950558-1-seanjc@google.com> Message-Id: <20210424004645.3950558-40-seanjc@google.com> Mime-Version: 1.0 References: <20210424004645.3950558-1-seanjc@google.com> X-Mailer: git-send-email 2.31.1.498.g6c1eba8ee3d-goog Subject: [PATCH 39/43] KVM: VMX: Remove unnecessary initialization of msr_bitmap_mode 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Don't bother initializing msr_bitmap_mode to 0, all of struct vcpu_vmx is zero initialized. No functional change intended. 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 beaf9fefddad..cfd986aae7b7 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -6982,7 +6982,6 @@ static int vmx_create_vcpu(struct kvm_vcpu *vcpu) vmx_disable_intercept_for_msr(vcpu, MSR_CORE_C6_RESIDENCY, MSR_TYPE_R); vmx_disable_intercept_for_msr(vcpu, MSR_CORE_C7_RESIDENCY, MSR_TYPE_R); } - vmx->msr_bitmap_mode = 0; vmx->loaded_vmcs = &vmx->vmcs01; -- 2.31.1.498.g6c1eba8ee3d-goog