All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: Oliver Upton <oliver.upton@linux.dev>
Cc: kvmarm@lists.linux.dev, James Morse <james.morse@arm.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	Zenghui Yu <yuzenghui@huawei.com>
Subject: Re: [PATCH] KVM: arm64: Skip instruction after emulating write to TCR_EL1
Date: Fri, 28 Jul 2023 09:14:14 +0100	[thread overview]
Message-ID: <87h6poqwq1.wl-maz@kernel.org> (raw)
In-Reply-To: <20230728000824.3848025-1-oliver.upton@linux.dev>

On Fri, 28 Jul 2023 01:08:24 +0100,
Oliver Upton <oliver.upton@linux.dev> wrote:
> 
> Whelp, this is embarrassing. Since commit 082fdfd13841 ("KVM: arm64:
> Prevent guests from enabling HA/HD on Ampere1") KVM traps writes to
> TCR_EL1 on AmpereOne to work around an erratum in the unadvertised
> HAFDBS implementation, preventing the guest from enabling the feature.
> Unfortunately, I failed virtualization 101 when working on that change,
> and forgot to advance PC after instruction emulation.
> 
> Do the right thing and skip the MSR instruction after emulating the
> write.
> 
> Fixes: 082fdfd13841 ("KVM: arm64: Prevent guests from enabling HA/HD on Ampere1")
> Signed-off-by: Oliver Upton <oliver.upton@linux.dev>

Oh hum... I think it is high time for a new PR to Paolo!

Acked-by: Marc Zyngier <maz@kernel.org>

	M.

-- 
Without deviation from the norm, progress is not possible.

  reply	other threads:[~2023-07-28  8:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-28  0:08 [PATCH] KVM: arm64: Skip instruction after emulating write to TCR_EL1 Oliver Upton
2023-07-28  8:14 ` Marc Zyngier [this message]
2023-07-28 17:10   ` Oliver Upton
2023-07-28 17:11 ` 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=87h6poqwq1.wl-maz@kernel.org \
    --to=maz@kernel.org \
    --cc=james.morse@arm.com \
    --cc=kvmarm@lists.linux.dev \
    --cc=oliver.upton@linux.dev \
    --cc=suzuki.poulose@arm.com \
    --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.