[systemd-devel] [PATCH 0/2] arm/aarch64: detect-virt: check dmi

Andrew Jones drjones at redhat.com
Wed Nov 4 06:31:19 PST 2015


On Tue, Nov 03, 2015 at 10:50:40PM -0600, Wei Huang wrote:
> 
> 
> On 11/03/2015 03:19 PM, Andrew Jones wrote:
> > ARM/AArch64 guests now have SMBIOS tables populated (when boot
> > with a late enough QEMU and a late enough AAVMF is used as the
> > bootloader). Furthermore, when booting ARM/AArch64 guests with
> > ACPI, the DT detection obviously no longer works, so we need
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I think DT detection still works, right? But just because we have other
> testing cases prior to device_tree, dt detection won't be triggered.

It still works if you boot with DT. If you boot with ACPI, as I stated
above, then there won't be a /proc/device-tree node on the guest, and
that's why that detection won't work.

Thanks,
drew

> 
> > dmi detection. Finally, we can now even determine KVM vs. QEMU
> > as the SMBIOS contains 'KVM' in the product name, when using kvm.
> > 
> > The first patch in this series enables dmi detection on
> > arm/aarch64. The second patch looks for KVM in the product name.
> > I've only tested a backported version of these patches on an
> > AArch64 guest (which worked). Of course it would be nice to get
> > regression testing on all guest types that depend on dmi done.
> > 
> > Andrew Jones (2):
> >   arm/aarch64: detect-virt: check dmi
> >   detect-virt: dmi: look for KVM
> > 
> >  src/basic/virt.c | 8 ++++----
> >  1 file changed, 4 insertions(+), 4 deletions(-)
> > 


More information about the systemd-devel mailing list