[PATCH 0/4] hw/arm: Enable 'nested' SMMU in virt, sbsa-ref

Peter Maydell posted 4 patches 3 months, 1 week ago
include/hw/arm/virt.h      |  1 +
include/hw/boards.h        |  3 +++
include/hw/i386/pc.h       |  3 +++
hw/arm/sbsa-ref.c          |  1 +
hw/arm/smmuv3.c            |  1 +
hw/arm/virt.c              | 19 +++++++++++++++++--
hw/core/machine.c          |  3 +++
hw/i386/pc.c               |  3 +++
hw/i386/pc_piix.c          | 15 ++++++++++++---
hw/i386/pc_q35.c           | 13 +++++++++++--
hw/m68k/virt.c             | 11 +++++++++--
hw/ppc/spapr.c             | 17 ++++++++++++++---
hw/s390x/s390-virtio-ccw.c | 14 +++++++++++++-
13 files changed, 91 insertions(+), 13 deletions(-)
[PATCH 0/4] hw/arm: Enable 'nested' SMMU in virt, sbsa-ref
Posted by Peter Maydell 3 months, 1 week ago
This patchset enables support for nested (two stage) translations
in the SMMU in the virt and sbsa-ref boards.

Patch 1 is Cornelia's compat-machine machinery patch, which we
need to make this change only happen for virt-9.2 and later;
patch 2 is a trivial "missing comment update" change; patches
3 and 4 are the board changes.

Enabling nested support should be transparent to guests, which
will only enable stage 2 if they actually want it.

thanks
-- PMM

Cornelia Huck (1):
  hw: add compat machines for 9.2

Peter Maydell (3):
  hw/arm/smmuv3: Update comment documenting "stage" property
  hw/arm/virt: Default to two-stage SMMU from virt-9.2
  hw/arm/sbsa-ref: Use two-stage SMMU

 include/hw/arm/virt.h      |  1 +
 include/hw/boards.h        |  3 +++
 include/hw/i386/pc.h       |  3 +++
 hw/arm/sbsa-ref.c          |  1 +
 hw/arm/smmuv3.c            |  1 +
 hw/arm/virt.c              | 19 +++++++++++++++++--
 hw/core/machine.c          |  3 +++
 hw/i386/pc.c               |  3 +++
 hw/i386/pc_piix.c          | 15 ++++++++++++---
 hw/i386/pc_q35.c           | 13 +++++++++++--
 hw/m68k/virt.c             | 11 +++++++++--
 hw/ppc/spapr.c             | 17 ++++++++++++++---
 hw/s390x/s390-virtio-ccw.c | 14 +++++++++++++-
 13 files changed, 91 insertions(+), 13 deletions(-)

-- 
2.34.1
Re: [PATCH 0/4] hw/arm: Enable 'nested' SMMU in virt, sbsa-ref
Posted by Eric Auger 3 months ago
Hi Peter,

On 8/16/24 18:13, Peter Maydell wrote:
> This patchset enables support for nested (two stage) translations
> in the SMMU in the virt and sbsa-ref boards.
>
> Patch 1 is Cornelia's compat-machine machinery patch, which we
> need to make this change only happen for virt-9.2 and later;
> patch 2 is a trivial "missing comment update" change; patches
> 3 and 4 are the board changes.
>
> Enabling nested support should be transparent to guests, which
> will only enable stage 2 if they actually want it.
>
> thanks
> -- PMM

For the whole series:

Reviewed-by: Eric Auger <eric.auger@redhat.com>

Thanks

Eric

>
> Cornelia Huck (1):
>   hw: add compat machines for 9.2
>
> Peter Maydell (3):
>   hw/arm/smmuv3: Update comment documenting "stage" property
>   hw/arm/virt: Default to two-stage SMMU from virt-9.2
>   hw/arm/sbsa-ref: Use two-stage SMMU
>
>  include/hw/arm/virt.h      |  1 +
>  include/hw/boards.h        |  3 +++
>  include/hw/i386/pc.h       |  3 +++
>  hw/arm/sbsa-ref.c          |  1 +
>  hw/arm/smmuv3.c            |  1 +
>  hw/arm/virt.c              | 19 +++++++++++++++++--
>  hw/core/machine.c          |  3 +++
>  hw/i386/pc.c               |  3 +++
>  hw/i386/pc_piix.c          | 15 ++++++++++++---
>  hw/i386/pc_q35.c           | 13 +++++++++++--
>  hw/m68k/virt.c             | 11 +++++++++--
>  hw/ppc/spapr.c             | 17 ++++++++++++++---
>  hw/s390x/s390-virtio-ccw.c | 14 +++++++++++++-
>  13 files changed, 91 insertions(+), 13 deletions(-)
>