Re: [RFC PATCH 08/16] kvm tools: add generic device registration mechanism

2012-11-13 Thread Will Deacon
Hi Sasha, On Tue, Nov 13, 2012 at 04:29:33AM +, Sasha Levin wrote: > On 11/12/2012 06:57 AM, Will Deacon wrote: > > diff --git a/tools/kvm/devices.c b/tools/kvm/devices.c > > new file mode 100644 > > index 000..f9666b9 > > --- /dev/null > > +++ b/tools/kvm/devices.c > > @@ -0,0 +1,24 @@ >

Re: [RFC PATCH 08/16] kvm tools: add generic device registration mechanism

2012-11-12 Thread Sasha Levin
On 11/12/2012 06:57 AM, Will Deacon wrote: > PCI devices are currently registered into the pci_devices array via the > pci__register function, which can then be indexed later by architecture > code to construct device tree nodes. For MMIO devices, there is no such > utility. > > Rather than invent

[RFC PATCH 08/16] kvm tools: add generic device registration mechanism

2012-11-12 Thread Will Deacon
PCI devices are currently registered into the pci_devices array via the pci__register function, which can then be indexed later by architecture code to construct device tree nodes. For MMIO devices, there is no such utility. Rather than invent a similar mechanism for MMIO, this patch creates a glo