Re: Windows 7 VM BSOD

2014-12-10 Thread Vadim Rozenfeld
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 vroze...@redhat.com wrote:
  On Wed, 2014-12-10 at 08:51 +0800, t...@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 vroze...@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 vroze...@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 
vroze...@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 zhan...@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:0x0078) has been fixed,
  please show your environment.
 
  Thanks,
  Zhang Haoyu
  On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
  t...@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 
   zhan...@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 0x0101, 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 majord...@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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-09 Thread Vadim Rozenfeld
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 vroze...@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 vroze...@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 zhan...@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:0x0078) has been fixed,
please show your environment.
   
Thanks,
Zhang Haoyu
On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-09 Thread Thomas Lau
Hi Vadim,

Now turning on is OK somehow, shutdown still stuck.

On Tue, Dec 9, 2014 at 4:03 PM, Vadim Rozenfeld vroze...@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 vroze...@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 vroze...@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 zhan...@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:0x0078) has been fixed,
please show your environment.
   
Thanks,
Zhang Haoyu
On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
t...@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 zhan...@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 0x0101, 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 majord...@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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-09 Thread tlau
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 vroze...@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 vroze...@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 vroze...@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 zhan...@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:0x0078) has been fixed,
please show your environment.
   
Thanks,
Zhang Haoyu
On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
t...@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 zhan...@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 0x0101, 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 majord...@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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-09 Thread Vadim Rozenfeld
On Wed, 2014-12-10 at 08:51 +0800, t...@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 vroze...@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 vroze...@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 vroze...@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 zhan...@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:0x0078) has been fixed,
 please show your environment.

 Thanks,
 Zhang Haoyu
 On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
 t...@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 
  zhan...@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 0x0101, 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 majord...@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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-09 Thread Thomas Lau
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 vroze...@redhat.com wrote:
 On Wed, 2014-12-10 at 08:51 +0800, t...@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 vroze...@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 vroze...@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 vroze...@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 zhan...@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:0x0078) has been fixed,
 please show your environment.

 Thanks,
 Zhang Haoyu
 On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
 t...@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 
  zhan...@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 0x0101, 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 majord...@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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-08 Thread Thomas Lau
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 vroze...@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 zhan...@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:0x0078) has been fixed,
  please show your environment.
 
  Thanks,
  Zhang Haoyu
  On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-08 Thread Vadim Rozenfeld
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 vroze...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-08 Thread Thomas Lau
I changed CPU type to Westmere, it boot up with 0x05C BSOD

On Tue, Dec 9, 2014 at 3:10 PM, Vadim Rozenfeld vroze...@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 vroze...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-04 Thread Vadim Rozenfeld
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 zhan...@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 zhan...@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 t...@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 zhan...@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 zhan...@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:0x0078) has been fixed,
please show your environment.
   
Thanks,
Zhang Haoyu
On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
t...@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 
 zhan...@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 0x0101, 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
 
 
 
 


--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-04 Thread Thomas Lau
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 zhan...@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 t...@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 zhan...@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 zhan...@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 zhan...@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 t...@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 zhan...@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 
  zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
   t...@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 
zhan...@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 0x0101, 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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-04 Thread Thomas Lau
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 t...@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 zhan...@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 t...@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 zhan...@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 zhan...@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 zhan...@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 t...@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 zhan...@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 
  zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
   t...@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 
zhan...@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 0x0101, 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
--
To unsubscribe from this list: send the line unsubscribe kvm

Re: Windows 7 VM BSOD

2014-12-04 Thread Zhang Haoyu
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 zhan...@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 t...@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 zhan...@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 zhan...@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 zhan...@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 t...@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 zhan...@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 
  zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
   t...@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 
zhan...@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 0x0101, 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

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-04 Thread Thomas Lau
I would stick with reading changelog and save some trouble!

On Thu, Dec 4, 2014 at 5:19 PM, Zhang Haoyu zhan...@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 zhan...@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 t...@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 zhan...@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 zhan...@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 zhan...@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 t...@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 zhan...@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 
  zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
   t...@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 
zhan...@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 0x0101, 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
--
To unsubscribe from this list: send the line unsubscribe

Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 0x0101, does anyone know how to fix this?
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
 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 0x0101, 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
Hi,

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

On Wed, Dec 3, 2014 at 6:25 PM, Zhang Haoyu zhan...@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 0x0101, 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 t...@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 zhan...@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 0x0101, 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
 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 zhan...@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 0x0101, 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 zhan...@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 zhan...@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 0x0101, 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
 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:0x0078) has been fixed,
please show your environment.

Thanks,
Zhang Haoyu
 On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 zhan...@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:0x0078) has been fixed,
 please show your environment.

 Thanks,
 Zhang Haoyu
 On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Vadim Rozenfeld
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 zhan...@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:0x0078) has been fixed,
  please show your environment.
 
  Thanks,
  Zhang Haoyu
  On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread tlau
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 zhan...@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:0x0078) has been fixed,
  please show your environment.
 
  Thanks,
  Zhang Haoyu
  On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Vadim Rozenfeld
On Wed, 2014-12-03 at 19:36 +0800, t...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@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 majord...@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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 vroze...@redhat.com wrote:
 On Wed, 2014-12-03 at 19:36 +0800, t...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@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 majord...@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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 t...@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 vroze...@redhat.com wrote:
 On Wed, 2014-12-03 at 19:36 +0800, t...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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 majord...@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 majord...@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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
 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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, does anyone know how to fix this?
Could you try hv_relaxed, like -cpu kvm64,hv_relaxed.
   
Thanks,
Zhang Haoyu
N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·¤¾h§¶›¡Ü¨}©ž²Æ 
zÚj:+v‰¨¾«‘êçzZ+€Ê+zf£¢·hšˆ§~†­†Ûiÿûàz¹®w¥¢¸?™¨è­Ú¢)ߢf

Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 zhan...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
I just confirmed that vapic is causing win7 stuck.

On Thu, Dec 4, 2014 at 9:34 AM, Thomas Lau t...@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 zhan...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
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 t...@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 zhan...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 zhan...@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 t...@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 zhan...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau t...@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 zhan...@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 0x0101, 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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
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 zhan...@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 t...@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 zhan...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
   t...@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 zhan...@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 0x0101, 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

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 zhan...@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 zhan...@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 t...@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 zhan...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
   t...@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 
zhan...@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 0x0101, 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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
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 zhan...@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 zhan...@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 t...@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 zhan...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
   t...@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 
zhan...@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 0x0101, 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

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 zhan...@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 zhan...@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 zhan...@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 t...@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 zhan...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
   t...@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 
zhan...@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 0x0101, 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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Thomas Lau
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 t...@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 zhan...@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 zhan...@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 zhan...@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 t...@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 zhan...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
   t...@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 
zhan...@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 0x0101, 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
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Windows 7 VM BSOD

2014-12-03 Thread Zhang Haoyu
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 t...@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 zhan...@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 zhan...@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 zhan...@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 t...@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 zhan...@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 zhan...@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:0x0078) has been fixed,
   please show your environment.
  
   Thanks,
   Zhang Haoyu
   On Wed, Dec 3, 2014 at 6:36 PM, Thomas Lau 
   t...@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 
zhan...@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 0x0101, 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

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html