Commit f771c0a
LoongArch: KVM: Use kvm_get_vcpu_by_id() instead of kvm_get_vcpu()
[ Upstream commit 0dfd9ea ]
Since using kvm_get_vcpu() may fail to retrieve the vCPU context,
kvm_get_vcpu_by_id() should be used instead.
Fixes: 8e30542 ("LoongArch: KVM: Add IPI user mode read and write function")
Fixes: 3956a52 ("LoongArch: KVM: Add EIOINTC read and write functions")
Reviewed-by: Yanteng Si <[email protected]>
Signed-off-by: Song Gao <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>1 parent 8bb4dfc commit f771c0a
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
0 commit comments