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

2015-10-15 Thread Janusz
mpletely gone on my side: > > --- a/UefiCpuPkg/CpuDxe/ApStartup.c > +++ b/UefiCpuPkg/CpuDxe/ApStartup.c > @@ -454,7 +454,9 @@ StartApsStackless ( >// >// Wait 100 milliseconds for APs to arrive at the ApEntryPoint routine >// > - MicroSecondDelay (100 * 1000);

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 Guan

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

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 happe

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

2015-10-14 Thread Janusz
high. Tried it on 4.3 W dniu 14.10.2015 o 05:58, Xiao Guangrong pisze: > > 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/kv

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 v

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 happe

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-01 Thread Janusz
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! >&

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

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

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

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.ht

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, >>>>

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/msg11

Re: [PATCH] KVM: x86: obey KVM_X86_QUIRK_CD_NW_CLEARED in kvm_set_cr0()

2015-11-03 Thread Janusz Mocek
ilt into OVMF --, when CpuDxe starts up >> all APs at once for initialization, in order to count them. >> >> We also carry over the kvm_arch_has_noncoherent_dma() sub-condition from >> the other half of the original commit b18d5431acc7. >> >> Cc: Paolo Bonzin

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, >>>> >>>> Ther