Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271186
b: refs/heads/master
c: 89cfc99
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell committed Oct 27, 2011
1 parent 38bead7 commit 08709f5
Show file tree
Hide file tree
Showing 2 changed files with 11 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: b56e3215d4331bff9b6d5e5f68bc1ec5cb01e650
refs/heads/master: 89cfc99177c9270c5c6d429f6c5177ab3428ad57
10 changes: 10 additions & 0 deletions trunk/arch/x86/lguest/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
#include <asm/i387.h>
#include <asm/stackprotector.h>
#include <asm/reboot.h> /* for struct machine_ops */
#include <asm/kvm_para.h>

/*G:010
* Welcome to the Guest!
Expand Down Expand Up @@ -455,6 +456,15 @@ static void lguest_cpuid(unsigned int *ax, unsigned int *bx,
*ax &= 0xFFFFF0FF;
*ax |= 0x00000500;
break;

/*
* This is used to detect if we're running under KVM. We might be,
* but that's a Host matter, not us. So say we're not.
*/
case KVM_CPUID_SIGNATURE:
*bx = *cx = *dx = 0;
break;

/*
* 0x80000000 returns the highest Extended Function, so we futureproof
* like we do above by limiting it to known fields.
Expand Down

0 comments on commit 08709f5

Please sign in to comment.