kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Xiao Guangrong <guangrong.xiao@linux.intel.com>
To: Wanpeng Li <wanpeng.li@hotmail.com>, Janusz <januszmk6@gmail.com>,
	Laszlo Ersek <lersek@redhat.com>,
	kvm@vger.kernel.org
Cc: edk2-devel@ml01.01.org
Subject: Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled
Date: Mon, 21 Sep 2015 11:40:49 +0800	[thread overview]
Message-ID: <55FF7C41.7070400@linux.intel.com> (raw)
In-Reply-To: <BLU437-SMTP104744D03206E82EA10655C80460@phx.gbl>



On 09/21/2015 11:30 AM, Wanpeng Li wrote:
> On 9/21/15 10:51 AM, Xiao Guangrong wrote:
>>
>> Thanks for your report and analysis, Janusz!
>>
>> On 09/19/2015 01:48 AM, Janusz wrote:
>>> W dniu 18.09.2015 o 12:07, Laszlo Ersek pisze:
>>>> On 09/18/15 11:37, Janusz wrote:
>>>>> Hello,
>>>>>
>>>>> I am writting about this patch that was posted by Xiao:
>>>>> http://www.spinics.net/lists/kvm/msg119044.html and this:
>>>>> http://www.spinics.net/lists/kvm/msg119045.html
>>>>> I've tested both kernel 4.2 and 4.3 and problem still exists when I use
>>>>> OVMF - 100% cpu usage, VM resetting, while it works properly on kernel 4.1
>>>> My last (still current) request remains "please quirk it". See the end
>>>> of <http://thread.gmane.org/gmane.linux.kernel/1952205/focus=1996025>,
>>>> and other messages in that subthread.
>>> when I saw message from Xiao that he posted patch for it and have seen
>>> this code in kernel sources (landed in 4.2-rc3) I though that the status
>>> is not "please quirk it" anymore
>>>>
>>>> I haven't been following kernel development, so maybe the quirk has not
>>>> happened. No clue.
>>>>
>>>> ... "VM resetting" looks something different though; I've been under the
>>>> impression that the pedantic (=unquirked) MTRR configuration didn't
>>>> impact other things than speed. Janusz, maybe you could contribute with
>>>> a host kernel bisection for the VM reset symptom.
>>> To be more exact - VM is mostly not starting or its starting after long
>>> time and then resetting it self at random time (but before system boots)
>>> or gets very high cpu usage or sometimes boots without problem (the
>>> least possible case scenario). When I start VM with -vga std, not with
>>> my gpu passthrough - in most of the time I get this:
>>> http://pastebin.com/raw.php?i=CKrNsueS
>>
>> It seems the behaviour is different with previous (previously, it can boot
>> but slowly), right?
>>
>> The URL cat not be accessed, i do not know it's your web server issue or
>> our networking issue.
>>
>
> It can be accessed and dump as below:
>
> KVM internal error. Suberror: 1
> emulation failure
> KVM internal error. Suberror: 1
> emulation failure
> KVM internal error. Suberror: 1
> emulation failure
> KVM internal error. Suberror: 1
> emulation failure
> KVM internal error. Suberror: 1
> emulation failure
> KVM internal error. Suberror: 1
> emulation failure
> KVM internal error. Suberror: 1
> emulation failure
> EAX=bfefa000 EBX=00000002 ECX=00000000 EDX=00000600
> ESI=00000000 EDI=00003eb8 EBP=00000000 ESP=00000000
> EIP=000a0000 EFL=00010086 [--S--P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
> ES =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> CS =0010 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
> SS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> DS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> FS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> GS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
> TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
> GDT=     bfee87d8 0000003f
> IDT=     00000000 0000ffff
> CR0=00000033 CR2=00000000 CR3=bfefa000 CR4=00000640
> DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
> DR6=00000000ffff0ff0 DR7=0000000000000400
> EFER=0000000000000000
> Code=af af af af af af af af af af af af af af af af af af af af <00> 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> EAX=bfefa000 EBX=00000002 ECX=00000000 EDX=00000600
> ESI=00000000 EDI=00003eb8 EBP=00000000 ESP=00000000
> EIP=000a0000 EFL=00010086 [--S--P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
> ES =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> CS =0010 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
> SS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> DS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> FS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> GS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
> TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
> GDT=     bfee87d8 0000003f
> IDT=     00000000 0000ffff
> CR0=00000033 CR2=00000000 CR3=bfefa000 CR4=00000640
> DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
> DR6=00000000ffff0ff0 DR7=0000000000000400
> EFER=0000000000000000
> Code=af af af af af af af af af af af af af af af af af af af af <00> 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000600
> ESI=00000000 EDI=00002000 EBP=00000000 ESP=00000000
> EIP=00001000 EFL=00010046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
> ES =0000 00000000 0000ffff 00009300
> CS =9f00 0009f000 0000ffff 00009b00
> SS =0000 00000000 0000ffff 00009300
> DS =0000 00000000 0000ffff 00009300
> FS =0000 00000000 0000ffff 00009300
> GS =0000 00000000 0000ffff 00009300
> LDT=0000 00000000 0000ffff 00008200
> TR =0000 00000000 0000ffff 00008b00
> GDT=     00000000 0000ffff
> IDT=     00000000 0000ffff
> CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
> DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
> DR6=00000000ffff0ff0 DR7=0000000000000400
> EFER=0000000000000000
> Code=af af af af af af af af af af af af af af af af af af af af <00> 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> EAX=00000023 EBX=00000002 ECX=00000000 EDX=00000600
> ESI=00000000 EDI=00001fc2 EBP=00000000 ESP=00000000
> EIP=00001000 EFL=00010002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
> ES =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> CS =9f00 0009f000 0000ffff 00009b00 DPL=0 CS16 [-RA]
> SS =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> DS =9f00 0009f000 0000ffff 00009300 DPL=0 DS16 [-WA]
> FS =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> GS =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
> TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
> GDT=     bfee87d8 0000003f
> IDT=     00000000 0000ffff
> CR0=00000033 CR2=00000000 CR3=00000000 CR4=00000000
> DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
> DR6=00000000ffff0ff0 DR7=0000000000000400
> EFER=0000000000000000
> Code=af af af af af af af af af af af af af af af af af af af af <00> 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> EAX=00000023 EBX=00000002 ECX=00000000 EDX=00000600
> ESI=00000000 EDI=00001fc2 EBP=00000000 ESP=00000000
> EIP=00001000 EFL=00010002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
> ES =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> CS =9f00 0009f000 0000ffff 00009b00 DPL=0 CS16 [-RA]
> SS =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> DS =9f00 0009f000 0000ffff 00009300 DPL=0 DS16 [-WA]
> FS =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> GS =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
> TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
> GDT=     bfee87d8 0000003f
> IDT=     00000000 0000ffff
> CR0=00000033 CR2=00000000 CR3=00000000 CR4=00000000
> DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
> DR6=00000000ffff0ff0 DR7=0000000000000400
> EFER=0000000000000000
> Code=af af af af af af af af af af af af af af af af af af af af <00> 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> EAX=00000023 EBX=00000002 ECX=00000000 EDX=00000600
> ESI=00000000 EDI=00001fc2 EBP=00000000 ESP=00000000
> EIP=00001000 EFL=00010002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
> ES =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> CS =9f00 0009f000 0000ffff 00009b00 DPL=0 CS16 [-RA]
> SS =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> DS =9f00 0009f000 0000ffff 00009300 DPL=0 DS16 [-WA]
> FS =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> GS =0000 00000000 0000ffff 00009300 DPL=0 DS16 [-WA]
> LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
> TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
> GDT=     bfee87d8 0000003f
> IDT=     00000000 0000ffff
> CR0=00000033 CR2=00000000 CR3=00000000 CR4=00000000
> DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
> DR6=00000000ffff0ff0 DR7=0000000000000400
> EFER=0000000000000000
> Code=af af af af af af af af af af af af af af af af af af af af <00> 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> EAX=bfefa000 EBX=00000002 ECX=00000000 EDX=00000600
> ESI=00000000 EDI=00003eb8 EBP=00000000 ESP=00000000
> EIP=000a0000 EFL=00010086 [--S--P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
> ES =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> CS =0010 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
> SS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> DS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> FS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> GS =0008 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
> LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
> TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
> GDT=     bfee87d8 0000003f
> IDT=     00000000 0000ffff
> CR0=00000033 CR2=00000000 CR3=bfefa000 CR4=00000640
> DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
> DR6=00000000ffff0ff0 DR7=0000000000000400
> EFER=0000000000000000
> Code=af af af af af af af af af af af af af af af af af af af af <00> 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>


Got it, thank you!

  reply	other threads:[~2015-09-21  3:46 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-18  9:37 [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled Janusz
2015-09-18 10:07 ` Laszlo Ersek
2015-09-18 17:48   ` Janusz
2015-09-21  2:51     ` Xiao Guangrong
2015-09-21  3:30       ` Wanpeng Li
2015-09-21  3:40         ` Xiao Guangrong [this message]
2015-10-01 14:12           ` Janusz
2015-10-01 14:18             ` Paolo Bonzini
2015-10-02 14:38               ` Janusz
2015-10-10 20:07                 ` Xiao Guangrong
2015-10-12 18:20                   ` Xiao Guangrong
2015-10-12 18:29                     ` Xiao Guangrong
2015-10-14  3:58                 ` Xiao Guangrong
2015-10-14  7:37                   ` Janusz
2015-10-14  8:24                     ` Xiao Guangrong
2015-10-14  8:32                       ` Xiao Guangrong
2015-10-14  9:13                         ` Janusz
2015-10-14  9:16                           ` Janusz
2015-10-14  9:47                         ` Laszlo Ersek
2015-10-15  3:59                           ` Xiao Guangrong
2015-10-14 18:08                         ` Janusz
2015-10-15  4:19                           ` Xiao Guangrong
2015-10-15  6:19                             ` Janusz
2015-10-15  6:41                               ` Xiao Guangrong
2015-10-15  6:58                                 ` Janusz
2015-10-15  7:10                                   ` Xiao Guangrong
2015-10-15  7:21                                     ` Janusz
2015-10-15 16:18                                     ` Laszlo Ersek
2015-10-15 16:53                                       ` Kinney, Michael D
2015-10-15 18:46                                         ` Laszlo Ersek
2015-10-20 17:27                                           ` Janusz
2015-10-20 17:44                                             ` Laszlo Ersek
2015-10-20 18:52                                               ` Janusz Mocek
     [not found]                                       ` <5620696F.7050406@linux.intel.com>
2015-10-16 18:22                                         ` Laszlo Ersek
2015-09-21  8:23       ` Janusz
2015-09-22  8:59 ` Paolo Bonzini
2015-09-22 10:29   ` Janusz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55FF7C41.7070400@linux.intel.com \
    --to=guangrong.xiao@linux.intel.com \
    --cc=edk2-devel@ml01.01.org \
    --cc=januszmk6@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=lersek@redhat.com \
    --cc=wanpeng.li@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).