Commit 22c6a0e
committed
KVM: x86: check validity of argument to KVM_SET_MP_STATE
An invalid argument to KVM_SET_MP_STATE has no effect other than making the
vCPU fail to run at the next KVM_RUN. Since it is extremely unlikely that
any userspace is relying on it, fail with -EINVAL just like for other
architectures.
Signed-off-by: Paolo Bonzini <[email protected]>1 parent 8769364 commit 22c6a0e
1 file changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10669 | 10669 | | |
10670 | 10670 | | |
10671 | 10671 | | |
10672 | | - | |
| 10672 | + | |
| 10673 | + | |
10673 | 10674 | | |
10674 | 10675 | | |
10675 | 10676 | | |
| |||
11110 | 11111 | | |
11111 | 11112 | | |
11112 | 11113 | | |
11113 | | - | |
11114 | | - | |
| 11114 | + | |
| 11115 | + | |
| 11116 | + | |
| 11117 | + | |
| 11118 | + | |
| 11119 | + | |
| 11120 | + | |
| 11121 | + | |
| 11122 | + | |
| 11123 | + | |
| 11124 | + | |
| 11125 | + | |
| 11126 | + | |
| 11127 | + | |
11115 | 11128 | | |
| 11129 | + | |
11116 | 11130 | | |
11117 | 11131 | | |
11118 | 11132 | | |
| |||
0 commit comments