Lines Matching refs:kvm
39 // related to KVM or HAX.
71 ///// Linux KVM support.
78 #include <linux/kvm.h>
80 // Return true iff KVM is installed and usable on this machine.
82 // status of KVM on success or failure.
84 // 1) Check that /dev/kvm exists.
85 if (::access("/dev/kvm", F_OK)) {
87 "KVM is not installed on this machine (/dev/kvm is missing).");
90 // 2) Check that /dev/kvm can be opened.
91 if (::access("/dev/kvm", R_OK)) {
93 "This user doesn't have permissions to use KVM (/dev/kvm).");
97 ScopedFd fd(TEMP_FAILURE_RETRY(open("/dev/kvm", O_RDWR)));
99 status->assign("Could not open /dev/kvm :");
104 // 4) Extract KVM version number.
107 status->assign("Could not extract KVM version: ");
117 "KVM version too old: %d (expected at least %d)\n",
125 "KVM (version %d) is installed and usable.",