Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43073
b: refs/heads/master
c: 4f205fd
h: refs/heads/master
i:
  43071: bfe9453
v: v3
  • Loading branch information
Rusty Russell authored and Andi Kleen committed Dec 7, 2006
1 parent fc29ba8 commit 0916ee8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9ccf30d77f04064fe5436027ab9d2230c7cdd94
refs/heads/master: 4f205fd45a5c192907188d6f8f6d7e66db859248
2 changes: 1 addition & 1 deletion trunk/arch/i386/kernel/cpu/intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
* Note that the workaround only should be initialized once...
*/
c->f00f_bug = 0;
if ( c->x86 == 5 ) {
if (!paravirt_enabled() && c->x86 == 5) {
static int f00f_workaround_enabled = 0;

c->f00f_bug = 1;
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/asm-i386/bugs.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <asm/processor.h>
#include <asm/i387.h>
#include <asm/msr.h>
#include <asm/paravirt.h>

static int __init no_halt(char *s)
{
Expand Down Expand Up @@ -91,6 +92,9 @@ static void __init check_fpu(void)

static void __init check_hlt(void)
{
if (paravirt_enabled())
return;

printk(KERN_INFO "Checking 'hlt' instruction... ");
if (!boot_cpu_data.hlt_works_ok) {
printk("disabled\n");
Expand Down

0 comments on commit 0916ee8

Please sign in to comment.