[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: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 31 Jan 2022 11:15:33 +0100
  • 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=A4cgaE2+3en0zvdAOuSnhC07PIijow6P6IJj2CJXHmI=; b=jIpxLMsy33ayRCS2GboQp5QwpVuCTqyVtgzA7mCYCPo16dpBe3+nhZLgilMlIAY4FCitQiGNtEOeddgKd0qD64twKXkdIkicwblrRdLXAj5o+zn2k24/f1V3oWd9qxBzaRi4/mczV8l6wu7TjNLdPOmNs5MAGXBiwj3MzzIuByzm1YdEr8P151vS/2rHp1pZoR6OXVMuXU1bzoFFlVnbyz3wdWhnDwgfG52Py4RTPMmAgbD9u4UqXAN9cbmLfps23F9XZNiVuSfVkIq9K1OyAVbP5nzlduRI/3rGldN7BfghAStrKWRtnsfRDfl0ONSM4UFL7q1QDiPOW44u894gbA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AUWcxRKrYgB3ICw3Yf47HIJS/o8LHr5WL485yej7Df/bPet2rebokHCrTra7DBJzgFG8LPuPSFi6QlG9yYokiJADwr4mpySrn3+HjQhs054bzkddwgkgVAI6QeyFPG8xAIOAFZepeXs9f1f3+6hUgJ43r4wixzCFw9Xh6lD1aR/9098/U4Ww0k9XRVVgdcq7KtobySCCidKqgGSoWMG1h/itmqT/SGsvm91CDKo+Xvl7u1gEueqsYjKtFeO2/dY+3uer+VIuWwSQx58+UNe312zLH16VRVQwzvTRKI52HXeav93U0tAZ8EOONK5lrMIDAbRqhrltd9SwLRD1WSTGWg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 31 Jan 2022 10:15:45 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 28.01.2022 14:29, Andrew Cooper wrote:
> 'idle' here refers to hlt/mwait.  The S3 path isn't an idle path - it is a
> platform reset.
> 
> Conditionally clearing IBRS and flushing the store buffers on the way down is
> a waste of time.

I can buy this for the flushing aspect; I'm less certain about the clearing
of IBRS: Whether the act of clearing is slower than the performance price
of running with it enabled is unknown, I suppose?

> Furthermore, we want to load default_xen_mcu_opt_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.

I'll assume from your reply that you've adjusted the description as well.

> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Preferably with the statement above softened a little:
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>

Jan




 


Rackspace

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