hi robert, El Sat, Apr 04, 2009 at 08:02:29AM -0400 Robert P. J. Day ha dit: > is there an easy way to tell if a running kernel has KVM > functionality? from "make menuconfig", we can see the KVM tristate > selections under "Virtualization:" > > --- Virtualization > <M> Kernel-based Virtual Machine (KVM) support > < > KVM for Intel processors support (NEW) > < > KVM for AMD processors support (NEW) > > so if i have no access to the corresponding config file, how can i > tell if a kernel has any or all of the above? > > first, i know that if you choose to build all of the above as > modules, you'll get kvm.ko, kvm-intel.ko and kvm-amd.ko, so i can > check the modules. but if any of that has been built into the kernel, > is there a way to tell? something under /proc, perhaps? kvm_init() registers the device class 'kvm': http://lxr.linux.no/linux+v2.6.29/virt/kvm/kvm_main.c#L2289 i guess it is called at system initialization when kvm support has been built into the kernel. if that is the case you could check for the existence of /sys/class/kvm -- Matthias Kaehlcke Embedded Linux Engineer Barcelona If sharing a thing in no way diminishes it, it is not rightly owned if it is not shared .''`. using free software / Debian GNU/Linux | http://debian.org : :' : `. `'` gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `- -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ