qemu-arm
[Top][All Lists]
Advanced

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

Re: [Qemu-arm] [PATCH V7 4/6] hw/arm/virt: Use the pvpanic device


From: peng.hao2
Subject: Re: [Qemu-arm] [PATCH V7 4/6] hw/arm/virt: Use the pvpanic device
Date: Wed, 21 Nov 2018 16:00:04 +0800 (CST)

> >  Add pvpanic device in arm virt machine.
> >
> > Signed-off-by: Peng Hao <address@hidden>
> > Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> > ---
> >  default-configs/arm-softmmu.mak |  1 +
> >  hw/arm/virt.c                   | 21 +++++++++++++++++++++
> >  include/hw/arm/virt.h           |  1 +
> >  3 files changed, 23 insertions(+)
> >
> > diff --git a/default-configs/arm-softmmu.mak 
> > b/default-configs/arm-softmmu.mak
> > index 2420491..50345df 100644
> > --- a/default-configs/arm-softmmu.mak
> > +++ b/default-configs/arm-softmmu.mak
> > @@ -159,3 +159,4 @@ CONFIG_PCI_DESIGNWARE=y
> >  CONFIG_STRONGARM=y
> >  CONFIG_HIGHBANK=y
> >  CONFIG_MUSICPAL=y
> > +CONFIG_PVPANIC=y
> > diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> > index 9f67782..c4f29c8 100644
[...]
> > +                            "compatible", "qemu,pvpanic-mmio");
> > +    qemu_fdt_setprop_sized_cells(vms->fdt, nodename, "reg",
> > +                                 2, base, 2, size);
> 
> Note that we can't take these patches into QEMU until the device
> tree binding has been agreed upstream and accepted into the kernel.
> 
kernel part : 
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/log/?h=char-misc-next
> > +    g_free(nodename);
> > +}
> > +
> >  static void create_fdt(VirtMachineState *vms)
> >  {
> >      void *fdt = create_device_tree(&vms->fdt_size);
> > @@ -1531,6 +1550,8 @@ static void machvirt_init(MachineState *machine)
> >
> >      create_flash(vms, sysmem, secure_sysmem ? secure_sysmem : sysmem);
> >
> > +    create_pvpanic_device(vms);
> > +
> >      create_gic(vms, pic);
> 
> As Shannon suggests, we should not be creating this device by default.
I'm  just working for that. 
Thanks.
> 
> thanks
> -- PMM

reply via email to

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