All of lore.kernel.org
 help / color / mirror / Atom feed
From: Janusz <januszmk6@gmail.com>
To: Xiao Guangrong <guangrong.xiao@linux.intel.com>,
	Wanpeng Li <wanpeng.li@hotmail.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: Thu, 1 Oct 2015 16:12:01 +0200	[thread overview]
Message-ID: <560D3F31.5000703@gmail.com> (raw)
In-Reply-To: <55FF7C41.7070400@linux.intel.com>

Now, I can also add, that the problem is only when I allow VM to use
more than one core, so with option  for example:
-smp 8,cores=4,threads=2,sockets=1 and other combinations like -smp
4,threads=1 its not working, and without it I am always running VM
without problems

Any ideas what can it be? or any idea what would help to find out what
is causing this?


W dniu 21.09.2015 o 05:40, Xiao Guangrong pisze:
>
>
> 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-10-01 14:12 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
2015-10-01 14:12           ` Janusz [this message]
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=560D3F31.5000703@gmail.com \
    --to=januszmk6@gmail.com \
    --cc=edk2-devel@ml01.01.org \
    --cc=guangrong.xiao@linux.intel.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 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.