diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-09-10 11:31:05 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:52:47 -0400 |
commit | 3d4aeaad8bb8f8084a414819934b73ab49c26c92 (patch) | |
tree | 528a6e48aa450be8dd78e44941b6ee98c20f198b /arch | |
parent | 55c5e464fcc28ee763d40561abf2b259131dd703 (diff) |
KVM: SVM: Report Nested Paging support to userspace
This patch implements the reporting of the nested paging
feature support to userspace.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/svm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index de1930ee2abb..36e6c88913dc 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -3481,6 +3481,10 @@ static void svm_set_supported_cpuid(u32 func, struct kvm_cpuid_entry2 *entry) | |||
3481 | if (svm_has(SVM_FEATURE_NRIP)) | 3481 | if (svm_has(SVM_FEATURE_NRIP)) |
3482 | entry->edx |= SVM_FEATURE_NRIP; | 3482 | entry->edx |= SVM_FEATURE_NRIP; |
3483 | 3483 | ||
3484 | /* Support NPT for the guest if enabled */ | ||
3485 | if (npt_enabled) | ||
3486 | entry->edx |= SVM_FEATURE_NPT; | ||
3487 | |||
3484 | break; | 3488 | break; |
3485 | } | 3489 | } |
3486 | } | 3490 | } |