]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Eliminate "handling" of impossible errors during SUSPEND
authorSean Christopherson <seanjc@google.com>
Sat, 1 Feb 2025 01:38:18 +0000 (17:38 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 12 Feb 2025 18:45:54 +0000 (10:45 -0800)
commit4198f38aed24f8f4634867f640cc60c65789b4ec
treefc93200d6dc3beac54ae8c3059249614006e9337
parentd9c5ed0a9b529ee1103a4b68cec86112b26380e0
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>
arch/x86/kvm/x86.c