From: Mark Rutland <mark.rutland@arm.com>
To: Andrew Jones <drjones@redhat.com>
Cc: Marc Zyngier <Marc.Zyngier@arm.com>,
"kvmarm@lists.cs.columbia.edu" <kvmarm@lists.cs.columbia.edu>
Subject: Re: Advice on HYP interface for AsyncPF
Date: Thu, 9 Apr 2015 15:00:27 +0100 [thread overview]
Message-ID: <20150409140027.GB9648@leverpostej> (raw)
In-Reply-To: <20150409134326.GF3212@hawk.usersys.redhat.com>
> > While the HVC immediate could be used to distinguish different types of
> > calls, the guest still needs to first determine that issuing a HVC is
> > not going to bring down the system, which requires it to know that a
> > suitable hypervisor is present.
>
> Right. I forgot we don't have anything for this in the kvmarm world. I
> should have remembered, having just crossed this path for a different
> issue (virt-what). In the x86 world we have a cpuid that allows guests
> to see that they are a) a guest and b) of what type. The hypervisor can
> fake the type if it wishes. For example KVM can emulate HyperV, allowing
> Windows guests to use their "native" PV ops.
>
> In the ARM world the hypervisor DT node does seem to be the closet
> equivalent that currently exists. Both Xen and ppc KVM use it already.
> Using this for DT guests means we'll need the ACPI solution though.
Sure.
> > > > Maybe we should adopt Xen's idea of a hypervisor node in DT where we
> > > > would describe the various services? How will that work with ACPI?
> > >
> > > I don't think we'll ever have a "virt guest" ACPI table that we can
> > > use for this stuff, so this won't work for ACPI. But I think the ENOSYS
> > > probing should be sufficient for this anyway.
> >
> > As mentioned above, I don't think that probing is safe.
> >
> > What prevents us from creating a trivial "KVM guest" table that we can
> > use to determine that we can query more advanced info from KVM itself?
> > Given the point is to expose KVM-specific functionality, I don't see why
> > we need a more generic "virt guest" ACPI table.
> >
>
> Just as the hypervisor node is more attractive with the consideration
> that it's being adopted by other parties (xen and kvmppc), any ACPI
> tables will be more likely to be accepted if they have buy-in from
> a greater audience. kvmarm would be the only consumer for the time
> being, but it'd be good if it was more general from the start,
> particularly if general kernel code would need to know about it.
I'm not sure I follow, given that there's no generic hypervisor node in
DT at the moment.
In the case of Xen there's a node with a "xen,xen" compatible string.
In the case of PPC KVM, there's a node with a "linux,kvm" compatible
string.
These don't have any overlap. I'm not sure what a generic node would buy
you short of detecting (some cases) when you're begin virtualised, given
you'd have to know about the particular hypervisor and/or services
anyway.
Mark.
next prev parent reply other threads:[~2015-04-09 13:52 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-09 1:46 Advice on HYP interface for AsyncPF Mario Smarduch
2015-04-09 7:57 ` Marc Zyngier
2015-04-09 12:06 ` Andrew Jones
2015-04-09 12:48 ` Mark Rutland
2015-04-09 13:43 ` Andrew Jones
2015-04-09 14:00 ` Mark Rutland [this message]
2015-04-09 14:22 ` Andrew Jones
2015-04-09 14:37 ` Mark Rutland
2015-04-09 14:54 ` Andrew Jones
2015-04-09 15:20 ` Mark Rutland
2015-04-09 19:01 ` Andrew Jones
2015-04-13 10:46 ` Mark Rutland
2015-04-13 12:52 ` Andrew Jones
2015-04-09 14:48 ` Mark Rutland
2015-04-09 13:35 ` Christoffer Dall
2015-04-09 13:59 ` Andrew Jones
2015-04-09 14:22 ` Christoffer Dall
2015-04-09 14:42 ` Andrew Jones
2015-04-10 2:36 ` Mario Smarduch
2015-04-10 8:53 ` Marc Zyngier
2015-04-10 23:45 ` Mario Smarduch
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=20150409140027.GB9648@leverpostej \
--to=mark.rutland@arm.com \
--cc=Marc.Zyngier@arm.com \
--cc=drjones@redhat.com \
--cc=kvmarm@lists.cs.columbia.edu \
/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