[fedora-virt] how can i see if the running kernel has kvm support?

Robert P. J. Day rpjday at crashcourse.ca
Wed Apr 8 20:05:41 UTC 2009


  i'm curious as to how to examine a running kernel to see what it has
in the way of kvm support.

  i can see that "make menuconfig" gives me the options:

    KVM                   (KVM)
      KVM for Intel       (KVM_INTEL)
      KVM for AMD         (KVM_AMD)

first question:  technically, i can select generic KVM support without
selecting either INTEL or AMD support.  can i assume that that's a
pointless thing to do?  the help text for CONFIG_KVM does seem to
suggest that you really need to additionally select a processor module
to make any sense; i was just wondering if there's some obscure
scenario where having only that generic KVM support had any value.

  next, regardless of whether kvm support is built-in or whether it's
modular and the modules have been loaded, is there some indication --
say under /proc or /sys -- that shows the current state of kvm support
in the kernel?

  if i had the config file for the running kernel, i could of course
look at that, but let's assume that i have no such thing, and that kvm
support is built-in so i can't even check for, say, /sys/module/kvm.
is there a userspace way to probe and determine kvm support?

rday

p.s.  just to be clear, kvm support in the kernel doesn't count if
that kernel is running on a system without HW virt support, for which
kvm support obviously has no value since it can't be used.  in a case
like that, i'd like to get the answer that there is *no* support.

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

        Linux Consulting, Training and Annoying Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Linked In:                             http://www.linkedin.com/in/rpjday
Twitter:                                       http://twitter.com/rpjday
========================================================================




More information about the Fedora-virt mailing list