Home
last modified time | relevance | path

Searched hist:"04 e4caa8d355d19fd7d26734bd2b9e3b563bb22a" (Results 1 – 2 of 2) sorted by relevance

/linux/arch/arm64/kvm/hyp/nvhe/
H A Dhyp-init.Sdiff 04e4caa8d355d19fd7d26734bd2b9e3b563bb22a Tue Sep 15 12:46:42 CEST 2020 Andrew Scull <ascull@google.com> KVM: arm64: nVHE: Migrate hyp-init to SMCCC

To complete the transition to SMCCC, the hyp initialization is given a
function ID. This looks neater than comparing the hyp stub function IDs
to the page table physical address.

Some care is taken to only clobber x0-3 before the host context is saved
as only those registers can be clobbered accoring to SMCCC. Fortunately,
only a few acrobatics are needed. The possible new tpidr_el2 is moved to
the argument in x2 so that it can be stashed in tpidr_el2 early to free
up a scratch register. The page table configuration then makes use of
x0-2.

Signed-off-by: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200915104643.2543892-19-ascull@google.com
/linux/arch/arm64/kvm/
H A DMakefilediff 04e4caa8d355d19fd7d26734bd2b9e3b563bb22a Tue Sep 15 12:46:42 CEST 2020 Andrew Scull <ascull@google.com> KVM: arm64: nVHE: Migrate hyp-init to SMCCC

To complete the transition to SMCCC, the hyp initialization is given a
function ID. This looks neater than comparing the hyp stub function IDs
to the page table physical address.

Some care is taken to only clobber x0-3 before the host context is saved
as only those registers can be clobbered accoring to SMCCC. Fortunately,
only a few acrobatics are needed. The possible new tpidr_el2 is moved to
the argument in x2 so that it can be stashed in tpidr_el2 early to free
up a scratch register. The page table configuration then makes use of
x0-2.

Signed-off-by: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200915104643.2543892-19-ascull@google.com