Commit 6b1ca26
committed
KVM: x86: clarify leave_smm() return value
The return value of vmx_leave_smm() is unrelated from that of
nested_vmx_enter_non_root_mode(). Check explicitly for success
(which happens to be 0) and return 1 just like everywhere
else in vmx_leave_smm().
Likewise, in svm_leave_smm() return 0/1 instead of the 0/1/-errno
returned by tenter_svm_guest_mode().
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 3e74569 commit 6b1ca26
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4884 | 4884 | | |
4885 | 4885 | | |
4886 | 4886 | | |
4887 | | - | |
4888 | | - | |
4889 | | - | |
| 4887 | + | |
| 4888 | + | |
4890 | 4889 | | |
4891 | 4890 | | |
| 4891 | + | |
4892 | 4892 | | |
4893 | 4893 | | |
4894 | 4894 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8533 | 8533 | | |
8534 | 8534 | | |
8535 | 8535 | | |
8536 | | - | |
8537 | | - | |
| 8536 | + | |
| 8537 | + | |
8538 | 8538 | | |
8539 | 8539 | | |
8540 | 8540 | | |
| |||
0 commit comments