From: Laurent Vivier <lvivier@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: qemu-devel@nongnu.org, Akihiko Odaki <akihiko.odaki@daynix.com>,
Sriram Yagnaraman <sriram.yagnaraman@est.tech>,
Dmitry Fleytman <dmitry.fleytman@gmail.com>
Subject: Re: [PATCH v2 2/2] e1000e: fix link state on resume
Date: Fri, 8 Mar 2024 09:21:32 +0100 [thread overview]
Message-ID: <ee3f60de-8bbd-4a49-a6b7-65937a122a93@redhat.com> (raw)
In-Reply-To: <CACGkMEuCewG-RLNRrBP03-qrWO4w8Jg5L3ASAUbYcKXwBnwzUw@mail.gmail.com>
On 3/8/24 09:09, Jason Wang wrote:
> On Tue, Mar 5, 2024 at 6:07 PM Laurent Vivier <lvivier@redhat.com> wrote:
>>
>> On 2/1/24 06:45, Jason Wang wrote:
>>> On Wed, Jan 24, 2024 at 6:40 PM Laurent Vivier <lvivier@redhat.com> wrote:
>>>>
>>>> On resume e1000e_vm_state_change() always calls e1000e_autoneg_resume()
>>>> that sets link_down to false, and thus activates the link even
>>>> if we have disabled it.
>>>>
>>>> The problem can be reproduced starting qemu in paused state (-S) and
>>>> then set the link to down. When we resume the machine the link appears
>>>> to be up.
>>>>
>>>> Reproducer:
>>>>
>>>> # qemu-system-x86_64 ... -device e1000e,netdev=netdev0,id=net0 -S
>>>>
>>>> {"execute": "qmp_capabilities" }
>>>> {"execute": "set_link", "arguments": {"name": "net0", "up": false}}
>>>> {"execute": "cont" }
>>>>
>>>> To fix the problem, merge the content of e1000e_vm_state_change()
>>>> into e1000e_core_post_load() as e1000 does.
>>>>
>>>> Buglink: https://issues.redhat.com/browse/RHEL-21867
>>>> Fixes: 6f3fbe4ed06a ("net: Introduce e1000e device emulation")
>>>> Suggested-by: Akihiko Odaki <akihiko.odaki@daynix.com>
>>>> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
>>>> ---
>>>>
>>>
>>> I've queued this.
>>
>> Ping?
>>
>> Thanks,
>> Laurent
>>
>
> This fail CI at:
>
> https://gitlab.com/jasowang/qemu/-/jobs/6348725267
>
> It looks to me we can safely drop e1000e_autoneg_pause()?
>
> Thanks
>
Yes, I'm going to send a new version of the patch.
Thanks,
Laurent
prev parent reply other threads:[~2024-03-08 8:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-24 10:40 [PATCH v2 2/2] e1000e: fix link state on resume Laurent Vivier
2024-01-28 11:37 ` Akihiko Odaki
2024-02-01 5:45 ` Jason Wang
2024-03-05 10:06 ` Laurent Vivier
2024-03-06 5:29 ` Jason Wang
2024-03-08 8:09 ` Jason Wang
2024-03-08 8:21 ` Laurent Vivier [this message]
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=ee3f60de-8bbd-4a49-a6b7-65937a122a93@redhat.com \
--to=lvivier@redhat.com \
--cc=akihiko.odaki@daynix.com \
--cc=dmitry.fleytman@gmail.com \
--cc=jasowang@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sriram.yagnaraman@est.tech \
/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).