[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detecting qemu from guest on arm/hvf (apple arm)
From: |
Peter Maydell |
Subject: |
Re: Detecting qemu from guest on arm/hvf (apple arm) |
Date: |
Thu, 16 Feb 2023 10:23:16 +0000 |
On Thu, 16 Feb 2023 at 02:05, John-Mark Gurney <jmg@funkthat.com> wrote:
>
> Hello,
>
> I was wondering what the best way to detect that FreeBSD is running
> under qemu/hvf on Apple ARM? FreeBSD doesn't see the ACPI FADT table,
> so I'm wondering if keying off of something like the QEMU0002 device
> in ACPI is the best way? Or is there another option?
I guess the question is, why do you want to know? Typically
the guest OS shouldn't care about whether it's running
on bare metal, under a hypervisor, or under emulated QEMU,
except to the extent that it wants to use specific features,
in which case the question is more "how do I query for the
existence of feature X?".
thanks
-- PMM