Re: Accessing pv_info from userland

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Glauber Costa wrote:
On Sat, Jan 31, 2009 at 10:19 AM, Bryan McLellan <btm@xxxxxxxxxxxxxx> wrote:
Is there any way to access pv_info from userland? It would be useful
for determining what type of virtualization the machine was running
on.

there are usually cpuid functions reserved for that.

for kvm, you can run function 0x40000000, and if you get
ebx =  0x4b4d564b
ecx =  0x564b4d56
edx =  0x4d

you're running KVM.

Since this is a pretty standard mechanism, it may make sense to include this signature in /proc/cpuinfo if someone is up to writing a patch. It could also be useful to expose the PV features mask in cpuinfo too.

Regards,

Anthony Liguori


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux