linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Qemu e1000 broken in -rc1 and -rc2
@ 2015-03-06  0:02 Ken Moffat
  2015-03-06 19:27 ` Qemu e1000 broken in -rc1 and -rc2 : bisected Ken Moffat
  0 siblings, 1 reply; 4+ messages in thread
From: Ken Moffat @ 2015-03-06  0:02 UTC (permalink / raw)
  To: linux-kernel

 I have a very recent qemu i686 image, using a 3.19.0 kernel and
dhclient, which works fine if the host is running a 3.19.0 kernel,
but breaks when the host runs 4.0.0-rc1 or -rc2.

 On those, dhclient does not get an address, so I have no network.
There is a message
e1000 0000:00:03.0 eth0: Reset adaptor

 Before I start trying to bisect this, has anybody already seen, or
fixed, it ?

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.

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

* Re: Qemu e1000 broken in -rc1 and -rc2 : bisected
  2015-03-06  0:02 Qemu e1000 broken in -rc1 and -rc2 Ken Moffat
@ 2015-03-06 19:27 ` Ken Moffat
  2015-03-09  3:14   ` Chen, Tiejun
  0 siblings, 1 reply; 4+ messages in thread
From: Ken Moffat @ 2015-03-06 19:27 UTC (permalink / raw)
  To: Tiejun Chen, Paolo Bonzini; +Cc: linux-kernel

On Fri, Mar 06, 2015 at 12:02:40AM +0000, Ken Moffat wrote:
>  I have a very recent qemu i686 image, using a 3.19.0 kernel and
> dhclient, which works fine if the host is running a 3.19.0 kernel,
> but breaks when the host runs 4.0.0-rc1 or -rc2.
> 
>  On those, dhclient does not get an address, so I have no network.
> There is a message
> e1000 0000:00:03.0 eth0: Reset adaptor
> 
>  Before I start trying to bisect this, has anybody already seen, or
> fixed, it ?
> 
 Bisected.
b4eef9b36db461ca44832226fbca614db58c0c33 is the first bad commit
commit b4eef9b36db461ca44832226fbca614db58c0c33
Author: Tiejun Chen <tiejun.chen@intel.com>
Date:   Mon Dec 22 10:32:57 2014 +0100

    kvm: x86: vmx: NULL out hwapic_isr_update() in case of
!enable_apicv
    
    In most cases calling hwapic_isr_update(), we always check if
    kvm_apic_vid_enabled() == 1, but actually,
    kvm_apic_vid_enabled()
        -> kvm_x86_ops->vm_has_apicv()
            -> vmx_vm_has_apicv() or '0' in svm case
                -> return enable_apicv && irqchip_in_kernel(kvm)
    
    So its a little cost to recall vmx_vm_has_apicv() inside
    hwapic_isr_update(), here just NULL out hwapic_isr_update() in
    case of !enable_apicv inside hardware_setup() then make all
    related stuffs follow this. Note we don't check this under that
    condition of irqchip_in_kernel() since we should make sure
    definitely any caller don't work  without in-kernel irqchip.
    
    Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

 I have reverted this from -rc2 (big offsets, 209 and 357 lines) and
everything is working again.

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.

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

* Re: Qemu e1000 broken in -rc1 and -rc2 : bisected
  2015-03-06 19:27 ` Qemu e1000 broken in -rc1 and -rc2 : bisected Ken Moffat
@ 2015-03-09  3:14   ` Chen, Tiejun
  2015-03-09 15:05     ` Ken Moffat
  0 siblings, 1 reply; 4+ messages in thread
From: Chen, Tiejun @ 2015-03-09  3:14 UTC (permalink / raw)
  To: Ken Moffat, Paolo Bonzini; +Cc: linux-kernel

On 2015/3/7 3:27, Ken Moffat wrote:
> On Fri, Mar 06, 2015 at 12:02:40AM +0000, Ken Moffat wrote:
>>   I have a very recent qemu i686 image, using a 3.19.0 kernel and
>> dhclient, which works fine if the host is running a 3.19.0 kernel,
>> but breaks when the host runs 4.0.0-rc1 or -rc2.
>>
>>   On those, dhclient does not get an address, so I have no network.
>> There is a message
>> e1000 0000:00:03.0 eth0: Reset adaptor
>>
>>   Before I start trying to bisect this, has anybody already seen, or
>> fixed, it ?
>>
>   Bisected.
> b4eef9b36db461ca44832226fbca614db58c0c33 is the first bad commit
> commit b4eef9b36db461ca44832226fbca614db58c0c33
> Author: Tiejun Chen <tiejun.chen@intel.com>
> Date:   Mon Dec 22 10:32:57 2014 +0100
>
>      kvm: x86: vmx: NULL out hwapic_isr_update() in case of
> !enable_apicv
>
>      In most cases calling hwapic_isr_update(), we always check if
>      kvm_apic_vid_enabled() == 1, but actually,
>      kvm_apic_vid_enabled()
>          -> kvm_x86_ops->vm_has_apicv()
>              -> vmx_vm_has_apicv() or '0' in svm case
>                  -> return enable_apicv && irqchip_in_kernel(kvm)
>
>      So its a little cost to recall vmx_vm_has_apicv() inside
>      hwapic_isr_update(), here just NULL out hwapic_isr_update() in
>      case of !enable_apicv inside hardware_setup() then make all
>      related stuffs follow this. Note we don't check this under that
>      condition of irqchip_in_kernel() since we should make sure
>      definitely any caller don't work  without in-kernel irqchip.
>
>      Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
>      Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
>   I have reverted this from -rc2 (big offsets, 209 and 357 lines) and
> everything is working again.
>

Did you try Linux 4.0-rc3? That includes one relevant fix,

KVM: SVM: fix interrupt injection (apic->isr_count always 0)

Thanks
Tiejun

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

* Re: Qemu e1000 broken in -rc1 and -rc2 : bisected
  2015-03-09  3:14   ` Chen, Tiejun
@ 2015-03-09 15:05     ` Ken Moffat
  0 siblings, 0 replies; 4+ messages in thread
From: Ken Moffat @ 2015-03-09 15:05 UTC (permalink / raw)
  To: Chen, Tiejun; +Cc: Paolo Bonzini, linux-kernel

On Mon, Mar 09, 2015 at 11:14:20AM +0800, Chen, Tiejun wrote:
> On 2015/3/7 3:27, Ken Moffat wrote:
> >On Fri, Mar 06, 2015 at 12:02:40AM +0000, Ken Moffat wrote:
> >>  I have a very recent qemu i686 image, using a 3.19.0 kernel and
> >>dhclient, which works fine if the host is running a 3.19.0 kernel,
> >>but breaks when the host runs 4.0.0-rc1 or -rc2.
> >>
> >>  On those, dhclient does not get an address, so I have no network.
> >>There is a message
> >>e1000 0000:00:03.0 eth0: Reset adaptor
> >>
> >>  Before I start trying to bisect this, has anybody already seen, or
> >>fixed, it ?
> >>
> >  Bisected.
> >b4eef9b36db461ca44832226fbca614db58c0c33 is the first bad commit
> >commit b4eef9b36db461ca44832226fbca614db58c0c33
> >Author: Tiejun Chen <tiejun.chen@intel.com>
> >Date:   Mon Dec 22 10:32:57 2014 +0100
> >
> >     kvm: x86: vmx: NULL out hwapic_isr_update() in case of
> >!enable_apicv
> >
[...]
> 
> Did you try Linux 4.0-rc3? That includes one relevant fix,
> 
> KVM: SVM: fix interrupt injection (apic->isr_count always 0)
> 
> Thanks
> Tiejun

 I've now tried -rc3, and the problem has gone.  Thanks.

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.

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

end of thread, other threads:[~2015-03-09 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-06  0:02 Qemu e1000 broken in -rc1 and -rc2 Ken Moffat
2015-03-06 19:27 ` Qemu e1000 broken in -rc1 and -rc2 : bisected Ken Moffat
2015-03-09  3:14   ` Chen, Tiejun
2015-03-09 15:05     ` Ken Moffat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).