From owner-freebsd-hackers@freebsd.org Sat Feb 1 14:31:44 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 656F21F83C1 for ; Sat, 1 Feb 2020 14:31:44 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (107-204-234-170.lightspeed.sntcca.sbcglobal.net [107.204.234.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 488xNv2nT1z4bq9 for ; Sat, 1 Feb 2020 14:31:42 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id 011EVfwO086755; Sat, 1 Feb 2020 14:31:41 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id 011EVfQJ086754; Sat, 1 Feb 2020 06:31:41 -0800 (PST) (envelope-from david) Date: Sat, 1 Feb 2020 06:31:41 -0800 From: David Wolfskill To: Slawa Olhovchenkov Cc: freebsd-hackers@freebsd.org Subject: Re: HT detetct Message-ID: <20200201143141.GL1270@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , Slawa Olhovchenkov , freebsd-hackers@freebsd.org References: <20200201142613.GA8028@zxy.spb.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="70RKSkhWIM76k30h" Content-Disposition: inline In-Reply-To: <20200201142613.GA8028@zxy.spb.ru> X-Rspamd-Queue-Id: 488xNv2nT1z4bq9 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of david@catwhisker.org designates 107.204.234.170 as permitted sender) smtp.mailfrom=david@catwhisker.org X-Spamd-Result: default: False [-6.93 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:107.204.234.170]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[catwhisker.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-2.53)[ip: (-9.62), ipnet: 107.192.0.0/12(-4.81), asn: 7018(1.82), country: US(-0.05)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Feb 2020 14:31:44 -0000 --70RKSkhWIM76k30h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 01, 2020 at 05:26:14PM +0300, Slawa Olhovchenkov wrote: > No other way to detect HT CPU but from kvm get cpu_apic_ids and from > kvm get cpu_present[] and check .cpu_hyperthread? > .... Not sure what context you have here (driver? shell script? other?). But the output of "sysctl kern.smp.threads_per_core" may be of interest or use in some of those contexts. Peace, david --=20 David H. Wolfskill david@catwhisker.org McConnell's Senators are covering up their whitewash of Trump's malfeasance. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --70RKSkhWIM76k30h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAl41i81fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2 Pck3BAgAjuqC9VDp/i38vkVKaUkAAz+fOychsDcgJ07wQiVGXTbalCcUcC1FPC12 duNZUrNjQyuoO/SLp8i0ehWppfyXs1g6QLUoMQGh+EbkuWYbTnQvh0qZ0EpmO/T0 trrvZAoFOz0mcvzWqh8c7XJSgzNzzlTeWPniMU3vKbs8bJtur0i/vq4YciUAbSTW YMKdijz56x2Uoj6plG4XKJCjlvYFhxuPWRvsWI0IvEO+NbLyiBwzKvzDqfAeVubD 8wnddR8z827deTxlNvr+wDOL+IMPRpfigMMu4iM5p5S/q5pKo3RE1o0EGiN0Qb5a QzrjeVZPdBJSxMCp05xS72COH7BNaQ== =oa99 -----END PGP SIGNATURE----- --70RKSkhWIM76k30h--