From: Andrew Jones <drjones@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Wei Huang <wei@redhat.com>, QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] hw/arm/virt: smbios: inform guest of kvm
Date: Mon, 28 Sep 2015 17:31:30 +0200 [thread overview]
Message-ID: <20150928153130.GA6823@hawk.localdomain> (raw)
In-Reply-To: <20150924101308.GA3486@hawk.localdomain>
On Thu, Sep 24, 2015 at 12:13:08PM +0200, Andrew Jones wrote:
> On Wed, Sep 23, 2015 at 08:43:39AM -0700, Peter Maydell wrote:
> > On 23 September 2015 at 07:18, Andrew Jones <drjones@redhat.com> wrote:
> > > ARM/AArch64 KVM guests don't have any way to identify
> > > themselves as KVM guests (x86 guests use a CPUID leaf). Now, we
> > > could discuss all sorts of reasons why guests shouldn't need to
> > > know that, but then there's always some case where it'd be
> > > nice... Anyway, now that we have SMBIOS tables in ARM guests,
> > > it's easy for the guest to know that it's a QEMU instance. This
> > > patch takes that one step further, also identifying KVM, when
> > > appropriate. Again, we could debate why generally nothing
> > > should care whether it's of type QEMU or QEMU/KVM, but again,
> > > sometimes it's nice to know...
> >
> > This doesn't seem great to me, because it's ACPI/SMBIOS
> > specific. A mechanism that worked whether the guest was
> > booted via APCI or DT would seem preferable to me...
>
> SMBIOS is populated on both ACPI and devicetree boots. We already
> have detection in virt-what and systemd-detect-virt for DT boots,
> although it only detects QEMU (it can't determine if KVM is used).
> That detection is DT-specific, and much more of a heuristic, it
> checks for the presence of the fw-cfg node in the DT. Actually, I'd
> like to patch those virt detection tools to try SMBIOS first (which,
> with this patch, could also give KVM info), and then fall back to
> trying the current DT-only, QEMU-only detection, before giving up.
>
Hi Peter,
Anymore thoughts on this?
Thanks,
drew
next prev parent reply other threads:[~2015-09-28 15:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-23 14:18 [Qemu-devel] [PATCH] hw/arm/virt: smbios: inform guest of kvm Andrew Jones
2015-09-23 14:50 ` Wei Huang
2015-09-23 15:43 ` Peter Maydell
2015-09-23 16:09 ` Peter Maydell
2015-09-24 10:17 ` Andrew Jones
2015-09-24 10:13 ` Andrew Jones
2015-09-28 15:31 ` Andrew Jones [this message]
2015-10-08 18:42 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150928153130.GA6823@hawk.localdomain \
--to=drjones@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=wei@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).