Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp761923lko; Tue, 13 Jul 2021 09:40:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyet+yi1E4YQrozo0kr7ZBfl9gCdM3/6L17bJvEWbH5RZX68VajS3dnit4jfwykomjhW2ua X-Received: by 2002:a17:906:3e0b:: with SMTP id k11mr6682855eji.305.1626194423557; Tue, 13 Jul 2021 09:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626194423; cv=none; d=google.com; s=arc-20160816; b=t32RtQv3OUTk6Pnw0N59Y8TJ/K/8k3OfjD3q1CFP0zBcQzlSIh+usbY6bhpt6pxONF MBv1YdkWA9J98tH9ed6EaPKA8nuKZKaq3uGiRLuZMvJZsEDIpAMQmjw4bQJcCjmt+28a fQRTU03oWiOaXccsD1gz134jw38lPOU8CIYkUwjlyPqIjrumWBkccWXzzKk2un7LrCAN u4gXlTVu5lopOJS1CQrhuab80CpiGl4P6+d6DJb9KpJ167SxO2gGU1kPwHLOmnQ8peCC ON7sXYN8kipKanjiXz6uGGdNDzg+IlkT9tEjOmYF9KUeiSv3h93y7Fo5j6uYAmUmhShi n2cg== 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=ruF9NeysJG8YlLwDSa8NGDxOHgaZRuCfs6bt3ZWAhqU=; b=IVMx1U8Y0QEgb+9FazHQ08g4ECbyIfLGDxqxDqwbEMCLRHO4l9dbK86Re+flmyXu4u SrpTYrXD4LGbw0cG2syzO/hEtoxtJ3ZrSTF7/Ru1y8RKWdjcyw7VB5z9ZyD6aI6T3jkH UMsrv/KcLzXvP+xB2apDXw2dsb+mxD53lYxoioCmg5yScKeJYpVFrVZwv1co9VEp4w5Z Z6OpEUX8SGSDOYwJCkRl0TbNsKb7JAg15HQHRvZbvqsPUB1fgNfEgYyrPsuIySzrkedk 66bHvpuQfOv474WI12ZiWZdBlriDh8jcJvfu9VKu83c7oB3CzTA+ZUVOL5KeHOqkiMNH xxZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="q/QtnyQ9"; 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 g21si6836034eje.404.2021.07.13.09.39.58; Tue, 13 Jul 2021 09:40:23 -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="q/QtnyQ9"; 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 S236172AbhGMQiv (ORCPT + 99 others); Tue, 13 Jul 2021 12:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235572AbhGMQig (ORCPT ); Tue, 13 Jul 2021 12:38:36 -0400 Received: from mail-qt1-x84a.google.com (mail-qt1-x84a.google.com [IPv6:2607:f8b0:4864:20::84a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33CF1C05BD2E for ; Tue, 13 Jul 2021 09:34:56 -0700 (PDT) Received: by mail-qt1-x84a.google.com with SMTP id w13-20020ac843cd0000b0290251f0b91196so8010205qtn.14 for ; Tue, 13 Jul 2021 09:34:56 -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=ruF9NeysJG8YlLwDSa8NGDxOHgaZRuCfs6bt3ZWAhqU=; b=q/QtnyQ9oosp7aP3q8zCPx1rbONx4piEuNDTe5YQXzXRg7B3QsfVOcDOUrjXpAfZ80 rUMkNbVNonq5w6AWR16/QUr487h5VRHwruFBiRrptKAaDx/pT3JeWaWN4clj6AKxK7xC r022arb8lhLRWVLSlgIt/w7FQmIElKHrLHkQratxTBJTdeCvMEmwt6ZV+m/3BikSZ5wf lxWIf/tGWw2e8h/bCuvjojg6z0dfF9T7gqY0C2T7Ub5Ayp0nNsseS5hyH7MzbMDDrh4S 1gB7by08qF06UvRUJgS6IXMbGLQbKO4qZCtrmWWFO8R4th4LMvFeOSVW1O6cAGvE8VlR nOjw== 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=ruF9NeysJG8YlLwDSa8NGDxOHgaZRuCfs6bt3ZWAhqU=; b=RLjiR0wz4wWUX+ZEKLAdLvqGFgqdldOTqK5SduO5lKslr9Bts+AY98TLcJ4vzS5Y1N B262DMeA5nAlDTR3SeKzmH0iQKipvgkR96ED3+VELbL7R1Is8KUYeOkXMCjysyJ5P/3m w/kyLr/zW5AyTsjUwUNwwyrYttkdelrd6Q7XIbxXaWAdo/d8LcSRno1iLYn+lNz/cVa3 Ztkcm5ii6BxsMzvmXWEXx1e3MdDDXXwLCAXzBt27JBVuD2SYtldRFGpy2eZDoMDHwKLu vXvGzjANwbBw7N1SAIydoMUJfoDyGMqfaYYUYlquJ3ZS0YQVdw8PjJFqr79D0825nxB0 TF8Q== X-Gm-Message-State: AOAM532Gz70mqvTJ7ROkdYG9FX1ePOIp/ESepu6fUGJm6erCjVFJY2ca RTPKXul1+uxylwgNqsDoyJKgY6t0ZvI= X-Received: from seanjc798194.pdx.corp.google.com ([2620:15c:90:200:825e:11a1:364b:8109]) (user=seanjc job=sendgmr) by 2002:a05:6214:4b2:: with SMTP id w18mr5659848qvz.5.1626194095368; Tue, 13 Jul 2021 09:34:55 -0700 (PDT) Reply-To: Sean Christopherson Date: Tue, 13 Jul 2021 09:33:20 -0700 In-Reply-To: <20210713163324.627647-1-seanjc@google.com> Message-Id: <20210713163324.627647-43-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 42/46] KVM: VMX: Remove redundant write to set vCPU as active at RESET/INIT 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 a call to vmx_clear_hlt() during vCPU INIT, the guest's activity state is unconditionally set to "active" a few lines earlier in vmx_vcpu_reset(). No functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/vmx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index cdde1dfaa574..4acfb2f450e6 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -4465,8 +4465,6 @@ static void vmx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) kvm_make_request(KVM_REQ_APIC_PAGE_RELOAD, vcpu); vpid_sync_context(vmx->vpid); - if (init_event) - vmx_clear_hlt(vcpu); } static void vmx_enable_irq_window(struct kvm_vcpu *vcpu) -- 2.32.0.93.g670b81a890-goog