qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <mlureau@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCHv2] tests: re-enable vhost-user-test
Date: Tue, 27 Oct 2015 10:33:26 -0400 (EDT)	[thread overview]
Message-ID: <1889109701.37758961.1445956406827.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAFEAcA9uVzb7dQeJxbimFx2u93GxUWqVSX9n5X3w=2UxpAR1og@mail.gmail.com>

Hi

----- Original Message -----
> On 26 October 2015 at 14:32,  <marcandre.lureau@redhat.com> wrote:
> > From: Marc-André Lureau <marcandre.lureau@redhat.com>
> >
> > Commit 7fe34ca9c2e actually disabled vhost-user-test altogether,
> > since CONFIG_VHOST_NET is a per-target config variable.
> >
> > tests/vhost-user-test is already x86/x64 softmmu specific test, in order
> > to enable it correctly, kvm & vhost-net are also conditions. To check
> > that, set CONFIG_VHOST_NET_TEST_$target when kvm is also enabled.
> >
> > Since "check-qtest-x86_64-y = $(check-qtest-i386-y)", avoid duplication
> > when both x86 & x64 are enabled.
> >
> > Other targets than x86 aren't enabled yet, and is intentionally left as
> > a future improvement, since I can't easily test those.
> >
> > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> 
> I ran this through my build-tests, which pass, but:
> 
> (a) there's still the clang warning about the negative shifts
> in target-i386/. This is an ancient bug and we can fix it later.

I sent a patch to fix this.

> (b) there are new warning messages:
> Warning: path not on HugeTLBFS: /tmp/vhost-test-xaGJRK
> Warning: path not on HugeTLBFS: /tmp/vhost-test-xaGJRK
> Warning: path not on HugeTLBFS: /tmp/vhost-test-xaGJRK

These are part of qemu file_ram_alloc()

> I would like (b) fixed -- tests should either:
>  (1) complete without printing "warning" about anything

We would need to change the qemu warning.

>  (2) fail the test if the warning is actually important
>  (3) skip the test if the test requires something that the host
>      machine doesn't have (like a hugetlbfs)

It is not important for the test to succeed.

I imagine a few options to get rid of the warning:
1. only run the test on hugetlbfs
2. remove the warning from qemu
3. silence qemu errors in the test
4. add an option to memory-backend-file to require hugetlbfs: something like ...,require-hugetlbfs=true,false,warn

I guess 4. is the most interesting, although I would need some advice on how to express this best.

(tbh, I think this could be addressed later)

  reply	other threads:[~2015-10-27 14:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-26 14:32 [Qemu-devel] [PATCHv2] tests: re-enable vhost-user-test marcandre.lureau
2015-10-26 17:30 ` Peter Maydell
2015-10-27 14:33   ` Marc-André Lureau [this message]
2015-10-27 15:49     ` Michael S. Tsirkin

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=1889109701.37758961.1445956406827.JavaMail.zimbra@redhat.com \
    --to=mlureau@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --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).