Re: [edk2] OvmfPkg: VM crashed trying to write to RO memory from CommonInterruptEntry

2016-12-07 Thread Evgeny Yakovlev
Hi Laszlo So i managed to reproduce this with debug logs this time and figured out what happened. tl;dr: KVM is spamming guest firmware with 8254 PIT timer IRQs after accumulating a lot of missed timer expiration events while win 2k16 boot loader was waiting for debugger connection on COM2. As in

Re: [edk2] OvmfPkg: VM crashed trying to write to RO memory from CommonInterruptEntry

2016-11-23 Thread Laszlo Ersek
On 11/23/16 09:37, Evgeny Yakovlev wrote: > You are right of course about the old tree, no objections here. I will > try to advocate for an update however i am pretty sure we're stuck with > our version for some time at least. > > Still, my original question was about is it normal for OVMF Sec/Pei

Re: [edk2] OvmfPkg: VM crashed trying to write to RO memory from CommonInterruptEntry

2016-11-23 Thread Laszlo Ersek
On 11/23/16 15:31, Evgeny Yakovlev wrote: > Looks like we're actually based on OVMF tree for RHEL7.2: > ovmf/rhel-20150414-2.gitc9e5618.el7, ovmf/rhel-srpm-7.2 > > So maybe this affects those deployments as well Maybe, but OVMF is Tech Preview (--> totally unsupported) even in RHEL-7.3. :) Laszl

Re: [edk2] OvmfPkg: VM crashed trying to write to RO memory from CommonInterruptEntry

2016-11-23 Thread Evgeny Yakovlev
Looks like we're actually based on OVMF tree for RHEL7.2: ovmf/rhel-20150414-2.gitc9e5618.el7, ovmf/rhel-srpm-7.2 So maybe this affects those deployments as well 2016-11-22 19:58 GMT+03:00 Laszlo Ersek : > On 11/22/16 14:58, Evgeny Yakovlev wrote: > > Wow, that is more than i expected :) > > > >

Re: [edk2] OvmfPkg: VM crashed trying to write to RO memory from CommonInterruptEntry

2016-11-23 Thread Evgeny Yakovlev
You are right of course about the old tree, no objections here. I will try to advocate for an update however i am pretty sure we're stuck with our version for some time at least. Still, my original question was about is it normal for OVMF Sec/Pei stage to have its stack so close to 0x10 and/or

Re: [edk2] OvmfPkg: VM crashed trying to write to RO memory from CommonInterruptEntry

2016-11-22 Thread Laszlo Ersek
On 11/22/16 14:58, Evgeny Yakovlev wrote: > Wow, that is more than i expected :) > >> I wonder if you started to see this issue very recently. > Very recently, however we use a pretty old OVMF build, circa 2015 Ugh. Please update OVMF first... A whole lot of things has changed in edk2 in this yea

Re: [edk2] OvmfPkg: VM crashed trying to write to RO memory from CommonInterruptEntry

2016-11-22 Thread Evgeny Yakovlev
Wow, that is more than i expected :) > I wonder if you started to see this issue very recently. Very recently, however we use a pretty old OVMF build, circa 2015 > OVMF debug log Sorry, we hadn't had it enabled when VM crashed and these crashes are very rare. We will try to capture it when it ha

Re: [edk2] OvmfPkg: VM crashed trying to write to RO memory from CommonInterruptEntry

2016-11-22 Thread Laszlo Ersek
Hello Evgeny, On 11/22/16 13:57, Evgeny Yakovlev wrote: > We are running windows UEFI-based VMs on QEMU/KVM with OvmfPkg. > > Very rarely we are experiencing a crash when VM tries to write to RO memory > very early during UEFI boot process. > > Crash happens when VM tries to execute this code in

[edk2] OvmfPkg: VM crashed trying to write to RO memory from CommonInterruptEntry

2016-11-22 Thread Evgeny Yakovlev
We are running windows UEFI-based VMs on QEMU/KVM with OvmfPkg. Very rarely we are experiencing a crash when VM tries to write to RO memory very early during UEFI boot process. Crash happens when VM tries to execute this code in interrupt handler: https://github.com/tianocore/edk2/blob/master/Uef