Commit 4198f38
committed
KVM: x86: Eliminate "handling" of impossible errors during SUSPEND
Drop KVM's handling of kvm_set_guest_paused() failure when reacting to a
SUSPEND notification, as kvm_set_guest_paused() only "fails" if the vCPU
isn't using kvmclock, and KVM's notifier callback pre-checks that kvmclock
is active. I.e. barring some bizarre edge case that shouldn't be treated
as an error in the first place, kvm_arch_suspend_notifier() can't fail.
Reviewed-by: Paul Durrant <paul@xen.org>
Link: https://lore.kernel.org/r/20250201013827.680235-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent d9c5ed0 commit 4198f38
1 file changed
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6905 | 6905 | | |
6906 | 6906 | | |
6907 | 6907 | | |
6908 | | - | |
6909 | | - | |
6910 | | - | |
6911 | | - | |
6912 | | - | |
6913 | 6908 | | |
6914 | | - | |
6915 | | - | |
6916 | | - | |
6917 | | - | |
6918 | | - | |
6919 | | - | |
6920 | | - | |
| 6909 | + | |
| 6910 | + | |
| 6911 | + | |
| 6912 | + | |
| 6913 | + | |
| 6914 | + | |
6921 | 6915 | | |
6922 | | - | |
| 6916 | + | |
6923 | 6917 | | |
6924 | 6918 | | |
6925 | 6919 | | |
| |||
0 commit comments