[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 15/20] hw/arm/sysbus-fdt: Pass the VirtMachin
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v7 15/20] hw/arm/sysbus-fdt: Pass the VirtMachineState to the node creation functions |
Date: |
Mon, 9 Oct 2017 18:47:33 +0100 |
On 1 September 2017 at 18:21, Eric Auger <address@hidden> wrote:
> The VirtMachineState contains some dt phandles that will be used
> in some node creation functions. For instance we plan to use the
> PCI host controller phandle in the smmu node creation function. So
> let's pass the VirtMachineState handle down to the node creation
> functions by enhancing the involved datatypes.
>
> Signed-off-by: Eric Auger <address@hidden>
> ---
> hw/arm/sysbus-fdt.c | 3 +++
> hw/arm/virt.c | 1 +
> include/hw/arm/sysbus-fdt.h | 2 ++
> 3 files changed, 6 insertions(+)
>
> diff --git a/hw/arm/sysbus-fdt.c b/hw/arm/sysbus-fdt.c
> index d68e3dc..d92a983 100644
> --- a/hw/arm/sysbus-fdt.c
> +++ b/hw/arm/sysbus-fdt.c
> @@ -36,6 +36,7 @@
> #include "hw/vfio/vfio-platform.h"
> #include "hw/vfio/vfio-calxeda-xgmac.h"
> #include "hw/vfio/vfio-amd-xgbe.h"
> +#include "hw/arm/virt.h"
> #include "hw/arm/fdt.h"
>
> /*
> @@ -47,6 +48,7 @@ typedef struct PlatformBusFDTData {
> int irq_start; /* index of the first IRQ usable by platform bus devices
> */
> const char *pbus_node_name; /* name of the platform bus node */
> PlatformBusDevice *pbus;
> + VirtMachineState *vms;
> } PlatformBusFDTData;
sysbus-fdt isn't virt specific, so this doesn't belong here.
More generally, why is sysbus-fdt involved in this at all?
I expected that instantiating and wiring up the SMMU would
be the job of hw/arm/virt.c, like any other device we
might have on the board.
thanks
-- PMM
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH v7 15/20] hw/arm/sysbus-fdt: Pass the VirtMachineState to the node creation functions,
Peter Maydell <=