All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Upton <oliver.upton@linux.dev>
To: Marc Zyngier <maz@kernel.org>
Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	James Morse <james.morse@arm.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	Zenghui Yu <yuzenghui@huawei.com>, Will Deacon <will@kernel.org>
Subject: Re: [PATCH v2 4/5] KVM: arm64: vhe: Synchronise with page table walker on MMU update
Date: Thu, 13 Apr 2023 00:11:19 +0000	[thread overview]
Message-ID: <ZDdIp3j1r5ym4nb4@linux.dev> (raw)
In-Reply-To: <20230408160427.10672-5-maz@kernel.org>

On Sat, Apr 08, 2023 at 05:04:26PM +0100, Marc Zyngier wrote:
> Contrary to nVHE, VHE is a lot easier when it comes to dealing
> with speculative page table walks started at EL1. As we only change
> EL1&0 translation regime when context-switching, we already benefit
> from the effect of the DSB that sits in the context switch code.
> 
> We only need to take care of it in the NV case, where we can
> flip between between two EL1 contexts (one of them being the virtual
> EL2) without a context switch.
> 
> Signed-off-by: Marc Zyngier <maz@kernel.org>

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>

-- 
Thanks,
Oliver

WARNING: multiple messages have this Message-ID (diff)
From: Oliver Upton <oliver.upton@linux.dev>
To: Marc Zyngier <maz@kernel.org>
Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	James Morse <james.morse@arm.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	Zenghui Yu <yuzenghui@huawei.com>, Will Deacon <will@kernel.org>
Subject: Re: [PATCH v2 4/5] KVM: arm64: vhe: Synchronise with page table walker on MMU update
Date: Thu, 13 Apr 2023 00:11:19 +0000	[thread overview]
Message-ID: <ZDdIp3j1r5ym4nb4@linux.dev> (raw)
In-Reply-To: <20230408160427.10672-5-maz@kernel.org>

On Sat, Apr 08, 2023 at 05:04:26PM +0100, Marc Zyngier wrote:
> Contrary to nVHE, VHE is a lot easier when it comes to dealing
> with speculative page table walks started at EL1. As we only change
> EL1&0 translation regime when context-switching, we already benefit
> from the effect of the DSB that sits in the context switch code.
> 
> We only need to take care of it in the NV case, where we can
> flip between between two EL1 contexts (one of them being the virtual
> EL2) without a context switch.
> 
> Signed-off-by: Marc Zyngier <maz@kernel.org>

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>

-- 
Thanks,
Oliver

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2023-04-13  0:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-08 16:04 [PATCH v2 0/5] KVM: arm64: Synchronise speculative page table walks on translation regime change Marc Zyngier
2023-04-08 16:04 ` Marc Zyngier
2023-04-08 16:04 ` [PATCH v2 1/5] KVM: arm64: nvhe: Synchronise with page table walker on vcpu run Marc Zyngier
2023-04-08 16:04   ` Marc Zyngier
2023-04-13  0:10   ` Oliver Upton
2023-04-13  0:10     ` Oliver Upton
2023-04-08 16:04 ` [PATCH v2 2/5] KVM: arm64: nvhe: Synchronise with page table walker on TLBI Marc Zyngier
2023-04-08 16:04   ` Marc Zyngier
2023-04-13  0:09   ` Oliver Upton
2023-04-13  0:09     ` Oliver Upton
2023-04-13  7:37     ` Marc Zyngier
2023-04-13  7:37       ` Marc Zyngier
2023-04-08 16:04 ` [PATCH v2 3/5] KVM: arm64: pkvm: Document the side effects of kvm_flush_dcache_to_poc() Marc Zyngier
2023-04-08 16:04   ` Marc Zyngier
2023-04-13  0:10   ` Oliver Upton
2023-04-13  0:10     ` Oliver Upton
2023-04-08 16:04 ` [PATCH v2 4/5] KVM: arm64: vhe: Synchronise with page table walker on MMU update Marc Zyngier
2023-04-08 16:04   ` Marc Zyngier
2023-04-13  0:11   ` Oliver Upton [this message]
2023-04-13  0:11     ` Oliver Upton
2023-04-08 16:04 ` [PATCH v2 5/5] KVM: arm64: vhe: Drop extra isb() on guest exit Marc Zyngier
2023-04-08 16:04   ` Marc Zyngier
2023-04-13  0:15   ` Oliver Upton
2023-04-13  0:15     ` Oliver Upton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZDdIp3j1r5ym4nb4@linux.dev \
    --to=oliver.upton@linux.dev \
    --cc=james.morse@arm.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=maz@kernel.org \
    --cc=suzuki.poulose@arm.com \
    --cc=will@kernel.org \
    --cc=yuzenghui@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.