[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/3] x86: Expose Automatic IBRS to guests
- To: Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Fri, 26 May 2023 18:39:38 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=ExOwuS4NkhFIgCw2A0pWS2ykuSTUwNMkpuCajmdIFJs=; b=HsyevtedgjW2CnGvOO3kFlU+pkzmI1vtMhngrYrOBMkl9K3NTQ65Zi+Yf0Y8B2Aqucz+ve8rW5DhnE5tAhR+agtWtE0bA1ckcbBwl6tNJpYUsIWkNZoQWuXMvZl6EtxUuWjPDeCAaM/rzp9tIEnaheh2dnXlOdjH8ITlKVdLoGlfQCJsphcjw1GLKxdC7x69QzYvo4ZpYKkrTQUzzlXmngBADK8urwnWCobbt0xp3Z1GcWksNcmzo/50KY1LYa/wAWIpm6cERSj3wRiEc1Xt1Yl3ifKFj4WhsoE9T70zQ0orf5CsJ6IQ7go2xRBVlc633xIUMFFbH49UMGbPtSmzgw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oBn0EJNV4+Ro4kpzCAxBQ+gmFij3Ci2wKh+/fN5ybYkMG6zMnJYSNres6J97b44uFD32mazN6V7ArswNfXxaUjLmUbvKW+pmSq1rx95ObLxk4r9/sggJa1MeAlKvgWp9RLnFb+Ft4037q/kSDkYxYmpRilpVFFfekTzF5nSC96/9r6ztVktkEPLm1GIqZYyS6+ph2TTt1JFgzNjTQg4rsoDoJDGkYC59IEWuBfBjVl3TkwtIheLzI20pdEv5byjAQue7ZePL4UeqFUz5oUYlJ9FkhCJgyqAbnSUDVJNFTFBA+2ROpgYhC9i0OmKggeE/JiLVDzg301CC1Y0yRuFA0g==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Fri, 26 May 2023 17:40:13 +0000
- Ironport-data: A9a23:47amDaiO5XQuNO7sRC3JIZqsX161oREKZh0ujC45NGQN5FlHY01je htvWG2Fa6yCYTb2c4okPd+y9R9VucTRyIVkSgs4/yhmQigb9cadCdqndUqhZCn6wu8v7q5Ex 55HNoSfdpBcolv0/ErF3m3J9CEkvU2wbuOgTrWCYmYpHlUMpB4J0XpLg/Q+jpNjne+3CgaMv cKai8DEMRqu1iUc3lg8sspvkzsx+qyq0N8klgZmP6sT4QWAzyN94K83fsldEVOpGuG4IcbiL wrz5OnR1n/U+R4rFuSknt7TGqHdauePVeQmoiM+t5mK2nCulARrukoIHKN0hXNsoyeIh7hMJ OBl7vRcf+uL0prkw4zxWzEAe8130DYvFLXveRBTuuTLp6HKnueFL1yDwyjaMKVBktubD12i+ tQDMDMGcwqAtd6455mGe/hN35wGKunCadZ3VnFIlVk1DN4AaLWaGeDv2oUd2z09wMdTAfzZe swVLyJ1awjNaAFOPVFRD48imOCvhT/0dDgwRFC9/PJrpTSMilIvluSxWDbWUoXiqcF9t0CUv G/ZuU/+BQkXLoe3wjuZ6HO8wOTImEsXXapLTeXkq6862gT7Kmo7Cw8Xf0WZ4v2F1xSkStJ4N 1NM4ycvlP1nnKCsZpynN/Gim1aNuhMeUtxcCep89giJzqfW5C6SAm8ZQnhKb9lOnN87Q3km2 0GEm/vtBCdzq/uFRHSF7LCWoDiufy8PIgcqZyUJUA8E6NnLu5wog1TESdMLOLGxps34H3f32 T/ikcQlr7AajMpO0rrh+1nC2miovsKRElJz4RjLVGW46A8/fJSie4Gj9Vnc67BHMZqdSV6C+ nMDnqBy8dwzMH1ErwTVKM1lIV1jz6/t3OH06bK3I6Qcyg==
- Ironport-hdrordr: A9a23:mDnsTaqLyEpIkSNLnfIkfogaV5oZeYIsimQD101hICG9E/b2qy nKpp8mPHDP+VMssR0b+OxoQZPwIk80lqQa3WBuB8bBYOCOggLBRuwP0WKF+UyFJ8SUzI5gPM lbAtFDIey1IV9mjdvrpCmUeuxQuOVvKZrY4ts2GU0dKz1XVw==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 26/05/2023 4:00 pm, Alejandro Vallejo wrote:
> Expose AutoIBRS to HVM guests, because they can just use it. Make sure
> writes to EFER:AIBRSE are gated on the feature being exposed. Also hide
> EFER:AIBRSE from PV guests as they have no say in the matter.
>
> Signed-off-by: Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>
It's worth saying "EFER is fully switched by VMRUN, so there's nothing
further for Xen to do in order for HVM guests to use AutoIBRS".
We can in principle support AutoIBRS on PV guests, but it's fine not to
for now.
This patch probably wants reordering to #2, because it is entirely
independent of what Xen is doing with AutoIBRS for spec safety.
It will need a minor rebase over the bit name shortening, but otherwise
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
|