Re: [PATCH v6 15/64] KVM: arm64: nv: Handle HCR_EL2.E2H specially

Russell King (Oracle)
2022-02-01T16:52:02Z

On Fri, Jan 28, 2022 at 12:18:23PM +0000, Marc Zyngier wrote:
> HCR_EL2.E2H is nasty, as a flip of this bit completely changes the way
> we deal with a lot of the state. So when the guest flips this bit
> (sysregs are live), do the put/load dance so that we have a consistent
> state.
>
> Yes, this is slow. Don't do it.

I'd hope this is very unlikely!

>
> Suggested-by: Alexandru Elisei <alexandru.elisei@arm.com>
> Signed-off-by: Marc Zyngier <maz@kernel.org>

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!