All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 104091] New: [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions
@ 2015-09-06 10:03 bugzilla-daemon
  2015-09-06 10:05 ` [Bug 104091] " bugzilla-daemon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2015-09-06 10:03 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=104091

            Bug ID: 104091
           Summary: [bisected] Starting a VM causes the host to halt and
                    create Machine Check Exceptions
           Product: Virtualization
           Version: unspecified
    Kernel Version: 4.2
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: kvm
          Assignee: virtualization_kvm@kernel-bugs.osdl.org
          Reporter: harn-solo@gmx.de
        Regression: No

Created attachment 186851
  --> https://bugzilla.kernel.org/attachment.cgi?id=186851&action=edit
dmesg output after starting the VM

With kernel 4.2, starting one of my VMs instantly freezes the host system and
creates Machine Check Exceptions on CPUs dedicated to that particula VM:

[12316.171917] mce: [Hardware Error]: CPU 3: Machine Check Exception: 5 Bank
17: be2000000003110a
[12316.171917] mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff813217fd>
{intel_idle+0xbd/0x120}
[12316.171917] mce: [Hardware Error]: TSC 76fd7352bf6 ADDR fa137140 MISC
30f0083884509086 
[12316.171917] mce: [Hardware Error]: PROCESSOR 0:306f2 TIME 1441130705 SOCKET
0 APIC 6 microcode 2d
[12316.171917] mce: [Hardware Error]: Run the above through 'mcelog --ascii'
...

A bisection revealed that commit fd717f11015f673487ffc826e59b2bad69d20fe5
introduced the problem:

KVM: x86: apply guest MTRR virtualization on host reserved pages

Currently guest MTRR is avoided if kvm_is_reserved_pfn returns true.
However, the guest could prefer a different page type than UC for
such pages. A good example is that pass-throughed VGA frame buffer is
not always UC as host expected.

This patch enables full use of virtual guest MTRRs.

One could argue that the following warning is an obvious hint
[12311.584431] pmd_set_huge: Cannot satisfy [mem 0x383fe0000000-0x383fe0200000]
with a huge-page mapping due to MTRR override.

but I'm able to run another VM without problems despite that warning.

Please let me know I you need additional information.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 104091] [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions
  2015-09-06 10:03 [Bug 104091] New: [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions bugzilla-daemon
@ 2015-09-06 10:05 ` bugzilla-daemon
  2015-09-06 10:08 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2015-09-06 10:05 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=104091

--- Comment #1 from Michael Long <harn-solo@gmx.de> ---
Created attachment 186861
  --> https://bugzilla.kernel.org/attachment.cgi?id=186861&action=edit
VM configuration of the VM causing the freeze

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 104091] [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions
  2015-09-06 10:03 [Bug 104091] New: [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions bugzilla-daemon
  2015-09-06 10:05 ` [Bug 104091] " bugzilla-daemon
@ 2015-09-06 10:08 ` bugzilla-daemon
  2015-09-06 10:28 ` [Bug 104091] New: " Xiao Guangrong
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2015-09-06 10:08 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=104091

--- Comment #2 from Michael Long <harn-solo@gmx.de> ---
Created attachment 186871
  --> https://bugzilla.kernel.org/attachment.cgi?id=186871&action=edit
VM configuration of the VM that is still working

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Bug 104091] New: [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions
  2015-09-06 10:03 [Bug 104091] New: [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions bugzilla-daemon
  2015-09-06 10:05 ` [Bug 104091] " bugzilla-daemon
  2015-09-06 10:08 ` bugzilla-daemon
@ 2015-09-06 10:28 ` Xiao Guangrong
  2015-09-08  4:13 ` [Bug 104091] " bugzilla-daemon
  2015-10-01 11:03 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: Xiao Guangrong @ 2015-09-06 10:28 UTC (permalink / raw)
  To: bugzilla-daemon, kvm



On 09/06/2015 06:03 PM, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=104091
>
>              Bug ID: 104091
>             Summary: [bisected] Starting a VM causes the host to halt and
>                      create Machine Check Exceptions
>             Product: Virtualization
>             Version: unspecified
>      Kernel Version: 4.2
>            Hardware: All
>                  OS: Linux
>                Tree: Mainline
>              Status: NEW
>            Severity: normal
>            Priority: P1
>           Component: kvm
>            Assignee: virtualization_kvm@kernel-bugs.osdl.org
>            Reporter: harn-solo@gmx.de
>          Regression: No
>
> Created attachment 186851
>    --> https://bugzilla.kernel.org/attachment.cgi?id=186851&action=edit
> dmesg output after starting the VM
>
> With kernel 4.2, starting one of my VMs instantly freezes the host system and
> creates Machine Check Exceptions on CPUs dedicated to that particula VM:
>
> [12316.171917] mce: [Hardware Error]: CPU 3: Machine Check Exception: 5 Bank
> 17: be2000000003110a
> [12316.171917] mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff813217fd>
> {intel_idle+0xbd/0x120}
> [12316.171917] mce: [Hardware Error]: TSC 76fd7352bf6 ADDR fa137140 MISC
> 30f0083884509086
> [12316.171917] mce: [Hardware Error]: PROCESSOR 0:306f2 TIME 1441130705 SOCKET
> 0 APIC 6 microcode 2d
> [12316.171917] mce: [Hardware Error]: Run the above through 'mcelog --ascii'
> ...
>

Could you please decode it by mcelog?

> A bisection revealed that commit fd717f11015f673487ffc826e59b2bad69d20fe5
> introduced the problem:
>
> KVM: x86: apply guest MTRR virtualization on host reserved pages
>
> Currently guest MTRR is avoided if kvm_is_reserved_pfn returns true.
> However, the guest could prefer a different page type than UC for
> such pages. A good example is that pass-throughed VGA frame buffer is
> not always UC as host expected.
>
> This patch enables full use of virtual guest MTRRs.
>
> One could argue that the following warning is an obvious hint
> [12311.584431] pmd_set_huge: Cannot satisfy [mem 0x383fe0000000-0x383fe0200000]
> with a huge-page mapping due to MTRR override.

Just confirm: it happened on host, right?

>
> but I'm able to run another VM without problems despite that warning.
>
> Please let me know I you need additional information.
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 104091] [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions
  2015-09-06 10:03 [Bug 104091] New: [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions bugzilla-daemon
                   ` (2 preceding siblings ...)
  2015-09-06 10:28 ` [Bug 104091] New: " Xiao Guangrong
@ 2015-09-08  4:13 ` bugzilla-daemon
  2015-10-01 11:03 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2015-09-08  4:13 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=104091

Michael Long <harn-solo@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Regression|No                          |Yes

--- Comment #3 from Michael Long <harn-solo@gmx.de> ---
mcelog: Family 6 Model 3f CPU: only decoding architectural errors
Hardware event. This is not a software error.
MCE 0
CPU 0 BANK 17 
MISC 4f0083884501086 ADDR fa000200 
TIME 1441663568 Tue Sep  8 00:06:08 2015
MCG status:
MCi status:
Uncorrected error
Error enabled
MCi_MISC register valid
MCi_ADDR register valid
Processor context corrupt
MCA: corrected filtering (some unreported errors in same region)
Generic CACHE Level-2 Generic Error
STATUS be2000000003110a MCGSTATUS 0
MCGCAP 7000c16 APICID 0 SOCKETID 0 
CPUID Vendor Intel Family 6 Model 63

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 104091] [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions
  2015-09-06 10:03 [Bug 104091] New: [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions bugzilla-daemon
                   ` (3 preceding siblings ...)
  2015-09-08  4:13 ` [Bug 104091] " bugzilla-daemon
@ 2015-10-01 11:03 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2015-10-01 11:03 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=104091

John <frederik.schwan@linux.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |frederik.schwan@linux.com

--- Comment #4 from John <frederik.schwan@linux.com> ---
Seems to be related to my problem. Please try to set the cores of the freezing
VM to 2 or less.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-01 11:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-06 10:03 [Bug 104091] New: [bisected] Starting a VM causes the host to halt and create Machine Check Exceptions bugzilla-daemon
2015-09-06 10:05 ` [Bug 104091] " bugzilla-daemon
2015-09-06 10:08 ` bugzilla-daemon
2015-09-06 10:28 ` [Bug 104091] New: " Xiao Guangrong
2015-09-08  4:13 ` [Bug 104091] " bugzilla-daemon
2015-10-01 11:03 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.