Commit 11f340e
LoongArch: KVM: Skip PMU checking on vCPU context switch
PMU hardware about VM is switched on VM exit to host rather than vCPU
context sched off, PMU is checked and restored on return to VM. It is
not necessary to check PMU on vCPU context sched on callback, since the
request is made on the VM exit entry or VM PMU CSR access abort routine
already.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>1 parent 5001bcf commit 11f340e
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | 151 | | |
158 | 152 | | |
159 | 153 | | |
| |||
304 | 298 | | |
305 | 299 | | |
306 | 300 | | |
307 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
| |||
1609 | 1606 | | |
1610 | 1607 | | |
1611 | 1608 | | |
1612 | | - | |
1613 | | - | |
1614 | | - | |
1615 | 1609 | | |
1616 | 1610 | | |
1617 | 1611 | | |
| |||
0 commit comments