• James Morse's avatar
    KVM: arm64: Make indirect vectors preamble behaviour symmetric · 5d994374
    James Morse authored
    The KVM indirect vectors support is a little complicated. Different CPUs
    may use different exception vectors for KVM that are generated at boot.
    Adding new instructions involves checking all the possible combinations
    do the right thing.
    
    To make changes here easier to review lets state what we expect of the
    preamble:
      1. The first vector run, must always run the preamble.
      2. Patching the head or tail of the vector shouldn't remove
         preamble instructions.
    
    Today, this is easy as we only have one instruction in the preamble.
    Change the unpatched tail of the indirect vector so that it always
    runs this, regardless of patching.
    Signed-off-by: default avatarJames Morse <james.morse@arm.com>
    Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    5d994374
hyp-entry.S 7.15 KB