Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5772184ioo; Wed, 1 Jun 2022 12:14:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymQ6W4p84xAX2thNPaLhHTUy174JNIOBLaGUhTslG2o1OdTPXkyq5W+cvsqYjLKgao/SBF X-Received: by 2002:a63:d203:0:b0:3fa:91d1:3a76 with SMTP id a3-20020a63d203000000b003fa91d13a76mr746618pgg.171.1654110875968; Wed, 01 Jun 2022 12:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654110875; cv=none; d=google.com; s=arc-20160816; b=i1jxnss+1BdhfreLGjhgYqqSVSBB8zUJIBqK8tJSNNOBLShsk9yQiQuHI6FY1Y7zp5 6U2NGZvlCxrleLU9Y8BPyFeRpfBcqTQzB/7F93TDYSUXr9InxcAKxcQLBQVwLnE58XKr MUZ3Spw6KIYDLSIH/wQ2QjafvkGgYswzjnGuwnI4w+vEtJm9fyi7bMjAiYuwxeLYCmhu w5P9jXrPpnmghkapu9riMPLqVc/7RJHUW97A9uR0DkdIFLAAkxT0O2dAqZOoSdMsQ/jw EhQPYUpuXz6Q+An8FyBZUg9kz7s8Vvv9fDaR5rkc+ZtL5aBHnSmXnbCxwCeflmFkZT+j cPNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=9PuqWSM1RqEiAAMMqRkf0RREiczy16fCzdCz4SZ9Yh8=; b=zqqhfNvt/pKe+4lvs88JwPnfcaN0LnVwfQx1y4DM0rOz80LbIWM4p1ughq1HwH6IB8 L9e2yvO9tps3aJPoek0A7DH4G6b6Z2r0JunovqI4XxQvClQjOrQGyeBpctbql1F6+uML /bJkZycyALB+keaI72YbB6h3dxfb/kP9EnH5F440WgQfNm0wnneFzZHpjNna1CKMaqEI iwhULWb57NP1wIUuesBE8YXiLJVm5FjP0eLPX46QHWmAzNvW9p3nwFhahJry5ATmgqJ9 vxunvD0xLEAzdN77CCHydoYy5AjXDy404uXdRdxbS4iwOEz2Jsu7cRWNWGtcCU2B3yNT vN9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a3X3DM8Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g4-20020a655944000000b003f618867515si3458410pgu.675.2022.06.01.12.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:14:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a3X3DM8Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 69498143865; Wed, 1 Jun 2022 11:52:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350726AbiFAIZ2 (ORCPT + 99 others); Wed, 1 Jun 2022 04:25:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350773AbiFAIZJ (ORCPT ); Wed, 1 Jun 2022 04:25:09 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 68A995F58 for ; Wed, 1 Jun 2022 01:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654071907; 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=9PuqWSM1RqEiAAMMqRkf0RREiczy16fCzdCz4SZ9Yh8=; b=a3X3DM8Q450FYyesFUrHPF2J/QSKCH5+ZUisxb+Kbv+QX7wyMo398Ra6iaImtmW0AacKrV XM+xLz9Ds80MpETIpazRnyC8VSLUxSizGfbQMVStbTVa0VvutwAV2mqZyC6YxRV24huX4s yhrHFJnR8/d5YiAgA1IUVZvwC+Umh6I= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-50-gQ_nIOOEPZ6Yd-dx0n06rA-1; Wed, 01 Jun 2022 04:25:06 -0400 X-MC-Unique: gQ_nIOOEPZ6Yd-dx0n06rA-1 Received: by mail-wm1-f70.google.com with SMTP id k5-20020a05600c1c8500b003974c5d636dso783845wms.1 for ; Wed, 01 Jun 2022 01:25:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=9PuqWSM1RqEiAAMMqRkf0RREiczy16fCzdCz4SZ9Yh8=; b=RCmPJIoUd4MpgKUqVvrsWapVe3VQF6AQ/Jj/nMQH/eeER1JNp35S9dHJTM3/cW0fQx 8aWOkJw2JVC82KMI+Vo9ktXpebaf1PUOLbtrD1S5VXQgNaapBoPnsv2+zwsn8cfBqc1g WBhYK+89ZchmT51Lsc6qsudpSo2YIKMm2U/cqLGb1oO37eLgwnCtZM6ND2Hx0OjSBqf3 eBUfCccRES99SZqT7shksxz3ZGAyOoZvLOx378MIGtIIqfnlmjE7jQk1YjtYcp30sxah zsAryBrrM/hjt5LjD80LJ7DS6vP5cx7U/lTZH3MTOAxQFhAUMIwpt8s3Yxa74dV4BYem sqqQ== X-Gm-Message-State: AOAM531VOAaUO2SZYbdq1PYzvlmND2l2dGeiF3V4OVV5ceOECoZ/5UuH IBE/fP0xjbaFYpiVof2a81eo9obAKqJOp/WzV63G2dAcKcK3kYM2cc9R32jPAxtrQFxcMxDQayV wpH4AWa12Oodchgdf2T0bZRVg X-Received: by 2002:adf:fb46:0:b0:210:2316:dd02 with SMTP id c6-20020adffb46000000b002102316dd02mr17673880wrs.557.1654071905005; Wed, 01 Jun 2022 01:25:05 -0700 (PDT) X-Received: by 2002:adf:fb46:0:b0:210:2316:dd02 with SMTP id c6-20020adffb46000000b002102316dd02mr17673852wrs.557.1654071904613; Wed, 01 Jun 2022 01:25:04 -0700 (PDT) Received: from smtpclient.apple ([2a01:e0a:834:5aa0:2c2a:4832:6517:63a]) by smtp.gmail.com with ESMTPSA id p15-20020a05600c358f00b003973ea7e725sm6337978wmq.0.2022.06.01.01.25.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jun 2022 01:25:04 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: ...\n From: Christophe de Dinechin In-Reply-To: <87r148olol.fsf@redhat.com> Date: Wed, 1 Jun 2022 10:25:01 +0200 Cc: Peter Zijlstra , "Durrant, Paul" , "Allister, Jack" , "bp@alien8.de" , "diapop@amazon.co.uk" , "hpa@zytor.com" , "jmattson@google.com" , "joro@8bytes.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "metikaya@amazon.co.uk" , "mingo@redhat.com" , "pbonzini@redhat.com" , "rkrcmar@redhat.com" , "sean.j.christopherson@intel.com" , "tglx@linutronix.de" , "wanpengli@tencent.com" , "x86@kernel.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <20220531140236.1435-1-jalliste@amazon.com> <059ab3327ac440479ecfdf49fa054347@EX13D32EUC003.ant.amazon.com> <87r148olol.fsf@redhat.com> To: Vitaly Kuznetsov X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 > On 1 Jun 2022, at 10:03, Vitaly Kuznetsov wrote: >=20 > Peter Zijlstra writes: >=20 >> On Tue, May 31, 2022 at 02:52:04PM +0000, Durrant, Paul wrote: >=20 > ... >=20 >>>=20 >>> I'll bite... What's ludicrous about wanting to run a guest at a = lower >>> CPU freq to minimize observable change in whatever workload it is >>> running? >>=20 >> *why* would you want to do that? Everybody wants their stuff done >> faster. >>=20 >=20 > FWIW, I can see a valid use-case: imagine you're running some software > which calibrates itself in the beginning to run at some desired real > time speed but then the VM running it has to be migrated to a host = with > faster (newer) CPUs. I don't have a real world examples out of top of = my > head but I remember some old DOS era games were impossible to play on > newer CPUs because everything was happenning too fast. Maybe that's = the > case :-) The PC version of Alpha Waves was such an example, but Frederick Raynal, who did the port, said it was the last time he made the mistake. That = was 1990 :-) More seriously, what about mitigating timing-based remote attacks by arbitrarily changing the CPU frequency and injecting noise in the = timing? That could be a valid use case, no? Although I can think of about a million other ways of doing this more efficiently=E2=80=A6 >=20 > --=20 > Vitaly >=20