[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/3] x86/spec-ctrl: Consistently halt speculation using int3
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 19 Jul 2022 08:13:42 +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=WQx6jvbw0ce4D9tfYC8sMRrpdB607dpI7gyLn6aUrM8=; b=Z+KDKvc3q8LGdgNY1CgMKM/ovXIBw+czySTGZmGWgYXtafk2noBSsRYN/4YC1JAUsppM75Qk5Q8V/6GyJTs2cgXNY7Iow95EbvjLfOrPiY8E0YjaIdvWjwMxIseNChxl8KIUCBOhPDf7J5mw6XSQpHhT+2gXcU4tMhjXYCevXCot/gnPgH2RnPCRllZPXUmxvLi6YmlU15KJXSokRcRRCN5ubjNJZzDtcKWE+AZrXmUIU5bFqElomzqr2ZaOuDmyVtCX2y1Xbqv6MyxupmwWA4ZPph/cbm9Q0XMapxpm/DurSXAXquz+euNouZgBv7EdQlmyyuapdXxKHDyfQOvbeg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i1vVbkKutkTAT4BqSVnQOJf5HRyq9fOwF4bfcwHQrmVs35KSpFILkj7RU2Xy1d/NgOX37aGxHEFY1umZ4ImBlEDJ9mFzlVw6VJ8wEze3BAOFoMY5+Rl3g9vT9y79URk/lbRRpwlRMLuTcSHQrqQPuxjGz7oZqxsZ+tsQa8JT/WuqdLZ98oUDf+VdQXGOHkLre3+bhXogqu/7IjXfN7/0MKEdOZGMm9ClLypN3rpxCWct4m5HJgKeH/lVWBkC3FdvXPSMOyMoRXx98nVB6NB3R6yDxlaXSXJlFFjem2PqeX3xzIBDo7CQjopBNSlsb/FbK6Jq/I2OiH2YHbAia4+W5A==
- 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: Tue, 19 Jul 2022 06:14:00 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 18.07.2022 22:50, Andrew Cooper wrote:
> The RSB stuffing loop and retpoline thunks date from the very beginning, when
> halting speculation was a brand new field.
>
> These days, we've largely settled on int3 for halting speculation in
> non-architectural paths. It's a single byte, and is fully serialising - a
> requirement for delivering #BP if it were to execute.
>
> Update the thunks. Mostly for consistency across the codebase, but it does
> shrink every entrypath in Xen by 6 bytes which is a marginal win.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
|