public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Windows 7 VM BSOD
@ 2014-12-03 10:18 Thomas Lau
  2014-12-03 10:25 ` Zhang Haoyu
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-03 10:18 UTC (permalink / raw)
  To: kvm

Hi All,

I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
installation was fine, but it does random reboot by itself, the error
code is 0x00000101, does anyone know how to fix this?

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 10:18 Windows 7 VM BSOD Thomas Lau
@ 2014-12-03 10:25 ` Zhang Haoyu
  2014-12-03 10:36   ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Zhang Haoyu @ 2014-12-03 10:25 UTC (permalink / raw)
  To: Thomas Lau, kvm

> Hi All,
> 
> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> installation was fine, but it does random reboot by itself, the error
> code is 0x00000101, does anyone know how to fix this?
Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".

Thanks,
Zhang Haoyu


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 10:25 ` Zhang Haoyu
@ 2014-12-03 10:36   ` Thomas Lau
  2014-12-03 10:56     ` Thomas Lau
  2014-12-03 11:01     ` Zhang Haoyu
  0 siblings, 2 replies; 38+ messages in thread
From: Thomas Lau @ 2014-12-03 10:36 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: kvm

Hi,

How do I know if my qemu-kvm version support this?

On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> Hi All,
>>
>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>> installation was fine, but it does random reboot by itself, the error
>> code is 0x00000101, does anyone know how to fix this?
> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>
> Thanks,
> Zhang Haoyu
>

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 10:36   ` Thomas Lau
@ 2014-12-03 10:56     ` Thomas Lau
  2014-12-03 11:08       ` Zhang Haoyu
  2014-12-03 11:01     ` Zhang Haoyu
  1 sibling, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-03 10:56 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: kvm

https://bugzilla.redhat.com/show_bug.cgi?id=893857

In fact I am doing testing now, but are we fixing one problem and
introduce other problem?!

On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> Hi,
>
> How do I know if my qemu-kvm version support this?
>
> On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>> Hi All,
>>>
>>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>> installation was fine, but it does random reboot by itself, the error
>>> code is 0x00000101, does anyone know how to fix this?
>> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>
>> Thanks,
>> Zhang Haoyu
>>

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 10:36   ` Thomas Lau
  2014-12-03 10:56     ` Thomas Lau
@ 2014-12-03 11:01     ` Zhang Haoyu
  2014-12-03 11:04       ` Thomas Lau
  1 sibling, 1 reply; 38+ messages in thread
From: Zhang Haoyu @ 2014-12-03 11:01 UTC (permalink / raw)
  To: Thomas Lau; +Cc: kvm

> Hi,
> 
> How do I know if my qemu-kvm version support this?
> 
I don't know which qemu version starts to support hv-relaxed,
but I'm sure qemu-1.4.1 and later versions support it.
qemu will report error if it dosen't support it.

Please show your qemu version.

Thanks,
Zhang Haoyu
hv-relaxed was started to support from commit 89314504, 
> On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> Hi All,
> >>
> >> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> >> installation was fine, but it does random reboot by itself, the error
> >> code is 0x00000101, does anyone know how to fix this?
> > Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> >
> > Thanks,
> > Zhang Haoyu


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 11:01     ` Zhang Haoyu
@ 2014-12-03 11:04       ` Thomas Lau
  0 siblings, 0 replies; 38+ messages in thread
From: Thomas Lau @ 2014-12-03 11:04 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: kvm

qemu-system-x86_64 -version
QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.7), Copyright
(c) 2003-2008 Fabrice Bellard


On Wed, Dec 3, 2014 at 7:01 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> Hi,
>>
>> How do I know if my qemu-kvm version support this?
>>
> I don't know which qemu version starts to support hv-relaxed,
> but I'm sure qemu-1.4.1 and later versions support it.
> qemu will report error if it dosen't support it.
>
> Please show your qemu version.
>
> Thanks,
> Zhang Haoyu
> hv-relaxed was started to support from commit 89314504,
>> On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> Hi All,
>> >>
>> >> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>> >> installation was fine, but it does random reboot by itself, the error
>> >> code is 0x00000101, does anyone know how to fix this?
>> > Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>> >
>> > Thanks,
>> > Zhang Haoyu
>

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 10:56     ` Thomas Lau
@ 2014-12-03 11:08       ` Zhang Haoyu
  2014-12-03 11:13         ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Zhang Haoyu @ 2014-12-03 11:08 UTC (permalink / raw)
  To: Thomas Lau; +Cc: kvm, vrozenfe, imammedo

> https://bugzilla.redhat.com/show_bug.cgi?id=893857
> 
> In fact I am doing testing now, but are we fixing one problem and
> introduce other problem?!
> 
I'm not sure about this, but it works on my side,
I think BSOD(error:0x00000078) has been fixed,
please show your environment.

Thanks,
Zhang Haoyu
> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> > Hi,
> >
> > How do I know if my qemu-kvm version support this?
> >
> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >>> Hi All,
> >>>
> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> >>> installation was fine, but it does random reboot by itself, the error
> >>> code is 0x00000101, does anyone know how to fix this?
> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> >>
> >> Thanks,
> >> Zhang Haoyu


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 11:08       ` Zhang Haoyu
@ 2014-12-03 11:13         ` Thomas Lau
  2014-12-03 11:29           ` Vadim Rozenfeld
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-03 11:13 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: kvm, vrozenfe, imammedo

"it works on your side" meaning that you had such issue but afterwards
it's all fixed by apply hv_relaxed ?

On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>
>> In fact I am doing testing now, but are we fixing one problem and
>> introduce other problem?!
>>
> I'm not sure about this, but it works on my side,
> I think BSOD(error:0x00000078) has been fixed,
> please show your environment.
>
> Thanks,
> Zhang Haoyu
>> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>> > Hi,
>> >
>> > How do I know if my qemu-kvm version support this?
>> >
>> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >>> Hi All,
>> >>>
>> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>> >>> installation was fine, but it does random reboot by itself, the error
>> >>> code is 0x00000101, does anyone know how to fix this?
>> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>> >>
>> >> Thanks,
>> >> Zhang Haoyu
>

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 11:13         ` Thomas Lau
@ 2014-12-03 11:29           ` Vadim Rozenfeld
  2014-12-03 11:36             ` tlau
  2014-12-09  3:54             ` Thomas Lau
  0 siblings, 2 replies; 38+ messages in thread
From: Vadim Rozenfeld @ 2014-12-03 11:29 UTC (permalink / raw)
  To: Thomas Lau; +Cc: Zhang Haoyu, kvm, imammedo

If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
it's just a matter of time when you hit 101 BOSD.
Bugcheck 78 is quite rare one. What is your setup, and how easy it's
reproducible?
 
Best regards,
Vadim.

On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
> "it works on your side" meaning that you had such issue but afterwards
> it's all fixed by apply hv_relaxed ?
> 
> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
> >>
> >> In fact I am doing testing now, but are we fixing one problem and
> >> introduce other problem?!
> >>
> > I'm not sure about this, but it works on my side,
> > I think BSOD(error:0x00000078) has been fixed,
> > please show your environment.
> >
> > Thanks,
> > Zhang Haoyu
> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> >> > Hi,
> >> >
> >> > How do I know if my qemu-kvm version support this?
> >> >
> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> >>> Hi All,
> >> >>>
> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> >> >>> installation was fine, but it does random reboot by itself, the error
> >> >>> code is 0x00000101, does anyone know how to fix this?
> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> >> >>
> >> >> Thanks,
> >> >> Zhang Haoyu
> >
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 11:29           ` Vadim Rozenfeld
@ 2014-12-03 11:36             ` tlau
  2014-12-03 12:14               ` Vadim Rozenfeld
  2014-12-04  1:24               ` Zhang Haoyu
  2014-12-09  3:54             ` Thomas Lau
  1 sibling, 2 replies; 38+ messages in thread
From: tlau @ 2014-12-03 11:36 UTC (permalink / raw)
  To: Vadim Rozenfeld; +Cc: Zhang Haoyu, kvm, imammedo

Oh I see, 

So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online. 

I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.

Sent from my BlackBerry 10 smartphone.
  Original Message  
From: Vadim Rozenfeld
Sent: Wednesday, 3 December, 2014 7:30 PM
To: Thomas Lau
Cc: Zhang Haoyu; kvm; imammedo
Subject: Re: Windows 7 VM BSOD

If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
it's just a matter of time when you hit 101 BOSD.
Bugcheck 78 is quite rare one. What is your setup, and how easy it's
reproducible?

Best regards,
Vadim.

On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
> "it works on your side" meaning that you had such issue but afterwards
> it's all fixed by apply hv_relaxed ?
> 
> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
> >>
> >> In fact I am doing testing now, but are we fixing one problem and
> >> introduce other problem?!
> >>
> > I'm not sure about this, but it works on my side,
> > I think BSOD(error:0x00000078) has been fixed,
> > please show your environment.
> >
> > Thanks,
> > Zhang Haoyu
> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> >> > Hi,
> >> >
> >> > How do I know if my qemu-kvm version support this?
> >> >
> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> >>> Hi All,
> >> >>>
> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> >> >>> installation was fine, but it does random reboot by itself, the error
> >> >>> code is 0x00000101, does anyone know how to fix this?
> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> >> >>
> >> >> Thanks,
> >> >> Zhang Haoyu
> >
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 11:36             ` tlau
@ 2014-12-03 12:14               ` Vadim Rozenfeld
  2014-12-03 14:51                 ` Thomas Lau
  2014-12-04  1:24               ` Zhang Haoyu
  1 sibling, 1 reply; 38+ messages in thread
From: Vadim Rozenfeld @ 2014-12-03 12:14 UTC (permalink / raw)
  To: tlau; +Cc: Zhang Haoyu, kvm, imammedo

On Wed, 2014-12-03 at 19:36 +0800, tlau@tetrioncapital.com wrote:
> Oh I see, 
> 
> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online. 
> 

http://msdn.microsoft.com/en-us/library/windows/hardware/ff557211%
28v=vs.85%29.aspx

> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
> 

Can you post the qemu command line?

> Sent from my BlackBerry 10 smartphone.
>   Original Message  
> From: Vadim Rozenfeld
> Sent: Wednesday, 3 December, 2014 7:30 PM
> To: Thomas Lau
> Cc: Zhang Haoyu; kvm; imammedo
> Subject: Re: Windows 7 VM BSOD
> 
> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
> it's just a matter of time when you hit 101 BOSD.
> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
> reproducible?
> 
> Best regards,
> Vadim.
> 
> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
> > "it works on your side" meaning that you had such issue but afterwards
> > it's all fixed by apply hv_relaxed ?
> > 
> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
> > >>
> > >> In fact I am doing testing now, but are we fixing one problem and
> > >> introduce other problem?!
> > >>
> > > I'm not sure about this, but it works on my side,
> > > I think BSOD(error:0x00000078) has been fixed,
> > > please show your environment.
> > >
> > > Thanks,
> > > Zhang Haoyu
> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> > >> > Hi,
> > >> >
> > >> > How do I know if my qemu-kvm version support this?
> > >> >
> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> > >> >>> Hi All,
> > >> >>>
> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> > >> >>> installation was fine, but it does random reboot by itself, the error
> > >> >>> code is 0x00000101, does anyone know how to fix this?
> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> > >> >>
> > >> >> Thanks,
> > >> >> Zhang Haoyu
> > >
> > --
> > To unsubscribe from this list: send the line "unsubscribe kvm" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 12:14               ` Vadim Rozenfeld
@ 2014-12-03 14:51                 ` Thomas Lau
  2014-12-03 15:05                   ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-03 14:51 UTC (permalink / raw)
  To: Vadim Rozenfeld; +Cc: Zhang Haoyu, kvm, imammedo

Thanks for the link,

Here is my qemu command line:
qemu-system-x86_64 -enable-kvm -name test_server_Windows1 -S -machine
pc-i440fx-trusty,accel=kvm,usb=off -cpu
SandyBridge,+erms,+smep,+fsgsbase,+pdpe1gb,+rdrand,+f16c,+osxsave,+dca,+pcid,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme,hv_relaxed
-m 16000 -realtime mlock=off -smp 8,sockets=8,cores=1,threads=1 -uuid
bdab5b38-855d-3a47-136d-42e2ca9ea86e -no-user-config -nodefaults
-chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/test_server_Windows1.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime
-no-reboot -boot menu=off,strict=on -device
piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive
file=/var/lib/libvirt/images/test_server_Windows1.img,if=none,id=drive-virtio-disk0,format=raw,cache=none
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
-drive file=/var/lib/libvirt/images/test_server_Windows1-1.img,if=none,id=drive-virtio-disk1,format=raw,cache=none
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk1,id=virtio-disk1
-drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device
ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev
tap,fd=27,id=hostnet0,vhost=on,vhostfd=28 -device
virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:dd:cf:5f,bus=pci.0,addr=0x3
-netdev tap,fd=29,id=hostnet1,vhost=on,vhostfd=30 -device
virtio-net-pci,netdev=hostnet1,id=net1,mac=52:54:00:85:66:fe,bus=pci.0,addr=0x6
-chardev pty,id=charserial0 -device
isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0
-vnc 0.0.0.0:0,password -device VGA,id=video0,bus=pci.0,addr=0x2
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4

the number of cores have mistake, I will change to 2 sockets, 4 cores,
1 thread tomorrow after overnight test is done.

On Wed, Dec 3, 2014 at 8:14 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> On Wed, 2014-12-03 at 19:36 +0800, tlau@tetrioncapital.com wrote:
>> Oh I see,
>>
>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>
>
> http://msdn.microsoft.com/en-us/library/windows/hardware/ff557211%
> 28v=vs.85%29.aspx
>
>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>
>
> Can you post the qemu command line?
>
>> Sent from my BlackBerry 10 smartphone.
>>   Original Message
>> From: Vadim Rozenfeld
>> Sent: Wednesday, 3 December, 2014 7:30 PM
>> To: Thomas Lau
>> Cc: Zhang Haoyu; kvm; imammedo
>> Subject: Re: Windows 7 VM BSOD
>>
>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>> it's just a matter of time when you hit 101 BOSD.
>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>> reproducible?
>>
>> Best regards,
>> Vadim.
>>
>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>> > "it works on your side" meaning that you had such issue but afterwards
>> > it's all fixed by apply hv_relaxed ?
>> >
>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>> > >>
>> > >> In fact I am doing testing now, but are we fixing one problem and
>> > >> introduce other problem?!
>> > >>
>> > > I'm not sure about this, but it works on my side,
>> > > I think BSOD(error:0x00000078) has been fixed,
>> > > please show your environment.
>> > >
>> > > Thanks,
>> > > Zhang Haoyu
>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>> > >> > Hi,
>> > >> >
>> > >> > How do I know if my qemu-kvm version support this?
>> > >> >
>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> > >> >>> Hi All,
>> > >> >>>
>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>> > >> >>> installation was fine, but it does random reboot by itself, the error
>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>> > >> >>
>> > >> >> Thanks,
>> > >> >> Zhang Haoyu
>> > >
>> > --
>> > To unsubscribe from this list: send the line "unsubscribe kvm" in
>> > the body of a message to majordomo@vger.kernel.org
>> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 14:51                 ` Thomas Lau
@ 2014-12-03 15:05                   ` Thomas Lau
  0 siblings, 0 replies; 38+ messages in thread
From: Thomas Lau @ 2014-12-03 15:05 UTC (permalink / raw)
  To: Vadim Rozenfeld; +Cc: Zhang Haoyu, kvm, imammedo

the link that I was trying to follow and Win7 bootup stuck is this:
http://blog.wikichoon.com/2014/07/enabling-hyper-v-enlightenments-with-kvm.html

On Wed, Dec 3, 2014 at 10:51 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> Thanks for the link,
>
> Here is my qemu command line:
> qemu-system-x86_64 -enable-kvm -name test_server_Windows1 -S -machine
> pc-i440fx-trusty,accel=kvm,usb=off -cpu
> SandyBridge,+erms,+smep,+fsgsbase,+pdpe1gb,+rdrand,+f16c,+osxsave,+dca,+pcid,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme,hv_relaxed
> -m 16000 -realtime mlock=off -smp 8,sockets=8,cores=1,threads=1 -uuid
> bdab5b38-855d-3a47-136d-42e2ca9ea86e -no-user-config -nodefaults
> -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/test_server_Windows1.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime
> -no-reboot -boot menu=off,strict=on -device
> piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive
> file=/var/lib/libvirt/images/test_server_Windows1.img,if=none,id=drive-virtio-disk0,format=raw,cache=none
> -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
> -drive file=/var/lib/libvirt/images/test_server_Windows1-1.img,if=none,id=drive-virtio-disk1,format=raw,cache=none
> -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk1,id=virtio-disk1
> -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device
> ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev
> tap,fd=27,id=hostnet0,vhost=on,vhostfd=28 -device
> virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:dd:cf:5f,bus=pci.0,addr=0x3
> -netdev tap,fd=29,id=hostnet1,vhost=on,vhostfd=30 -device
> virtio-net-pci,netdev=hostnet1,id=net1,mac=52:54:00:85:66:fe,bus=pci.0,addr=0x6
> -chardev pty,id=charserial0 -device
> isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0
> -vnc 0.0.0.0:0,password -device VGA,id=video0,bus=pci.0,addr=0x2
> -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
>
> the number of cores have mistake, I will change to 2 sockets, 4 cores,
> 1 thread tomorrow after overnight test is done.
>
> On Wed, Dec 3, 2014 at 8:14 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
>> On Wed, 2014-12-03 at 19:36 +0800, tlau@tetrioncapital.com wrote:
>>> Oh I see,
>>>
>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>
>>
>> http://msdn.microsoft.com/en-us/library/windows/hardware/ff557211%
>> 28v=vs.85%29.aspx
>>
>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>
>>
>> Can you post the qemu command line?
>>
>>> Sent from my BlackBerry 10 smartphone.
>>>   Original Message
>>> From: Vadim Rozenfeld
>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>> To: Thomas Lau
>>> Cc: Zhang Haoyu; kvm; imammedo
>>> Subject: Re: Windows 7 VM BSOD
>>>
>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>> it's just a matter of time when you hit 101 BOSD.
>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>> reproducible?
>>>
>>> Best regards,
>>> Vadim.
>>>
>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>> > "it works on your side" meaning that you had such issue but afterwards
>>> > it's all fixed by apply hv_relaxed ?
>>> >
>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>> > >>
>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>> > >> introduce other problem?!
>>> > >>
>>> > > I'm not sure about this, but it works on my side,
>>> > > I think BSOD(error:0x00000078) has been fixed,
>>> > > please show your environment.
>>> > >
>>> > > Thanks,
>>> > > Zhang Haoyu
>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>> > >> > Hi,
>>> > >> >
>>> > >> > How do I know if my qemu-kvm version support this?
>>> > >> >
>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>> > >> >>> Hi All,
>>> > >> >>>
>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>> > >> >>
>>> > >> >> Thanks,
>>> > >> >> Zhang Haoyu
>>> > >
>>> > --
>>> > To unsubscribe from this list: send the line "unsubscribe kvm" in
>>> > the body of a message to majordomo@vger.kernel.org
>>> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
>
>
>

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 11:36             ` tlau
  2014-12-03 12:14               ` Vadim Rozenfeld
@ 2014-12-04  1:24               ` Zhang Haoyu
  2014-12-04  1:34                 ` Thomas Lau
  1 sibling, 1 reply; 38+ messages in thread
From: Zhang Haoyu @ 2014-12-04  1:24 UTC (permalink / raw)
  To: tlau, Vadim Rozenfeld; +Cc: kvm, imammedo

> Oh I see, 
> 
> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online. 
> 
> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
> 
Could you confirm that the stuck was caused by vhich hv feature?
The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc

> Sent from my BlackBerry 10 smartphone.
>   Original Message  
> From: Vadim Rozenfeld
> Sent: Wednesday, 3 December, 2014 7:30 PM
> To: Thomas Lau
> Cc: Zhang Haoyu; kvm; imammedo
> Subject: Re: Windows 7 VM BSOD
> 
> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
> it's just a matter of time when you hit 101 BOSD.
> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
> reproducible?
> 
> Best regards,
> Vadim.
> 
> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
> > "it works on your side" meaning that you had such issue but afterwards
> > it's all fixed by apply hv_relaxed ?
> > 
> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
> > >>
> > >> In fact I am doing testing now, but are we fixing one problem and
> > >> introduce other problem?!
> > >>
> > > I'm not sure about this, but it works on my side,
> > > I think BSOD(error:0x00000078) has been fixed,
> > > please show your environment.
> > >
> > > Thanks,
> > > Zhang Haoyu
> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> > >> > Hi,
> > >> >
> > >> > How do I know if my qemu-kvm version support this?
> > >> >
> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> > >> >>> Hi All,
> > >> >>>
> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> > >> >>> installation was fine, but it does random reboot by itself, the error
> > >> >>> code is 0x00000101, does anyone know how to fix this?
> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> > >> >>
> > >> >> Thanks,
> > >> >> Zhang Haoyu

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  1:24               ` Zhang Haoyu
@ 2014-12-04  1:34                 ` Thomas Lau
  2014-12-04  1:45                   ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-04  1:34 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: Vadim Rozenfeld, kvm, imammedo

Hi,

I don't want to recompile stuff, does it matter to have hv_vapic on at all?

On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> Oh I see,
>>
>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>
>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>
> Could you confirm that the stuck was caused by vhich hv feature?
> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>
>> Sent from my BlackBerry 10 smartphone.
>>   Original Message
>> From: Vadim Rozenfeld
>> Sent: Wednesday, 3 December, 2014 7:30 PM
>> To: Thomas Lau
>> Cc: Zhang Haoyu; kvm; imammedo
>> Subject: Re: Windows 7 VM BSOD
>>
>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>> it's just a matter of time when you hit 101 BOSD.
>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>> reproducible?
>>
>> Best regards,
>> Vadim.
>>
>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>> > "it works on your side" meaning that you had such issue but afterwards
>> > it's all fixed by apply hv_relaxed ?
>> >
>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>> > >>
>> > >> In fact I am doing testing now, but are we fixing one problem and
>> > >> introduce other problem?!
>> > >>
>> > > I'm not sure about this, but it works on my side,
>> > > I think BSOD(error:0x00000078) has been fixed,
>> > > please show your environment.
>> > >
>> > > Thanks,
>> > > Zhang Haoyu
>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>> > >> > Hi,
>> > >> >
>> > >> > How do I know if my qemu-kvm version support this?
>> > >> >
>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> > >> >>> Hi All,
>> > >> >>>
>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>> > >> >>> installation was fine, but it does random reboot by itself, the error
>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>> > >> >>
>> > >> >> Thanks,
>> > >> >> Zhang Haoyu



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  1:34                 ` Thomas Lau
@ 2014-12-04  1:45                   ` Thomas Lau
  2014-12-04  2:01                     ` Zhang Haoyu
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-04  1:45 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: Vadim Rozenfeld, kvm, imammedo

I just confirmed that vapic is causing win7 stuck.

On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> Hi,
>
> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>
> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>> Oh I see,
>>>
>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>
>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>
>> Could you confirm that the stuck was caused by vhich hv feature?
>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>
>>> Sent from my BlackBerry 10 smartphone.
>>>   Original Message
>>> From: Vadim Rozenfeld
>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>> To: Thomas Lau
>>> Cc: Zhang Haoyu; kvm; imammedo
>>> Subject: Re: Windows 7 VM BSOD
>>>
>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>> it's just a matter of time when you hit 101 BOSD.
>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>> reproducible?
>>>
>>> Best regards,
>>> Vadim.
>>>
>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>> > "it works on your side" meaning that you had such issue but afterwards
>>> > it's all fixed by apply hv_relaxed ?
>>> >
>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>> > >>
>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>> > >> introduce other problem?!
>>> > >>
>>> > > I'm not sure about this, but it works on my side,
>>> > > I think BSOD(error:0x00000078) has been fixed,
>>> > > please show your environment.
>>> > >
>>> > > Thanks,
>>> > > Zhang Haoyu
>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>> > >> > Hi,
>>> > >> >
>>> > >> > How do I know if my qemu-kvm version support this?
>>> > >> >
>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>> > >> >>> Hi All,
>>> > >> >>>
>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>> > >> >>
>>> > >> >> Thanks,
>>> > >> >> Zhang Haoyu
>
>
>
> --
> Thomas Lau
> Director of Infrastructure
> Tetrion Capital Limited
>
> Direct: +852-3976-8903
> Mobile: +852-9323-9670
> Address: 20/F, IFC 1, Central district, Hong Kong



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  1:45                   ` Thomas Lau
@ 2014-12-04  2:01                     ` Zhang Haoyu
  2014-12-04  2:02                       ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Zhang Haoyu @ 2014-12-04  2:01 UTC (permalink / raw)
  To: Thomas Lau; +Cc: Vadim Rozenfeld, kvm, imammedo

>I just confirmed that vapic is causing win7 stuck.
>
You'd better try the commit fc57ac2c9ca :-)

>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>> Hi,
>>
>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>
>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>> Oh I see,
>>>>
>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>
>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>
>>> Could you confirm that the stuck was caused by vhich hv feature?
>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>
>>>> Sent from my BlackBerry 10 smartphone.
>>>>   Original Message
>>>> From: Vadim Rozenfeld
>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>> To: Thomas Lau
>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>> Subject: Re: Windows 7 VM BSOD
>>>>
>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>> it's just a matter of time when you hit 101 BOSD.
>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>> reproducible?
>>>>
>>>> Best regards,
>>>> Vadim.
>>>>
>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>> > it's all fixed by apply hv_relaxed ?
>>>> >
>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>> > >>
>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>> > >> introduce other problem?!
>>>> > >>
>>>> > > I'm not sure about this, but it works on my side,
>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>> > > please show your environment.
>>>> > >
>>>> > > Thanks,
>>>> > > Zhang Haoyu
>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>> > >> > Hi,
>>>> > >> >
>>>> > >> > How do I know if my qemu-kvm version support this?
>>>> > >> >
>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>> > >> >>> Hi All,
>>>> > >> >>>
>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>> > >> >>
>>>> > >> >> Thanks,
>>>> > >> >> Zhang Haoyu
>>
>>
>>
>> --
>> Thomas Lau
>> Director of Infrastructure
>> Tetrion Capital Limited
>>
>> Direct: +852-3976-8903
>> Mobile: +852-9323-9670
>> Address: 20/F, IFC 1, Central district, Hong Kong


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  2:01                     ` Zhang Haoyu
@ 2014-12-04  2:02                       ` Thomas Lau
  2014-12-04  2:06                         ` Zhang Haoyu
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-04  2:02 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: Vadim Rozenfeld, kvm, imammedo

Sure, but I am little confused as KVM is part of linux kernel now, if
I want to try it, should I just upgrade kernel or compile kvm kernel
module by myself ?!

On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>I just confirmed that vapic is causing win7 stuck.
>>
> You'd better try the commit fc57ac2c9ca :-)
>
>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>> Hi,
>>>
>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>
>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>> Oh I see,
>>>>>
>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>
>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>
>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>
>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>   Original Message
>>>>> From: Vadim Rozenfeld
>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>> To: Thomas Lau
>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>
>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>> reproducible?
>>>>>
>>>>> Best regards,
>>>>> Vadim.
>>>>>
>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>> > it's all fixed by apply hv_relaxed ?
>>>>> >
>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>> > >>
>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>> > >> introduce other problem?!
>>>>> > >>
>>>>> > > I'm not sure about this, but it works on my side,
>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>> > > please show your environment.
>>>>> > >
>>>>> > > Thanks,
>>>>> > > Zhang Haoyu
>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>> > >> > Hi,
>>>>> > >> >
>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>> > >> >
>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>> > >> >>> Hi All,
>>>>> > >> >>>
>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>> > >> >>
>>>>> > >> >> Thanks,
>>>>> > >> >> Zhang Haoyu
>>>
>>>
>>>
>>> --
>>> Thomas Lau
>>> Director of Infrastructure
>>> Tetrion Capital Limited
>>>
>>> Direct: +852-3976-8903
>>> Mobile: +852-9323-9670
>>> Address: 20/F, IFC 1, Central district, Hong Kong
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  2:02                       ` Thomas Lau
@ 2014-12-04  2:06                         ` Zhang Haoyu
  2014-12-04  2:48                           ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Zhang Haoyu @ 2014-12-04  2:06 UTC (permalink / raw)
  To: Thomas Lau; +Cc: Vadim Rozenfeld, kvm, imammedo

>Sure, but I am little confused as KVM is part of linux kernel now, if
>I want to try it, should I just upgrade kernel or compile kvm kernel
>module by myself ?!
>
You can just apply the patch to kvm module and rebuild it.

>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>I just confirmed that vapic is causing win7 stuck.
>>>
>> You'd better try the commit fc57ac2c9ca :-)
>>
>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>> Hi,
>>>>
>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>>
>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>> Oh I see,
>>>>>>
>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>>
>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>>
>>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>>
>>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>>   Original Message
>>>>>> From: Vadim Rozenfeld
>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>>> To: Thomas Lau
>>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>>
>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>>> reproducible?
>>>>>>
>>>>>> Best regards,
>>>>>> Vadim.
>>>>>>
>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>>> > it's all fixed by apply hv_relaxed ?
>>>>>> >
>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>>> > >>
>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>>> > >> introduce other problem?!
>>>>>> > >>
>>>>>> > > I'm not sure about this, but it works on my side,
>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>>> > > please show your environment.
>>>>>> > >
>>>>>> > > Thanks,
>>>>>> > > Zhang Haoyu
>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>> > >> > Hi,
>>>>>> > >> >
>>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>>> > >> >
>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>> > >> >>> Hi All,
>>>>>> > >> >>>
>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>>> > >> >>
>>>>>> > >> >> Thanks,
>>>>>> > >> >> Zhang Haoyu
>>>>
>>>>
>>>>
>>>> --
>>>> Thomas Lau
>>>> Director of Infrastructure
>>>> Tetrion Capital Limited
>>>>
>>>> Direct: +852-3976-8903
>>>> Mobile: +852-9323-9670
>>>> Address: 20/F, IFC 1, Central district, Hong Kong


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  2:06                         ` Zhang Haoyu
@ 2014-12-04  2:48                           ` Thomas Lau
  2014-12-04  4:32                             ` Zhang Haoyu
  2014-12-04  8:36                             ` Vadim Rozenfeld
  0 siblings, 2 replies; 38+ messages in thread
From: Thomas Lau @ 2014-12-04  2:48 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: Vadim Rozenfeld, kvm, imammedo

what does vapic affect Windows 7 at all if I disable it? if it just a
minor performance drop, I am fine with that.

On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>Sure, but I am little confused as KVM is part of linux kernel now, if
>>I want to try it, should I just upgrade kernel or compile kvm kernel
>>module by myself ?!
>>
> You can just apply the patch to kvm module and rebuild it.
>
>>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>I just confirmed that vapic is causing win7 stuck.
>>>>
>>> You'd better try the commit fc57ac2c9ca :-)
>>>
>>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>> Hi,
>>>>>
>>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>>>
>>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>> Oh I see,
>>>>>>>
>>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>>>
>>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>>>
>>>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>>>
>>>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>>>   Original Message
>>>>>>> From: Vadim Rozenfeld
>>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>>>> To: Thomas Lau
>>>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>>>
>>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>>>> reproducible?
>>>>>>>
>>>>>>> Best regards,
>>>>>>> Vadim.
>>>>>>>
>>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>>>> > it's all fixed by apply hv_relaxed ?
>>>>>>> >
>>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>>>> > >>
>>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>>>> > >> introduce other problem?!
>>>>>>> > >>
>>>>>>> > > I'm not sure about this, but it works on my side,
>>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>>>> > > please show your environment.
>>>>>>> > >
>>>>>>> > > Thanks,
>>>>>>> > > Zhang Haoyu
>>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>> > >> > Hi,
>>>>>>> > >> >
>>>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>>>> > >> >
>>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>> > >> >>> Hi All,
>>>>>>> > >> >>>
>>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>>>> > >> >>
>>>>>>> > >> >> Thanks,
>>>>>>> > >> >> Zhang Haoyu
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thomas Lau
>>>>> Director of Infrastructure
>>>>> Tetrion Capital Limited
>>>>>
>>>>> Direct: +852-3976-8903
>>>>> Mobile: +852-9323-9670
>>>>> Address: 20/F, IFC 1, Central district, Hong Kong
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  2:48                           ` Thomas Lau
@ 2014-12-04  4:32                             ` Zhang Haoyu
  2014-12-04  6:22                               ` Thomas Lau
  2014-12-04  8:36                             ` Vadim Rozenfeld
  1 sibling, 1 reply; 38+ messages in thread
From: Zhang Haoyu @ 2014-12-04  4:32 UTC (permalink / raw)
  To: Thomas Lau; +Cc: Vadim Rozenfeld, kvm, imammedo

>what does vapic affect Windows 7 at all if I disable it? if it just a
>minor performance drop, I am fine with that.
>
hv_vapic provides accelerated MSR access to high usage memory mapped APIC
registers, EOI, ICR, TPR.
You can gain performance promotion from it, not too much,
but it also depends on the frequency of access to above three apic regs.

>On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>Sure, but I am little confused as KVM is part of linux kernel now, if
>>>I want to try it, should I just upgrade kernel or compile kvm kernel
>>>module by myself ?!
>>>
>> You can just apply the patch to kvm module and rebuild it.
>>
>>>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>I just confirmed that vapic is causing win7 stuck.
>>>>>
>>>> You'd better try the commit fc57ac2c9ca :-)
>>>>
>>>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>>>>
>>>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>> Oh I see,
>>>>>>>>
>>>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>>>>
>>>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>>>>
>>>>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>>>>
>>>>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>>>>   Original Message
>>>>>>>> From: Vadim Rozenfeld
>>>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>>>>> To: Thomas Lau
>>>>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>>>>
>>>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>>>>> reproducible?
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>> Vadim.
>>>>>>>>
>>>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>>>>> > it's all fixed by apply hv_relaxed ?
>>>>>>>> >
>>>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>>>>> > >>
>>>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>>>>> > >> introduce other problem?!
>>>>>>>> > >>
>>>>>>>> > > I'm not sure about this, but it works on my side,
>>>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>>>>> > > please show your environment.
>>>>>>>> > >
>>>>>>>> > > Thanks,
>>>>>>>> > > Zhang Haoyu
>>>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>> > >> > Hi,
>>>>>>>> > >> >
>>>>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>>>>> > >> >
>>>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>> > >> >>> Hi All,
>>>>>>>> > >> >>>
>>>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>>>>> > >> >>
>>>>>>>> > >> >> Thanks,
>>>>>>>> > >> >> Zhang Haoyu
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thomas Lau
>>>>>> Director of Infrastructure
>>>>>> Tetrion Capital Limited
>>>>>>
>>>>>> Direct: +852-3976-8903
>>>>>> Mobile: +852-9323-9670
>>>>>> Address: 20/F, IFC 1, Central district, Hong Kong


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  4:32                             ` Zhang Haoyu
@ 2014-12-04  6:22                               ` Thomas Lau
  2014-12-04  6:24                                 ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-04  6:22 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: Vadim Rozenfeld, kvm, imammedo

I see, so it's minor performance gain, and not stability related
option which is good.

I am checking http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.5-trusty/,
changelog showing lsr function is included, but when I download and
extract kvm.ko out then run nm kvm.ko | grep lsr, nothing found.

On Thu, Dec 4, 2014 at 12:32 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>what does vapic affect Windows 7 at all if I disable it? if it just a
>>minor performance drop, I am fine with that.
>>
> hv_vapic provides accelerated MSR access to high usage memory mapped APIC
> registers, EOI, ICR, TPR.
> You can gain performance promotion from it, not too much,
> but it also depends on the frequency of access to above three apic regs.
>
>>On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>Sure, but I am little confused as KVM is part of linux kernel now, if
>>>>I want to try it, should I just upgrade kernel or compile kvm kernel
>>>>module by myself ?!
>>>>
>>> You can just apply the patch to kvm module and rebuild it.
>>>
>>>>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>I just confirmed that vapic is causing win7 stuck.
>>>>>>
>>>>> You'd better try the commit fc57ac2c9ca :-)
>>>>>
>>>>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>>>>>
>>>>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>> Oh I see,
>>>>>>>>>
>>>>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>>>>>
>>>>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>>>>>
>>>>>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>>>>>
>>>>>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>>>>>   Original Message
>>>>>>>>> From: Vadim Rozenfeld
>>>>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>>>>>> To: Thomas Lau
>>>>>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>>>>>
>>>>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>>>>>> reproducible?
>>>>>>>>>
>>>>>>>>> Best regards,
>>>>>>>>> Vadim.
>>>>>>>>>
>>>>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>>>>>> > it's all fixed by apply hv_relaxed ?
>>>>>>>>> >
>>>>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>>>>>> > >>
>>>>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>>>>>> > >> introduce other problem?!
>>>>>>>>> > >>
>>>>>>>>> > > I'm not sure about this, but it works on my side,
>>>>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>>>>>> > > please show your environment.
>>>>>>>>> > >
>>>>>>>>> > > Thanks,
>>>>>>>>> > > Zhang Haoyu
>>>>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>> > >> > Hi,
>>>>>>>>> > >> >
>>>>>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>>>>>> > >> >
>>>>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>> > >> >>> Hi All,
>>>>>>>>> > >> >>>
>>>>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>>>>>> > >> >>
>>>>>>>>> > >> >> Thanks,
>>>>>>>>> > >> >> Zhang Haoyu
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thomas Lau
>>>>>>> Director of Infrastructure
>>>>>>> Tetrion Capital Limited
>>>>>>>
>>>>>>> Direct: +852-3976-8903
>>>>>>> Mobile: +852-9323-9670
>>>>>>> Address: 20/F, IFC 1, Central district, Hong Kong
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  6:22                               ` Thomas Lau
@ 2014-12-04  6:24                                 ` Thomas Lau
  2014-12-04  7:15                                   ` Zhang Haoyu
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-04  6:24 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: Vadim Rozenfeld, kvm, imammedo

Is this the correct function?
kvm_lapic_set_eoi

I found that one tho.

On Thu, Dec 4, 2014 at 2:22 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> I see, so it's minor performance gain, and not stability related
> option which is good.
>
> I am checking http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.5-trusty/,
> changelog showing lsr function is included, but when I download and
> extract kvm.ko out then run nm kvm.ko | grep lsr, nothing found.
>
> On Thu, Dec 4, 2014 at 12:32 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>what does vapic affect Windows 7 at all if I disable it? if it just a
>>>minor performance drop, I am fine with that.
>>>
>> hv_vapic provides accelerated MSR access to high usage memory mapped APIC
>> registers, EOI, ICR, TPR.
>> You can gain performance promotion from it, not too much,
>> but it also depends on the frequency of access to above three apic regs.
>>
>>>On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>Sure, but I am little confused as KVM is part of linux kernel now, if
>>>>>I want to try it, should I just upgrade kernel or compile kvm kernel
>>>>>module by myself ?!
>>>>>
>>>> You can just apply the patch to kvm module and rebuild it.
>>>>
>>>>>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>I just confirmed that vapic is causing win7 stuck.
>>>>>>>
>>>>>> You'd better try the commit fc57ac2c9ca :-)
>>>>>>
>>>>>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>>>>>>
>>>>>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>> Oh I see,
>>>>>>>>>>
>>>>>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>>>>>>
>>>>>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>>>>>>
>>>>>>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>>>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>>>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>>>>>>
>>>>>>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>>>>>>   Original Message
>>>>>>>>>> From: Vadim Rozenfeld
>>>>>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>>>>>>> To: Thomas Lau
>>>>>>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>>>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>>>>>>
>>>>>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>>>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>>>>>>> reproducible?
>>>>>>>>>>
>>>>>>>>>> Best regards,
>>>>>>>>>> Vadim.
>>>>>>>>>>
>>>>>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>>>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>>>>>>> > it's all fixed by apply hv_relaxed ?
>>>>>>>>>> >
>>>>>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>>>>>>> > >>
>>>>>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>>>>>>> > >> introduce other problem?!
>>>>>>>>>> > >>
>>>>>>>>>> > > I'm not sure about this, but it works on my side,
>>>>>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>>>>>>> > > please show your environment.
>>>>>>>>>> > >
>>>>>>>>>> > > Thanks,
>>>>>>>>>> > > Zhang Haoyu
>>>>>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>>> > >> > Hi,
>>>>>>>>>> > >> >
>>>>>>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>>>>>>> > >> >
>>>>>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>> > >> >>> Hi All,
>>>>>>>>>> > >> >>>
>>>>>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>>>>>>> > >> >>
>>>>>>>>>> > >> >> Thanks,
>>>>>>>>>> > >> >> Zhang Haoyu
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Thomas Lau
>>>>>>>> Director of Infrastructure
>>>>>>>> Tetrion Capital Limited
>>>>>>>>
>>>>>>>> Direct: +852-3976-8903
>>>>>>>> Mobile: +852-9323-9670
>>>>>>>> Address: 20/F, IFC 1, Central district, Hong Kong
>>
>
>
>
> --
> Thomas Lau
> Director of Infrastructure
> Tetrion Capital Limited
>
> Direct: +852-3976-8903
> Mobile: +852-9323-9670
> Address: 20/F, IFC 1, Central district, Hong Kong



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  6:24                                 ` Thomas Lau
@ 2014-12-04  7:15                                   ` Zhang Haoyu
  2014-12-04  8:37                                     ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Zhang Haoyu @ 2014-12-04  7:15 UTC (permalink / raw)
  To: Thomas Lau; +Cc: Vadim Rozenfeld, kvm, imammedo

>Is this the correct function?
>kvm_lapic_set_eoi
>
No, see the detail of commit fc57ac2c9ca,
https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc

>I found that one tho.
>
>On Thu, Dec 4, 2014 at 2:22 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>> I see, so it's minor performance gain, and not stability related
>> option which is good.
>>
>> I am checking http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.5-trusty/,
>> changelog showing lsr function is included, but when I download and
>> extract kvm.ko out then run nm kvm.ko | grep lsr, nothing found.
>>
>> On Thu, Dec 4, 2014 at 12:32 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>what does vapic affect Windows 7 at all if I disable it? if it just a
>>>>minor performance drop, I am fine with that.
>>>>
>>> hv_vapic provides accelerated MSR access to high usage memory mapped APIC
>>> registers, EOI, ICR, TPR.
>>> You can gain performance promotion from it, not too much,
>>> but it also depends on the frequency of access to above three apic regs.
>>>
>>>>On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>Sure, but I am little confused as KVM is part of linux kernel now, if
>>>>>>I want to try it, should I just upgrade kernel or compile kvm kernel
>>>>>>module by myself ?!
>>>>>>
>>>>> You can just apply the patch to kvm module and rebuild it.
>>>>>
>>>>>>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>I just confirmed that vapic is causing win7 stuck.
>>>>>>>>
>>>>>>> You'd better try the commit fc57ac2c9ca :-)
>>>>>>>
>>>>>>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>>>>>>>
>>>>>>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>> Oh I see,
>>>>>>>>>>>
>>>>>>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>>>>>>>
>>>>>>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>>>>>>>
>>>>>>>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>>>>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>>>>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>>>>>>>
>>>>>>>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>>>>>>>   Original Message
>>>>>>>>>>> From: Vadim Rozenfeld
>>>>>>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>>>>>>>> To: Thomas Lau
>>>>>>>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>>>>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>>>>>>>
>>>>>>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>>>>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>>>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>>>>>>>> reproducible?
>>>>>>>>>>>
>>>>>>>>>>> Best regards,
>>>>>>>>>>> Vadim.
>>>>>>>>>>>
>>>>>>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>>>>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>>>>>>>> > it's all fixed by apply hv_relaxed ?
>>>>>>>>>>> >
>>>>>>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>>>>>>>> > >>
>>>>>>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>>>>>>>> > >> introduce other problem?!
>>>>>>>>>>> > >>
>>>>>>>>>>> > > I'm not sure about this, but it works on my side,
>>>>>>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>>>>>>>> > > please show your environment.
>>>>>>>>>>> > >
>>>>>>>>>>> > > Thanks,
>>>>>>>>>>> > > Zhang Haoyu
>>>>>>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>>>> > >> > Hi,
>>>>>>>>>>> > >> >
>>>>>>>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>>>>>>>> > >> >
>>>>>>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>> > >> >>> Hi All,
>>>>>>>>>>> > >> >>>
>>>>>>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>>>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>>>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>>>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>>>>>>>> > >> >>
>>>>>>>>>>> > >> >> Thanks,
>>>>>>>>>>> > >> >> Zhang Haoyu
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Thomas Lau
>>>>>>>>> Director of Infrastructure
>>>>>>>>> Tetrion Capital Limited
>>>>>>>>>
>>>>>>>>> Direct: +852-3976-8903
>>>>>>>>> Mobile: +852-9323-9670
>>>>>>>>> Address: 20/F, IFC 1, Central district, Hong Kong
>>>
>>
>>
>>
>> --
>> Thomas Lau
>> Director of Infrastructure
>> Tetrion Capital Limited
>>
>> Direct: +852-3976-8903
>> Mobile: +852-9323-9670
>> Address: 20/F, IFC 1, Central district, Hong Kong


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  2:48                           ` Thomas Lau
  2014-12-04  4:32                             ` Zhang Haoyu
@ 2014-12-04  8:36                             ` Vadim Rozenfeld
  1 sibling, 0 replies; 38+ messages in thread
From: Vadim Rozenfeld @ 2014-12-04  8:36 UTC (permalink / raw)
  To: Thomas Lau; +Cc: Zhang Haoyu, kvm, imammedo

On Thu, 2014-12-04 at 10:48 +0800, Thomas Lau wrote:
> what does vapic affect Windows 7 at all if I disable it? if it just a
> minor performance drop, I am fine with that.
> 

It's good to have it turned on. But you definitely can drop it off.
 
> On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >>Sure, but I am little confused as KVM is part of linux kernel now, if
> >>I want to try it, should I just upgrade kernel or compile kvm kernel
> >>module by myself ?!
> >>
> > You can just apply the patch to kvm module and rebuild it.
> >
> >>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >>>>I just confirmed that vapic is causing win7 stuck.
> >>>>
> >>> You'd better try the commit fc57ac2c9ca :-)
> >>>
> >>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> >>>>> Hi,
> >>>>>
> >>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
> >>>>>
> >>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >>>>>>> Oh I see,
> >>>>>>>
> >>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
> >>>>>>>
> >>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
> >>>>>>>
> >>>>>> Could you confirm that the stuck was caused by vhich hv feature?
> >>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
> >>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
> >>>>>>
> >>>>>>> Sent from my BlackBerry 10 smartphone.
> >>>>>>>   Original Message
> >>>>>>> From: Vadim Rozenfeld
> >>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
> >>>>>>> To: Thomas Lau
> >>>>>>> Cc: Zhang Haoyu; kvm; imammedo
> >>>>>>> Subject: Re: Windows 7 VM BSOD
> >>>>>>>
> >>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
> >>>>>>> it's just a matter of time when you hit 101 BOSD.
> >>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
> >>>>>>> reproducible?
> >>>>>>>
> >>>>>>> Best regards,
> >>>>>>> Vadim.
> >>>>>>>
> >>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
> >>>>>>> > "it works on your side" meaning that you had such issue but afterwards
> >>>>>>> > it's all fixed by apply hv_relaxed ?
> >>>>>>> >
> >>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
> >>>>>>> > >>
> >>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
> >>>>>>> > >> introduce other problem?!
> >>>>>>> > >>
> >>>>>>> > > I'm not sure about this, but it works on my side,
> >>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
> >>>>>>> > > please show your environment.
> >>>>>>> > >
> >>>>>>> > > Thanks,
> >>>>>>> > > Zhang Haoyu
> >>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> >>>>>>> > >> > Hi,
> >>>>>>> > >> >
> >>>>>>> > >> > How do I know if my qemu-kvm version support this?
> >>>>>>> > >> >
> >>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >>>>>>> > >> >>> Hi All,
> >>>>>>> > >> >>>
> >>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> >>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
> >>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
> >>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> >>>>>>> > >> >>
> >>>>>>> > >> >> Thanks,
> >>>>>>> > >> >> Zhang Haoyu
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Thomas Lau
> >>>>> Director of Infrastructure
> >>>>> Tetrion Capital Limited
> >>>>>
> >>>>> Direct: +852-3976-8903
> >>>>> Mobile: +852-9323-9670
> >>>>> Address: 20/F, IFC 1, Central district, Hong Kong
> >
> 
> 
> 



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  7:15                                   ` Zhang Haoyu
@ 2014-12-04  8:37                                     ` Thomas Lau
  2014-12-04  9:09                                       ` Thomas Lau
  2014-12-04  9:19                                       ` Zhang Haoyu
  0 siblings, 2 replies; 38+ messages in thread
From: Thomas Lau @ 2014-12-04  8:37 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: Vadim Rozenfeld, kvm, imammedo

since they change the logic inside a function and never change
function name, it's hard to tell by using nm kvm.ko as it only shows
what function name included on kernel module.

On Thu, Dec 4, 2014 at 3:15 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>Is this the correct function?
>>kvm_lapic_set_eoi
>>
> No, see the detail of commit fc57ac2c9ca,
> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>
>>I found that one tho.
>>
>>On Thu, Dec 4, 2014 at 2:22 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>> I see, so it's minor performance gain, and not stability related
>>> option which is good.
>>>
>>> I am checking http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.5-trusty/,
>>> changelog showing lsr function is included, but when I download and
>>> extract kvm.ko out then run nm kvm.ko | grep lsr, nothing found.
>>>
>>> On Thu, Dec 4, 2014 at 12:32 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>what does vapic affect Windows 7 at all if I disable it? if it just a
>>>>>minor performance drop, I am fine with that.
>>>>>
>>>> hv_vapic provides accelerated MSR access to high usage memory mapped APIC
>>>> registers, EOI, ICR, TPR.
>>>> You can gain performance promotion from it, not too much,
>>>> but it also depends on the frequency of access to above three apic regs.
>>>>
>>>>>On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>Sure, but I am little confused as KVM is part of linux kernel now, if
>>>>>>>I want to try it, should I just upgrade kernel or compile kvm kernel
>>>>>>>module by myself ?!
>>>>>>>
>>>>>> You can just apply the patch to kvm module and rebuild it.
>>>>>>
>>>>>>>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>I just confirmed that vapic is causing win7 stuck.
>>>>>>>>>
>>>>>>>> You'd better try the commit fc57ac2c9ca :-)
>>>>>>>>
>>>>>>>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>>>>>>>>
>>>>>>>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>> Oh I see,
>>>>>>>>>>>>
>>>>>>>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>>>>>>>>
>>>>>>>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>>>>>>>>
>>>>>>>>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>>>>>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>>>>>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>>>>>>>>
>>>>>>>>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>>>>>>>>   Original Message
>>>>>>>>>>>> From: Vadim Rozenfeld
>>>>>>>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>>>>>>>>> To: Thomas Lau
>>>>>>>>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>>>>>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>>>>>>>>
>>>>>>>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>>>>>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>>>>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>>>>>>>>> reproducible?
>>>>>>>>>>>>
>>>>>>>>>>>> Best regards,
>>>>>>>>>>>> Vadim.
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>>>>>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>>>>>>>>> > it's all fixed by apply hv_relaxed ?
>>>>>>>>>>>> >
>>>>>>>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>>>>>>>>> > >>
>>>>>>>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>>>>>>>>> > >> introduce other problem?!
>>>>>>>>>>>> > >>
>>>>>>>>>>>> > > I'm not sure about this, but it works on my side,
>>>>>>>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>>>>>>>>> > > please show your environment.
>>>>>>>>>>>> > >
>>>>>>>>>>>> > > Thanks,
>>>>>>>>>>>> > > Zhang Haoyu
>>>>>>>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>>>>> > >> > Hi,
>>>>>>>>>>>> > >> >
>>>>>>>>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>>>>>>>>> > >> >
>>>>>>>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>> > >> >>> Hi All,
>>>>>>>>>>>> > >> >>>
>>>>>>>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>>>>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>>>>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>>>>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>>>>>>>>> > >> >>
>>>>>>>>>>>> > >> >> Thanks,
>>>>>>>>>>>> > >> >> Zhang Haoyu
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Thomas Lau
>>>>>>>>>> Director of Infrastructure
>>>>>>>>>> Tetrion Capital Limited
>>>>>>>>>>
>>>>>>>>>> Direct: +852-3976-8903
>>>>>>>>>> Mobile: +852-9323-9670
>>>>>>>>>> Address: 20/F, IFC 1, Central district, Hong Kong
>>>>
>>>
>>>
>>>
>>> --
>>> Thomas Lau
>>> Director of Infrastructure
>>> Tetrion Capital Limited
>>>
>>> Direct: +852-3976-8903
>>> Mobile: +852-9323-9670
>>> Address: 20/F, IFC 1, Central district, Hong Kong
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  8:37                                     ` Thomas Lau
@ 2014-12-04  9:09                                       ` Thomas Lau
  2014-12-04  9:19                                       ` Zhang Haoyu
  1 sibling, 0 replies; 38+ messages in thread
From: Thomas Lau @ 2014-12-04  9:09 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: Vadim Rozenfeld, kvm, imammedo

By the way, after I installed new version of kernel which have vapic
patch on, Win7 is running properly now. Thanks.

On Thu, Dec 4, 2014 at 4:37 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> since they change the logic inside a function and never change
> function name, it's hard to tell by using nm kvm.ko as it only shows
> what function name included on kernel module.
>
> On Thu, Dec 4, 2014 at 3:15 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>Is this the correct function?
>>>kvm_lapic_set_eoi
>>>
>> No, see the detail of commit fc57ac2c9ca,
>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>
>>>I found that one tho.
>>>
>>>On Thu, Dec 4, 2014 at 2:22 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>> I see, so it's minor performance gain, and not stability related
>>>> option which is good.
>>>>
>>>> I am checking http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.5-trusty/,
>>>> changelog showing lsr function is included, but when I download and
>>>> extract kvm.ko out then run nm kvm.ko | grep lsr, nothing found.
>>>>
>>>> On Thu, Dec 4, 2014 at 12:32 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>what does vapic affect Windows 7 at all if I disable it? if it just a
>>>>>>minor performance drop, I am fine with that.
>>>>>>
>>>>> hv_vapic provides accelerated MSR access to high usage memory mapped APIC
>>>>> registers, EOI, ICR, TPR.
>>>>> You can gain performance promotion from it, not too much,
>>>>> but it also depends on the frequency of access to above three apic regs.
>>>>>
>>>>>>On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>Sure, but I am little confused as KVM is part of linux kernel now, if
>>>>>>>>I want to try it, should I just upgrade kernel or compile kvm kernel
>>>>>>>>module by myself ?!
>>>>>>>>
>>>>>>> You can just apply the patch to kvm module and rebuild it.
>>>>>>>
>>>>>>>>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>I just confirmed that vapic is causing win7 stuck.
>>>>>>>>>>
>>>>>>>>> You'd better try the commit fc57ac2c9ca :-)
>>>>>>>>>
>>>>>>>>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>>> Oh I see,
>>>>>>>>>>>>>
>>>>>>>>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>>>>>>>>>
>>>>>>>>>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>>>>>>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>>>>>>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>>>>>>>>>
>>>>>>>>>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>>>>>>>>>   Original Message
>>>>>>>>>>>>> From: Vadim Rozenfeld
>>>>>>>>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>>>>>>>>>> To: Thomas Lau
>>>>>>>>>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>>>>>>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>>>>>>>>>
>>>>>>>>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>>>>>>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>>>>>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>>>>>>>>>> reproducible?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>> Vadim.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>>>>>>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>>>>>>>>>> > it's all fixed by apply hv_relaxed ?
>>>>>>>>>>>>> >
>>>>>>>>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>>>>>>>>>> > >>
>>>>>>>>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>>>>>>>>>> > >> introduce other problem?!
>>>>>>>>>>>>> > >>
>>>>>>>>>>>>> > > I'm not sure about this, but it works on my side,
>>>>>>>>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>>>>>>>>>> > > please show your environment.
>>>>>>>>>>>>> > >
>>>>>>>>>>>>> > > Thanks,
>>>>>>>>>>>>> > > Zhang Haoyu
>>>>>>>>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>>>>>> > >> > Hi,
>>>>>>>>>>>>> > >> >
>>>>>>>>>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>>>>>>>>>> > >> >
>>>>>>>>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>>> > >> >>> Hi All,
>>>>>>>>>>>>> > >> >>>
>>>>>>>>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>>>>>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>>>>>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>>>>>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>>>>>>>>>> > >> >>
>>>>>>>>>>>>> > >> >> Thanks,
>>>>>>>>>>>>> > >> >> Zhang Haoyu
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Thomas Lau
>>>>>>>>>>> Director of Infrastructure
>>>>>>>>>>> Tetrion Capital Limited
>>>>>>>>>>>
>>>>>>>>>>> Direct: +852-3976-8903
>>>>>>>>>>> Mobile: +852-9323-9670
>>>>>>>>>>> Address: 20/F, IFC 1, Central district, Hong Kong
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thomas Lau
>>>> Director of Infrastructure
>>>> Tetrion Capital Limited
>>>>
>>>> Direct: +852-3976-8903
>>>> Mobile: +852-9323-9670
>>>> Address: 20/F, IFC 1, Central district, Hong Kong
>>
>
>
>
> --
> Thomas Lau
> Director of Infrastructure
> Tetrion Capital Limited
>
> Direct: +852-3976-8903
> Mobile: +852-9323-9670
> Address: 20/F, IFC 1, Central district, Hong Kong



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  8:37                                     ` Thomas Lau
  2014-12-04  9:09                                       ` Thomas Lau
@ 2014-12-04  9:19                                       ` Zhang Haoyu
  2014-12-04  9:20                                         ` Thomas Lau
  1 sibling, 1 reply; 38+ messages in thread
From: Zhang Haoyu @ 2014-12-04  9:19 UTC (permalink / raw)
  To: Thomas Lau; +Cc: Vadim Rozenfeld, kvm, imammedo

>since they change the logic inside a function and never change
>function name, it's hard to tell by using nm kvm.ko as it only shows
>what function name included on kernel module.
>
Yes,
if you have the source, you can directly check it.,
otherwise, decompile kvm.ko, because apic_clear_isr() is inline function,
which is called by apic_set_eoi(), you can check it, this method is a bit complicated.
Any better ideas?

>On Thu, Dec 4, 2014 at 3:15 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>Is this the correct function?
>>>kvm_lapic_set_eoi
>>>
>> No, see the detail of commit fc57ac2c9ca,
>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>
>>>I found that one tho.
>>>
>>>On Thu, Dec 4, 2014 at 2:22 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>> I see, so it's minor performance gain, and not stability related
>>>> option which is good.
>>>>
>>>> I am checking http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.5-trusty/,
>>>> changelog showing lsr function is included, but when I download and
>>>> extract kvm.ko out then run nm kvm.ko | grep lsr, nothing found.
>>>>
>>>> On Thu, Dec 4, 2014 at 12:32 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>what does vapic affect Windows 7 at all if I disable it? if it just a
>>>>>>minor performance drop, I am fine with that.
>>>>>>
>>>>> hv_vapic provides accelerated MSR access to high usage memory mapped APIC
>>>>> registers, EOI, ICR, TPR.
>>>>> You can gain performance promotion from it, not too much,
>>>>> but it also depends on the frequency of access to above three apic regs.
>>>>>
>>>>>>On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>Sure, but I am little confused as KVM is part of linux kernel now, if
>>>>>>>>I want to try it, should I just upgrade kernel or compile kvm kernel
>>>>>>>>module by myself ?!
>>>>>>>>
>>>>>>> You can just apply the patch to kvm module and rebuild it.
>>>>>>>
>>>>>>>>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>I just confirmed that vapic is causing win7 stuck.
>>>>>>>>>>
>>>>>>>>> You'd better try the commit fc57ac2c9ca :-)
>>>>>>>>>
>>>>>>>>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>>> Oh I see,
>>>>>>>>>>>>>
>>>>>>>>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>>>>>>>>>
>>>>>>>>>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>>>>>>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>>>>>>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>>>>>>>>>
>>>>>>>>>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>>>>>>>>>   Original Message
>>>>>>>>>>>>> From: Vadim Rozenfeld
>>>>>>>>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>>>>>>>>>> To: Thomas Lau
>>>>>>>>>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>>>>>>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>>>>>>>>>
>>>>>>>>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>>>>>>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>>>>>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>>>>>>>>>> reproducible?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>> Vadim.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>>>>>>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>>>>>>>>>> > it's all fixed by apply hv_relaxed ?
>>>>>>>>>>>>> >
>>>>>>>>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>>>>>>>>>> > >>
>>>>>>>>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>>>>>>>>>> > >> introduce other problem?!
>>>>>>>>>>>>> > >>
>>>>>>>>>>>>> > > I'm not sure about this, but it works on my side,
>>>>>>>>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>>>>>>>>>> > > please show your environment.
>>>>>>>>>>>>> > >
>>>>>>>>>>>>> > > Thanks,
>>>>>>>>>>>>> > > Zhang Haoyu
>>>>>>>>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>>>>>> > >> > Hi,
>>>>>>>>>>>>> > >> >
>>>>>>>>>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>>>>>>>>>> > >> >
>>>>>>>>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>>> > >> >>> Hi All,
>>>>>>>>>>>>> > >> >>>
>>>>>>>>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>>>>>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>>>>>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>>>>>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>>>>>>>>>> > >> >>
>>>>>>>>>>>>> > >> >> Thanks,
>>>>>>>>>>>>> > >> >> Zhang Haoyu
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Thomas Lau
>>>>>>>>>>> Director of Infrastructure
>>>>>>>>>>> Tetrion Capital Limited
>>>>>>>>>>>
>>>>>>>>>>> Direct: +852-3976-8903
>>>>>>>>>>> Mobile: +852-9323-9670
>>>>>>>>>>> Address: 20/F, IFC 1, Central district, Hong Kong
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thomas Lau
>>>> Director of Infrastructure
>>>> Tetrion Capital Limited
>>>>
>>>> Direct: +852-3976-8903
>>>> Mobile: +852-9323-9670
>>>> Address: 20/F, IFC 1, Central district, Hong Kong


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-04  9:19                                       ` Zhang Haoyu
@ 2014-12-04  9:20                                         ` Thomas Lau
  0 siblings, 0 replies; 38+ messages in thread
From: Thomas Lau @ 2014-12-04  9:20 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: Vadim Rozenfeld, kvm, imammedo

I would stick with reading changelog and save some trouble!

On Thu, Dec 4, 2014 at 5:19 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>since they change the logic inside a function and never change
>>function name, it's hard to tell by using nm kvm.ko as it only shows
>>what function name included on kernel module.
>>
> Yes,
> if you have the source, you can directly check it.,
> otherwise, decompile kvm.ko, because apic_clear_isr() is inline function,
> which is called by apic_set_eoi(), you can check it, this method is a bit complicated.
> Any better ideas?
>
>>On Thu, Dec 4, 2014 at 3:15 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>Is this the correct function?
>>>>kvm_lapic_set_eoi
>>>>
>>> No, see the detail of commit fc57ac2c9ca,
>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>
>>>>I found that one tho.
>>>>
>>>>On Thu, Dec 4, 2014 at 2:22 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>> I see, so it's minor performance gain, and not stability related
>>>>> option which is good.
>>>>>
>>>>> I am checking http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.5-trusty/,
>>>>> changelog showing lsr function is included, but when I download and
>>>>> extract kvm.ko out then run nm kvm.ko | grep lsr, nothing found.
>>>>>
>>>>> On Thu, Dec 4, 2014 at 12:32 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>what does vapic affect Windows 7 at all if I disable it? if it just a
>>>>>>>minor performance drop, I am fine with that.
>>>>>>>
>>>>>> hv_vapic provides accelerated MSR access to high usage memory mapped APIC
>>>>>> registers, EOI, ICR, TPR.
>>>>>> You can gain performance promotion from it, not too much,
>>>>>> but it also depends on the frequency of access to above three apic regs.
>>>>>>
>>>>>>>On Thu, Dec 4, 2014 at 10:06 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>Sure, but I am little confused as KVM is part of linux kernel now, if
>>>>>>>>>I want to try it, should I just upgrade kernel or compile kvm kernel
>>>>>>>>>module by myself ?!
>>>>>>>>>
>>>>>>>> You can just apply the patch to kvm module and rebuild it.
>>>>>>>>
>>>>>>>>>On Thu, Dec 4, 2014 at 10:01 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>I just confirmed that vapic is causing win7 stuck.
>>>>>>>>>>>
>>>>>>>>>> You'd better try the commit fc57ac2c9ca :-)
>>>>>>>>>>
>>>>>>>>>>>On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> I don't want to recompile stuff, does it matter to have hv_vapic on at all?
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Dec 4, 2014 at 9:24 AM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>>>> Oh I see,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> So 101 BSOD problem is well known? Can't find any document mention about 101 BSOD online.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I tried to use hv_ other options but Win7 can't boot up properly and stucked at starting Windows screen.
>>>>>>>>>>>>>>
>>>>>>>>>>>>> Could you confirm that the stuck was caused by vhich hv feature?
>>>>>>>>>>>>> The commit fc57ac2c9ca can resolve a stuck caused by hv_vapic which I encountered before.
>>>>>>>>>>>>> https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/arch/x86/kvm/lapic.c?id=fc57ac2c9ca8109ea97fcc594f4be436944230cc
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Sent from my BlackBerry 10 smartphone.
>>>>>>>>>>>>>>   Original Message
>>>>>>>>>>>>>> From: Vadim Rozenfeld
>>>>>>>>>>>>>> Sent: Wednesday, 3 December, 2014 7:30 PM
>>>>>>>>>>>>>> To: Thomas Lau
>>>>>>>>>>>>>> Cc: Zhang Haoyu; kvm; imammedo
>>>>>>>>>>>>>> Subject: Re: Windows 7 VM BSOD
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>>>>>>>>>>>>>> it's just a matter of time when you hit 101 BOSD.
>>>>>>>>>>>>>> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>>>>>>>>>>>>>> reproducible?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>> Vadim.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>>>>>>>>>>>>>> > "it works on your side" meaning that you had such issue but afterwards
>>>>>>>>>>>>>> > it's all fixed by apply hv_relaxed ?
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> > On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>>>> > >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>>>>>>>>>>>>>> > >>
>>>>>>>>>>>>>> > >> In fact I am doing testing now, but are we fixing one problem and
>>>>>>>>>>>>>> > >> introduce other problem?!
>>>>>>>>>>>>>> > >>
>>>>>>>>>>>>>> > > I'm not sure about this, but it works on my side,
>>>>>>>>>>>>>> > > I think BSOD(error:0x00000078) has been fixed,
>>>>>>>>>>>>>> > > please show your environment.
>>>>>>>>>>>>>> > >
>>>>>>>>>>>>>> > > Thanks,
>>>>>>>>>>>>>> > > Zhang Haoyu
>>>>>>>>>>>>>> > >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>>>>>>>>>>>>>> > >> > Hi,
>>>>>>>>>>>>>> > >> >
>>>>>>>>>>>>>> > >> > How do I know if my qemu-kvm version support this?
>>>>>>>>>>>>>> > >> >
>>>>>>>>>>>>>> > >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>>>>>>>>>>>>>> > >> >>> Hi All,
>>>>>>>>>>>>>> > >> >>>
>>>>>>>>>>>>>> > >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>>>>>>>>>>>>>> > >> >>> installation was fine, but it does random reboot by itself, the error
>>>>>>>>>>>>>> > >> >>> code is 0x00000101, does anyone know how to fix this?
>>>>>>>>>>>>>> > >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>>>>>>>>>>>>>> > >> >>
>>>>>>>>>>>>>> > >> >> Thanks,
>>>>>>>>>>>>>> > >> >> Zhang Haoyu
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Thomas Lau
>>>>>>>>>>>> Director of Infrastructure
>>>>>>>>>>>> Tetrion Capital Limited
>>>>>>>>>>>>
>>>>>>>>>>>> Direct: +852-3976-8903
>>>>>>>>>>>> Mobile: +852-9323-9670
>>>>>>>>>>>> Address: 20/F, IFC 1, Central district, Hong Kong
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thomas Lau
>>>>> Director of Infrastructure
>>>>> Tetrion Capital Limited
>>>>>
>>>>> Direct: +852-3976-8903
>>>>> Mobile: +852-9323-9670
>>>>> Address: 20/F, IFC 1, Central district, Hong Kong
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-03 11:29           ` Vadim Rozenfeld
  2014-12-03 11:36             ` tlau
@ 2014-12-09  3:54             ` Thomas Lau
  2014-12-09  7:10               ` Vadim Rozenfeld
  1 sibling, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-09  3:54 UTC (permalink / raw)
  To: Vadim Rozenfeld; +Cc: Zhang Haoyu, kvm, imammedo

Hi Vadim,

I want to quote back to your original post back in early 2014:
https://www.mail-archive.com/kvm@vger.kernel.org/msg99782.html


According to http://msdn.microsoft.com/en-us/library/windows/hardware/ff559069(v=vs.85).aspx
 the 0x5C means HAL_INITIALIZATION_FAILED

Problem matched exactly, which I am using CPU IvyBridge-EP and I got
same BSOD as well.

Are we missing some hyperv feature?

On Wed, Dec 3, 2014 at 7:29 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
> it's just a matter of time when you hit 101 BOSD.
> Bugcheck 78 is quite rare one. What is your setup, and how easy it's
> reproducible?
>
> Best regards,
> Vadim.
>
> On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>> "it works on your side" meaning that you had such issue but afterwards
>> it's all fixed by apply hv_relaxed ?
>>
>> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>> >>
>> >> In fact I am doing testing now, but are we fixing one problem and
>> >> introduce other problem?!
>> >>
>> > I'm not sure about this, but it works on my side,
>> > I think BSOD(error:0x00000078) has been fixed,
>> > please show your environment.
>> >
>> > Thanks,
>> > Zhang Haoyu
>> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>> >> > Hi,
>> >> >
>> >> > How do I know if my qemu-kvm version support this?
>> >> >
>> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> >>> Hi All,
>> >> >>>
>> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>> >> >>> installation was fine, but it does random reboot by itself, the error
>> >> >>> code is 0x00000101, does anyone know how to fix this?
>> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>> >> >>
>> >> >> Thanks,
>> >> >> Zhang Haoyu
>> >
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-09  3:54             ` Thomas Lau
@ 2014-12-09  7:10               ` Vadim Rozenfeld
  2014-12-09  7:54                 ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Vadim Rozenfeld @ 2014-12-09  7:10 UTC (permalink / raw)
  To: Thomas Lau; +Cc: Zhang Haoyu, kvm, imammedo

On Tue, 2014-12-09 at 11:54 +0800, Thomas Lau wrote:
> Hi Vadim,
> 
> I want to quote back to your original post back in early 2014:
> https://www.mail-archive.com/kvm@vger.kernel.org/msg99782.html
> 
> 
> According to http://msdn.microsoft.com/en-us/library/windows/hardware/ff559069(v=vs.85).aspx
>  the 0x5C means HAL_INITIALIZATION_FAILED
> 
> Problem matched exactly, which I am using CPU IvyBridge-EP and I got
> same BSOD as well.

Some CPU flags (feature bits) should be missing.
Can you try changing cpu type?

Best regards,
Vadim.

> 
> Are we missing some hyperv feature?
> 
> On Wed, Dec 3, 2014 at 7:29 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> > If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
> > it's just a matter of time when you hit 101 BOSD.
> > Bugcheck 78 is quite rare one. What is your setup, and how easy it's
> > reproducible?
> >
> > Best regards,
> > Vadim.
> >
> > On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
> >> "it works on your side" meaning that you had such issue but afterwards
> >> it's all fixed by apply hv_relaxed ?
> >>
> >> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
> >> >>
> >> >> In fact I am doing testing now, but are we fixing one problem and
> >> >> introduce other problem?!
> >> >>
> >> > I'm not sure about this, but it works on my side,
> >> > I think BSOD(error:0x00000078) has been fixed,
> >> > please show your environment.
> >> >
> >> > Thanks,
> >> > Zhang Haoyu
> >> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> >> >> > Hi,
> >> >> >
> >> >> > How do I know if my qemu-kvm version support this?
> >> >> >
> >> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> >> >>> Hi All,
> >> >> >>>
> >> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> >> >> >>> installation was fine, but it does random reboot by itself, the error
> >> >> >>> code is 0x00000101, does anyone know how to fix this?
> >> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> >> >> >>
> >> >> >> Thanks,
> >> >> >> Zhang Haoyu
> >> >
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe kvm" in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> >
> 
> 
> 



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-09  7:10               ` Vadim Rozenfeld
@ 2014-12-09  7:54                 ` Thomas Lau
  2014-12-09  8:03                   ` Vadim Rozenfeld
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-09  7:54 UTC (permalink / raw)
  To: Vadim Rozenfeld; +Cc: Zhang Haoyu, kvm, imammedo

I changed CPU type to Westmere, it boot up with 0x05C BSOD

On Tue, Dec 9, 2014 at 3:10 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> On Tue, 2014-12-09 at 11:54 +0800, Thomas Lau wrote:
>> Hi Vadim,
>>
>> I want to quote back to your original post back in early 2014:
>> https://www.mail-archive.com/kvm@vger.kernel.org/msg99782.html
>>
>>
>> According to http://msdn.microsoft.com/en-us/library/windows/hardware/ff559069(v=vs.85).aspx
>>  the 0x5C means HAL_INITIALIZATION_FAILED
>>
>> Problem matched exactly, which I am using CPU IvyBridge-EP and I got
>> same BSOD as well.
>
> Some CPU flags (feature bits) should be missing.
> Can you try changing cpu type?
>
> Best regards,
> Vadim.
>
>>
>> Are we missing some hyperv feature?
>>
>> On Wed, Dec 3, 2014 at 7:29 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
>> > If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>> > it's just a matter of time when you hit 101 BOSD.
>> > Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>> > reproducible?
>> >
>> > Best regards,
>> > Vadim.
>> >
>> > On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>> >> "it works on your side" meaning that you had such issue but afterwards
>> >> it's all fixed by apply hv_relaxed ?
>> >>
>> >> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>> >> >>
>> >> >> In fact I am doing testing now, but are we fixing one problem and
>> >> >> introduce other problem?!
>> >> >>
>> >> > I'm not sure about this, but it works on my side,
>> >> > I think BSOD(error:0x00000078) has been fixed,
>> >> > please show your environment.
>> >> >
>> >> > Thanks,
>> >> > Zhang Haoyu
>> >> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>> >> >> > Hi,
>> >> >> >
>> >> >> > How do I know if my qemu-kvm version support this?
>> >> >> >
>> >> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> >> >>> Hi All,
>> >> >> >>>
>> >> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>> >> >> >>> installation was fine, but it does random reboot by itself, the error
>> >> >> >>> code is 0x00000101, does anyone know how to fix this?
>> >> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>> >> >> >>
>> >> >> >> Thanks,
>> >> >> >> Zhang Haoyu
>> >> >
>> >> --
>> >> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> >> the body of a message to majordomo@vger.kernel.org
>> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> >
>> >
>>
>>
>>
>
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-09  7:54                 ` Thomas Lau
@ 2014-12-09  8:03                   ` Vadim Rozenfeld
  2014-12-09  8:24                     ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Vadim Rozenfeld @ 2014-12-09  8:03 UTC (permalink / raw)
  To: Thomas Lau; +Cc: Zhang Haoyu, kvm, imammedo

On Tue, 2014-12-09 at 15:54 +0800, Thomas Lau wrote:
> I changed CPU type to Westmere, it boot up with 0x05C BSOD

It should be four parameters printed on the screen, right below 
the error code string. Could you please post them?

Vadim.
 
> 
> On Tue, Dec 9, 2014 at 3:10 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> > On Tue, 2014-12-09 at 11:54 +0800, Thomas Lau wrote:
> >> Hi Vadim,
> >>
> >> I want to quote back to your original post back in early 2014:
> >> https://www.mail-archive.com/kvm@vger.kernel.org/msg99782.html
> >>
> >>
> >> According to http://msdn.microsoft.com/en-us/library/windows/hardware/ff559069(v=vs.85).aspx
> >>  the 0x5C means HAL_INITIALIZATION_FAILED
> >>
> >> Problem matched exactly, which I am using CPU IvyBridge-EP and I got
> >> same BSOD as well.
> >
> > Some CPU flags (feature bits) should be missing.
> > Can you try changing cpu type?
> >
> > Best regards,
> > Vadim.
> >
> >>
> >> Are we missing some hyperv feature?
> >>
> >> On Wed, Dec 3, 2014 at 7:29 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> >> > If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
> >> > it's just a matter of time when you hit 101 BOSD.
> >> > Bugcheck 78 is quite rare one. What is your setup, and how easy it's
> >> > reproducible?
> >> >
> >> > Best regards,
> >> > Vadim.
> >> >
> >> > On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
> >> >> "it works on your side" meaning that you had such issue but afterwards
> >> >> it's all fixed by apply hv_relaxed ?
> >> >>
> >> >> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> >> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
> >> >> >>
> >> >> >> In fact I am doing testing now, but are we fixing one problem and
> >> >> >> introduce other problem?!
> >> >> >>
> >> >> > I'm not sure about this, but it works on my side,
> >> >> > I think BSOD(error:0x00000078) has been fixed,
> >> >> > please show your environment.
> >> >> >
> >> >> > Thanks,
> >> >> > Zhang Haoyu
> >> >> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> >> >> >> > Hi,
> >> >> >> >
> >> >> >> > How do I know if my qemu-kvm version support this?
> >> >> >> >
> >> >> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> >> >> >>> Hi All,
> >> >> >> >>>
> >> >> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> >> >> >> >>> installation was fine, but it does random reboot by itself, the error
> >> >> >> >>> code is 0x00000101, does anyone know how to fix this?
> >> >> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> >> >> >> >>
> >> >> >> >> Thanks,
> >> >> >> >> Zhang Haoyu
> >> >> >
> >> >> --
> >> >> To unsubscribe from this list: send the line "unsubscribe kvm" in
> >> >> the body of a message to majordomo@vger.kernel.org
> >> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >> >
> >> >
> >>
> >>
> >>
> >
> >
> 
> 
> 



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-09  8:03                   ` Vadim Rozenfeld
@ 2014-12-09  8:24                     ` Thomas Lau
  2014-12-10  0:51                       ` tlau
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-09  8:24 UTC (permalink / raw)
  To: Vadim Rozenfeld; +Cc: Zhang Haoyu, kvm, imammedo

Hi Vadim,

Now turning on is OK somehow, shutdown still stuck.

On Tue, Dec 9, 2014 at 4:03 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> On Tue, 2014-12-09 at 15:54 +0800, Thomas Lau wrote:
>> I changed CPU type to Westmere, it boot up with 0x05C BSOD
>
> It should be four parameters printed on the screen, right below
> the error code string. Could you please post them?
>
> Vadim.
>
>>
>> On Tue, Dec 9, 2014 at 3:10 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
>> > On Tue, 2014-12-09 at 11:54 +0800, Thomas Lau wrote:
>> >> Hi Vadim,
>> >>
>> >> I want to quote back to your original post back in early 2014:
>> >> https://www.mail-archive.com/kvm@vger.kernel.org/msg99782.html
>> >>
>> >>
>> >> According to http://msdn.microsoft.com/en-us/library/windows/hardware/ff559069(v=vs.85).aspx
>> >>  the 0x5C means HAL_INITIALIZATION_FAILED
>> >>
>> >> Problem matched exactly, which I am using CPU IvyBridge-EP and I got
>> >> same BSOD as well.
>> >
>> > Some CPU flags (feature bits) should be missing.
>> > Can you try changing cpu type?
>> >
>> > Best regards,
>> > Vadim.
>> >
>> >>
>> >> Are we missing some hyperv feature?
>> >>
>> >> On Wed, Dec 3, 2014 at 7:29 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
>> >> > If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>> >> > it's just a matter of time when you hit 101 BOSD.
>> >> > Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>> >> > reproducible?
>> >> >
>> >> > Best regards,
>> >> > Vadim.
>> >> >
>> >> > On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>> >> >> "it works on your side" meaning that you had such issue but afterwards
>> >> >> it's all fixed by apply hv_relaxed ?
>> >> >>
>> >> >> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> >> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>> >> >> >>
>> >> >> >> In fact I am doing testing now, but are we fixing one problem and
>> >> >> >> introduce other problem?!
>> >> >> >>
>> >> >> > I'm not sure about this, but it works on my side,
>> >> >> > I think BSOD(error:0x00000078) has been fixed,
>> >> >> > please show your environment.
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Zhang Haoyu
>> >> >> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>> >> >> >> > Hi,
>> >> >> >> >
>> >> >> >> > How do I know if my qemu-kvm version support this?
>> >> >> >> >
>> >> >> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> >> >> >>> Hi All,
>> >> >> >> >>>
>> >> >> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>> >> >> >> >>> installation was fine, but it does random reboot by itself, the error
>> >> >> >> >>> code is 0x00000101, does anyone know how to fix this?
>> >> >> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>> >> >> >> >>
>> >> >> >> >> Thanks,
>> >> >> >> >> Zhang Haoyu
>> >> >> >
>> >> >> --
>> >> >> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> >> >> the body of a message to majordomo@vger.kernel.org
>> >> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-09  8:24                     ` Thomas Lau
@ 2014-12-10  0:51                       ` tlau
  2014-12-10  6:19                         ` Vadim Rozenfeld
  0 siblings, 1 reply; 38+ messages in thread
From: tlau @ 2014-12-10  0:51 UTC (permalink / raw)
  To: Vadim Rozenfeld; +Cc: Zhang Haoyu, kvm, imammedo

Hi, 

Anything you want me to try on my side?

Sent from my BlackBerry 10 smartphone.

Thomas Lau
Director of Infrastructure
Tetrion Capital Limited
 
Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong
  Original Message  
From: Thomas Lau
Sent: Tuesday, 9 December, 2014 4:24 PM
To: Vadim Rozenfeld
Cc: Zhang Haoyu; kvm; imammedo
Subject: Re: Windows 7 VM BSOD

Hi Vadim,

Now turning on is OK somehow, shutdown still stuck.

On Tue, Dec 9, 2014 at 4:03 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> On Tue, 2014-12-09 at 15:54 +0800, Thomas Lau wrote:
>> I changed CPU type to Westmere, it boot up with 0x05C BSOD
>
> It should be four parameters printed on the screen, right below
> the error code string. Could you please post them?
>
> Vadim.
>
>>
>> On Tue, Dec 9, 2014 at 3:10 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
>> > On Tue, 2014-12-09 at 11:54 +0800, Thomas Lau wrote:
>> >> Hi Vadim,
>> >>
>> >> I want to quote back to your original post back in early 2014:
>> >> https://www.mail-archive.com/kvm@vger.kernel.org/msg99782.html
>> >>
>> >>
>> >> According to http://msdn.microsoft.com/en-us/library/windows/hardware/ff559069(v=vs.85).aspx
>> >> the 0x5C means HAL_INITIALIZATION_FAILED
>> >>
>> >> Problem matched exactly, which I am using CPU IvyBridge-EP and I got
>> >> same BSOD as well.
>> >
>> > Some CPU flags (feature bits) should be missing.
>> > Can you try changing cpu type?
>> >
>> > Best regards,
>> > Vadim.
>> >
>> >>
>> >> Are we missing some hyperv feature?
>> >>
>> >> On Wed, Dec 3, 2014 at 7:29 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
>> >> > If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>> >> > it's just a matter of time when you hit 101 BOSD.
>> >> > Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>> >> > reproducible?
>> >> >
>> >> > Best regards,
>> >> > Vadim.
>> >> >
>> >> > On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>> >> >> "it works on your side" meaning that you had such issue but afterwards
>> >> >> it's all fixed by apply hv_relaxed ?
>> >> >>
>> >> >> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> >> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>> >> >> >>
>> >> >> >> In fact I am doing testing now, but are we fixing one problem and
>> >> >> >> introduce other problem?!
>> >> >> >>
>> >> >> > I'm not sure about this, but it works on my side,
>> >> >> > I think BSOD(error:0x00000078) has been fixed,
>> >> >> > please show your environment.
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Zhang Haoyu
>> >> >> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>> >> >> >> > Hi,
>> >> >> >> >
>> >> >> >> > How do I know if my qemu-kvm version support this?
>> >> >> >> >
>> >> >> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> >> >> >>> Hi All,
>> >> >> >> >>>
>> >> >> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>> >> >> >> >>> installation was fine, but it does random reboot by itself, the error
>> >> >> >> >>> code is 0x00000101, does anyone know how to fix this?
>> >> >> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>> >> >> >> >>
>> >> >> >> >> Thanks,
>> >> >> >> >> Zhang Haoyu
>> >> >> >
>> >> >> --
>> >> >> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> >> >> the body of a message to majordomo@vger.kernel.org
>> >> >> More majordomo info at http://vger.kernel.org/majordomo-info.html
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-10  0:51                       ` tlau
@ 2014-12-10  6:19                         ` Vadim Rozenfeld
  2014-12-10  7:42                           ` Thomas Lau
  0 siblings, 1 reply; 38+ messages in thread
From: Vadim Rozenfeld @ 2014-12-10  6:19 UTC (permalink / raw)
  To: tlau; +Cc: Zhang Haoyu, kvm, imammedo

On Wed, 2014-12-10 at 08:51 +0800, tlau@tetrioncapital.com wrote:
> Hi, 
> 
> Anything you want me to try on my side?
> 
There is an open bug in bugzilla which looks
pretty similar to your problem
https://bugzilla.redhat.com/show_bug.cgi?id=1139928

Please take a look at comment #18 posted by Eduardo
 https://bugzilla.redhat.com/show_bug.cgi?id=1139928#c18

Best regards,
Vadim.

> Sent from my BlackBerry 10 smartphone.
> 
> Thomas Lau
> Director of Infrastructure
> Tetrion Capital Limited
>  
> Direct: +852-3976-8903
> Mobile: +852-9323-9670
> Address: 20/F, IFC 1, Central district, Hong Kong
>   Original Message  
> From: Thomas Lau
> Sent: Tuesday, 9 December, 2014 4:24 PM
> To: Vadim Rozenfeld
> Cc: Zhang Haoyu; kvm; imammedo
> Subject: Re: Windows 7 VM BSOD
> 
> Hi Vadim,
> 
> Now turning on is OK somehow, shutdown still stuck.
> 
> On Tue, Dec 9, 2014 at 4:03 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> > On Tue, 2014-12-09 at 15:54 +0800, Thomas Lau wrote:
> >> I changed CPU type to Westmere, it boot up with 0x05C BSOD
> >
> > It should be four parameters printed on the screen, right below
> > the error code string. Could you please post them?
> >
> > Vadim.
> >
> >>
> >> On Tue, Dec 9, 2014 at 3:10 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> >> > On Tue, 2014-12-09 at 11:54 +0800, Thomas Lau wrote:
> >> >> Hi Vadim,
> >> >>
> >> >> I want to quote back to your original post back in early 2014:
> >> >> https://www.mail-archive.com/kvm@vger.kernel.org/msg99782.html
> >> >>
> >> >>
> >> >> According to http://msdn.microsoft.com/en-us/library/windows/hardware/ff559069(v=vs.85).aspx
> >> >> the 0x5C means HAL_INITIALIZATION_FAILED
> >> >>
> >> >> Problem matched exactly, which I am using CPU IvyBridge-EP and I got
> >> >> same BSOD as well.
> >> >
> >> > Some CPU flags (feature bits) should be missing.
> >> > Can you try changing cpu type?
> >> >
> >> > Best regards,
> >> > Vadim.
> >> >
> >> >>
> >> >> Are we missing some hyperv feature?
> >> >>
> >> >> On Wed, Dec 3, 2014 at 7:29 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> >> >> > If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
> >> >> > it's just a matter of time when you hit 101 BOSD.
> >> >> > Bugcheck 78 is quite rare one. What is your setup, and how easy it's
> >> >> > reproducible?
> >> >> >
> >> >> > Best regards,
> >> >> > Vadim.
> >> >> >
> >> >> > On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
> >> >> >> "it works on your side" meaning that you had such issue but afterwards
> >> >> >> it's all fixed by apply hv_relaxed ?
> >> >> >>
> >> >> >> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> >> >> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
> >> >> >> >>
> >> >> >> >> In fact I am doing testing now, but are we fixing one problem and
> >> >> >> >> introduce other problem?!
> >> >> >> >>
> >> >> >> > I'm not sure about this, but it works on my side,
> >> >> >> > I think BSOD(error:0x00000078) has been fixed,
> >> >> >> > please show your environment.
> >> >> >> >
> >> >> >> > Thanks,
> >> >> >> > Zhang Haoyu
> >> >> >> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> >> >> >> >> > Hi,
> >> >> >> >> >
> >> >> >> >> > How do I know if my qemu-kvm version support this?
> >> >> >> >> >
> >> >> >> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> >> >> >> >>> Hi All,
> >> >> >> >> >>>
> >> >> >> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> >> >> >> >> >>> installation was fine, but it does random reboot by itself, the error
> >> >> >> >> >>> code is 0x00000101, does anyone know how to fix this?
> >> >> >> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> >> >> >> >> >>
> >> >> >> >> >> Thanks,
> >> >> >> >> >> Zhang Haoyu
> >> >> >> >
> >> >> >> --
> >> >> >> To unsubscribe from this list: send the line "unsubscribe kvm" in
> >> >> >> the body of a message to majordomo@vger.kernel.org
> >> >> >> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >>
> >
> >
> 
> 
> 



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-10  6:19                         ` Vadim Rozenfeld
@ 2014-12-10  7:42                           ` Thomas Lau
  2014-12-10  9:16                             ` Vadim Rozenfeld
  0 siblings, 1 reply; 38+ messages in thread
From: Thomas Lau @ 2014-12-10  7:42 UTC (permalink / raw)
  To: Vadim Rozenfeld; +Cc: Zhang Haoyu, kvm, imammedo

I briefly tested Penryn, Westmere. Bug still could reproduce.

how could I set level, model and enforce on libvirt ?! I could also
test it if you could tell me how to add those options on libvirtd.

On Wed, Dec 10, 2014 at 2:19 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> On Wed, 2014-12-10 at 08:51 +0800, tlau@tetrioncapital.com wrote:
>> Hi,
>>
>> Anything you want me to try on my side?
>>
> There is an open bug in bugzilla which looks
> pretty similar to your problem
> https://bugzilla.redhat.com/show_bug.cgi?id=1139928
>
> Please take a look at comment #18 posted by Eduardo
>  https://bugzilla.redhat.com/show_bug.cgi?id=1139928#c18
>
> Best regards,
> Vadim.
>
>> Sent from my BlackBerry 10 smartphone.
>>
>> Thomas Lau
>> Director of Infrastructure
>> Tetrion Capital Limited
>>
>> Direct: +852-3976-8903
>> Mobile: +852-9323-9670
>> Address: 20/F, IFC 1, Central district, Hong Kong
>>   Original Message
>> From: Thomas Lau
>> Sent: Tuesday, 9 December, 2014 4:24 PM
>> To: Vadim Rozenfeld
>> Cc: Zhang Haoyu; kvm; imammedo
>> Subject: Re: Windows 7 VM BSOD
>>
>> Hi Vadim,
>>
>> Now turning on is OK somehow, shutdown still stuck.
>>
>> On Tue, Dec 9, 2014 at 4:03 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
>> > On Tue, 2014-12-09 at 15:54 +0800, Thomas Lau wrote:
>> >> I changed CPU type to Westmere, it boot up with 0x05C BSOD
>> >
>> > It should be four parameters printed on the screen, right below
>> > the error code string. Could you please post them?
>> >
>> > Vadim.
>> >
>> >>
>> >> On Tue, Dec 9, 2014 at 3:10 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
>> >> > On Tue, 2014-12-09 at 11:54 +0800, Thomas Lau wrote:
>> >> >> Hi Vadim,
>> >> >>
>> >> >> I want to quote back to your original post back in early 2014:
>> >> >> https://www.mail-archive.com/kvm@vger.kernel.org/msg99782.html
>> >> >>
>> >> >>
>> >> >> According to http://msdn.microsoft.com/en-us/library/windows/hardware/ff559069(v=vs.85).aspx
>> >> >> the 0x5C means HAL_INITIALIZATION_FAILED
>> >> >>
>> >> >> Problem matched exactly, which I am using CPU IvyBridge-EP and I got
>> >> >> same BSOD as well.
>> >> >
>> >> > Some CPU flags (feature bits) should be missing.
>> >> > Can you try changing cpu type?
>> >> >
>> >> > Best regards,
>> >> > Vadim.
>> >> >
>> >> >>
>> >> >> Are we missing some hyperv feature?
>> >> >>
>> >> >> On Wed, Dec 3, 2014 at 7:29 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
>> >> >> > If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
>> >> >> > it's just a matter of time when you hit 101 BOSD.
>> >> >> > Bugcheck 78 is quite rare one. What is your setup, and how easy it's
>> >> >> > reproducible?
>> >> >> >
>> >> >> > Best regards,
>> >> >> > Vadim.
>> >> >> >
>> >> >> > On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
>> >> >> >> "it works on your side" meaning that you had such issue but afterwards
>> >> >> >> it's all fixed by apply hv_relaxed ?
>> >> >> >>
>> >> >> >> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> >> >> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
>> >> >> >> >>
>> >> >> >> >> In fact I am doing testing now, but are we fixing one problem and
>> >> >> >> >> introduce other problem?!
>> >> >> >> >>
>> >> >> >> > I'm not sure about this, but it works on my side,
>> >> >> >> > I think BSOD(error:0x00000078) has been fixed,
>> >> >> >> > please show your environment.
>> >> >> >> >
>> >> >> >> > Thanks,
>> >> >> >> > Zhang Haoyu
>> >> >> >> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
>> >> >> >> >> > Hi,
>> >> >> >> >> >
>> >> >> >> >> > How do I know if my qemu-kvm version support this?
>> >> >> >> >> >
>> >> >> >> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> >> >> >> >> >>> Hi All,
>> >> >> >> >> >>>
>> >> >> >> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
>> >> >> >> >> >>> installation was fine, but it does random reboot by itself, the error
>> >> >> >> >> >>> code is 0x00000101, does anyone know how to fix this?
>> >> >> >> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
>> >> >> >> >> >>
>> >> >> >> >> >> Thanks,
>> >> >> >> >> >> Zhang Haoyu
>> >> >> >> >
>> >> >> >> --
>> >> >> >> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> >> >> >> the body of a message to majordomo@vger.kernel.org
>> >> >> >> More majordomo info at http://vger.kernel.org/majordomo-info.html
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>
>



-- 
Thomas Lau
Director of Infrastructure
Tetrion Capital Limited

Direct: +852-3976-8903
Mobile: +852-9323-9670
Address: 20/F, IFC 1, Central district, Hong Kong

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Windows 7 VM BSOD
  2014-12-10  7:42                           ` Thomas Lau
@ 2014-12-10  9:16                             ` Vadim Rozenfeld
  0 siblings, 0 replies; 38+ messages in thread
From: Vadim Rozenfeld @ 2014-12-10  9:16 UTC (permalink / raw)
  To: Thomas Lau; +Cc: Zhang Haoyu, kvm, imammedo

On Wed, 2014-12-10 at 15:42 +0800, Thomas Lau wrote:
> I briefly tested Penryn, Westmere. Bug still could reproduce.
> 

It should be four parameters printed on the screen, right below
the error code string. Could you please post them? 

> how could I set level, model and enforce on libvirt ?! I could also
> test it if you could tell me how to add those options on libvirtd.

Sorry, have no idea how to deal with libvirt.

> 
> On Wed, Dec 10, 2014 at 2:19 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> > On Wed, 2014-12-10 at 08:51 +0800, tlau@tetrioncapital.com wrote:
> >> Hi,
> >>
> >> Anything you want me to try on my side?
> >>
> > There is an open bug in bugzilla which looks
> > pretty similar to your problem
> > https://bugzilla.redhat.com/show_bug.cgi?id=1139928
> >
> > Please take a look at comment #18 posted by Eduardo
> >  https://bugzilla.redhat.com/show_bug.cgi?id=1139928#c18
> >
> > Best regards,
> > Vadim.
> >
> >> Sent from my BlackBerry 10 smartphone.
> >>
> >> Thomas Lau
> >> Director of Infrastructure
> >> Tetrion Capital Limited
> >>
> >> Direct: +852-3976-8903
> >> Mobile: +852-9323-9670
> >> Address: 20/F, IFC 1, Central district, Hong Kong
> >>   Original Message
> >> From: Thomas Lau
> >> Sent: Tuesday, 9 December, 2014 4:24 PM
> >> To: Vadim Rozenfeld
> >> Cc: Zhang Haoyu; kvm; imammedo
> >> Subject: Re: Windows 7 VM BSOD
> >>
> >> Hi Vadim,
> >>
> >> Now turning on is OK somehow, shutdown still stuck.
> >>
> >> On Tue, Dec 9, 2014 at 4:03 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> >> > On Tue, 2014-12-09 at 15:54 +0800, Thomas Lau wrote:
> >> >> I changed CPU type to Westmere, it boot up with 0x05C BSOD
> >> >
> >> > It should be four parameters printed on the screen, right below
> >> > the error code string. Could you please post them?
> >> >
> >> > Vadim.
> >> >
> >> >>
> >> >> On Tue, Dec 9, 2014 at 3:10 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> >> >> > On Tue, 2014-12-09 at 11:54 +0800, Thomas Lau wrote:
> >> >> >> Hi Vadim,
> >> >> >>
> >> >> >> I want to quote back to your original post back in early 2014:
> >> >> >> https://www.mail-archive.com/kvm@vger.kernel.org/msg99782.html
> >> >> >>
> >> >> >>
> >> >> >> According to http://msdn.microsoft.com/en-us/library/windows/hardware/ff559069(v=vs.85).aspx
> >> >> >> the 0x5C means HAL_INITIALIZATION_FAILED
> >> >> >>
> >> >> >> Problem matched exactly, which I am using CPU IvyBridge-EP and I got
> >> >> >> same BSOD as well.
> >> >> >
> >> >> > Some CPU flags (feature bits) should be missing.
> >> >> > Can you try changing cpu type?
> >> >> >
> >> >> > Best regards,
> >> >> > Vadim.
> >> >> >
> >> >> >>
> >> >> >> Are we missing some hyperv feature?
> >> >> >>
> >> >> >> On Wed, Dec 3, 2014 at 7:29 PM, Vadim Rozenfeld <vrozenfe@redhat.com> wrote:
> >> >> >> > If you run WS2008(R2) or Win7 - always turn on relaxed timing. Otherwise
> >> >> >> > it's just a matter of time when you hit 101 BOSD.
> >> >> >> > Bugcheck 78 is quite rare one. What is your setup, and how easy it's
> >> >> >> > reproducible?
> >> >> >> >
> >> >> >> > Best regards,
> >> >> >> > Vadim.
> >> >> >> >
> >> >> >> > On Wed, 2014-12-03 at 19:13 +0800, Thomas Lau wrote:
> >> >> >> >> "it works on your side" meaning that you had such issue but afterwards
> >> >> >> >> it's all fixed by apply hv_relaxed ?
> >> >> >> >>
> >> >> >> >> On Wed, Dec 3, 2014 at 7:08 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> >> >> >> >> https://bugzilla.redhat.com/show_bug.cgi?id=893857
> >> >> >> >> >>
> >> >> >> >> >> In fact I am doing testing now, but are we fixing one problem and
> >> >> >> >> >> introduce other problem?!
> >> >> >> >> >>
> >> >> >> >> > I'm not sure about this, but it works on my side,
> >> >> >> >> > I think BSOD(error:0x00000078) has been fixed,
> >> >> >> >> > please show your environment.
> >> >> >> >> >
> >> >> >> >> > Thanks,
> >> >> >> >> > Zhang Haoyu
> >> >> >> >> >> On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau <tlau@tetrioncapital.com> wrote:
> >> >> >> >> >> > Hi,
> >> >> >> >> >> >
> >> >> >> >> >> > How do I know if my qemu-kvm version support this?
> >> >> >> >> >> >
> >> >> >> >> >> > On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
> >> >> >> >> >> >>> Hi All,
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> I am running 3.13.0-24-generic kernel on Ubuntu 14, Windows 7 VM
> >> >> >> >> >> >>> installation was fine, but it does random reboot by itself, the error
> >> >> >> >> >> >>> code is 0x00000101, does anyone know how to fix this?
> >> >> >> >> >> >> Could you try hv_relaxed, like "-cpu kvm64,hv_relaxed".
> >> >> >> >> >> >>
> >> >> >> >> >> >> Thanks,
> >> >> >> >> >> >> Zhang Haoyu
> >> >> >> >> >
> >> >> >> >> --
> >> >> >> >> To unsubscribe from this list: send the line "unsubscribe kvm" in
> >> >> >> >> the body of a message to majordomo@vger.kernel.org
> >> >> >> >> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >>
> >
> >
> 
> 
> 



^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2014-12-10  9:17 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-03 10:18 Windows 7 VM BSOD Thomas Lau
2014-12-03 10:25 ` Zhang Haoyu
2014-12-03 10:36   ` Thomas Lau
2014-12-03 10:56     ` Thomas Lau
2014-12-03 11:08       ` Zhang Haoyu
2014-12-03 11:13         ` Thomas Lau
2014-12-03 11:29           ` Vadim Rozenfeld
2014-12-03 11:36             ` tlau
2014-12-03 12:14               ` Vadim Rozenfeld
2014-12-03 14:51                 ` Thomas Lau
2014-12-03 15:05                   ` Thomas Lau
2014-12-04  1:24               ` Zhang Haoyu
2014-12-04  1:34                 ` Thomas Lau
2014-12-04  1:45                   ` Thomas Lau
2014-12-04  2:01                     ` Zhang Haoyu
2014-12-04  2:02                       ` Thomas Lau
2014-12-04  2:06                         ` Zhang Haoyu
2014-12-04  2:48                           ` Thomas Lau
2014-12-04  4:32                             ` Zhang Haoyu
2014-12-04  6:22                               ` Thomas Lau
2014-12-04  6:24                                 ` Thomas Lau
2014-12-04  7:15                                   ` Zhang Haoyu
2014-12-04  8:37                                     ` Thomas Lau
2014-12-04  9:09                                       ` Thomas Lau
2014-12-04  9:19                                       ` Zhang Haoyu
2014-12-04  9:20                                         ` Thomas Lau
2014-12-04  8:36                             ` Vadim Rozenfeld
2014-12-09  3:54             ` Thomas Lau
2014-12-09  7:10               ` Vadim Rozenfeld
2014-12-09  7:54                 ` Thomas Lau
2014-12-09  8:03                   ` Vadim Rozenfeld
2014-12-09  8:24                     ` Thomas Lau
2014-12-10  0:51                       ` tlau
2014-12-10  6:19                         ` Vadim Rozenfeld
2014-12-10  7:42                           ` Thomas Lau
2014-12-10  9:16                             ` Vadim Rozenfeld
2014-12-03 11:01     ` Zhang Haoyu
2014-12-03 11:04       ` Thomas Lau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox