Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4314000ybp; Mon, 14 Oct 2019 02:39:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiWIVIke4U44wX8UEpkrZ4oJUpGyu6su8/NxavYTcAkg7Stay9iRoToDLE79oOciBQ4CK0 X-Received: by 2002:a50:9f66:: with SMTP id b93mr26069859edf.236.1571045963382; Mon, 14 Oct 2019 02:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571045963; cv=none; d=google.com; s=arc-20160816; b=xa1wNjeIqXh6g5q2cn2gI9ptEBeQnTxhc8xxFIAhCJEZfSZX54oQlwsSYt7tvjr6Ku t85ISI7nQJ3ZJIAi2rPyJnRgv9UIeotH5NkVhKKoCQhEOSY45p9xYwI7u90WPwI0RTdl yTzA/Q2wAiSfenaJBvwJqEAI+az/jq842PtKA6W2iHLDBxLYyOOdXDJwycjm8YDrM9Rr DgyfTSZ0KuDklEv3tv71BF4RxvAuHRSDpka0MwavOh2UptFsyjx8w2JzirloiuQ1USDt u2XDT7EtOfUoaCCTWdGvqiS4Q5updI5npCyZCbTvUIYpNyqMApHb+s99E03IgefczZOK Do1A== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kmVt2I9dTDbD2HkD0aK8aKn9Fam3Rkrn4ObojY2275E=; b=ZEml/aGpcyzPTFO7LirirmBIZ4CVcISD4JXRg4lPDvjOhVromynBVD06jTKek3NUaD X9tMYOIk69B58EvqHHxRxqO+Cu0XkjLsvdSVGMY3YzEvYi2PWHTwW7EvTSoUghHaHWG7 rFnZLLJI8jzEa+jpb+EaOiLyqPWrCT77/yihAHUsN2O81+3RFGVdF7xaP62SCnpI0eX3 a2cr7qmGyePxrpscMnmpMw2jgzKeUsuXoT5zx4TG2sW6wsGdVDFwqZ9oZAqT8S858NJp rSWJ7GsDIqvbvaU4P3nHsOh9ugQCTRVE3xrdbQqUx7f+Doytn4+vZ/vT3yXjN/moi67K nHUg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q20si11589671ejn.18.2019.10.14.02.39.00; Mon, 14 Oct 2019 02:39:23 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731023AbfJNJiT (ORCPT + 99 others); Mon, 14 Oct 2019 05:38:19 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:64170 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730778AbfJNJiQ (ORCPT ); Mon, 14 Oct 2019 05:38:16 -0400 Received: from 79.184.254.38.ipv4.supernova.orange.pl (79.184.254.38) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.292) id 4db2488d3af89f8f; Mon, 14 Oct 2019 11:38:14 +0200 From: "Rafael J. Wysocki" To: "Yin, Fengwei" Cc: Len Brown , "open list:ACPI" , open list Subject: Re: [RESEND] ACPI / processor_idle: use dead loop instead of io port access for wait Date: Mon, 14 Oct 2019 11:38:13 +0200 Message-ID: <3727681.FYoUZqeJdN@kreacher> In-Reply-To: <8a65bf97-c066-8e5e-ba82-75e2a6fd5b45@intel.com> References: <20190909073937.31554-1-fengwei.yin@intel.com> <12278756.3dKznOqol2@kreacher> <8a65bf97-c066-8e5e-ba82-75e2a6fd5b45@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? It works very well as a rationale for me. :-)