Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9B15C433EF for ; Mon, 9 May 2022 13:46:31 +0000 (UTC) Received: from localhost ([::1]:36368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no3iY-0006Vd-PI for qemu-devel@archiver.kernel.org; Mon, 09 May 2022 09:46:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no3fj-0003Dj-MD; Mon, 09 May 2022 09:43:39 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:36384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1no3fh-0003em-3D; Mon, 09 May 2022 09:43:34 -0400 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-out1.suse.de (Postfix) with ESMTPS id 2CBBA21AD3; Mon, 9 May 2022 13:43:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1652103811; 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=wyqaYFaHIfYULQBahVGyHVIFlNF6pA3asK4ElkjxAog=; b=o42+VsKWd9ddPy+woSpOnhiy8cG/p9+ovqZp0OyOeBCRhOALK9bZLqGL0tmFGf7Egjl/b6 Begn1oHI2PV2mbehSfHnd5nVvG1xRORuxYFvX8Z9G/31jpw51ZWJE0I+Bb+w6K1G4yFmgU K13HcuJUFL8p30CGlI4+EC7Er/j/tJY= 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 C537213AA5; Mon, 9 May 2022 13:43:30 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id dzXQLoIaeWJRaAAAMHmgww (envelope-from ); Mon, 09 May 2022 13:43:30 +0000 From: Silvio Moioli Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_487C9115-A34E-40EE-8E67-C2509CC235C1" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: [PATCH v5 06/16] hvf: Enable RDTSCP support Date: Mon, 9 May 2022 15:43:30 +0200 In-Reply-To: <20220214185605.28087-7-f4bug@amsat.org> Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Cameron Esfahani , Roman Bolshakov , Thomas Huth , Christian Schoenebeck , =?utf-8?Q?Alex_Benn=C3=A9e?= , Gerd Hoffmann , Akihiko Odaki , Will Cohen , Peter Maydell , Li Zhang To: =?utf-8?Q?Philippe_Mathieu-Daud=C3=A9?= References: <20220214185605.28087-1-f4bug@amsat.org> <20220214185605.28087-7-f4bug@amsat.org> X-Mailer: Apple Mail (2.3696.80.82.1.1) Received-SPF: pass client-ip=195.135.220.28; envelope-from=moio@suse.com; helo=smtp-out1.suse.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --Apple-Mail=_487C9115-A34E-40EE-8E67-C2509CC235C1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 >=20 > On 14 February, 2022, at 19:55, Philippe Mathieu-Daud=C3=A9 via = wrote: >=20 > From: Cameron Esfahani >=20 > Pass through RDPID and RDTSCP support in CPUID if host supports it. > Correctly detect if CPU_BASED_TSC_OFFSET and CPU_BASED2_RDTSCP would > be supported in primary and secondary processor-based VM-execution > controls. Enable RDTSCP in secondary processor controls if RDTSCP > support is indicated in CPUID. >=20 > Signed-off-by: Cameron Esfahani > Signed-off-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Silvio Moioli > in downstream Homebrew, see = https://github.com/Homebrew/homebrew-core/pull/100645 = Regards, -- Silvio Moioli SUSE Manager Development Team= --Apple-Mail=_487C9115-A34E-40EE-8E67-C2509CC235C1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 14 February, 2022, at 19:55, = Philippe Mathieu-Daud=C3=A9 via <qemu-devel@nongnu.org> wrote:

From: Cameron Esfahani <dirty@apple.com>

Pass = through RDPID and RDTSCP support in CPUID if host supports it.
Correctly detect if CPU_BASED_TSC_OFFSET and = CPU_BASED2_RDTSCP would
be supported in primary and = secondary processor-based VM-execution
controls. Enable = RDTSCP in secondary processor controls if RDTSCP
support = is indicated in CPUID.

Signed-off-by: = Cameron Esfahani <dirty@apple.com>
Signed-off-by: Philippe = Mathieu-Daud=C3=A9 <f4bug@amsat.org>

Tested-by: Silvio Moioli = <moio@suse.com>

in downstream Homebrew, see https://github.com/Homebrew/homebrew-core/pull/100645

Regards,
--
Silvio Moioli
SUSE Manager Development = Team= --Apple-Mail=_487C9115-A34E-40EE-8E67-C2509CC235C1--