• Anup Patel's avatar
    RISC-V: KVM: Add extensible CSR emulation framework · 8a061562
    Anup Patel authored
    We add an extensible CSR emulation framework which is based upon the
    existing system instruction emulation. This will be useful to upcoming
    AIA, PMU, Nested and other virtualization features.
    
    The CSR emulation framework also has provision to emulate CSR in user
    space but this will be used only in very specific cases such as AIA
    IMSIC CSR emulation in user space or vendor specific CSR emulation
    in user space.
    
    By default, all CSRs not handled by KVM RISC-V will be redirected back
    to Guest VCPU as illegal instruction trap.
    Signed-off-by: default avatarAnup Patel <apatel@ventanamicro.com>
    Signed-off-by: default avatarAnup Patel <anup@brainfault.org>
    8a061562
vcpu_insn.c 19.4 KB