qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Auger <eric.auger@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: eric.auger.pro@gmail.com, pbonzini@redhat.com,
	qemu-arm@nongnu.org, qemu-devel@nongnu.org, mst@redhat.com,
	david@gibson.dropbear.id.au, clg@kaod.org, eesposit@redhat.com,
	Coiby.Xu@gmail.com, stefanha@redhat.com,
	jean-philippe@linaro.org
Subject: Re: [PATCH v6 3/3] tests/qtest/libqos: Add generic pci host bridge in arm-virt machine
Date: Mon, 9 May 2022 16:33:56 +0200	[thread overview]
Message-ID: <763c598d-b01a-32eb-2bd5-0d2537f0e6e6@redhat.com> (raw)
In-Reply-To: <87bkw6u7np.fsf@linaro.org>

Hi Alex,

On 5/9/22 15:59, Alex Bennée wrote:
> Eric Auger <eric.auger@redhat.com> writes:
>
>> Up to now the virt-machine node contains a virtio-mmio node.
>> However no driver produces any PCI interface node. Hence, PCI
>> tests cannot be run with aarch64 binary.
>>
>> Add a GPEX driver node that produces a pci interface node. This latter
>> then can be consumed by all the pci tests. One of the first motivation
>> was to be able to run the virtio-iommu-pci tests.
>>
>> We still face an issue with pci hotplug tests as hotplug cannot happen
>> on the pcie root bus and require a generic root port. This will be
>> addressed later on.
>>
>> We force cpu=max along with aarch64/virt machine as some PCI tests
>> require high MMIO regions to be available.
> Where would I be able to force disable-legacy=off for the PCI device
in libqos/vhost-user-gpio-pci.c qos_node_consumes("vhost-user-blk-pci",
"pci-bus", &opts);
I think you can use opts to force disable-legacy to off.

see vhost-user-blk.c.
> from? Building on this for GPIO I run into the following:
>
>   subprocess_run_one_test: /aarch64/virt/generic-pcihost/pci-bus-generic/pci-bus/vhost-user-gpio-pci/vhost-user-gpio/vhost-user-gpio-tests/read-guest-mem/memfile/subprocess
>   vhost_user_test_setup: -M virt, -cpu max -device vhost-user-gpio-pci,id=gpio0,addr=04.0,chardev=chr-vhost-user-test
>   vu_gpio_get_protocol_features: 0x202
>   qemu-system-aarch64: -device vhost-user-gpio-pci,id=gpio0,addr=04.0,chardev=chr-vhost-user-test: Device doesn't support modern mode, and legacy mode is disabled
>   Set disable-legacy to off
>   Broken pipe
>
> and I think this needs to be applied to the root bus device?
you mean the disable-legacy? I guess it should be applied to your device?

Eric
>
> Anyway otherwise it looks OK to me:
>
> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
>



  reply	other threads:[~2022-05-09 14:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-04 15:20 [PATCH v6 0/3] qtests/libqos: Allow PCI tests to be run with virt-machine Eric Auger
2022-05-04 15:20 ` [PATCH v6 1/3] tests/qtest/libqos/pci: Introduce pio_limit Eric Auger
2022-05-04 15:20 ` [PATCH v6 2/3] tests/qtest/libqos: Skip hotplug tests if pci root bus is not hotpluggable Eric Auger
2022-05-04 15:20 ` [PATCH v6 3/3] tests/qtest/libqos: Add generic pci host bridge in arm-virt machine Eric Auger
2022-05-09 13:59   ` Alex Bennée
2022-05-09 14:33     ` Eric Auger [this message]
2022-05-09  8:18 ` [PATCH v6 0/3] qtests/libqos: Allow PCI tests to be run with virt-machine Eric Auger

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=763c598d-b01a-32eb-2bd5-0d2537f0e6e6@redhat.com \
    --to=eric.auger@redhat.com \
    --cc=Coiby.Xu@gmail.com \
    --cc=alex.bennee@linaro.org \
    --cc=clg@kaod.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=eesposit@redhat.com \
    --cc=eric.auger.pro@gmail.com \
    --cc=jean-philippe@linaro.org \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --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).