<div>Hi valdis,</div><div>Thank you for treating the patch prudentially. I do  compile the patch and tested it before submitted.</div><div>But  I really didn't  see the warnings or errors , please forgive me for my fault. Patch has been modifyed and verified again this time.</div><div>Thank you again!</div><br><div id="">--------------------------------<br></div><div id="">
<div>Best Regards!</div>
<div>Journey</div>
<br></div><br><div id="origbody"><div style="background: #f2f2f2;">----- 原始邮件 -----<br>发件人:valdis.kletnieks@vt.edu<br>收件人:callmejourney@sina.com<br>抄送人:"vbox-dev" <vbox-dev@virtualbox.org>, "journeyren" <journeyren@zhaoxin.com><br>主题:Re: [vbox-dev] update the patch--patch for " Shanghai " cpu can't use virtualbox<br>日期:2018年12月24日 12点27分<br></div><br><br>On Mon, 24 Dec 2018 11:34:55 +0800, callmejourney@sina.com said:<br>> Hi,    Recently, when we install win7(32bit) on virtualbox on Ubuntu, we have<br>> a problem. To solve the problem,Update the patch I uploaded before.<br>diff -uprN origin/VirtualBox-5.2.22/src/VBox/HostDrivers/Support/SUPDrv.cpp journey/VirtualBox-5.2.22/src/VBox/HostDrivers/Support/SUPDrv.cpp<br>--- origin/VirtualBox-5.2.22/src/VBox/HostDrivers/Support/SUPDrv.cpp   2018-11-09 03:41:49.000000000 +0800<br>+++ journey/VirtualBox-5.2.22/src/VBox/HostDrivers/Support/SUPDrv.cpp      2018-12-21 15:21:05.752759032 +0800<br>@@ -4171,7 +4171,8 @@ SUPR0DECL(int) SUPR0GetVmxUsability(bool<br>         ASMCpuId(0, &uMaxId, &uVendorEBX, &uVendorECX, &uVendorEDX);<br>         Assert(ASMIsValidStdRange(uMaxId));<br>         Assert(   ASMIsIntelCpuEx(     uVendorEBX, uVendorECX, uVendorEDX)<br>-               || ASMIsViaCentaurCpuEx(uVendorEBX, uVendorECX, uVendorEDX));<br>+               || ASMIsViaCentaurCpuEx(uVendorEBX, uVendorECX, uVendorEDX);<br>+               || ASMIsZxCpuEx(uVendorEBX, uVendorECX, uVendorEDX)); //add by Journey<br>This patch was obviously not compile tested - you have an extra ';' on the frst added line.<br></div>