Home
last modified time | relevance | path

Searched hist:a9ac6c37521ff3f81eba7fada8773c362652d75f (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/arch/riscv/kvm/
H A Dvcpu_pmu.cdiff a9ac6c37521ff3f81eba7fada8773c362652d75f Tue Feb 07 03:55:26 CST 2023 Atish Patra <atishp@rivosinc.com> RISC-V: KVM: Implement trap & emulate for hpmcounters

As the KVM guests only see the virtual PMU counters, all hpmcounter
access should trap and KVM emulates the read access on behalf of guests.

Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
H A Dvcpu_insn.cdiff a9ac6c37521ff3f81eba7fada8773c362652d75f Tue Feb 07 03:55:26 CST 2023 Atish Patra <atishp@rivosinc.com> RISC-V: KVM: Implement trap & emulate for hpmcounters

As the KVM guests only see the virtual PMU counters, all hpmcounter
access should trap and KVM emulates the read access on behalf of guests.

Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
/openbmc/linux/arch/riscv/include/asm/
H A Dkvm_vcpu_pmu.hdiff a9ac6c37521ff3f81eba7fada8773c362652d75f Tue Feb 07 03:55:26 CST 2023 Atish Patra <atishp@rivosinc.com> RISC-V: KVM: Implement trap & emulate for hpmcounters

As the KVM guests only see the virtual PMU counters, all hpmcounter
access should trap and KVM emulates the read access on behalf of guests.

Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>