summaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-09-27 13:40:05 +0200
committerAnup Patel <anup@brainfault.org>2021-10-04 12:19:57 +0200
commit34bde9d8b9e6e5249db3c07cf1ebfe75c23c671c (patch)
treeff74abdabe5103aae8533e738446e2b0df2be4c8 /LICENSES
parentRISC-V: KVM: Implement KVM_GET_ONE_REG/KVM_SET_ONE_REG ioctls (diff)
downloadlinux-34bde9d8b9e6e5249db3c07cf1ebfe75c23c671c.tar.xz
linux-34bde9d8b9e6e5249db3c07cf1ebfe75c23c671c.zip
RISC-V: KVM: Implement VCPU world-switch
This patch implements the VCPU world-switch for KVM RISC-V. The KVM RISC-V world-switch (i.e. __kvm_riscv_switch_to()) mostly switches general purpose registers, SSTATUS, STVEC, SSCRATCH and HSTATUS CSRs. Other CSRs are switched via vcpu_load() and vcpu_put() interface in kvm_arch_vcpu_load() and kvm_arch_vcpu_put() functions respectively. Signed-off-by: Anup Patel <anup.patel@wdc.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Alexander Graf <graf@amazon.com> Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions