[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 4/9] x86/spec-ctrl: Don't use spec_ctrl_{enter,exit}_idle() for S3
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
- Date: Mon, 31 Jan 2022 14:24:24 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=ecAUYcrhhHo+Pfg6PLlPNqcJcg4zZWxT1Ck9tcU3S3Q=; b=e2EsfJMdAtjaT8KbgSKtR2i8ToUZF2rE+OVKg34zuma2ipMGQSXPxVs1O267gm29cA38cricoVaCuzzVnqJEFo7LnN+B1tUHumqaB7gS+yAe+TFhwWNAOIjO0Q2Ozz92iG2pwEzCWHsZDPFgAT2YUDqX6MoE2ZGVxrKqjmQFtABPgAql+G+PU5ESWdM4YiObF7znrUllGlx6icYleNU7iH67F0zqnHJzbtzbp9v2hamw4XWiLPnJSegJNuI69HQhRORyan/imfdQe5KisaiYndDaLVN6t10Dg9TJVP+6DLYvfUZYW7smpkxueXfw29lcRNzcfFaQX9kM/pW+JxfIRw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iFvzwRu1WH1KR50iAGeNLZpgOuyBbAhuIo/GmFBJerPvrs0E0nDn4VaJTDcze9OoWMBX6P5HEwqxfErWWFhQhW328tgpAjPrQTvHefxS2wu+Sx4qe6rnpPApl6xDVv+bHYOanAyOzW1DlaZf5gsMgZMSzup09jkzGkJpbtdw4yaPSMvL3TzFUHMOw4u3lxIrfRIeaG4tWgwvxtcWK6HsmqxKcydXEGwgolTO2VNrPK/dfTwptFY++HauFhVkP4+ofJU0tygriOgqlYVhqMin7Pcr3xtC9RBgCn6XRCDkaYthke3Cqyx38wz8ILMK6Xxsc+9gR3Qdli8aHJ5nJV9efg==
- Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Mon, 31 Jan 2022 14:24:42 +0000
- Ironport-data: A9a23:d3AJma/YKPHq9QGxXe5KDrUDbXmTJUtcMsCJ2f8bNWPcYEJGY0x3m zFMDGnVMv2LZ2ugeNhzadi/9BlXupPSm4dqHQU4rns8E34SpcT7XtnIdU2Y0wF+jyHgoOCLy +1EN7Es+ehtFie0Si9AttENlFEkvU2ybuOU5NXsZ2YhFWeIdA970Ug5w7di29Yy6TSEK1jlV e3a8pW31GCNg1aYAkpMg05UgEoy1BhakGpwUm0WPZinjneH/5UmJMt3yZWKB2n5WuFp8tuSH I4v+l0bElTxpH/BAvv9+lryn9ZjrrT6ZWBigVIOM0Sub4QrSoXfHc/XOdJFAXq7hQllkPgtw sRslrmuFztqO6PTl9YmChlTLg1HaPguFL/veRBTsOSWxkzCNXDt3+9vHAc9OohwFuRfWD8Us 6ZCcXZUM07F17neLLGTE4GAguwKKsXxMZxZkXZn1TzDVt4tQIzZQrWM7thdtNs1rp4UQKeOP ZZJAdZpRBbYWAN1AWgPMrEjrbehlGLxfidzo03A8MLb5ECMlVcsgdABKuH9atGMAMlYgEucj mbH5HjiRAEXMsSFzjiI+W7qgfXA9QvkXKoCGbv+8eRl6HWRzGEODBwdVXOgvOK0zEW5Xrpix 1c8o3R06/JorQryE4e7D0bQTGO4UgA0B9BBMs4f9l+xia/a/AmrPTEERQNtUYlz3CMpfgAC2 liMltLvIDVgtryJVH6QnoupQSOO1Ts9djFbO3JdJecR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9PUQwVvUi3NPAhiYwGsnayvqLvWJTo9QzI34giHij2lrJTgFQKD4xsYWzRThZ8/7G nsiWXCl+eemsD+7iWZ+37Y7pxQltek4MBEHtawhs8cLSipohq0Zb5mR6aJsFkO0aSSARcR4Z 3xSiUbToJOAkDqDziISNzWqlHdOQMVmjjfIJmj8CDeSILCNWgH4oF69Pxkm1PimjsdVZdHof 52Niuixulq5VmrplWM2/HYEx5tjUa6unwkjKoaiGFeS5IXbPtLoZUY5149KuZMIMvW0vFtLA BVNrCX2B+WSyLsU1nJ+m10hNC8VHU6GRmLBkAEp8yOyjBT2HR01VERysATlmoJsMtVcegK28 3UdqBz0L1eRM4faqxwQO8HXMusE2TIBRbBKnibL1jrHLwOf3jNt5n06rMo4/zCQu1F8LIi3J DaFF9Iv287fEzjTcWIwZ1Q6xjIBH6wWDz8o/sur6SReoeMDYYDHRfzPWzGovHQ1cn3WPerKc pbEKgmd8PeEQ==
- Ironport-sdr: SX6vc5aJhmBq8RR9yU5dB4Ne0gZ74jm1bqph1FNNV4UveMeO5ddZTUdcgqo0KXHq+KYaJoDE/+ 2/fd1lW7+jTtoUGJ5vd+UWsbRBHOMPMNUfHFJvyINsasRpOEfv9QufO08uY1rShdbLSwTQpAvC maXKmMa8vBvJmYj6TuKHz7ofnAGTbjC6H/rAjdHxPB/vV/Y7uuw9/HIXfroQLk0x0h4OGuPTrR wgAA2w6fWqethhtejSZxySjeV3m5+2vBNGz6YCBPtNPlL+4TMs6eXz80uDHvI+qja+aEHSTg3+ NF8ZzpUhyuGrGD77G9m9Jksb
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHYFEslNylcZ92lUUmGXdMcKHF6zqx87mCAgAATCgCAADJ9AA==
- Thread-topic: [PATCH v2 4/9] x86/spec-ctrl: Don't use spec_ctrl_{enter,exit}_idle() for S3
On 31/01/2022 11:23, Andrew Cooper wrote:
> On 31/01/2022 10:15, Jan Beulich wrote:
>> On 28.01.2022 14:29, Andrew Cooper wrote:
>>> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
>> Preferably with the statement above softened a little:
>> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
> Thanks.
Commit message now reads:
---8<---
'idle' here refers to hlt/mwait. The S3 path isn't an idle path - it is a
platform reset.
We need to load default_xen_spec_ctrl unilaterally on the way back up.
Currently it happens as a side effect of X86_FEATURE_SC_MSR_IDLE or the next
return-to-guest, but that's fragile behaviour.
Conversely, there is no need to clear IBRS and flush the store buffers
on the
way down; we're microseconds away from cutting power.
---8<---
~Andrew
|