qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Amos Kong <akong@redhat.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
	stefanha@redhat.com, qemu-devel@nongnu.org,
	anthony@codemonkey.ws
Subject: Re: [Qemu-devel] [PATCH 0/2] fix updating of nic info
Date: Thu, 17 Oct 2013 12:34:27 +0300	[thread overview]
Message-ID: <20131017093427.GD14596@redhat.com> (raw)
In-Reply-To: <20131017083122.GB2658@amosk.info>

On Thu, Oct 17, 2013 at 04:31:22PM +0800, Amos Kong wrote:
> On Thu, Oct 17, 2013 at 11:15:21AM +0300, Michael S. Tsirkin wrote:
> > On Thu, Oct 17, 2013 at 09:58:47AM +0200, Stefan Hajnoczi wrote:
> > > On Thu, Oct 17, 2013 at 03:02:48PM +0800, Amos Kong wrote:
> > > > I tried to change macaddr in guest, addr in guest is updated, and guest
> > > > network is fine. But the nic information in monitor isn't update. This
> > > > problem both exists in e1000 and rtl8139.
> > > > 
> > > >   1) change macaddr in guest by ifconfig
> > > >   guest)# ifconfig eth0 hw ether 12:12:12:34:35:36
> > > >   guest)# ifconfig eth0
> > > >   
> > > >   2) check network information in monitor
> > > >   (qemu) info network
> > > >   
> > > > Amos Kong (2):
> > > >   net/e1000: update network information when macaddr is changed in guest
> > > >   net/rtl8139: update network information when macaddr is changed in
> > > >     guest
> > > > 
> > > >  hw/net/e1000.c   | 8 ++++++++
> > > >  hw/net/rtl8139.c | 6 +++++-
> > > >  2 files changed, 13 insertions(+), 1 deletion(-)
> > > 
> > > Thanks, applied to my net tree:
> > > https://github.com/stefanha/qemu/commits/net
> > > 
> > > Stefan
> > 
> > Please revert, this is buggy:
> > 
> > info is changed on guest mac write but is
> > not reverted on reset.
> > 
> > Let's fix it properly, no need to introduce
> > new regressions when fixing old bugs :)
> 
> After 'system_reset' or 'reboot', nic info can't be changed until
> device init.
> 
> Updating nic info during reset is another issue, I will send patch to
> fix it.

OK so let's apply the reset change first, then these patches
on top. This way we don't break bisect.
Stefan can you rearrange pls?

> > -- 
> > MST
> 
> -- 
> 			Amos.

  reply	other threads:[~2013-10-17  9:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-17  7:02 [Qemu-devel] [PATCH 0/2] fix updating of nic info Amos Kong
2013-10-17  7:02 ` [Qemu-devel] [PATCH 1/2] net/e1000: update network information when macaddr is changed in guest Amos Kong
2013-10-17  7:02 ` [Qemu-devel] [PATCH 2/2] net/rtl8139: " Amos Kong
2013-10-17  7:58 ` [Qemu-devel] [PATCH 0/2] fix updating of nic info Stefan Hajnoczi
2013-10-17  8:15   ` Michael S. Tsirkin
2013-10-17  8:31     ` Amos Kong
2013-10-17  9:34       ` Michael S. Tsirkin [this message]
2013-10-18 10:02         ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131017093427.GD14596@redhat.com \
    --to=mst@redhat.com \
    --cc=akong@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).