Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp266431lqc; Thu, 7 Mar 2024 17:36:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUNaEXE/+l04X2rFTomEqs+JbmA5zV+6uE8pP0lv59beZy7ccoUeonFleL+5Y+gh47VK5nq9Wk5XLwxZ4z+U/LDZolWSasPLOv6gCHWaA== X-Google-Smtp-Source: AGHT+IE+fkoG49EEA65OD4tvTm0sWSdGwSNKcxsg6tP0sPaX1ZAXtoSdouQwhcVhSd9bb0SodJ80 X-Received: by 2002:a05:6512:202e:b0:513:5a09:abc6 with SMTP id s14-20020a056512202e00b005135a09abc6mr2083098lfs.19.1709861780730; Thu, 07 Mar 2024 17:36:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709861780; cv=pass; d=google.com; s=arc-20160816; b=bXMaW7ycrn/1XiM4Ufu0mEXmLoiThcK60JcrMkkfqpY5w/2LqfswK8iTBQGI2uiten cEl0eYIiDI3UjASuIGxr+4Ncqe3MggYQhef8jPJky84XcL8Fiy/F5NRqWPTq+DhWqqNb Ov5ROYx7L1si6/epnNfXlMOgF8B4yhWrH5ochGSH7A3xNGsKJP705VjekFju4OI3Sa+z RzSA0YZ8lC+4kV/4dQk4G02S3XyNGhSEZ9zVZlqZe97pO6/QVIF4ZqbqO56Jo+ql5xEP gDSaA7ULJ0tyhdrn0Gm2JxpwbVfDiqvVYe+bICDaXs7Yw8QUzj+U/3DaiekePPeKnIpp cmWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WG/DkfIuy0wuyKnwvcEQLwMHrLTbUJA/0QLb174xP44=; fh=ofDqFxVdPhMnDazWE6AnwqEfj2JQ3HW5gFiGnSoLyGA=; b=x/Pb8Cki9PKdDi+i5XIOI3vLVczS0MXetQghzzfHAMPosVKcJG3CXl2vhfsCIgWWco LNcTWpUzlZg8NAVZRbsPmSNAxCqSPearDsyFJNVW1CBf9/DHJLJS2ZBo55S6ayEvnweE /pjkSsA4+FmakLPJg27eVUFWvyHoxPQY4dG+4MPEiyx1khSZxtDHyvixslYn7RMBkYvH ICG/9j68M2sbFD+2KZAFkRdH4bK6mqGA+QSVGfeRfil8bVb2/QV7ZFRRB+pqlf/gB8kt Utj+UIkge/oVn8VJr/W+8EvEa4oajPujcJ4F+e14LV0skZY6KpB8kDKQixOAexeHm0UU ifXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=molgs+v+; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-96433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ne19-20020a1709077b9300b00a3f52dc6a1esi7638292ejc.1014.2024.03.07.17.36.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 17:36:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=molgs+v+; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-96433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2CB1C1F22357 for ; Fri, 8 Mar 2024 01:36:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B27E22EED; Fri, 8 Mar 2024 01:36:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="molgs+v+" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C869210EC; Fri, 8 Mar 2024 01:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709861771; cv=none; b=doy5xct7Ki80/dnq65L07y4FcRmvSEiQzwoKT1IeQy+VRxcFu5iv74pIVL4iqnGACjjy4HvE6e0tx58tAgL5qVCPDOUUQet7h0HkFku1I7vSbY6IUWNrF/lMLTf/1MHQMJbf8wnvyZFQpr5yWMi5Hz0mA4yhY4MbiBE8mKxFXNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709861771; c=relaxed/simple; bh=xbGto3fk4Wl8w2TSsqYZ5+LuoyoD0/16Q7GhKQ4m+RQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TnYd6vylMUBNh7YV+ydCLlVw4o+xkcaOBF4t4sl8OgH5JT4GNNHM6jar44XBMfO3i6ERRn0yuqH8J7eHseDkSkHxRBdcrqpLFlLkOGUcQomJYWGrLt5CDLGHy0PBYiQkqjtEqPjL7bgYyDdoKpB4nW3BVJIb2JBpbTRSFGNKadw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=molgs+v+; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709861769; x=1741397769; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xbGto3fk4Wl8w2TSsqYZ5+LuoyoD0/16Q7GhKQ4m+RQ=; b=molgs+v+eUFK5GpH3C6FKosQ3kNqTINMlNSs6HnHa0BqN5bEQoxWmA2w vMIL/9ddK6MzZkaAFq4tmkkNMu8PC4iyFIOp9l1kl3S87uJWUpMBazr5I g4XiWgrhktTXOIiIHFQ7Xul2C8cdJfa9lnit508TEdnXhRHUrX7jYz5mN nB6BRmh0OCixxOHxVxQDQP1C4YYuAzTLWxsHOFU5U8OWCnBfQVG0HwhD7 7wj4j5XxdiJy27r5eG8yg6oVncyX5KrjxkdKnK7rzvN37RcFfIW98ev/x WZ8lBWG0o69K0bKcJ0Y2GbmBS7J9IHrTIBoo2S/nXfEEeS3v4J3uYmiav g==; X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="4449832" X-IronPort-AV: E=Sophos;i="6.07,108,1708416000"; d="scan'208";a="4449832" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2024 17:36:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,108,1708416000"; d="scan'208";a="41227121" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2024 17:36:08 -0800 Date: Thu, 7 Mar 2024 17:36:07 -0800 From: Isaku Yamahata To: Sean Christopherson Cc: Isaku Yamahata , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , erdemaktas@google.com, Vishal Annapurve , Jim Mattson , Maxim Levitsky , Xiaoyao Li , isaku.yamahata@gmail.com, isaku.yamahata@linux.intel.com Subject: Re: [PATCH v3 3/4] KVM: X86: Add a capability to configure bus frequency for APIC timer Message-ID: <20240308013607.GL368614@ls.amr.corp.intel.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Fri, Feb 23, 2024 at 11:33:54AM -0800, Sean Christopherson wrote: > On Tue, Dec 19, 2023, Isaku Yamahata wrote: > > diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst > > index 7025b3751027..cc976df2651e 100644 > > --- a/Documentation/virt/kvm/api.rst > > +++ b/Documentation/virt/kvm/api.rst > > @@ -7858,6 +7858,20 @@ This capability is aimed to mitigate the threat that malicious VMs can > > cause CPU stuck (due to event windows don't open up) and make the CPU > > unavailable to host or other VMs. > > > > +7.34 KVM_CAP_X86_BUS_FREQUENCY_CONTROL > > BUS_FREQUENCY_CONTROL is simultaneously too long, yet not descriptive enough. > Depending on whether people get hung up on nanoseconds not being a "frequency", > either KVM_CAP_X86_APIC_BUS_FREQUENCY or KVM_CAP_X86_APIC_BUS_CYCLES_NS. > > Also, this series needs to be rebased onto kvm-x86/next. Thanks for the feedback with the concrete change to the patch. I agree with those for the next respin. -- Isaku Yamahata