Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155518
b: refs/heads/master
c: 7a50492
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell committed Jul 17, 2009
1 parent b548d7b commit 47ef7f1
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 27de22d03d6808a82bbe9bd7e3cc75d60132ba9e
refs/heads/master: 7a5049205f7265620c48781814155f2763e70abb
5 changes: 5 additions & 0 deletions trunk/arch/x86/lguest/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ static void lguest_cpuid(unsigned int *ax, unsigned int *bx,

native_cpuid(ax, bx, cx, dx);
switch (function) {
case 0: /* ID and highest CPUID. Futureproof a little by sticking to
* older ones. */
if (*ax > 5)
*ax = 5;
break;
case 1: /* Basic feature request. */
/* We only allow kernel to see SSE3, CMPXCHG16B and SSSE3 */
*cx &= 0x00002201;
Expand Down

0 comments on commit 47ef7f1

Please sign in to comment.