]> err.no Git - linux-2.6/commitdiff
KVM: VMX: Add printk_ratelimit in vmx_intr_assist
authorRyan Harper <ryanh@us.ibm.com>
Thu, 13 Dec 2007 16:21:10 +0000 (10:21 -0600)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:58:10 +0000 (17:58 +0200)
Add printk_ratelimit check in front of printk.  This prevents spamming
of the message during 32-bit ubuntu 6.06server install.  Previously, it
would hang during the partition formatting stage.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c

index 7e61a560aab578823293425631c73eac9f45a02b..11ca2340d38fb77890052f07f48be5716c5c96d4 100644 (file)
@@ -2263,7 +2263,8 @@ static void vmx_intr_assist(struct kvm_vcpu *vcpu)
        if (intr_info_field & INTR_INFO_VALID_MASK) {
                if (idtv_info_field & INTR_INFO_VALID_MASK) {
                        /* TODO: fault when IDT_Vectoring */
-                       printk(KERN_ERR "Fault when IDT_Vectoring\n");
+                       if (printk_ratelimit())
+                               printk(KERN_ERR "Fault when IDT_Vectoring\n");
                }
                if (has_ext_irq)
                        enable_irq_window(vcpu);