Commit 2f15b5e
RISC-V: KVM: Update firmware counters for various events
SBI PMU specification defines few firmware counters which can be
used by the guests to collect the statstics about various traps
occurred in the host.
Update these counters whenever a corresponding trap is taken
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20241224-kvm_guest_stat-v2-2-08a77ac36b02@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>1 parent 51c5895 commit 2f15b5e
1 file changed
+27
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
168 | 179 | | |
169 | 180 | | |
170 | 181 | | |
| |||
183 | 194 | | |
184 | 195 | | |
185 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
186 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
187 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
188 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
189 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
190 | 216 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 217 | + | |
195 | 218 | | |
196 | 219 | | |
197 | 220 | | |
| |||
0 commit comments