Commit:     9584bf2c93f56656dba0de8f6c75b54ca7995143
Parent:     0711456c0d78335d24e4f92aa40d32c78fd44aa8
Author:     Ryan Harper <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 13 10:21:10 2007 -0600
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 17:58:10 2008 +0200

    KVM: VMX: Add printk_ratelimit in vmx_intr_assist
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
 drivers/kvm/vmx.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index 7e61a56..11ca234 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -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)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to