Skip to content

RFC ARMv7: Add HYP mode switching support

Andre Przywara u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 6 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [RFC PATCH 0/6] ARMv7: Add HYP mode switching support
Quoted 11 lines · Peter Maydell
Quoted 9 lines · Andre Przywara
Quoted 4 lines · Peter Maydell

The obvious question here is "why do we need a new command?". The kernel booting specification says "boot the kernel in Hyp mode" so we should just always do that for booting Linux, surely?

Because it avoids regressions. I kind of feel uneasy to do a lot of tinkering with secure state and the GIC unconditionally, especially if enabled on many boards with virt-capable CPUs.

Quoted 7 lines

There aren't exactly very many of those out there, so if we default to "boot in HYP mode" then (a) KVM will just work out of the box and (b) people doing u-boot ports to their board will find any issues and be able to submit fixes. If we don't turn it on by default then we'll end up stuck in a world where KVM doesn't work on half the virt capable boards out there.

OK, that's a point. I changed the code already and will include it in the next revision.

Thanks,
Andre.

Quoted 6 lines

I have no objection to a "turn this off" escape hatch if you think it's useful.

-- PMM