Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1009656rwi; Thu, 20 Oct 2022 07:43:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49m4AT3rIaX0H9aqsc7x9tPPIFLFAsVq/J3r8tYL+oRW2jSOC60p+o5orvAJWYKmHC4RXq X-Received: by 2002:a17:90b:180f:b0:20d:4e7f:5f52 with SMTP id lw15-20020a17090b180f00b0020d4e7f5f52mr53068964pjb.119.1666277008021; Thu, 20 Oct 2022 07:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666277008; cv=none; d=google.com; s=arc-20160816; b=BusO95ImS6tW+HKfvc5SoeEBWNL5HUfsClMwqRevKt0/x6jEmRn4PM1BQ04foShsKD OQkjZzeq9WypRRH+QIOrP7YEAGNkb40imkKgELKT4HG0VrydJvAOn7dYi/F047uKyHoF Xm1031Fn43qzRpvRaZyi3v2pJeBowmxk6ji0aw7dDFq4DM6KkV01mQ1biAFh/MEyi/Nm GSiYv/JKcLWXp48Z+XZLeTRClHD8VIqE5EN4S4klOX574rHy7KG6XLg+ej2UGKd2V35t xEy7MKUKNHA+L9BOpFkO54IN8mTMVOd18X+ilnKZ5fH3rUPQUKLNvM7D88bUO4LqbtGK 0r8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=FVJfmgnGQuxRuEnHw66oXT6YXcIqyTpdZDa7LzHLN5w=; b=omupR22+KJ0xwgtgjaSUxKEPJZIDt7fwsuEXVDSxfWOFEyJ/SMkWfFgua7gb/qy6zh dXBy+ztKMCJdhUMP4t3AEZbpTsnR/sLNazQXGp0itl17O4pHbO0A4Ihgdj3RUxRr/3lg 2MGH1DqZSUkUuoZozJ+Q79tL2YB2pJC+a2boQsSUJdMgs5sElsS0KupfgulOTCxYqMKE 2EZhmlJotaOpTBu9ofC/9c1q3+1NtokMpLIm1k9HJiLUgJaU7U3vgd7A6G9mXy9ifO44 jK9L/Ksvi7jcehUx6XgTN8IYyHXUAaeJJKC0/8fkPQYR0r3Q/9/UEOyotOvIS+F8sDph 3QAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=kgxlmMZc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a170902b60e00b00176a2d5ae14si20659526pls.363.2022.10.20.07.43.14; Thu, 20 Oct 2022 07:43:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=kgxlmMZc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbiJTOdH (ORCPT + 99 others); Thu, 20 Oct 2022 10:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiJTOdF (ORCPT ); Thu, 20 Oct 2022 10:33:05 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 724DD159D73 for ; Thu, 20 Oct 2022 07:33:03 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B2DC01FB15; Thu, 20 Oct 2022 14:33:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1666276381; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FVJfmgnGQuxRuEnHw66oXT6YXcIqyTpdZDa7LzHLN5w=; b=kgxlmMZcwUcsuGEZrkDxM4t+oB3F1WwaoBTAn13ODCiBzKcnFMxsXNPPIXU4ngCtCLhQ6j iJEAow2rSoR/1zSt9RcXlv1BvMTMqMMf5ILBYcWc8Jds5Z+/yk1hp6kelGxTpiCx1WZQMu 6gwzfhJ8A1E6xp+rngTyS/qDENLzqnQ= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 60DC813494; Thu, 20 Oct 2022 14:33:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id DenjFR1cUWPAZwAAMHmgww (envelope-from ); Thu, 20 Oct 2022 14:33:01 +0000 Message-ID: <69f4f7dd-e630-709d-5aa9-334e349109d9@suse.com> Date: Thu, 20 Oct 2022 16:33:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] x86/xen: silence smatch warning in pmu_msr_chk_emulated() Content-Language: en-US To: Boris Ostrovsky , Jan Beulich Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , xen-devel@lists.xenproject.org, Dan Carpenter , linux-kernel@vger.kernel.org, x86@kernel.org References: <20221020113759.17402-1-jgross@suse.com> <47668d94-6b55-2894-fa6d-82b1f17312bf@suse.com> <26bae6db-0e17-2b54-4046-0e85b26f6401@suse.com> <7fad3782-daf5-654c-f89d-e4dfb92bbf8f@oracle.com> From: Juergen Gross In-Reply-To: <7fad3782-daf5-654c-f89d-e4dfb92bbf8f@oracle.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------zcyfHE0S2ceMK3XoHgwlW6GL" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------zcyfHE0S2ceMK3XoHgwlW6GL Content-Type: multipart/mixed; boundary="------------vR7EN6oD0YjsOeoyfv6823Cr"; protected-headers="v1" From: Juergen Gross To: Boris Ostrovsky , Jan Beulich Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , xen-devel@lists.xenproject.org, Dan Carpenter , linux-kernel@vger.kernel.org, x86@kernel.org Message-ID: <69f4f7dd-e630-709d-5aa9-334e349109d9@suse.com> Subject: Re: [PATCH] x86/xen: silence smatch warning in pmu_msr_chk_emulated() References: <20221020113759.17402-1-jgross@suse.com> <47668d94-6b55-2894-fa6d-82b1f17312bf@suse.com> <26bae6db-0e17-2b54-4046-0e85b26f6401@suse.com> <7fad3782-daf5-654c-f89d-e4dfb92bbf8f@oracle.com> In-Reply-To: <7fad3782-daf5-654c-f89d-e4dfb92bbf8f@oracle.com> --------------vR7EN6oD0YjsOeoyfv6823Cr Content-Type: multipart/mixed; boundary="------------TNcG0JL7CRY7VAUwTgdr1NZC" --------------TNcG0JL7CRY7VAUwTgdr1NZC Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMjAuMTAuMjIgMTY6MjIsIEJvcmlzIE9zdHJvdnNreSB3cm90ZToNCj4gDQo+IE9uIDEw LzIwLzIyIDk6MzQgQU0sIEp1ZXJnZW4gR3Jvc3Mgd3JvdGU6DQo+PiBPbiAyMC4xMC4yMiAx NToxNiwgSmFuIEJldWxpY2ggd3JvdGU6DQo+Pj4gT24gMjAuMTAuMjAyMiAxMzozNywgSnVl cmdlbiBHcm9zcyB3cm90ZToNCj4+Pj4gQ29tbWl0IDg3MTRmN2JjZDNjMiAoInhlbi9wdjog YWRkIGZhdWx0IHJlY292ZXJ5IGNvbnRyb2wgdG8gcG11IG1zcg0KPj4+PiBhY2Nlc3NlcyIp IGludHJvZHVjZWQgY29kZSByZXN1bHRpbmcgaW4gYSB3YXJuaW5nIGlzc3VlZCBieSB0aGUg c21hdGNoDQo+Pj4+IHN0YXRpYyBjaGVja2VyLCBjbGFpbWluZyB0byB1c2UgYW4gdW5pbml0 aWFsaXplZCB2YXJpYWJsZS4NCj4+Pj4NCj4+Pj4gVGhpcyBpcyBhIGZhbHNlIHBvc2l0aXZl LCBidXQgd29yayBhcm91bmQgdGhlIHdhcm5pbmcgbmV2ZXJ0aGVsZXNzLg0KPj4+DQo+Pj4g VGhlIHJpc2sgb2YgaW50cm9kdWNpbmcgYSBwcm9ibGVtIG1pZ2h0IGJlIHF1aXRlIGxvdyBo ZXJlLCBidXQgaW4gZ2VuZXJhbA0KPj4+IGl0IGV4aXN0czogV2l0aCB0aGUgYWRqdXN0bWVu dCB5b3UgcmVtb3ZlIGFueSBjaGFuY2Ugb2YgdGhlIGNvbXBpbGVyDQo+Pj4gc3BvdHRpbmcg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IHdlIGV4cGVjdCBtdWNoIGNv ZGUgY2h1cm4gaW4gdGhpcyBhcmVhIGluIHRoZSBmdXR1cmUuDQpJdHMgbm90IGFzIGlmIHRo ZSBwbXUgaGFuZGxpbmcgZm9yIFBWIGd1ZXN0cyBpcyBleHBlY3RlZCB0byBiZSBleHRlbmRl ZC4NCg0KDQpKdWVyZ2VuDQo= --------------TNcG0JL7CRY7VAUwTgdr1NZC Content-Type: application/pgp-keys; name="OpenPGP_0xB0DE9DD628BF132F.asc" Content-Disposition: attachment; filename="OpenPGP_0xB0DE9DD628BF132F.asc" Content-Description: OpenPGP public key Content-Transfer-Encoding: quoted-printable -----BEGIN PGP PUBLIC KEY BLOCK----- xsBNBFOMcBYBCACgGjqjoGvbEouQZw/ToiBg9W98AlM2QHV+iNHsEs7kxWhKMjri oyspZKOBycWxw3ie3j9uvg9EOB3aN4xiTv4qbnGiTr3oJhkB1gsb6ToJQZ8uxGq2 kaV2KL9650I1SJvedYm8Of8Zd621lSmoKOwlNClALZNew72NjJLEzTalU1OdT7/i 1TXkH09XSSI8mEQ/ouNcMvIJNwQpd369y9bfIhWUiVXEK7MlRgUG6MvIj6Y3Am/B BLUVbDa4+gmzDC9ezlZkTZG2t14zWPvxXP3FAp2pkW0xqG7/377qptDmrk42GlSK N4z76ELnLxussxc7I2hx18NUcbP8+uty4bMxABEBAAHNHEp1ZXJnZW4gR3Jvc3Mg PGpnQHBmdXBmLm5ldD7CwHkEEwECACMFAlOMcBYCGwMHCwkIBwMCAQYVCAIJCgsE FgIDAQIeAQIXgAAKCRCw3p3WKL8TL0KdB/93FcIZ3GCNwFU0u3EjNbNjmXBKDY4F UGNQH2lvWAUy+dnyThpwdtF/jQ6j9RwE8VP0+NXcYpGJDWlNb9/JmYqLiX2Q3Tye vpB0CA3dbBQp0OW0fgCetToGIQrg0MbD1C/sEOv8Mr4NAfbauXjZlvTj30H2jO0u +6WGM6nHwbh2l5O8ZiHkH32iaSTfN7Eu5RnNVUJbvoPHZ8S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wXvT yJz3fjoYsdFzpWPlJEBRMedCot60g5dmbdrZ5DWClAr0yau47zpWj3enf1tLWaqc suylWsviuGjKGw7KHQd3bxALOknAp4dN3QwBYCKuZ7AddY9yjynVaD5X7nF9nO5B jR/i1DG86lem3iBDXzXsZDn8R38=3D =3D2wuH -----END PGP PUBLIC KEY BLOCK----- --------------TNcG0JL7CRY7VAUwTgdr1NZC-- --------------vR7EN6oD0YjsOeoyfv6823Cr-- --------------zcyfHE0S2ceMK3XoHgwlW6GL Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEhRJncuj2BJSl0Jf3sN6d1ii/Ey8FAmNRXBwFAwAAAAAACgkQsN6d1ii/Ey94 2Af9FTsQmeKB0W9tHVkHTh2hlh8WkHYaXHtUZtzC6+PfP1bbQ6A+0zEMFnb34/49RqtBRbOxysPw EeHMstV6Iki/418N6leZY6ed0MW649g/IxXZMO2W2zL7qk0D6J5j61c8DW5VqtYwXbBbvJUCZ9oF 4bRtoarCqNnL3hWHoaTZpN6Hat6MG9f9K5Gs53sTc/1kjFEhVZF28K6kiubmq/iOxQGLsOEJFiyj tKa4Xe/AkVVfIRT6vYtUGWV6NIsXShndmYPzH1RAV+2YHxi5uLaVEpqUd+Ph8fLVztLFYBoybGmR 19fBzhNre321KgmIsApMnHEaF0gYkE1amNmbF0qprw== =/pVF -----END PGP SIGNATURE----- --------------zcyfHE0S2ceMK3XoHgwlW6GL--