Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300296
b: refs/heads/master
c: c3709e6
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and H. Peter Anvin committed May 14, 2012
1 parent a832b83 commit be5d1b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2a3477727c1d43b92a3e4223f10ad5bf639df06
refs/heads/master: c3709e6734daa4d9b37fe31592ebb0eb57bae1bb
3 changes: 3 additions & 0 deletions trunk/arch/x86/include/asm/kvm_para.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ static inline int kvm_para_available(void)
unsigned int eax, ebx, ecx, edx;
char signature[13];

if (boot_cpu_data.cpuid_level < 0)
return 0; /* So we don't blow up on old processors */

cpuid(KVM_CPUID_SIGNATURE, &eax, &ebx, &ecx, &edx);
memcpy(signature + 0, &ebx, 4);
memcpy(signature + 4, &ecx, 4);
Expand Down

0 comments on commit be5d1b6

Please sign in to comment.