[PATCH v2 3/3] KVM: arm64: Don't replace a valid hyp block mapping with a table

Fuad Tabba fuad.tabba at linux.dev
Fri Nov 6 04:03:29 PST 2026


Hi Xuheng,

On Thu, 05 Nov 2026 22:59:50 +0000, Xuheng Li <xuheng at cs.columbia.edu> wrote:
[...]
> No in-tree caller maps into an existing hyp block mapping today, so this
> cannot be triggered in mainline.  Fail such a request with -EEXIST
> instead, so that a future caller gets an error rather than silently
> losing the rest of the block.

Could you mention in the message that the WARN_ON() is fatal at EL2,
so a caller there gets a hyp panic rather than -EEXIST?
kvm_pgtable_hyp_map() is already documented as rejecting such a
mapping "with an error and a WARN()", which is a better reason than a
future caller.

Also, please don't respin series so fast. Give us time to digest the
series first :)

Cheers,
/fuad



More information about the linux-arm-kernel mailing list