qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/6] tests/qtest/libqos/pci: Introduce pio_limit


From: Thomas Huth
Subject: Re: [PATCH 2/6] tests/qtest/libqos/pci: Introduce pio_limit
Date: Fri, 14 Jan 2022 09:54:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

On 10/01/2022 22.19, Eric Auger wrote:
At the moment the IO space limit is hardcoded to
QPCI_PIO_LIMIT = 0x10000. When accesses are performed to a bar,
the base address of this latter is compared against the limit
to decide whether we perform an IO or a memory access.

On ARM, we cannot keep this PIO limit as the arm-virt machine
uses [0x3eff0000, 0x3f000000 ] for the IO space map and we
are mandated to allocate at 0x0.

Add a new flag in QPCIBar indicating whether it is an IO bar
or a memory bar. This flag is set on QPCIBar allocation and
provisionned based on the BAR configuration. Then the new flag
is used in access functions and in iomap() function.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
---
  tests/qtest/libqos/pci-pc.c    |  1 +
  tests/qtest/libqos/pci-spapr.c |  1 +
  tests/qtest/libqos/pci.c       | 78 ++++++++++++++++++++++------------
  tests/qtest/libqos/pci.h       |  5 +--
  4 files changed, 54 insertions(+), 31 deletions(-)

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]