[PATCH 2/7] KVM: arm64: Move OUTSIDE_GUEST_MODE publication past context being saved

Fuad Tabba fuad.tabba at linux.dev
Thu Oct 15 06:59:56 PDT 2026


On Thu, 15 Oct 2026 at 14:52, Marc Zyngier <maz at kernel.org> wrote:
[...]
> I don't really want to make this vgic specific, as there could be
> more. But I can more precisely describe what state were talking about:
>
> diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c
> index 8b46fafdd3494..7ce9f3bfa7fff 100644
> --- a/arch/arm64/kvm/arm.c
> +++ b/arch/arm64/kvm/arm.c
> @@ -1390,8 +1390,9 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
>                 kvm_arch_vcpu_ctxsync_fp(vcpu);
>
>                 /*
> -                * All the state has been synchronised, let advertise
> -                * we're outside of the guest.
> +                * The state that was pushed into the CPU on entering
> +                * the guest has been synchronised back, let's
> +                * advertise we're outside of the guest.
>                  */

lgtm,
/fuad



More information about the linux-arm-kernel mailing list