]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: Don't BUG() the kernel if xa_insert() fails with -EBUSY
authorSean Christopherson <seanjc@google.com>
Wed, 9 Oct 2024 15:04:54 +0000 (08:04 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 16 Dec 2024 22:37:30 +0000 (14:37 -0800)
commite53dc37f5a06f0be5b89fac230fcd4008f646d50
tree0f826578c823ce8a77d413005a9f2ab0445ea098
parentd0831edcd87ee4cbf1b8cc5669d9d07c71577477
KVM: Don't BUG() the kernel if xa_insert() fails with -EBUSY

WARN once instead of triggering a BUG if xa_insert() fails because it
encountered an existing entry.  While KVM guarantees there should be no
existing entry, there's no reason to BUG the kernel, as KVM needs to
gracefully handle failure anyways.

Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20241009150455.1057573-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
virt/kvm/kvm_main.c