• A
    RISC-V: KVM: Add extensible CSR emulation framework · 8a061562
    Anup Patel 提交于
    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: NAnup Patel <apatel@ventanamicro.com>
    Signed-off-by: NAnup Patel <anup@brainfault.org>
    8a061562
vcpu.c 26.6 KB