]> err.no Git - linux-2.6/commit
KVM: SVM: forbid guest to execute monitor/mwait
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 21 Mar 2007 18:47:00 +0000 (19:47 +0100)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:26 +0000 (10:52 +0300)
commit916ce2360fadc71d924e02403b31280112a31280
tree6cdb3c1e122cb25e18f1848c151aacc356c06fde
parent0e5bf0d0e449f6597870570e8dd17e78ba4d75ff
KVM: SVM: forbid guest to execute monitor/mwait

This patch forbids the guest to execute monitor/mwait instructions on
SVM. This is necessary because the guest can execute these instructions
if they are available even if the kvm cpuid doesn't report its
existence.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/svm.c
drivers/kvm/svm.h