[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/8] x86/spec-ctrl: Fix confusion between SPEC_CTRL_EXIT_TO_XEN{,_IST}
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 14 Sep 2023 08:56:31 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; 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=dN0WcmNuDGd6vcXnaMp1yL8fcqCRWiAWE8wrXxrfN+A=; b=mPBcP+jdyd4VClKMr6sKzLb0fGxcAduOAaT0IA5PUlasUpqjngJcJD2Q2WtGu6sHaW/ETiIo5ljlJerns5l2yug2IRGNF1/h6fJ9a2F6gPzpIi2NRgMPo0S5eYLPTz7eNDbucufmtgLj8hklhhXt3ot1FQOhNtajZNS18NGxSqN0+j9p8TeO4NYx1hGufc51qV3CgMUZNgqSE7qlxLbvzc3Hfjn1kIAGmClxRDwLSc+skKOLcCTliIkJ9QgHTii7aG9juVK8PS5T461H2HIok05uZfJA/nryzybSANS6SoVyt99kmpXrFwW6k9v+InM1JNGseuiZUD1DvFl0lkGvnw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b9n67jp1gflccW+jbZwvO+EmjJjtJsZB46qwb4kbFS682s2xMWWfuHhVaSiTDDioEtB2bq7ZnRvxCmh+y2kKiC4N4H/lVuphBl+nMrI/Db4xq/LXAfZxDTkreMM5WbZgX3pU5VgrRN1A3bxQcsZQMkuOdZHvA4vcs6tK1Oc/B+/2yr4wcPQ7zsXWG383YAHNhB8XJq7mKHwMHLZOemJpjSGzQA24Lx7smGULXg8U8ddVd3+tfdXGdzvyBD7SeQYCUah2Xt8fzH8IhmzOft11RgwKvO2P/vwSh5uiGCv0VpJBui4sL9DJWmwpHGUPWcTIzs9pk9Fu+ghhal8BxC921Q==
- 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: Thu, 14 Sep 2023 06:56:46 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 13.09.2023 22:27, Andrew Cooper wrote:
> c/s 3fffaf9c13e9 ("x86/entry: Avoid using alternatives in NMI/#MC paths")
> dropped the only user, leaving behind the (incorrect) implication that Xen had
> split exit paths.
>
> Delete the unused SPEC_CTRL_EXIT_TO_XEN and rename SPEC_CTRL_EXIT_TO_XEN_IST
> to SPEC_CTRL_EXIT_TO_XEN for consistency.
>
> No functional change.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
albeit ...
> @@ -256,11 +255,6 @@
> ALTERNATIVE "", __stringify(DO_SPEC_CTRL_ENTRY maybexen=1), \
> X86_FEATURE_SC_MSR_PV
>
> -/* Use when exiting to Xen context. */
> -#define SPEC_CTRL_EXIT_TO_XEN \
> - ALTERNATIVE "", \
> - DO_SPEC_CTRL_EXIT_TO_XEN, X86_FEATURE_SC_MSR_PV
> -
> /* Use when exiting to PV guest context. */
> #define SPEC_CTRL_EXIT_TO_PV \
> ALTERNATIVE "", \
> @@ -328,7 +322,7 @@ UNLIKELY_DISPATCH_LABEL(\@_serialise):
> .endm
>
> /* Use when exiting to Xen in IST context. */
> -.macro SPEC_CTRL_EXIT_TO_XEN_IST
> +.macro SPEC_CTRL_EXIT_TO_XEN
... with the comment her updated (either by dropping "in IST" or by
explicitly mentioning both cases).
Jan
|