Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-20 Thread Laszlo Ersek
Hi, On 10/20/15 19:27, Janusz wrote: > W dniu 15.10.2015 o 20:46, Laszlo Ersek pisze: >> On 10/15/15 18:53, Kinney, Michael D wrote: >>> Laszlo, >>> >>> There is already a PCD for this timeout that is used by CpuMpPei. >>> >>> gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds >>>

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-20 Thread Janusz
W dniu 15.10.2015 o 20:46, Laszlo Ersek pisze: > On 10/15/15 18:53, Kinney, Michael D wrote: >> Laszlo, >> >> There is already a PCD for this timeout that is used by CpuMpPei. >> >> gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds >> >> I noticed that CpuDxe is using a hard coded

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-20 Thread Janusz Mocek
W dniu 20.10.2015 o 19:44, Laszlo Ersek pisze: > Hi, > > On 10/20/15 19:27, Janusz wrote: >> W dniu 15.10.2015 o 20:46, Laszlo Ersek pisze: >>> On 10/15/15 18:53, Kinney, Michael D wrote: Laszlo, There is already a PCD for this timeout that is used by CpuMpPei.

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-16 Thread Laszlo Ersek
On 10/16/15 05:05, Xiao Guangrong wrote: > > > On 10/16/2015 12:18 AM, Laszlo Ersek wrote: >> CC'ing Jordan and Chen Fan. >> >> On 10/15/15 09:10, Xiao Guangrong wrote: >>> >>> >>> On 10/15/2015 02:58 PM, Janusz wrote: W dniu 15.10.2015 o 08:41, Xiao Guangrong pisze: > > > On

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-15 Thread Janusz
W dniu 15.10.2015 o 06:19, Xiao Guangrong pisze: > > > > Well, the bug may be not in KVM. When this bug happened, i saw OVMF > only checked 1 CPU out, there is the log from OVMF's debug input: > > Flushing GCD > Flushing GCD > Flushing GCD > Flushing GCD > Flushing GCD > Flushing GCD >

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-15 Thread Xiao Guangrong
On 10/15/2015 02:58 PM, Janusz wrote: W dniu 15.10.2015 o 08:41, Xiao Guangrong pisze: On 10/15/2015 02:19 PM, Janusz wrote: W dniu 15.10.2015 o 06:19, Xiao Guangrong pisze: Well, the bug may be not in KVM. When this bug happened, i saw OVMF only checked 1 CPU out, there is the log

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-15 Thread Xiao Guangrong
On 10/15/2015 02:19 PM, Janusz wrote: W dniu 15.10.2015 o 06:19, Xiao Guangrong pisze: Well, the bug may be not in KVM. When this bug happened, i saw OVMF only checked 1 CPU out, there is the log from OVMF's debug input: Flushing GCD Flushing GCD Flushing GCD Flushing GCD

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-15 Thread Janusz
W dniu 15.10.2015 o 09:10, Xiao Guangrong pisze: > > > On 10/15/2015 02:58 PM, Janusz wrote: >> W dniu 15.10.2015 o 08:41, Xiao Guangrong pisze: >>> >>> >>> On 10/15/2015 02:19 PM, Janusz wrote: W dniu 15.10.2015 o 06:19, Xiao Guangrong pisze: > > > > Well, the bug may be not

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-15 Thread Janusz
W dniu 15.10.2015 o 08:41, Xiao Guangrong pisze: > > > On 10/15/2015 02:19 PM, Janusz wrote: >> W dniu 15.10.2015 o 06:19, Xiao Guangrong pisze: >>> >>> >>> >>> Well, the bug may be not in KVM. When this bug happened, i saw OVMF >>> only checked 1 CPU out, there is the log from OVMF's debug input:

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-15 Thread Laszlo Ersek
CC'ing Jordan and Chen Fan. On 10/15/15 09:10, Xiao Guangrong wrote: > > > On 10/15/2015 02:58 PM, Janusz wrote: >> W dniu 15.10.2015 o 08:41, Xiao Guangrong pisze: >>> >>> >>> On 10/15/2015 02:19 PM, Janusz wrote: W dniu 15.10.2015 o 06:19, Xiao Guangrong pisze: > > > >

RE: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-15 Thread Kinney, Michael D
; Alex >Williamson; Chen Fan; Paolo Bonzini; Wanpeng Li >Subject: Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is >completely disabled > >CC'ing Jordan and Chen Fan. > >On 10/15/15 09:10, Xiao Guangrong wrote: >> >> >> On 10/15/2015 02:58 PM, Janusz w

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-15 Thread Laszlo Ersek
AM >> To: Xiao Guangrong >> Cc: kvm@vger.kernel.org; Justen, Jordan L; edk2-de...@ml01.01.org; Alex >> Williamson; Chen Fan; Paolo Bonzini; Wanpeng Li >> Subject: Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is >> completely disabled >> >> CC'ing

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-14 Thread Janusz
W dniu 14.10.2015 o 10:32, Xiao Guangrong pisze: > > > On 10/14/2015 04:24 PM, Xiao Guangrong wrote: >> >> >> On 10/14/2015 03:37 PM, Janusz wrote: >>> I was able to run my virtual machine with this, but had very high cpu >>> usage when something happen in it like booting system. once, my virtual

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-14 Thread Janusz
I was able to run my virtual machine with this, but had very high cpu usage when something happen in it like booting system. once, my virtual machine hang and I couln't even get my mouse / keyboard back from qemu. When I did vga passthrough, I didn't get any video output, and cpu usage was also

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-14 Thread Janusz
W dniu 14.10.2015 o 11:13, Janusz pisze: > W dniu 14.10.2015 o 10:32, Xiao Guangrong pisze: >> >> On 10/14/2015 04:24 PM, Xiao Guangrong wrote: >>> >>> On 10/14/2015 03:37 PM, Janusz wrote: I was able to run my virtual machine with this, but had very high cpu usage when something happen

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-14 Thread Xiao Guangrong
On 10/14/2015 04:24 PM, Xiao Guangrong wrote: On 10/14/2015 03:37 PM, Janusz wrote: I was able to run my virtual machine with this, but had very high cpu usage when something happen in it like booting system. once, my virtual machine hang and I couln't even get my mouse / keyboard back from

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-14 Thread Janusz
W dniu 14.10.2015 o 10:32, Xiao Guangrong pisze: > > > On 10/14/2015 04:24 PM, Xiao Guangrong wrote: >> >> >> On 10/14/2015 03:37 PM, Janusz wrote: >>> I was able to run my virtual machine with this, but had very high cpu >>> usage when something happen in it like booting system. once, my virtual

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-14 Thread Laszlo Ersek
On 10/14/15 10:32, Xiao Guangrong wrote: > > > On 10/14/2015 04:24 PM, Xiao Guangrong wrote: >> >> >> On 10/14/2015 03:37 PM, Janusz wrote: >>> I was able to run my virtual machine with this, but had very high cpu >>> usage when something happen in it like booting system. once, my virtual >>>

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-14 Thread Xiao Guangrong
On 10/14/2015 03:37 PM, Janusz wrote: I was able to run my virtual machine with this, but had very high cpu usage when something happen in it like booting system. once, my virtual machine hang and I couln't even get my mouse / keyboard back from qemu. When I did vga passthrough, I didn't get

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-14 Thread Xiao Guangrong
On 10/14/2015 05:47 PM, Laszlo Ersek wrote: On 10/14/15 10:32, Xiao Guangrong wrote: On 10/14/2015 04:24 PM, Xiao Guangrong wrote: On 10/14/2015 03:37 PM, Janusz wrote: I was able to run my virtual machine with this, but had very high cpu usage when something happen in it like booting

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-14 Thread Xiao Guangrong
On 10/15/2015 02:08 AM, Janusz wrote: W dniu 14.10.2015 o 10:32, Xiao Guangrong pisze: On 10/14/2015 04:24 PM, Xiao Guangrong wrote: On 10/14/2015 03:37 PM, Janusz wrote: I was able to run my virtual machine with this, but had very high cpu usage when something happen in it like booting

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-13 Thread Xiao Guangrong
Janusz, Could you please try this: $ git diff diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 185fc16..bdd564f 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4957,12 +4957,14 @@ static int handle_emulation_failure(struct kvm_vcpu *vcpu)

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-12 Thread Xiao Guangrong
On 10/11/2015 04:07 AM, Xiao Guangrong wrote: On 10/02/2015 10:38 PM, Janusz wrote: W dniu 01.10.2015 o 16:18, Paolo Bonzini pisze: On 01/10/2015 16:12, Janusz wrote: 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:

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-12 Thread Xiao Guangrong
On 10/13/2015 02:20 AM, Xiao Guangrong wrote: On 10/11/2015 04:07 AM, Xiao Guangrong wrote: On 10/02/2015 10:38 PM, Janusz wrote: W dniu 01.10.2015 o 16:18, Paolo Bonzini pisze: On 01/10/2015 16:12, Janusz wrote: Now, I can also add, that the problem is only when I allow VM to use

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-10 Thread Xiao Guangrong
On 10/02/2015 10:38 PM, Janusz wrote: W dniu 01.10.2015 o 16:18, Paolo Bonzini pisze: On 01/10/2015 16:12, Janusz wrote: 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

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-02 Thread Janusz
W dniu 01.10.2015 o 16:18, Paolo Bonzini pisze: > > On 01/10/2015 16:12, Janusz wrote: >> 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

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-01 Thread Janusz
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?

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-10-01 Thread Paolo Bonzini
On 01/10/2015 16:12, Janusz wrote: > 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

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-09-22 Thread Paolo Bonzini
On 18/09/2015 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

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-09-22 Thread Janusz
W dniu 22.09.2015 o 10:59, Paolo Bonzini pisze: > > On 18/09/2015 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

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-09-21 Thread Janusz
W dniu 21.09.2015 o 04:51, Xiao Guangrong pisze: > > 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

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-09-20 Thread Wanpeng Li
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:

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-09-20 Thread Xiao Guangrong
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

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-09-20 Thread Xiao Guangrong
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:

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-09-18 Thread Laszlo Ersek
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 -

Re: [edk2] KVM: MTRR: fix memory type handling if MTRR is completely disabled

2015-09-18 Thread Janusz
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