[vbox-dev] 回复:Re: update the patch--patch for " Shanghai " cpu can't use virtualbox

callmejourney at sina.com callmejourney at sina.com
Mon Dec 24 05:04:31 GMT 2018


Hi valdis,Thank you for treating the patch prudentially. I do  compile the patch and tested it before submitted.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.Thank you again!
--------------------------------

Best Regards!
Journey


----- 原始邮件 -----
发件人:valdis.kletnieks at vt.edu
收件人:callmejourney at sina.com
抄送人:"vbox-dev" <vbox-dev at virtualbox.org>, "journeyren" <journeyren at zhaoxin.com>
主题:Re: [vbox-dev] update the patch--patch for " Shanghai " cpu can't use virtualbox
日期:2018年12月24日 12点27分


On Mon, 24 Dec 2018 11:34:55 +0800, callmejourney at sina.com said:
> Hi,    Recently, when we install win7(32bit) on virtualbox on Ubuntu, we have
> a problem. To solve the problem,Update the patch I uploaded before.
diff -uprN origin/VirtualBox-5.2.22/src/VBox/HostDrivers/Support/SUPDrv.cpp journey/VirtualBox-5.2.22/src/VBox/HostDrivers/Support/SUPDrv.cpp
--- origin/VirtualBox-5.2.22/src/VBox/HostDrivers/Support/SUPDrv.cpp	2018-11-09 03:41:49.000000000 +0800
+++ journey/VirtualBox-5.2.22/src/VBox/HostDrivers/Support/SUPDrv.cpp	2018-12-21 15:21:05.752759032 +0800
@@ -4171,7 +4171,8 @@ SUPR0DECL(int) SUPR0GetVmxUsability(bool
         ASMCpuId(0, &uMaxId, &uVendorEBX, &uVendorECX, &uVendorEDX);
         Assert(ASMIsValidStdRange(uMaxId));
         Assert(   ASMIsIntelCpuEx(     uVendorEBX, uVendorECX, uVendorEDX)
-               || ASMIsViaCentaurCpuEx(uVendorEBX, uVendorECX, uVendorEDX));
+               || ASMIsViaCentaurCpuEx(uVendorEBX, uVendorECX, uVendorEDX);
+               || ASMIsZxCpuEx(uVendorEBX, uVendorECX, uVendorEDX)); //add by Journey
This patch was obviously not compile tested - you have an extra ';' on the frst added line.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20181224/ebd88961/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VBox5.2.22_patch_on_ZX_base_Ubuntu14.04.5
Type: application/octet-stream
Size: 47716 bytes
Desc: not available
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20181224/ebd88961/attachment.obj>


More information about the vbox-dev mailing list