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

* Re: PATCH vmx.c: add printk_ratelimit in vmx_intr_assist
       [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>
  0 siblings, 1 reply; 6+ messages in thread
From: Avi Kivity @ 2007-12-14 14:43 UTC (permalink / raw)
  To: Ryan Harper; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Ryan Harper wrote:
> 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.
>   

Applied, but this is worrying.  Do you know whether this is a regression?

-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
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

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

* Re: PATCH vmx.c: add printk_ratelimit in vmx_intr_assist
       [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>
  0 siblings, 1 reply; 6+ messages in thread
From: Ryan Harper @ 2007-12-14 15:35 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Ryan Harper

* Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> [2007-12-14 08:49]:
> Ryan Harper wrote:
> >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.
> >  
> 
> Applied, but this is worrying.  Do you know whether this is a regression?

I'll try out older releases to see if we did regress.


-- 
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

-------------------------------------------------------------------------
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

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

* Re: PATCH vmx.c: add printk_ratelimit in vmx_intr_assist
       [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>
  0 siblings, 1 reply; 6+ messages in thread
From: Ryan Harper @ 2007-12-14 22:13 UTC (permalink / raw)
  To: Ryan Harper; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Avi Kivity

* Ryan Harper <ryanh-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> [2007-12-14 09:36]:
> * Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> [2007-12-14 08:49]:
> > Ryan Harper wrote:
> > >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.
> > >  
> > 
> > Applied, but this is worrying.  Do you know whether this is a regression?
> 
> I'll try out older releases to see if we did regress.

Looks like kvm-47 introduced the hang during format, -46 finishes the
format just fine and with no printk spamming.  I'll start seeing
if I can bisect down to a particular changeset.

-- 
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

-------------------------------------------------------------------------
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

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

* Re: PATCH vmx.c: add printk_ratelimit in vmx_intr_assist
       [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
  1 sibling, 0 replies; 6+ messages in thread
From: Ryan Harper @ 2007-12-14 23:51 UTC (permalink / raw)
  To: Ryan Harper; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Avi Kivity

* Ryan Harper <ryanh-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> [2007-12-14 16:14]:
> * Ryan Harper <ryanh-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> [2007-12-14 09:36]:
> > * Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> [2007-12-14 08:49]:
> > > Ryan Harper wrote:
> > > >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.
> > > >  
> > > 
> > > Applied, but this is worrying.  Do you know whether this is a regression?
> > 
> > I'll try out older releases to see if we did regress.
> 
> Looks like kvm-47 introduced the hang during format, -46 finishes the
> format just fine and with no printk spamming.  I'll start seeing
> if I can bisect down to a particular changeset.

My git skills are poor and I can't for the life of my figure out how to
get kvm and kvm-userspace checked out at kvm-46 and build them together.
So, instead I tested the nightly tarballs between Oct 10 (kvm-46
release) and Oct 18 (kvm-47).

kvm-snapshot-20071014.tar.gz is the last known good version.
version:        kvm-snapshot-20071014
srcversion:     5F6E5524AD0A76F65C4CF60

The flooding of: [2592349.069880] Fault when IDT_Vectoring starts with
1015 but 1015 can complete the formatting.  16 and 17 won't compile.  18
of course fails completely.

So, something between 14 and 15 added the flooding, and something
between 15 and 18 prevents formatting from progressing.

-- 
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

-------------------------------------------------------------------------
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

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

* Re: PATCH vmx.c: add printk_ratelimit in vmx_intr_assist
       [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
  1 sibling, 0 replies; 6+ messages in thread
From: Avi Kivity @ 2007-12-18 16:30 UTC (permalink / raw)
  To: Ryan Harper; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Ryan Harper wrote:
> * Ryan Harper <ryanh-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> [2007-12-14 09:36]:
>   
>> * Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> [2007-12-14 08:49]:
>>     
>>> Ryan Harper wrote:
>>>       
>>>> 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.
>>>>  
>>>>         
>>> Applied, but this is worrying.  Do you know whether this is a regression?
>>>       
>> I'll try out older releases to see if we did regress.
>>     
>
> Looks like kvm-47 introduced the hang during format, -46 finishes the
> format just fine and with no printk spamming.  I'll start seeing
> if I can bisect down to a particular changeset.
>
>   
Unfortunately there was a window where interrupts were injected outside 
the critical section, causing these errors.  This was introduced in 
kvm-47, so this doesn't help much.


-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
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

^ permalink raw reply	[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