diff options
| -rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 66e1c51be084..5f793e6c854b 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c | |||
| @@ -437,6 +437,14 @@ static inline void mce_gather_info(struct mce *m, struct pt_regs *regs) | |||
| 437 | if (m->mcgstatus & (MCG_STATUS_RIPV|MCG_STATUS_EIPV)) { | 437 | if (m->mcgstatus & (MCG_STATUS_RIPV|MCG_STATUS_EIPV)) { |
| 438 | m->ip = regs->ip; | 438 | m->ip = regs->ip; |
| 439 | m->cs = regs->cs; | 439 | m->cs = regs->cs; |
| 440 | |||
| 441 | /* | ||
| 442 | * When in VM86 mode make the cs look like ring 3 | ||
| 443 | * always. This is a lie, but it's better than passing | ||
| 444 | * the additional vm86 bit around everywhere. | ||
| 445 | */ | ||
| 446 | if (v8086_mode(regs)) | ||
| 447 | m->cs |= 3; | ||
| 440 | } | 448 | } |
| 441 | /* Use accurate RIP reporting if available. */ | 449 | /* Use accurate RIP reporting if available. */ |
| 442 | if (rip_msr) | 450 | if (rip_msr) |
