Re: [PATCH 03/10] KVM: arm64: switch HCRX_EL2 between host and guest
From: Kristina Martsenko
Date: Wed Feb 22 2023 - 13:36:52 EST
On 16/02/2023 16:20, Mark Brown wrote:
> On Thu, Feb 16, 2023 at 04:00:05PM +0000, Kristina Martsenko wrote:
>
>> After this change, SMPME is no longer set for guests, which should have
>> no effect as SME is currently disabled for guests.
>
> SMPME is mainly set for the benefit of any future guests, it is
> used to turn off SME priorities for guests. While it's true that
> we don't have any guests support yet it's there as safety to
> ensure we don't forget to enable it later on or something
> otherwise goes wrong. We don't need priority mapping on the host
> since we don't have any priority mapping support at all, and it's
> difficult to see a reason why we would want to remap our own
> priorities in the host.
That makes sense. I'll fix this in v2 so that priority mapping is enabled for
guests and disabled for the host.
Thanks,
Kristina