mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
Merge tag 'kvm-x86-generic-6.5' of https://github.com/kvm-x86/linux into HEAD
Common KVM changes for 6.5: - Fix unprotected vcpu->pid dereference via debugfs - Fix KVM_BUG() and KVM_BUG_ON() macros with 64-bit conditionals - Refactor failure path in kvm_io_bus_unregister_dev() to simplify the code - Misc cleanups
This commit is contained in:
@@ -849,7 +849,7 @@ static inline void kvm_vm_bugged(struct kvm *kvm)
|
||||
|
||||
#define KVM_BUG(cond, kvm, fmt...) \
|
||||
({ \
|
||||
int __ret = (cond); \
|
||||
bool __ret = !!(cond); \
|
||||
\
|
||||
if (WARN_ONCE(__ret && !(kvm)->vm_bugged, fmt)) \
|
||||
kvm_vm_bugged(kvm); \
|
||||
@@ -858,7 +858,7 @@ static inline void kvm_vm_bugged(struct kvm *kvm)
|
||||
|
||||
#define KVM_BUG_ON(cond, kvm) \
|
||||
({ \
|
||||
int __ret = (cond); \
|
||||
bool __ret = !!(cond); \
|
||||
\
|
||||
if (WARN_ON_ONCE(__ret && !(kvm)->vm_bugged)) \
|
||||
kvm_vm_bugged(kvm); \
|
||||
|
Reference in New Issue
Block a user