aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2008-11-25 20:17:11 +0100
committerAvi Kivity <avi@redhat.com>2009-03-24 11:02:48 +0200
commitd80174745ba3938bc6abb8f95ed670ac0631a182 (patch)
tree3f6c3ca1f06f4737dea4857f33e9182d9988d57c /arch/s390/kvm/kvm-s390.c
parentKVM: SVM: Allow setting the SVME bit (diff)
downloadlinux-dev-d80174745ba3938bc6abb8f95ed670ac0631a182.tar.xz
linux-dev-d80174745ba3938bc6abb8f95ed670ac0631a182.zip
KVM: SVM: Only allow setting of EFER_SVME when CPUID SVM is set
Userspace has to tell the kernel module somehow that nested SVM should be used. The easiest way that doesn't break anything I could think of is to implement if (cpuid & svm) allow write to efer else deny write to efer Old userspaces mask the SVM capability bit, so they don't break. In order to find out that the SVM capability is set, I had to split the kvm_emulate_cpuid into a finding and an emulating part. (introduced in v6) Acked-by: Joerg Roedel <joro@8bytes.org> Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
0 files changed, 0 insertions, 0 deletions