Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4327669ybp; Mon, 14 Oct 2019 02:55:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjSovqqYVi2dlQNjXfm8KAWUF4WjrNyC1+5r20bE9xka1hgy2INuV8WB/iDzqpTAauUtuy X-Received: by 2002:a17:906:4d44:: with SMTP id b4mr28920211ejv.105.1571046946662; Mon, 14 Oct 2019 02:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571046946; cv=none; d=google.com; s=arc-20160816; b=YS32/pgFXtqZuEsL6maa4SvRAZ/hQkVVRxVLPaxiZPM9DQb5L7MW4Cv7vVkYkk8GlG D4eODioTp38PKZ7i0WQbtLZusCuI+Z/P0cNneoreVcot2pwTvXkXjQGnrJ9vNoon2poQ OvdsbZbETWRZN6KQ/bhYApA9wWuo9sj3wctsg8wPzmX+ZUDm+ngqxWmxaIHihj3v8CCc Gw/nn6PhCXAaKPH9OqDi8asca9KX0x+rQKziprkSeqy8RwWycDr3xIBUjqOD9sPZDAJG HeoEiK0QYAyea7FVklNBALWGtputtR/ZIHQ2dCqjFC59iRAEWyqctRrzKwfePjC2HLSF yNew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=CuJ7DLXwNmZz6QdT4siROJuP3IYLHv0eT3M9xFQ3UJ4=; b=SYJaLsIUOWTpJr9qWvcZfSBtHhNxG8aLTALbQe9oOkIFrzR/9fxvJgu8Bu+dq4ZNwb Gfk7zMAo6GBQMUwClaoM7iVmUimHErtnQ2I40oTbr6p4Pgxus4yRUe+97RBkfbA9BrVE 0ds6oeUCfR8Qm+zSAw7WK8ipL7y5x5ogAbWpntsGgfYf0IxEEZFL5/8qTrjRWmFSfacd x9zfVl2LAOSx6UWoR/j9kRiOGqvxTqcgUBPBeZ0+edNBGl5pjOoTiNG20uKKgJmi3Dcf AVeuwg0DiOjTGr5MIo/iXIoftMikUxpEEKTPsS9mWTUrd+gnGA4771HGmFuDIUJX6Y70 noMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si2546909edy.136.2019.10.14.02.55.23; Mon, 14 Oct 2019 02:55:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731163AbfJNJyu (ORCPT + 99 others); Mon, 14 Oct 2019 05:54:50 -0400 Received: from mga11.intel.com ([192.55.52.93]:5360 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731057AbfJNJyu (ORCPT ); Mon, 14 Oct 2019 05:54:50 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Oct 2019 02:54:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,295,1566889200"; d="scan'208";a="188981570" Received: from fyin-mobl.ccr.corp.intel.com (HELO [10.239.205.86]) ([10.239.205.86]) by orsmga008.jf.intel.com with ESMTP; 14 Oct 2019 02:54:48 -0700 Subject: Re: [RESEND] ACPI / processor_idle: use dead loop instead of io port access for wait To: "Rafael J. Wysocki" Cc: Len Brown , "open list:ACPI" , open list References: <20190909073937.31554-1-fengwei.yin@intel.com> <12278756.3dKznOqol2@kreacher> <8a65bf97-c066-8e5e-ba82-75e2a6fd5b45@intel.com> <3727681.FYoUZqeJdN@kreacher> From: "Yin, Fengwei" Message-ID: <6b8a0f55-67f7-98b1-c252-301628f9d5e2@intel.com> Date: Mon, 14 Oct 2019 17:54:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <3727681.FYoUZqeJdN@kreacher> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/14/2019 5:38 PM, Rafael J. Wysocki wrote: > On Friday, October 11, 2019 3:30:41 PM CEST Yin, Fengwei wrote: >> >> On 10/11/2019 5:05 PM, Rafael J. Wysocki wrote: >>> Sorry for the delay. >> No problem. >> >>> >>> On Monday, September 9, 2019 9:39:37 AM CEST Yin Fengwei wrote: >>>> In function acpi_idle_do_entry(), we do an io port access to guarantee >>>> hardware behavior. But it could trigger unnecessary vmexit for >>>> virtualization environemnt. >>> >>> Is this a theoretical problem, or do you actually see it? >>> >>> If you see it, I'd like to have a pointer to a bug report regarding it >>> or similar. >> We did see this issue when we run linux as guest with ACRN hypervisor >> instead of kvm or xen. In our case, we export all native C states to >> guest and let guest choose which C state it will enter. >> >> And we observed many pm timer port access when guest tried to enter >> deeper C state (Yes, we emulate pm timer so pm timer access will trigger >> vmexit). > > Can you please put this information into the changelog of your patch? Sure. Just want to double confirm into changelog or commit message? Regards Yin, Fengwei > > It works very well as a rationale for me. :-) > > >