[Devel] [PATCH RHEL7 COMMIT] ms/kvm: introduce vcpu_debug = kvm_debug + vcpu context

Konstantin Khorenko khorenko at virtuozzo.com
Fri Oct 2 01:18:24 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.8.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.8.2
------>
commit befcc3dcb7f419008c0e910c906810e68487bc9d
Author: Andrey Smetanin <asmetanin at virtuozzo.com>
Date:   Fri Oct 2 12:18:24 2015 +0400

    ms/kvm: introduce vcpu_debug = kvm_debug + vcpu context
    
    vcpu_debug is useful macro like kvm_debug but additionally
    includes vcpu context inside output.
    
    ms commit - ee86dbc6e327062396748162b95309388c19faab
    
    Signed-off-by: Andrey Smetanin <asmetanin at virtuozzo.com>
    
    Signed-off-by: Denis V. Lunev <den at openvz.org>
    Reviewed-by: Peter Hornyack <peterhornyack at google.com>
    CC: Paolo Bonzini <pbonzini at redhat.com>
    CC: Gleb Natapov <gleb at kernel.org>
    Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
---
 include/linux/kvm_host.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 9be71a0..43a9a0f 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -406,6 +406,9 @@ struct kvm {
 #define vcpu_unimpl(vcpu, fmt, ...)					\
 	kvm_pr_unimpl("vcpu%i " fmt, (vcpu)->vcpu_id, ## __VA_ARGS__)
 
+#define vcpu_debug(vcpu, fmt, ...)					\
+	kvm_debug("vcpu%i " fmt, (vcpu)->vcpu_id, ## __VA_ARGS__)
+
 static inline struct kvm_vcpu *kvm_get_vcpu(struct kvm *kvm, int i)
 {
 	smp_rmb();



More information about the Devel mailing list