forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kvm-updates/2.6.35' of git://git.kernel.org/pub/scm/vir…
…t/kvm/kvm * 'kvm-updates/2.6.35' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (269 commits) KVM: x86: Add missing locking to arch specific vcpu ioctls KVM: PPC: Add missing vcpu_load()/vcpu_put() in vcpu ioctls KVM: MMU: Segregate shadow pages with different cr0.wp KVM: x86: Check LMA bit before set_efer KVM: Don't allow lmsw to clear cr0.pe KVM: Add cpuid.txt file KVM: x86: Tell the guest we'll warn it about tsc stability x86, paravirt: don't compute pvclock adjustments if we trust the tsc x86: KVM guest: Try using new kvm clock msrs KVM: x86: export paravirtual cpuid flags in KVM_GET_SUPPORTED_CPUID KVM: x86: add new KVMCLOCK cpuid feature KVM: x86: change msr numbers for kvmclock x86, paravirt: Add a global synchronization point for pvclock x86, paravirt: Enable pvclock flags in vcpu_time_info structure KVM: x86: Inject #GP with the right rip on efer writes KVM: SVM: Don't allow nested guest to VMMCALL into host KVM: x86: Fix exception reinjection forced to true KVM: Fix wallclock version writing race KVM: MMU: Don't read pdptrs with mmu spinlock held in mmu_alloc_roots KVM: VMX: enable VMXON check with SMX enabled (Intel TXT) ...
- Loading branch information
Showing
81 changed files
with
7,858 additions
and
2,843 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
KVM CPUID bits | ||
Glauber Costa <[email protected]>, Red Hat Inc, 2010 | ||
===================================================== | ||
|
||
A guest running on a kvm host, can check some of its features using | ||
cpuid. This is not always guaranteed to work, since userspace can | ||
mask-out some, or even all KVM-related cpuid features before launching | ||
a guest. | ||
|
||
KVM cpuid functions are: | ||
|
||
function: KVM_CPUID_SIGNATURE (0x40000000) | ||
returns : eax = 0, | ||
ebx = 0x4b4d564b, | ||
ecx = 0x564b4d56, | ||
edx = 0x4d. | ||
Note that this value in ebx, ecx and edx corresponds to the string "KVMKVMKVM". | ||
This function queries the presence of KVM cpuid leafs. | ||
|
||
|
||
function: define KVM_CPUID_FEATURES (0x40000001) | ||
returns : ebx, ecx, edx = 0 | ||
eax = and OR'ed group of (1 << flag), where each flags is: | ||
|
||
|
||
flag || value || meaning | ||
============================================================================= | ||
KVM_FEATURE_CLOCKSOURCE || 0 || kvmclock available at msrs | ||
|| || 0x11 and 0x12. | ||
------------------------------------------------------------------------------ | ||
KVM_FEATURE_NOP_IO_DELAY || 1 || not necessary to perform delays | ||
|| || on PIO operations. | ||
------------------------------------------------------------------------------ | ||
KVM_FEATURE_MMU_OP || 2 || deprecated. | ||
------------------------------------------------------------------------------ | ||
KVM_FEATURE_CLOCKSOURCE2 || 3 || kvmclock available at msrs | ||
|| || 0x4b564d00 and 0x4b564d01 | ||
------------------------------------------------------------------------------ | ||
KVM_FEATURE_CLOCKSOURCE_STABLE_BIT || 24 || host will warn if no guest-side | ||
|| || per-cpu warps are expected in | ||
|| || kvmclock. | ||
------------------------------------------------------------------------------ |
Oops, something went wrong.