From: Paolo Bonzini <pbonzini@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>, qemu-devel@nongnu.org
Cc: Dmitry Fleytman <dmitry@daynix.com>, Jason Wang <jasowang@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 for-2.5] vmxnet3: silence warning
Date: Mon, 30 Nov 2015 14:44:17 +0100 [thread overview]
Message-ID: <565C52B1.4070902@redhat.com> (raw)
In-Reply-To: <1448889606-14277-1-git-send-email-mst@redhat.com>
On 30/11/2015 14:20, Michael S. Tsirkin wrote:
> vmxnet3 always produces a warning under qtest.
>
> This is not a user error, don't warn.
>
> Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> hw/net/vmxnet3.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c
> index 5e3a233..0e9e6d9 100644
> --- a/hw/net/vmxnet3.c
> +++ b/hw/net/vmxnet3.c
> @@ -25,6 +25,7 @@
> #include "qemu/bswap.h"
> #include "hw/pci/msix.h"
> #include "hw/pci/msi.h"
> +#include "sysemu/qtest.h"
>
> #include "vmxnet3.h"
> #include "vmxnet_debug.h"
> @@ -2015,7 +2016,9 @@ static bool vmxnet3_peer_has_vnet_hdr(VMXNET3State *s)
> return true;
> }
>
> - VMW_WRPRN("Peer has no virtio extension. Task offloads will be emulated.");
> + if (!qtest_enabled()) {
> + VMW_WRPRN("Peer has no virtio extension. Task offloads will be emulated.");
> + }
> return false;
> }
>
>
Isn't this v1 again? :)
Paolo
prev parent reply other threads:[~2015-11-30 13:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 13:20 [Qemu-devel] [PATCH v2 for-2.5] vmxnet3: silence warning Michael S. Tsirkin
2015-11-30 13:44 ` Paolo Bonzini [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=565C52B1.4070902@redhat.com \
--to=pbonzini@redhat.com \
--cc=dmitry@daynix.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).