public inbox for qemu-devel@nongnu.org
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clegoate@redhat.com>
To: "Thomas Huth" <thuth@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	qemu-devel@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>,
	Pierrick Bouvier <pierrick.bouvier@linaro.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Anton Johansson <anjo@rev.ng>
Subject: Re: [PATCH v2 03/38] hw/s390x/vfio: Replace TARGET_PAGE_BITS -> qemu_target_page_bits()
Date: Fri, 13 Mar 2026 15:05:17 +0100	[thread overview]
Message-ID: <daa35e89-f407-45e7-a37a-72299ac6b2c9@redhat.com> (raw)
In-Reply-To: <1ab35d61-a06b-4e89-8ce8-e857470fdc86@redhat.com>

On 3/13/26 11:25, Thomas Huth wrote:
> On 13/03/2026 07.20, Philippe Mathieu-Daudé wrote:
>> Get the target page bits at runtime.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>>   hw/s390x/s390-pci-vfio.c | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/hw/s390x/s390-pci-vfio.c b/hw/s390x/s390-pci-vfio.c
>> index 8ce44dbecce..7c754b656da 100644
>> --- a/hw/s390x/s390-pci-vfio.c
>> +++ b/hw/s390x/s390-pci-vfio.c
>> @@ -22,6 +22,7 @@
>>   #include "hw/vfio/pci.h"
>>   #include "hw/vfio/vfio-container-legacy.h"
>>   #include "hw/vfio/vfio-helpers.h"
>> +#include "exec/target_page.h"
>>   /*
>>    * Get the current DMA available count from vfio.  Returns true if vfio is
>> @@ -150,7 +151,7 @@ static void s390_pci_read_base(S390PCIBusDevice *pbdev,
>>        * to request that the guest free DMA mappings as necessary.
>>        */
>>       if (!pbdev->rtr_avail) {
>> -        vfio_size = pbdev->iommu->max_dma_limit << TARGET_PAGE_BITS;
>> +        vfio_size = pbdev->iommu->max_dma_limit << qemu_target_page_bits();
>>           if (vfio_size > 0 && vfio_size < cap->end_dma - cap->start_dma + 1) {
>>               pbdev->zpci_fn.edma = cap->start_dma + vfio_size - 1;
>>           }
> 
> Reviewed-by: Thomas Huth <thuth@redhat.com>
> 

Reviewed-by: Cédric Le Goater <clg@redhat.com>

Thanks,

C.



  reply	other threads:[~2026-03-13 14:07 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-13  6:20 [PATCH v2 00/38] target/cpu: Do not include 'exec/cpu-defs.h' anymore Philippe Mathieu-Daudé
2026-03-13  6:20 ` [PATCH v2 01/38] target/arm: Remove target_ulong use in hvf_handle_psci_call() Philippe Mathieu-Daudé
2026-03-13 16:23   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 02/38] target/ppc: Replace TARGET_PAGE_BITS -> qemu_target_page_bits() Philippe Mathieu-Daudé
2026-03-13 16:24   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 03/38] hw/s390x/vfio: " Philippe Mathieu-Daudé
2026-03-13 10:25   ` Thomas Huth
2026-03-13 14:05     ` Cédric Le Goater [this message]
2026-03-13 16:28   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 04/38] monitor/hmp: : Include missing 'exec/target_long.h' header Philippe Mathieu-Daudé
2026-03-13 10:28   ` Thomas Huth
2026-03-13 16:28   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 05/38] target-info: Include 'exec/cpu-defs.h' explicitly Philippe Mathieu-Daudé
2026-03-13 16:29   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 06/38] target/xtensa: Restrict inclusion of 'exec/cpu-defs.h' header Philippe Mathieu-Daudé
2026-03-13 16:30   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 07/38] target/hexagon: Include missing 'exec/target_long.h' header Philippe Mathieu-Daudé
2026-03-13 14:16   ` Brian Cain
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 08/38] target/hppa: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 09/38] target/i386: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 10/38] target/m68k: " Philippe Mathieu-Daudé
2026-03-13 10:33   ` Thomas Huth
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 11/38] target/mips: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 12/38] target/ppc: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 13/38] target/riscv: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 14/38] target/sparc: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 15/38] system/kvm_xen: Include missing 'exec/target_page.h' header Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 16/38] hw/misc/cpc: Include missing 'hw/core/cpu.h' header Philippe Mathieu-Daudé
2026-03-13 10:34   ` Thomas Huth
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 17/38] target/s390x/tcg: Include missing '*cpu.h' headers Philippe Mathieu-Daudé
2026-03-13 10:29   ` Thomas Huth
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 18/38] exec/helper-head: Include missing 'exec/target_long.h' header Philippe Mathieu-Daudé
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 19/38] target/cpu: Do not include 'exec/cpu-defs.h' anymore Philippe Mathieu-Daudé
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 20/38] hw/alpha: Include full path to target 'cpu.h' header Philippe Mathieu-Daudé
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 21/38] hw/arm: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 22/38] hw/avr: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 23/38] hw/hppa: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 24/38] hw/i386: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 25/38] hw/m68k: " Philippe Mathieu-Daudé
2026-03-13 10:29   ` Thomas Huth
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 26/38] hw/microblaze: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 27/38] hw/mips: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 28/38] hw/or1k: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 29/38] hw/ppc: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 30/38] hw/riscv: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 31/38] hw/s390x: " Philippe Mathieu-Daudé
2026-03-13 10:30   ` Thomas Huth
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 32/38] hw/sh4: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 33/38] hw/sparc: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 34/38] hw/tricore: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 35/38] hw/xtensa: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 36/38] hw/misc/allwinner-cpucfg.c: make compilation unit common Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 37/38] hw/avr: Build as common unit files Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 38/38] hw/misc: Build 'mac_via' as common unit file Philippe Mathieu-Daudé
2026-03-13 10:32   ` Thomas Huth
2026-03-13 16:41   ` Pierrick Bouvier
2026-03-13 16:42 ` [PATCH v2 00/38] target/cpu: Do not include 'exec/cpu-defs.h' anymore Pierrick Bouvier
2026-03-23  9:54 ` Philippe Mathieu-Daudé

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=daa35e89-f407-45e7-a37a-72299ac6b2c9@redhat.com \
    --to=clegoate@redhat.com \
    --cc=anjo@rev.ng \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=thuth@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