* virtio-net not working with the latest qemu-kvm git @ 2009-05-04 16:50 Sridhar Samudrala 2009-05-04 17:44 ` Alex Williamson 2009-05-06 9:12 ` Avi Kivity 0 siblings, 2 replies; 20+ messages in thread From: Sridhar Samudrala @ 2009-05-04 16:50 UTC (permalink / raw) To: kvm When i moved to the latest qemu-kvm git tree from kvm-85, i noticed that networking stopped working between the host and the guest. It started working when i put the device in promiscuos mode by running tcpdump in background on the guest. After browsing through the recent patches, i found that the following commit is causing the regression. Remove stray GSO code from virtio_net (Mark McLoughlin) http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commitdiff;h=559a8f45f34cc50d1a60b4f67a06614d506b2e01 The comment doesn't seem to match with the code that is removed with this patch. Thanks Sridhar ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: virtio-net not working with the latest qemu-kvm git 2009-05-04 16:50 virtio-net not working with the latest qemu-kvm git Sridhar Samudrala @ 2009-05-04 17:44 ` Alex Williamson 2009-05-05 8:56 ` [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream Mark McLoughlin 2009-05-05 8:56 ` virtio-net not working with the latest qemu-kvm git Mark McLoughlin 2009-05-06 9:12 ` Avi Kivity 1 sibling, 2 replies; 20+ messages in thread From: Alex Williamson @ 2009-05-04 17:44 UTC (permalink / raw) To: Sridhar Samudrala; +Cc: kvm On Mon, 2009-05-04 at 09:50 -0700, Sridhar Samudrala wrote: > When i moved to the latest qemu-kvm git tree from kvm-85, i noticed that > networking stopped working between the host and the guest. > It started working when i put the device in promiscuos mode by running > tcpdump in background on the guest. > > After browsing through the recent patches, i found that the following commit > is causing the regression. > > Remove stray GSO code from virtio_net (Mark McLoughlin) > http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commitdiff;h=559a8f45f34cc50d1a60b4f67a06614d506b2e01 > > The comment doesn't seem to match with the code that is removed with this patch. Yep, I agree, the removed code is not bogus. We have to skip the vnet header to to get to the ethernet header, which we do the filtering on. Alex ^ permalink raw reply [flat|nested] 20+ messages in thread
* [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-05-04 17:44 ` Alex Williamson @ 2009-05-05 8:56 ` Mark McLoughlin 2009-05-06 9:11 ` Avi Kivity 2009-09-29 20:45 ` Mark McLoughlin 2009-05-05 8:56 ` virtio-net not working with the latest qemu-kvm git Mark McLoughlin 1 sibling, 2 replies; 20+ messages in thread From: Mark McLoughlin @ 2009-05-05 8:56 UTC (permalink / raw) To: avi; +Cc: kvm, Mark McLoughlin This commit: commit 559a8f45f34cc50d1a60b4f67a06614d506b2e01 Subject: Remove stray GSO code from virtio_net (Mark McLoughlin) Removed some GSO code from upstream qemu.git, but it needs to be re-instated in qemu-kvm.git. Reported-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: Mark McLoughlin <markmc@redhat.com> --- hw/virtio-net.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index ac8e030..e5d7add 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -424,6 +424,11 @@ static int receive_filter(VirtIONet *n, const uint8_t *buf, int size) if (n->promisc) return 1; +#ifdef TAP_VNET_HDR + if (tap_has_vnet_hdr(n->vc->vlan->first_client)) + ptr += sizeof(struct virtio_net_hdr); +#endif + if (!memcmp(&ptr[12], vlan, sizeof(vlan))) { int vid = be16_to_cpup((uint16_t *)(ptr + 14)) & 0xfff; if (!(n->vlans[vid >> 5] & (1U << (vid & 0x1f)))) -- 1.6.0.6 ^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-05-05 8:56 ` [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream Mark McLoughlin @ 2009-05-06 9:11 ` Avi Kivity 2009-09-29 20:45 ` Mark McLoughlin 1 sibling, 0 replies; 20+ messages in thread From: Avi Kivity @ 2009-05-06 9:11 UTC (permalink / raw) To: Mark McLoughlin; +Cc: kvm Mark McLoughlin wrote: > This commit: > > commit 559a8f45f34cc50d1a60b4f67a06614d506b2e01 > Subject: Remove stray GSO code from virtio_net (Mark McLoughlin) > > Removed some GSO code from upstream qemu.git, but it needs to > be re-instated in qemu-kvm.git. > > Applied, thanks. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-05-05 8:56 ` [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream Mark McLoughlin 2009-05-06 9:11 ` Avi Kivity @ 2009-09-29 20:45 ` Mark McLoughlin 2009-09-29 20:47 ` Mark McLoughlin ` (2 more replies) 1 sibling, 3 replies; 20+ messages in thread From: Mark McLoughlin @ 2009-09-29 20:45 UTC (permalink / raw) To: avi; +Cc: kvm On Tue, 2009-05-05 at 09:56 +0100, Mark McLoughlin wrote: > This commit: > > commit 559a8f45f34cc50d1a60b4f67a06614d506b2e01 > Subject: Remove stray GSO code from virtio_net (Mark McLoughlin) > > Removed some GSO code from upstream qemu.git, but it needs to > be re-instated in qemu-kvm.git. > > Reported-by: Sridhar Samudrala <sri@us.ibm.com> > Signed-off-by: Mark McLoughlin <markmc@redhat.com> > --- > hw/virtio-net.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > index ac8e030..e5d7add 100644 > --- a/hw/virtio-net.c > +++ b/hw/virtio-net.c > @@ -424,6 +424,11 @@ static int receive_filter(VirtIONet *n, const uint8_t *buf, int size) > if (n->promisc) > return 1; > > +#ifdef TAP_VNET_HDR > + if (tap_has_vnet_hdr(n->vc->vlan->first_client)) > + ptr += sizeof(struct virtio_net_hdr); > +#endif > + > if (!memcmp(&ptr[12], vlan, sizeof(vlan))) { > int vid = be16_to_cpup((uint16_t *)(ptr + 14)) & 0xfff; > if (!(n->vlans[vid >> 5] & (1U << (vid & 0x1f)))) I'm not sure[1] how we didn't notice, but this has been broken on the stable-0.10 branch since 0.10.3; please apply there too See: https://bugzilla.redhat.com/522994 Cheers, Mark. [1] - well, one reason is that libvirt doesn't seem to be enabling vnet_hdr at the moment. That's the next thing to look at ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-29 20:45 ` Mark McLoughlin @ 2009-09-29 20:47 ` Mark McLoughlin 2009-09-30 6:24 ` Avi Kivity 2009-09-30 13:51 ` Christoph Hellwig 2 siblings, 0 replies; 20+ messages in thread From: Mark McLoughlin @ 2009-09-29 20:47 UTC (permalink / raw) To: avi; +Cc: kvm On Tue, 2009-09-29 at 21:45 +0100, Mark McLoughlin wrote: > On Tue, 2009-05-05 at 09:56 +0100, Mark McLoughlin wrote: > > This commit: > > > > commit 559a8f45f34cc50d1a60b4f67a06614d506b2e01 > > Subject: Remove stray GSO code from virtio_net (Mark McLoughlin) > > > > Removed some GSO code from upstream qemu.git, but it needs to > > be re-instated in qemu-kvm.git. > > > > Reported-by: Sridhar Samudrala <sri@us.ibm.com> > > Signed-off-by: Mark McLoughlin <markmc@redhat.com> > > --- > > hw/virtio-net.c | 5 +++++ > > 1 files changed, 5 insertions(+), 0 deletions(-) > > > > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > > index ac8e030..e5d7add 100644 > > --- a/hw/virtio-net.c > > +++ b/hw/virtio-net.c > > @@ -424,6 +424,11 @@ static int receive_filter(VirtIONet *n, const uint8_t *buf, int size) > > if (n->promisc) > > return 1; > > > > +#ifdef TAP_VNET_HDR > > + if (tap_has_vnet_hdr(n->vc->vlan->first_client)) > > + ptr += sizeof(struct virtio_net_hdr); > > +#endif > > + > > if (!memcmp(&ptr[12], vlan, sizeof(vlan))) { > > int vid = be16_to_cpup((uint16_t *)(ptr + 14)) & 0xfff; > > if (!(n->vlans[vid >> 5] & (1U << (vid & 0x1f)))) > > I'm not sure[1] how we didn't notice, but this has been broken on the > stable-0.10 branch since 0.10.3; please apply there too > > See: > > https://bugzilla.redhat.com/522994 > > Cheers, > Mark. > > [1] - well, one reason is that libvirt doesn't seem to be enabling > vnet_hdr at the moment. That's the next thing to look at Oh, another reason is that this is only a problem with 2.6.30 guests which enable MAC based receive filtering Cheers, Mark. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-29 20:45 ` Mark McLoughlin 2009-09-29 20:47 ` Mark McLoughlin @ 2009-09-30 6:24 ` Avi Kivity 2009-09-30 11:24 ` Glauber Costa 2009-09-30 13:01 ` Anthony Liguori 2009-09-30 13:51 ` Christoph Hellwig 2 siblings, 2 replies; 20+ messages in thread From: Avi Kivity @ 2009-09-30 6:24 UTC (permalink / raw) To: Mark McLoughlin Cc: kvm, Marcelo Tosatti, Anthony Liguori, Glauber de Oliveira Costa On 09/29/2009 10:45 PM, Mark McLoughlin wrote: > On Tue, 2009-05-05 at 09:56 +0100, Mark McLoughlin wrote: > >> This commit: >> >> commit 559a8f45f34cc50d1a60b4f67a06614d506b2e01 >> Subject: Remove stray GSO code from virtio_net (Mark McLoughlin) >> >> Removed some GSO code from upstream qemu.git, but it needs to >> be re-instated in qemu-kvm.git. >> >> Reported-by: Sridhar Samudrala<sri@us.ibm.com> >> Signed-off-by: Mark McLoughlin<markmc@redhat.com> >> --- >> hw/virtio-net.c | 5 +++++ >> 1 files changed, 5 insertions(+), 0 deletions(-) >> >> diff --git a/hw/virtio-net.c b/hw/virtio-net.c >> index ac8e030..e5d7add 100644 >> --- a/hw/virtio-net.c >> +++ b/hw/virtio-net.c >> @@ -424,6 +424,11 @@ static int receive_filter(VirtIONet *n, const uint8_t *buf, int size) >> if (n->promisc) >> return 1; >> >> +#ifdef TAP_VNET_HDR >> + if (tap_has_vnet_hdr(n->vc->vlan->first_client)) >> + ptr += sizeof(struct virtio_net_hdr); >> +#endif >> + >> if (!memcmp(&ptr[12], vlan, sizeof(vlan))) { >> int vid = be16_to_cpup((uint16_t *)(ptr + 14))& 0xfff; >> if (!(n->vlans[vid>> 5]& (1U<< (vid& 0x1f)))) >> > I'm not sure[1] how we didn't notice, but this has been broken on the > stable-0.10 branch since 0.10.3; please apply there too > > Thanks, we'll queue it on stable-0.10. Anthony/Glauber, is 0.10.7 in the works? If not, we'll release it as 0.10.6.1. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-30 6:24 ` Avi Kivity @ 2009-09-30 11:24 ` Glauber Costa 2009-09-30 11:24 ` Mark McLoughlin 2009-09-30 13:01 ` Anthony Liguori 1 sibling, 1 reply; 20+ messages in thread From: Glauber Costa @ 2009-09-30 11:24 UTC (permalink / raw) To: Avi Kivity Cc: Mark McLoughlin, kvm, Marcelo Tosatti, Anthony Liguori, Glauber de Oliveira Costa On Wed, Sep 30, 2009 at 08:24:18AM +0200, Avi Kivity wrote: > On 09/29/2009 10:45 PM, Mark McLoughlin wrote: >> On Tue, 2009-05-05 at 09:56 +0100, Mark McLoughlin wrote: >> >>> This commit: >>> >>> commit 559a8f45f34cc50d1a60b4f67a06614d506b2e01 >>> Subject: Remove stray GSO code from virtio_net (Mark McLoughlin) >>> >>> Removed some GSO code from upstream qemu.git, but it needs to >>> be re-instated in qemu-kvm.git. >>> >>> Reported-by: Sridhar Samudrala<sri@us.ibm.com> >>> Signed-off-by: Mark McLoughlin<markmc@redhat.com> >>> --- >>> hw/virtio-net.c | 5 +++++ >>> 1 files changed, 5 insertions(+), 0 deletions(-) >>> >>> diff --git a/hw/virtio-net.c b/hw/virtio-net.c >>> index ac8e030..e5d7add 100644 >>> --- a/hw/virtio-net.c >>> +++ b/hw/virtio-net.c >>> @@ -424,6 +424,11 @@ static int receive_filter(VirtIONet *n, const uint8_t *buf, int size) >>> if (n->promisc) >>> return 1; >>> >>> +#ifdef TAP_VNET_HDR >>> + if (tap_has_vnet_hdr(n->vc->vlan->first_client)) >>> + ptr += sizeof(struct virtio_net_hdr); >>> +#endif >>> + >>> if (!memcmp(&ptr[12], vlan, sizeof(vlan))) { >>> int vid = be16_to_cpup((uint16_t *)(ptr + 14))& 0xfff; >>> if (!(n->vlans[vid>> 5]& (1U<< (vid& 0x1f)))) >>> >> I'm not sure[1] how we didn't notice, but this has been broken on the >> stable-0.10 branch since 0.10.3; please apply there too >> >> > > Thanks, we'll queue it on stable-0.10. > > Anthony/Glauber, is 0.10.7 in the works? If not, we'll release it as > 0.10.6.1. Since it is just one patch, I don't see a problem in anthony picking it directly and making a new release. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-30 11:24 ` Glauber Costa @ 2009-09-30 11:24 ` Mark McLoughlin 0 siblings, 0 replies; 20+ messages in thread From: Mark McLoughlin @ 2009-09-30 11:24 UTC (permalink / raw) To: Glauber Costa Cc: Avi Kivity, kvm, Marcelo Tosatti, Anthony Liguori, Glauber de Oliveira Costa On Wed, 2009-09-30 at 08:24 -0300, Glauber Costa wrote: > On Wed, Sep 30, 2009 at 08:24:18AM +0200, Avi Kivity wrote: > > On 09/29/2009 10:45 PM, Mark McLoughlin wrote: > >> On Tue, 2009-05-05 at 09:56 +0100, Mark McLoughlin wrote: > >> > >>> This commit: > >>> > >>> commit 559a8f45f34cc50d1a60b4f67a06614d506b2e01 > >>> Subject: Remove stray GSO code from virtio_net (Mark McLoughlin) > >>> > >>> Removed some GSO code from upstream qemu.git, but it needs to > >>> be re-instated in qemu-kvm.git. > >>> > >>> Reported-by: Sridhar Samudrala<sri@us.ibm.com> > >>> Signed-off-by: Mark McLoughlin<markmc@redhat.com> > >>> --- > >>> hw/virtio-net.c | 5 +++++ > >>> 1 files changed, 5 insertions(+), 0 deletions(-) > >>> > >>> diff --git a/hw/virtio-net.c b/hw/virtio-net.c > >>> index ac8e030..e5d7add 100644 > >>> --- a/hw/virtio-net.c > >>> +++ b/hw/virtio-net.c > >>> @@ -424,6 +424,11 @@ static int receive_filter(VirtIONet *n, const uint8_t *buf, int size) > >>> if (n->promisc) > >>> return 1; > >>> > >>> +#ifdef TAP_VNET_HDR > >>> + if (tap_has_vnet_hdr(n->vc->vlan->first_client)) > >>> + ptr += sizeof(struct virtio_net_hdr); > >>> +#endif > >>> + > >>> if (!memcmp(&ptr[12], vlan, sizeof(vlan))) { > >>> int vid = be16_to_cpup((uint16_t *)(ptr + 14))& 0xfff; > >>> if (!(n->vlans[vid>> 5]& (1U<< (vid& 0x1f)))) > >>> > >> I'm not sure[1] how we didn't notice, but this has been broken on the > >> stable-0.10 branch since 0.10.3; please apply there too > >> > >> > > > > Thanks, we'll queue it on stable-0.10. > > > > Anthony/Glauber, is 0.10.7 in the works? If not, we'll release it as > > 0.10.6.1. > Since it is just one patch, I don't see a problem in anthony picking it directly > and making a new release. It's not for qemu.git, it's for qemu-kvm.git - see the changelog Cheers, Mark. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-30 6:24 ` Avi Kivity 2009-09-30 11:24 ` Glauber Costa @ 2009-09-30 13:01 ` Anthony Liguori 1 sibling, 0 replies; 20+ messages in thread From: Anthony Liguori @ 2009-09-30 13:01 UTC (permalink / raw) To: Avi Kivity Cc: Mark McLoughlin, kvm, Marcelo Tosatti, Glauber de Oliveira Costa Avi Kivity wrote: > Anthony/Glauber, is 0.10.7 in the works? If not, we'll release it as > 0.10.6.1. Yes. I can release it very soon. -- Regards, Anthony Liguori ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-29 20:45 ` Mark McLoughlin 2009-09-29 20:47 ` Mark McLoughlin 2009-09-30 6:24 ` Avi Kivity @ 2009-09-30 13:51 ` Christoph Hellwig 2009-09-30 13:55 ` Avi Kivity 2 siblings, 1 reply; 20+ messages in thread From: Christoph Hellwig @ 2009-09-30 13:51 UTC (permalink / raw) To: Mark McLoughlin; +Cc: avi, kvm, qemu-devel I might sound like a broken record, but why isn't the full GSO support for virtio-net upstream in qemu? ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-30 13:51 ` Christoph Hellwig @ 2009-09-30 13:55 ` Avi Kivity 2009-09-30 13:59 ` Mark McLoughlin 0 siblings, 1 reply; 20+ messages in thread From: Avi Kivity @ 2009-09-30 13:55 UTC (permalink / raw) To: Christoph Hellwig; +Cc: Mark McLoughlin, kvm, qemu-devel On 09/30/2009 03:51 PM, Christoph Hellwig wrote: > I might sound like a broken record, but why isn't the full GSO support > for virtio-net upstream in qemu? > IIRC the current hacks are not upstream quality. The problem (again IIRC) is that the guest and host negotiate a protocol, but the qemu vlan model doesn't have a guest and a host, it has peers (possibly more than two), so a lot of translation has to take place if you have one peer supporting a guest feature and another not. IMO the best way out is to drop the vlan model. It has its uses, but they can all be implemented in other ways, and are all have minor usage compared to the business of getting data into and out of a guest. -- error compiling committee.c: too many arguments to function ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-30 13:55 ` Avi Kivity @ 2009-09-30 13:59 ` Mark McLoughlin 2009-09-30 19:15 ` Gerd Hoffmann 2009-10-01 16:49 ` Avi Kivity 0 siblings, 2 replies; 20+ messages in thread From: Mark McLoughlin @ 2009-09-30 13:59 UTC (permalink / raw) To: Avi Kivity; +Cc: Christoph Hellwig, kvm, qemu-devel On Wed, 2009-09-30 at 15:55 +0200, Avi Kivity wrote: > On 09/30/2009 03:51 PM, Christoph Hellwig wrote: > > I might sound like a broken record, but why isn't the full GSO support > > for virtio-net upstream in qemu? > > > > IIRC the current hacks are not upstream quality. > > The problem (again IIRC) is that the guest and host negotiate a > protocol, but the qemu vlan model doesn't have a guest and a host, it > has peers (possibly more than two), so a lot of translation has to take > place if you have one peer supporting a guest feature and another not. Right. > IMO the best way out is to drop the vlan model. It has its uses, but > they can all be implemented in other ways, and are all have minor usage > compared to the business of getting data into and out of a guest. I think we should keep the vlan stuff, just de-emphasise it. I'm planning on adding -hostnet and -nic arguments, which would not use vlans by default but rather connect the nic directly to the host side. The QemuOpts conversion of -net which is waiting to be merged is the first stage of that. Cheers, Mark. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-30 13:59 ` Mark McLoughlin @ 2009-09-30 19:15 ` Gerd Hoffmann 2009-10-01 6:59 ` [Qemu-devel] " Mark McLoughlin 2009-10-01 16:49 ` Avi Kivity 1 sibling, 1 reply; 20+ messages in thread From: Gerd Hoffmann @ 2009-09-30 19:15 UTC (permalink / raw) To: Mark McLoughlin; +Cc: Avi Kivity, Christoph Hellwig, kvm, qemu-devel On 09/30/09 15:59, Mark McLoughlin wrote: > I'm planning on adding -hostnet and -nic arguments, which would not use > vlans by default but rather connect the nic directly to the host side. No new -nic argument please. We should just finalize the qdev-ifycation of the nic drivers, then you'll do either -device e1000,vlan=<nr> or -device e1000,hostnet=<name> and be done with it. cheers, Gerd ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-30 19:15 ` Gerd Hoffmann @ 2009-10-01 6:59 ` Mark McLoughlin 0 siblings, 0 replies; 20+ messages in thread From: Mark McLoughlin @ 2009-10-01 6:59 UTC (permalink / raw) To: Gerd Hoffmann; +Cc: Christoph Hellwig, Avi Kivity, kvm, qemu-devel On Wed, 2009-09-30 at 21:15 +0200, Gerd Hoffmann wrote: > On 09/30/09 15:59, Mark McLoughlin wrote: > > I'm planning on adding -hostnet and -nic arguments, which would not use > > vlans by default but rather connect the nic directly to the host side. > > No new -nic argument please. We should just finalize the qdev-ifycation > of the nic drivers, then you'll do either > > -device e1000,vlan=<nr> > > or > > -device e1000,hostnet=<name> > > and be done with it. Yeah, that makes sense. Cheers, Mark. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-09-30 13:59 ` Mark McLoughlin 2009-09-30 19:15 ` Gerd Hoffmann @ 2009-10-01 16:49 ` Avi Kivity 2009-10-01 17:00 ` Mark McLoughlin 1 sibling, 1 reply; 20+ messages in thread From: Avi Kivity @ 2009-10-01 16:49 UTC (permalink / raw) To: Mark McLoughlin; +Cc: Christoph Hellwig, kvm, qemu-devel On 09/30/2009 03:59 PM, Mark McLoughlin wrote: > I think we should keep the vlan stuff, just de-emphasise it. > Maybe we should do what X.org does, break it silently and remove it some time later when no one complains. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-10-01 16:49 ` Avi Kivity @ 2009-10-01 17:00 ` Mark McLoughlin 2009-10-01 17:04 ` Avi Kivity 0 siblings, 1 reply; 20+ messages in thread From: Mark McLoughlin @ 2009-10-01 17:00 UTC (permalink / raw) To: Avi Kivity; +Cc: Christoph Hellwig, kvm, qemu-devel On Thu, 2009-10-01 at 18:49 +0200, Avi Kivity wrote: > On 09/30/2009 03:59 PM, Mark McLoughlin wrote: > > I think we should keep the vlan stuff, just de-emphasise it. > > > > Maybe we should do what X.org does, break it silently and remove it some > time later when no one complains. Well, the 'silently' part isn't going to work now, is it? Anyway, I'm sure at least Jan would notice if his 'dump' backend stopped working Cheers, Mark. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream 2009-10-01 17:00 ` Mark McLoughlin @ 2009-10-01 17:04 ` Avi Kivity 0 siblings, 0 replies; 20+ messages in thread From: Avi Kivity @ 2009-10-01 17:04 UTC (permalink / raw) To: Mark McLoughlin; +Cc: Christoph Hellwig, kvm, qemu-devel On 10/01/2009 07:00 PM, Mark McLoughlin wrote: > On Thu, 2009-10-01 at 18:49 +0200, Avi Kivity wrote: > >> On 09/30/2009 03:59 PM, Mark McLoughlin wrote: >> >>> I think we should keep the vlan stuff, just de-emphasise it. >>> >>> >> Maybe we should do what X.org does, break it silently and remove it some >> time later when no one complains. >> > Well, the 'silently' part isn't going to work now, is it? > Me and my big mouth. > Anyway, I'm sure at least Jan would notice if his 'dump' backend stopped > working > Patch it to use libpcap? -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: virtio-net not working with the latest qemu-kvm git 2009-05-04 17:44 ` Alex Williamson 2009-05-05 8:56 ` [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream Mark McLoughlin @ 2009-05-05 8:56 ` Mark McLoughlin 1 sibling, 0 replies; 20+ messages in thread From: Mark McLoughlin @ 2009-05-05 8:56 UTC (permalink / raw) To: Alex Williamson; +Cc: Sridhar Samudrala, kvm On Mon, 2009-05-04 at 11:44 -0600, Alex Williamson wrote: > On Mon, 2009-05-04 at 09:50 -0700, Sridhar Samudrala wrote: > > When i moved to the latest qemu-kvm git tree from kvm-85, i noticed that > > networking stopped working between the host and the guest. > > It started working when i put the device in promiscuos mode by running > > tcpdump in background on the guest. > > > > After browsing through the recent patches, i found that the following commit > > is causing the regression. > > > > Remove stray GSO code from virtio_net (Mark McLoughlin) > > http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commitdiff;h=559a8f45f34cc50d1a60b4f67a06614d506b2e01 > > > > The comment doesn't seem to match with the code that is removed with this patch. > > Yep, I agree, the removed code is not bogus. We have to skip the vnet > header to to get to the ethernet header, which we do the filtering on. The code was removed in upstream qemu.git, but we need it re-instated in qemu-kvm.git. Just sent a patch to do that. Thanks, Mark. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: virtio-net not working with the latest qemu-kvm git 2009-05-04 16:50 virtio-net not working with the latest qemu-kvm git Sridhar Samudrala 2009-05-04 17:44 ` Alex Williamson @ 2009-05-06 9:12 ` Avi Kivity 1 sibling, 0 replies; 20+ messages in thread From: Avi Kivity @ 2009-05-06 9:12 UTC (permalink / raw) To: Sridhar Samudrala; +Cc: kvm Sridhar Samudrala wrote: > When i moved to the latest qemu-kvm git tree from kvm-85, i noticed that > networking stopped working between the host and the guest. > It started working when i put the device in promiscuos mode by running > tcpdump in background on the guest. > > After browsing through the recent patches, i found that the following commit > is causing the regression. > > Remove stray GSO code from virtio_net (Mark McLoughlin) > http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commitdiff;h=559a8f45f34cc50d1a60b4f67a06614d506b2e01 > > The comment doesn't seem to match with the code that is removed with this patch. > I applied a patch from Mark that fixes this. Thanks for reporting. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2009-10-01 17:04 UTC | newest] Thread overview: 20+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-05-04 16:50 virtio-net not working with the latest qemu-kvm git Sridhar Samudrala 2009-05-04 17:44 ` Alex Williamson 2009-05-05 8:56 ` [PATCH 1/1] qemu-kvm: virtio-net: Re-instate GSO code removed upstream Mark McLoughlin 2009-05-06 9:11 ` Avi Kivity 2009-09-29 20:45 ` Mark McLoughlin 2009-09-29 20:47 ` Mark McLoughlin 2009-09-30 6:24 ` Avi Kivity 2009-09-30 11:24 ` Glauber Costa 2009-09-30 11:24 ` Mark McLoughlin 2009-09-30 13:01 ` Anthony Liguori 2009-09-30 13:51 ` Christoph Hellwig 2009-09-30 13:55 ` Avi Kivity 2009-09-30 13:59 ` Mark McLoughlin 2009-09-30 19:15 ` Gerd Hoffmann 2009-10-01 6:59 ` [Qemu-devel] " Mark McLoughlin 2009-10-01 16:49 ` Avi Kivity 2009-10-01 17:00 ` Mark McLoughlin 2009-10-01 17:04 ` Avi Kivity 2009-05-05 8:56 ` virtio-net not working with the latest qemu-kvm git Mark McLoughlin 2009-05-06 9:12 ` Avi Kivity
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).