Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3903906pxv; Mon, 26 Jul 2021 15:24:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9+tHkLtCMn9/Mw5ZFFaFiJfLsv81u0wz6f1ChFndFdrZwcinvtOJcvICu92JBPYKloErC X-Received: by 2002:a05:6638:2195:: with SMTP id s21mr18681363jaj.15.1627338246198; Mon, 26 Jul 2021 15:24:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627338246; cv=none; d=google.com; s=arc-20160816; b=OkVosJZh7N5WkX1v8QiCAS85gprVW1MYbBPmkWxQUuJPLAMGpGI5AnL1A0hAuJloFy R9NMyJUXYDtvkTxCvReIi5IoEUPV93JmIlYwALJinxMKyQMTgZBZkJZIwv1al+ydS7ll 8JFJOzTdt7do/HiWCukP2+aN3yLSwIOIVFZ1em8LZxn6+D+pMRZFHYQmPP+uGJrVC3KF k13uJ5QMOzh9mYDXMX853norMEyfnZP8HViNFsVkbU34to2eCMbTyPlLQIiF+5hjOmjP GPHmZlN6pIANYV7/1ZWshCbkZtZkde1nxlaG5fppYMGP4ZTubHuw0ZGUOn8yDkE+enxa sg4g== 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=Q9dAuuhQeXJnHY9YOxmU0U5Agmhqw2dB6e5Zy44E0hE=; b=KLRo1m+5zufQ4tGykvq9VfJPlAtMEe46odmMAAK0IlgBdxZ/zTzjL9ytOndudnKB0o xNe+72GdRm12eOnCbsgMuP5Y3Ji7AdKnL0bxDS2iy/RWQrMLZH11taoSC+spqBNsOjx2 +WJWs7/B4Z4InWSHonOUodPgmN6nUehkBdvlD0uVbWF5VYrBQ4y+KmA2AJh5J8qEklE6 9YY+KT1QtaN2Wo7KG5kYfUlabJri8VW1WjFKKSdlD+XtHvimVoJO8IByzTzqgIaZTjcX 2ixqt0SE8SB3Cu3ssh/sJPUFPsrrew3nQ4DVSJmzIVLLQKvF75fiTfhZYCzQmClBFTtB 9qOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jICSysVY; 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 f6si1129024jas.104.2021.07.26.15.23.54; Mon, 26 Jul 2021 15:24:06 -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=jICSysVY; 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 S232938AbhGZVma (ORCPT + 99 others); Mon, 26 Jul 2021 17:42:30 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21545 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231575AbhGZVm3 (ORCPT ); Mon, 26 Jul 2021 17:42:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627338177; 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=Q9dAuuhQeXJnHY9YOxmU0U5Agmhqw2dB6e5Zy44E0hE=; b=jICSysVYGOpqUKNL/UcgbjYUVCcYeuCSq7QPUzUG3QTboykUgU6+8/wE7EVot3sQ8K6IKV ylFu4lSHmLShEncwY6pcT9/Bnsor8dRne0qjtjatgrL+foQh3LWjP0e/96akcSbweN1P5o 2aY+2pzqEG4oJqJW+omIC6VWcHLBqvM= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-144-tShSUE-jNAW4OToPzgWVuA-1; Mon, 26 Jul 2021 18:22:55 -0400 X-MC-Unique: tShSUE-jNAW4OToPzgWVuA-1 Received: by mail-ej1-f70.google.com with SMTP id x5-20020a1709064bc5b02905305454f5d1so2500257ejv.10 for ; Mon, 26 Jul 2021 15:22:55 -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=Q9dAuuhQeXJnHY9YOxmU0U5Agmhqw2dB6e5Zy44E0hE=; b=fCHHpVc19XcqQ29At4YvSld9O3+vnuo8Q4HF80V5hPxjF1sG2zJLiTOSihqRRN7L3m ARPulk8MhJ6qlg+DfaFm93V4m/NUhOKuJklE+0mt/A+wN9Me2l2Ya0Buk0dbQ7BVNGye +7UUNXtvujMKq3hzLNPLxOw8FySjYpjuVOijyDuL9l21hzCYaLHwilCcq7/hnI3CcaKE IYipfLMIm/aWXgApAEwaRUWq7NkTmyMkr5EQH1jA1NnwIibbn9mU8Mz9XYlvQWMFy6Ah UnORv5ne7rpdDg3LnNBuGSt6dhzZ9u9PPe1VknS3Z2Ly/H2qQUFHT3gMZi8351MWfWrg 5d3A== X-Gm-Message-State: AOAM53356czewJl31KhYgRF+JMb64MOD5ibxv/Em4+fL3CzA1BNBXfVz rqa/ARkkfkiyFCFxKn/EBecNTzTAgrtGBekmxQIbf5gtY7alkFPeFYOd615MZcExX0x6UWmWlSA ukdokCbPs6vbPpJ2wdrvktGvZ X-Received: by 2002:a17:906:4f01:: with SMTP id t1mr10810089eju.388.1627338174804; Mon, 26 Jul 2021 15:22:54 -0700 (PDT) X-Received: by 2002:a17:906:4f01:: with SMTP id t1mr10810071eju.388.1627338174573; Mon, 26 Jul 2021 15:22:54 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:63a7:c72e:ea0e:6045? ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id l7sm284712ejk.53.2021.07.26.15.22.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 15:22:53 -0700 (PDT) Subject: Re: [PATCH v2 41/46] KVM: VMX: Smush x2APIC MSR bitmap adjustments into single function 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-42-seanjc@google.com> <7ddb5bfb-f274-9867-3efb-0b6ba5224aa2@redhat.com> From: Paolo Bonzini Message-ID: Date: Tue, 27 Jul 2021 00:22:52 +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: 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 27/07/21 00:21, Sean Christopherson wrote: > On Mon, Jul 26, 2021, Paolo Bonzini wrote: >> On 13/07/21 18:33, Sean Christopherson wrote: >>> + if (!(mode ^ vmx->x2apic_msr_bitmap_mode)) >>> + return; >> Just !=, I guess? > Ha, yeah. Forgot to do a bit of critical thinking after refactoring. > Well, == even since I assume you don't want the ! in front. :) Paolo