Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp27353pxb; Fri, 10 Sep 2021 20:35:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOKl/22qOm6rp2/SOKs/PdWroUdp7ajE0psKjmdtN/D19oLh7nu++wNlhjmUn3KoO8c89r X-Received: by 2002:a92:dc07:: with SMTP id t7mr652102iln.63.1631331354974; Fri, 10 Sep 2021 20:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631331354; cv=none; d=google.com; s=arc-20160816; b=0pYZwId+TvJc3ooMmk69NbtoDV46AbISlUev5adaI7HLtBI7l524T8vUQWUm217yWW X0YgereeuIVaTPxZKpm76mOIQoDNR+OxyetL7Hr0JL5I9NiswXI+T5ScdSGFIAqVQYT9 tJeVl7Rp2oKr8lQ+7r+X4wN7CUlJG9df0j96Lyb3l40ND7l/kPdR4j4vHF8MVMAA46I9 ngD6r5wkLcw9I+wocVzkCuMEogoKbct0/lrRgK6QR4P5gm3ZapMqkDo0TbT/xpKaZj5Z DrP9WyHTZtzWVJmKXjCahQnlCjJOIM/8c2Qd+EH2TVNCoGutC5klIESVNbfqKhdudhwn 8RKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=pdG5k43GvDzLKaCCViG8ja7JUnRV8sFeNGROkrEoC1A=; b=L+f7ykpbXtMsLb6FhiPtZv/crdGoFFHZIOWl2ZeGS2VHp3bMnqMKP0Oi7Zr3kv3uBM XBk9OJWtliGo22jXap+KjqalNet9/MdeyN4074D/rI2AjckLx5s834nU+dB7rqzATa39 WqfbRzoFlFgSOOJ4est+Y5Jf+NwD3MUIRa5cYTg8vVJcg3QWHbjbDVkayozsUQ55TDUW ztlrIjrChXd5ZSRRZu6hsrHqhg210OR9VquwsakgP0pipgo4Ss11RAJMAo/zAX6EwYcj zW4InMJ6u2ebz2XkkVvVJUq6JRiEGmoRCPGnbg1QjG8Hic2qw6y56bknik/iXr+hqk1m AA+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2021083001 header.b=ESofSvHp; 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=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si563514ilh.169.2021.09.10.20.35.42; Fri, 10 Sep 2021 20:35:54 -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=@zytor.com header.s=2021083001 header.b=ESofSvHp; 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=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235281AbhIKDe4 (ORCPT + 99 others); Fri, 10 Sep 2021 23:34:56 -0400 Received: from terminus.zytor.com ([198.137.202.136]:60279 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235273AbhIKDez (ORCPT ); Fri, 10 Sep 2021 23:34:55 -0400 Received: from [IPv6:::1] ([IPv6:2601:646:8600:3c71:7167:9908:f516:fd1e]) (authenticated bits=0) by mail.zytor.com (8.16.1/8.15.2) with ESMTPSA id 18B3X7IF606345 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Fri, 10 Sep 2021 20:33:08 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 18B3X7IF606345 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2021083001; t=1631331189; bh=pdG5k43GvDzLKaCCViG8ja7JUnRV8sFeNGROkrEoC1A=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=ESofSvHpJC4jgq28qaFW8Ax9x+zFVvbQrTMPXRHlZlMZVtivH9YoZ4pPnkiZg7IYi msMg9V3ro7FB9t1QFkBF24jqV2n9Mhch+HnJxShweF9bTVmGOwy94B6t14J948N6F1 4kl98nkxyCjlV8tIpPqMwxsVaE1NeTFamuLDGr8JTewvQgCcbfVnyghaemCZv53vm9 bpUJyx0HJm5H8KXhN4Og7ahEOu7EmfSaD4TXElg3e27W8/2ZAKsKYeZ27uThd8fzuR nGwgxspghHXSX1ZO800ZgfUFCYhPwttOIJJlBnXeyn1/qJiJTZO2HkFK3P8YjDjBBD awxwjn8hUW4Vw== Date: Fri, 10 Sep 2021 20:32:59 -0700 From: "H. Peter Anvin" To: 18341265598@163.com, Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org CC: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoge Zhang <18341265598@163.com> Subject: =?US-ASCII?Q?Re=3A_=5BPATCH=5D_kvm=3A_x86=3A_i8259=3A_Converts?= =?US-ASCII?Q?_mask_values_to_logical_binary_values=2E?= User-Agent: K-9 Mail for Android In-Reply-To: <1631330841-3507-1-git-send-email-18341265598@163.com> References: <1631330841-3507-1-git-send-email-18341265598@163.com> Message-ID: <7CE1178D-729E-400A-A8D5-C8A9CD1BEE26@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ! is already booleanizing=2E There is no need to use !!!=2E On September 10, 2021 8:27:21 PM PDT, 18341265598@163=2Ecom wrote: >From: Zhaoge Zhang <18341265598@163=2Ecom> > >Signed-off-by: Zhaoge Zhang <18341265598@163=2Ecom> >--- > arch/x86/kvm/i8259=2Ec | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/arch/x86/kvm/i8259=2Ec b/arch/x86/kvm/i8259=2Ec >index 0b80263=2E=2Ea8f1d60 100644 >--- a/arch/x86/kvm/i8259=2Ec >+++ b/arch/x86/kvm/i8259=2Ec >@@ -92,7 +92,7 @@ static inline int pic_set_irq1(struct kvm_kpic_state *s= , int irq, int level) > mask =3D 1 << irq; > if (s->elcr & mask) /* level triggered */ > if (level) { >- ret =3D !(s->irr & mask); >+ ret =3D !!!(s->irr & mask); > s->irr |=3D mask; > s->last_irr |=3D mask; > } else { >@@ -102,7 +102,7 @@ static inline int pic_set_irq1(struct kvm_kpic_state = *s, int irq, int level) > else /* edge triggered */ > if (level) { > if ((s->last_irr & mask) =3D=3D 0) { >- ret =3D !(s->irr & mask); >+ ret =3D !!!(s->irr & mask); > s->irr |=3D mask; > } > s->last_irr |=3D mask; --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E