public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH vmx.c: add printk_ratelimit in vmx_intr_assist
@ 2007-12-13 16:21 Ryan Harper
       [not found] ` <20071213162110.GJ23913-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Ryan Harper @ 2007-12-13 16:21 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 352 bytes --]

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.

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org

[-- Attachment #2: ratelimit_prink_in_vmx_intr_assist.patch --]
[-- Type: text/plain, Size: 793 bytes --]

For some guests (ubuntu6.06-server) on intel machines, vmx_inter_assist spams
a message preventing the guest from making forward progress.  Adding in a
ratelimit check prevents the spamming.

Signed-off-by: Ryan Harper <ryanh-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index 548e3a5..1c1ad7f 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -2261,7 +2261,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);

[-- Attachment #3: Type: text/plain, Size: 308 bytes --]

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-18 16:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-13 16:21 PATCH vmx.c: add printk_ratelimit in vmx_intr_assist Ryan Harper
     [not found] ` <20071213162110.GJ23913-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-12-14 14:43   ` Avi Kivity
     [not found]     ` <476296A4.2010407-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-14 15:35       ` Ryan Harper
     [not found]         ` <20071214153527.GK23913-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-12-14 22:13           ` Ryan Harper
     [not found]             ` <20071214221359.GO23913-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-12-14 23:51               ` Ryan Harper
2007-12-18 16:30               ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox