|
@@ -439,6 +439,9 @@ struct kvm {
|
|
pr_info("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__)
|
|
pr_info("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__)
|
|
#define kvm_debug(fmt, ...) \
|
|
#define kvm_debug(fmt, ...) \
|
|
pr_debug("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__)
|
|
pr_debug("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__)
|
|
|
|
+#define kvm_debug_ratelimited(fmt, ...) \
|
|
|
|
+ pr_debug_ratelimited("kvm [%i]: " fmt, task_pid_nr(current), \
|
|
|
|
+ ## __VA_ARGS__)
|
|
#define kvm_pr_unimpl(fmt, ...) \
|
|
#define kvm_pr_unimpl(fmt, ...) \
|
|
pr_err_ratelimited("kvm [%i]: " fmt, \
|
|
pr_err_ratelimited("kvm [%i]: " fmt, \
|
|
task_tgid_nr(current), ## __VA_ARGS__)
|
|
task_tgid_nr(current), ## __VA_ARGS__)
|
|
@@ -450,6 +453,9 @@ struct kvm {
|
|
|
|
|
|
#define vcpu_debug(vcpu, fmt, ...) \
|
|
#define vcpu_debug(vcpu, fmt, ...) \
|
|
kvm_debug("vcpu%i " fmt, (vcpu)->vcpu_id, ## __VA_ARGS__)
|
|
kvm_debug("vcpu%i " fmt, (vcpu)->vcpu_id, ## __VA_ARGS__)
|
|
|
|
+#define vcpu_debug_ratelimited(vcpu, fmt, ...) \
|
|
|
|
+ kvm_debug_ratelimited("vcpu%i " fmt, (vcpu)->vcpu_id, \
|
|
|
|
+ ## __VA_ARGS__)
|
|
#define vcpu_err(vcpu, fmt, ...) \
|
|
#define vcpu_err(vcpu, fmt, ...) \
|
|
kvm_err("vcpu%i " fmt, (vcpu)->vcpu_id, ## __VA_ARGS__)
|
|
kvm_err("vcpu%i " fmt, (vcpu)->vcpu_id, ## __VA_ARGS__)
|
|
|
|
|