Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3857126pxv; Mon, 26 Jul 2021 14:06:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvS7nyZllBIfc4dgkDJptXtFzT7CeinCi4uknds/6nYSV/O/xv2WdJgw7v/TgGE79grJat X-Received: by 2002:a02:6f02:: with SMTP id x2mr18248175jab.54.1627333578189; Mon, 26 Jul 2021 14:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627333578; cv=none; d=google.com; s=arc-20160816; b=eCgBMmGStZg+442XqNMTdUDai2jMtPAdnyILkrVFxe1kO2tban7SNa6WlagGYdaCju drjFs1MywG59K1ZfoVmvf+79Yg0Stw+bOj/KYJbyJQGlamtsssRlQRgQK7SoGQlRaAXo C6ZL/I1w5qj5TnWgLzAVmvzIe+qzAxkBYjQYkGfI1VzaxZEx+bGWrUbpyxgFnPu2mxi9 +3cn9T4fQA9QsxuAkZSeFph7zTJNTejaRoglYTr+B+NYMOKIAzlg2U17RH1UyYy+fmp6 8dZ+yvFhkKkSL/EBx7mxhWG64JfU16LSuZ1Z0+zMJmC4dyAs5gSwW+kQ8Z9EmVoV/FTJ iohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=nsAdnl9z18qs+3xP5OpyMQ6xLIDE+aQIuQ62ZMIj5qo=; b=qHryyzOFaf+IR/EaZc9FyOdqw0nZ8DAE+oDgPO1iPE6OMP5fgzIuD5YybeK6zavQ19 eQYkm//UWVBmwp+nay/rCri9MdhJ9hSX8xTe4nvTPQnmZMipKCjPQPe6uCEjK0oXWEMW 3k4G2nWzNpaRkfRlRaxRfO7PQ+KlhbVpaDLfT2I3qGxSnUCOvzzIhRX9AAldpe8672br T30MfQ3GbtnOUqzYy6v06l2Ptdm73/dizsAYAqJTdzThyiFYIA9NxqPYqF+tbaPKeSXo evRHi4fp2zB8BICkvFGaflxUnuPTvM01DsRLH60p38TLiRcgMMwlY8DSbhDi3UBRlzQG Bv6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=drPHbmBc; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si1162911ioj.7.2021.07.26.14.06.05; Mon, 26 Jul 2021 14:06:18 -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=@redhat.com header.s=mimecast20190719 header.b=drPHbmBc; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233221AbhGZUYj (ORCPT + 99 others); Mon, 26 Jul 2021 16:24:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:25929 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233023AbhGZUYi (ORCPT ); Mon, 26 Jul 2021 16:24:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627333506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nsAdnl9z18qs+3xP5OpyMQ6xLIDE+aQIuQ62ZMIj5qo=; b=drPHbmBcotkaPqnqHPQ4TnWethu7zlOZZsGsIjNGX+P/ZB/JCjQ8CNosUs0jGZIh2xgIMH gMONzSd72odexRHzLjPoggkUrr0QfG+4+hI1iqZI1QUf5uY7sLv187U6fMAi2OBy8Q7+hG wTjasPd4myewEcGDLOzoDy13UzNek7M= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-440-rReZzCoINbOCFyPpbf5bzg-1; Mon, 26 Jul 2021 17:05:05 -0400 X-MC-Unique: rReZzCoINbOCFyPpbf5bzg-1 Received: by mail-ed1-f70.google.com with SMTP id n24-20020aa7c7980000b02903bb4e1d45aaso3660118eds.15 for ; Mon, 26 Jul 2021 14:05:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=nsAdnl9z18qs+3xP5OpyMQ6xLIDE+aQIuQ62ZMIj5qo=; b=LMeUG8k8aPOyIUB9jFzC5QHXh1DSBawwTs+ZXtRYOjk9ZXmYX5xEsPhl7jF+iEnj8g 014q5OAy7MY6n+CMC4CIXJlMYbdXaZRjd8vlh6TXB8IZzBq7zKiK98b5AV6sR8F9NrLx VjafAmkVn9/AMdpzYUpOCuHJsXVyqknKthklUiEWelX1a3iJFIVvNr91tI+gGGZxThAo 8LxvF0oWqJr23w3685sPbyxdIUmXbwJvQWDIrvZHQYiSlMhQaTkfBNmFZrxxC/tSfm1o ILpN1VfGhWiVCkxEbyflbpaIX8O2oAlfDW1bPBBqgp2imK+ESNcb1P8uXjjsTUGzTlCO u8nw== X-Gm-Message-State: AOAM532CAqXVMGbMVRf94R3Dne8UpmzxuqvCyjL4razBna+dOpzVWpGj Sri89HKiJI4nynA4AA6mX1ubC/MWUhmFhlimZAzRYdHujt6by5oKT09RsUKb6+io1UJagcFxUcz iQrZeS1qRu4x9IPyX2Q/hQ72v X-Received: by 2002:a17:906:4097:: with SMTP id u23mr4283063ejj.98.1627333504015; Mon, 26 Jul 2021 14:05:04 -0700 (PDT) X-Received: by 2002:a17:906:4097:: with SMTP id u23mr4283049ejj.98.1627333503819; Mon, 26 Jul 2021 14:05:03 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e? ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id n13sm389090eda.36.2021.07.26.14.05.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 14:05:03 -0700 (PDT) Subject: Re: [PATCH v2 45/46] KVM: SVM: Drop redundant clearing of vcpu->arch.hflags at INIT/RESET To: Sean Christopherson Cc: Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Reiji Watanabe References: <20210713163324.627647-1-seanjc@google.com> <20210713163324.627647-46-seanjc@google.com> From: Paolo Bonzini Message-ID: <47679db7-5662-100d-c9be-b3df8e2d647e@redhat.com> Date: Mon, 26 Jul 2021 23:04:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210713163324.627647-46-seanjc@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/07/21 18:33, Sean Christopherson wrote: > Drop redundant clears of vcpu->arch.hflags in init_vmcb() now that > init_vmcb() is invoked only through kvm_vcpu_reset(), Not true if patch 9 is kept, but at this point hflags is zero anyway, so the patch is okay. Paolo > which always clears > hflags. And of course, the second clearing in init_vmcb() was always > redundant.