[Xen-devel] [PATCH v2 5/6] ARM: Dummy Virtual Machine platform support

Will Deacon will.deacon at arm.com
Tue Dec 18 08:14:01 EST 2012


Hi Stefano,

On Tue, Dec 18, 2012 at 12:04:38PM +0000, Stefano Stabellini wrote:
> On Mon, 17 Dec 2012, Will Deacon wrote:
> > From: Marc Zyngier <marc.zyngier at arm.com>
> > 
> > Add support for the smallest, dumbest possible platform, to be
> > used as a guest for KVM or other hypervisors.
> > 
> > It only mandates a GIC and architected timers. Fits nicely with
> > a multiplatform zImage. Uses very little silicon area.
> > 
> > Signed-off-by: Marc Zyngier <marc.zyngier at arm.com>
> > Signed-off-by: Will Deacon <will.deacon at arm.com>
> > ---
> >  arch/arm/Kconfig            |  2 ++
> >  arch/arm/Makefile           |  1 +
> >  arch/arm/mach-virt/Kconfig  |  9 +++++++
> >  arch/arm/mach-virt/Makefile |  5 ++++
> >  arch/arm/mach-virt/virt.c   | 65 +++++++++++++++++++++++++++++++++++++++++++++
> >  5 files changed, 82 insertions(+)
> >  create mode 100644 arch/arm/mach-virt/Kconfig
> >  create mode 100644 arch/arm/mach-virt/Makefile
> >  create mode 100644 arch/arm/mach-virt/virt.c
> 
> Should it come along with a DTS?

The only things the platform needs are GIC, timers, memory and a CPU.
Furthermore, the location, size, frequency etc properties of these aren't
fixed, so a dts would be fairly useless because it will probably not match
the particular mach-virt instance you're targetting.

For kvmtool, I've been generating the device-tree at runtime based on how
kvmtool is invoked and it's been working pretty well so far.

Will



More information about the linux-arm-kernel mailing list