[PATCH RFC 00/17] arm64 kernel text replication

Marc Zyngier maz at kernel.org
Tue Jun 27 01:02:09 PDT 2023


On Tue, 27 Jun 2023 00:42:53 +0100,
"Lameter, Christopher" <cl at os.amperecomputing.com> wrote:
> 
> On Fri, 23 Jun 2023, Marc Zyngier wrote:
> 
> >> That sounds great, but my initial question would be whether, with such a
> >> setup, one could then run VMs under such a kernel without hardware that
> >> supports nested virtualisation? I suspect the answer would be no.
> > 
> > The answer is yes. All you need to do is to switch between the host
> > and guest stage-2s in the hypervisor, which is what KVM running in
> > protected mode does.
> 
> Well I think his point was that there are machines running without a
> hypervisor and kernel replication needs to work on that. We certainly
> benefit a lot from kernel replication and our customers may elect to
> run ARM64 kernels without hypervisors on bare metal.

These are not incompatible goals.

The hypervisor is a function that the user may want to enable or not.
Irrespective of that, the HW that underpins the virtualisation
functionality is available and allows you to solve this particular
problem in a different way. This doesn't preclude from running
bare-metal at all.

There is even precedent in using stage-2 to work around critical bugs
(the Socionext PCIe fiasco springs to mind).

	M.

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



More information about the linux-arm-kernel mailing list