[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] x86/xen: disable CPU idle and frequency drivers for PVH dom0


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Mon, 7 Apr 2025 10:13:50 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=citrix.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CgxKzLmQhwTDPxkc6CIC8uyY+/HBU7pHXbI3dVF7efM=; b=YaqxT0uvAqR8OyVQkhGwCWCJCEfzWH0BYgIZpVsyoEp38zw0c4jEkwb5+/yZh+NJNMzq7EvFULi8PKqLuG40i/59Kr1m1qVFHXFC9IlRNmecfg4zVWyscqjwahBHSiv92QEdPOfxMpZYSfjCUTh2fZ1Yb4zGblQR5diVcifhqlp1e4fIA+hxmuUdbWSVkCd0MPnWK10eSkfVGOkhfeubsePkJfJ0AZdIoPs0clPC1PhdkqByBWi3uh4SlxbGR9nyKhw/BjrqOtNcd0moJqAGJ27jqV9HG4l3mM8YKg6eUtf6eIE1ADKIr6Dgy9JAcLQSwGrszHCINqS1SlE3GfpJ1g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KJSfdH5InwuwAlcWOsmzlSrP+RfN8+jIDGRgG9cGg8TTq+zEkIfYTK859wyzlCYKqDzrMVIVP5F+2R6YuXhKX//5MpwJdhXbWsaZsnVsvaRundhnQbtD0SOnHwOoJNV3FfLZAxCsk2+vzF/xzarKbadpXZqxafUpTN93wq2tZ9xEhgaaU0Kr/jcdEbNeyPNLD/JWQEBCwVeXUR5HkTNeBu8shoROsTagIrlc+zpYlVB9os7WJpP3z1C98FQH+YfI+30tZ5MzFuL7z60OPF42wtvZoF9namFy75PH/Zn5wCpX0dLQfd9SkhGWB4OousQqzMWnGUEPjg2AE1XZbBYaZA==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, <Xenia.Ragiadakou@xxxxxxx>, <Alejandro.GarciaVallejo@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, "Boris Ostrovsky" <boris.ostrovsky@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, <x86@xxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>
  • Delivery-date: Mon, 07 Apr 2025 14:14:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2025-04-07 06:18, Roger Pau Monne wrote:
When running as a PVH dom0 the ACPI tables exposed to Linux are (mostly)
the native ones, thus exposing the C and P states, that can lead to
attachment of CPU idle and frequency drivers.  However the entity in
control of the CPU C and P states is Xen, as dom0 doesn't have a full view
of the system load, neither has all CPUs assigned and identity pinned.

Like it's done for classic PV guests, prevent Linux from using idle or
frequency state drivers when running as a PVH dom0.

On an AMD EPYC 7543P system without this fix a Linux PVH dom0 will keep the
host CPUs spinning at 100% even when dom0 is completely idle, as it's
attempting to use the acpi_idle driver.

Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>

Thanks,
Jason



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.