summaryrefslogtreecommitdiff
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorVincent Chen <vincent.chen@sifive.com>2023-06-05 11:07:16 +0000
committerPalmer Dabbelt <palmer@rivosinc.com>2023-06-08 07:16:51 -0700
commit0f4b82579716b12bb88257bd7ea80f25c791fb2c (patch)
tree067c4d467c13e5cf20f552ca40aebcc861201c32 /drivers/macintosh
parentbf78f1ea6e5108a7ebd55be0853f0716433117a9 (diff)
riscv: KVM: Add vector lazy save/restore support
This patch adds vector context save/restore for guest VCPUs. To reduce the impact on KVM performance, the implementation imitates the FP context switch mechanism to lazily store and restore the vector context only when the kernel enters/exits the in-kernel run loop and not during the KVM world switch. Signed-off-by: Vincent Chen <vincent.chen@sifive.com> Signed-off-by: Greentime Hu <greentime.hu@sifive.com> Signed-off-by: Andy Chiu <andy.chiu@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org> Acked-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20230605110724.21391-20-andy.chiu@sifive.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions