[PATCH v8 09/69] KVM: arm64: nv: Reset VMPIDR_EL2 and VPIDR_EL2 to sane values

Oliver Upton oliver.upton at linux.dev
Tue Jan 31 12:17:50 PST 2023


On Tue, Jan 31, 2023 at 09:24:04AM +0000, Marc Zyngier wrote:
> From: Christoffer Dall <christoffer.dall at arm.com>
> 
> The VMPIDR_EL2 and VPIDR_EL2 are architecturally UNKNOWN at reset, but
> let's be nice to a guest hypervisor behaving foolishly and reset these
> to something reasonable anyway.

Must we be so kind? :)

In all seriousness, I've found the hexspeak value of reset_unknown() to
be a rather useful debugging aid. And I can promise you that I'll use NV
to debug my own crap changes!

Any particular reason against just using reset_unknown()?

-- 
Thanks,
Oliver



More information about the linux-arm-kernel mailing list