All of lore.kernel.org
 help / color / mirror / Atom feed
* ARM: KVM/XEN: how should we support virt-what?
@ 2015-03-25  9:44 ` Andrew Jones
  0 siblings, 0 replies; 32+ messages in thread
From: Andrew Jones @ 2015-03-25  9:44 UTC (permalink / raw)
  To: christoffer.dall, marc.zyngier, Ian.Campbell, stefano.stabellini, tim
  Cc: kvm, xen-devel, kvmarm, linux-arm-kernel

Hello ARM virt maintainers,

I'd like to start a discussion about supporting virt-what[1]. virt-what
allows userspace to determine if the system it's running on is running
in a guest, and of what type (KVM, Xen, etc.). Despite it being a best
effort tool, see the Caveat emptor in [1], it has become quite a useful
tool, and is showing up in different places, such as OpenStack. If you
look at the code[2], specifically [3], then you'll see how it works on
x86, which is to use the dedicated hypervisor cpuid leaves. I'm
wondering what equivalent we have, or can develop, for arm.
Here are some thoughts;
0) there's already something we can use, and I just need to be told
   about it.
1) be as similar as possible to x86 by dedicating some currently
   undefined sysreg bits. This would take buy-in from lots of parties,
   so is not likely the way to go.
2) create a specific DT node that will get exposed through sysfs, or
   somewhere.
3) same as (2), but just use the nodes currently in mach-virt's DT
   as the indication we're a guest. This would just be a heuristic,
   i.e. "have virtio mmio" && psci.method == hvc, or something,
   and we'd still need a way to know if we're kvm vs. xen vs. ??.

Thanks,
drew 

[1] http://people.redhat.com/~rjones/virt-what/
[2] http://git.annexia.org/?p=virt-what.git;a=summary
[3] http://git.annexia.org/?p=virt-what.git;a=blob_plain;f=virt-what-cpuid-helper.c;hb=HEAD

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2015-03-27 10:25 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25  9:44 ARM: KVM/XEN: how should we support virt-what? Andrew Jones
2015-03-25  9:44 ` Andrew Jones
2015-03-25 10:56 ` Paolo Bonzini
2015-03-25 10:56 ` Paolo Bonzini
2015-03-25 10:56   ` Paolo Bonzini
2015-03-25 11:08 ` [Xen-devel] " Ian Campbell
2015-03-25 11:08   ` Ian Campbell
2015-03-25 11:08   ` Ian Campbell
2015-03-25 17:19   ` Stefano Stabellini
2015-03-25 17:19   ` [Xen-devel] " Stefano Stabellini
2015-03-25 17:19     ` Stefano Stabellini
2015-03-25 17:19     ` Stefano Stabellini
2015-03-25 11:08 ` Ian Campbell
2015-03-25 12:03 ` Marc Zyngier
2015-03-25 12:03 ` Marc Zyngier
2015-03-25 12:03   ` Marc Zyngier
2015-03-26  9:01 ` Andrew Jones
2015-03-26  9:01 ` Andrew Jones
2015-03-26  9:01   ` Andrew Jones
2015-03-26 18:45   ` Stefano Stabellini
2015-03-26 18:45   ` Stefano Stabellini
2015-03-26 18:45     ` Stefano Stabellini
2015-03-26 18:45     ` Stefano Stabellini
2015-03-26 18:49     ` Ard Biesheuvel
2015-03-26 18:49     ` Ard Biesheuvel
2015-03-26 18:49       ` Ard Biesheuvel
2015-03-26 18:50       ` Ard Biesheuvel
2015-03-26 18:50       ` Ard Biesheuvel
2015-03-26 18:50         ` Ard Biesheuvel
2015-03-27 10:25         ` Andrew Jones
2015-03-27 10:25           ` Andrew Jones
2015-03-27 10:25         ` Andrew Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.