linux\u865a\u62df\u673a \u4e3b\u673a<\/strong>\uff0c\u5e76\u91c7\u53d6\u5408\u9002\u7684\u53cd\u5e94\u8c34\u8d23\u5165\u4fb5\u6216\u8c34\u8d23\u50f5\u5c38\u673a\u7684\u529f\u51fb\u3002<\/p>\nCaveats\u8b66\u544a:<\/p>\n
PR1\u4e00\u4e2a\u4ece\u987e\u5ba2\u673a\u5230\u5bbf\u4e3b\u673a\u7684\u901a\u4fe1\u901a\u9053\u88ab\u8981\u6c42\uff0c\u5bbf\u4e3b\u673a\u53bb\u8bfb\u6709\u7528\u7684\u6570\u636e\uff0c\u5e76\u4ece\u987e\u5ba2\u673a\u62bd\u53d6\u4fe1\u606f\uff0c\u5e76\u4e14\u5b83\u5fc5\u987b\u88ab\u9690\u85cf\u5728\u987e\u5ba2\u673a\u7684\u7528\u6237\u7a7a\u95f4\uff08\u53c2\u8003RQ1\uff09\u3002<\/p>\n
PR2\u4e00\u4e2a\u4ece\u987e\u5ba2\u673a\u5230\u5bbf\u4e3b\u673a\u7684\u8baf\u53f7\u901a\u9053\u5bb9\u8bb8\u5bbf\u4e3b\u673a\u5728\u987e\u5ba2\u673a\u53d1\u751f\u98ce\u6ce2\u65f6\u88ab\u63d0\u793a\uff0c\u7136\u800c\u8fd9\u79cd\u5e94\u5f53\u88ab\u5c3d\u53ef\u80fd\u5730\u9690\u85cf\uff08\u53c2\u8003RQ1\uff09\u3002<\/p>\n
PR3\u4e00\u4e9b\u5728\u901a\u9053\u4e0a\u7684\u5b58\u53d6\u63a7\u5236\u88ab\u8981\u6c42\uff0c\u4e3a\u4e86\u53bb\u4fdd\u8bc1\u4e00\u81f4\u6027\uff0c\u540c\u65f6\u4fdd\u62a4\u4fe1\u606f\u6cc4\u6f0f\uff1b\u8fd9\u6837\uff0c\u4e00\u4e2a\u5b58\u53d6\u63a7\u5236\u673a\u5236\u4e0d\u4f1a\u6709\u5bf9\u6027\u80fd\u7684\u8d1f\u9762\u5f71\u54cd\u3002<\/p>\n
\u4e94\u3001KVMSEC\u6267\u884c<\/p>\n
\u6211\u4eec\u6267\u884cKvmSec\u7684\u539f\u578b\uff0c\u53bb\u5426\u8ba4\u6211\u4eec\u7684\u76ee\u6807\u662f\u53ef\u884c\u7684\u3002KvmSec\u6784\u67b6\u662f\u7531\u597d\u591a\u5728\u5bbf\u4e3b\u673a\u548c\u987e\u5ba2\u673a\u5185\u6838\u4e0a\u7684\u6a21\u5757\uff08\u53ef\u9009\uff09\u6784\u6210\uff0c\u5b83\u4eec\u901a\u4fe1\u901a\u8fc7\u5b89\u5168\u901a\u9053\uff0c\u4f7f\u5bbf\u4e3b\u673a\u5f97\u5230\u6b63\u786e\u7684\u987e\u5ba2\u673a\u72b6\u6001\u3002\u68c0\u6d4b\u7cfb\u7edf\u7684\u4e3b\u6a21\u5757\u5b9a\u4f4d\u4e8e\u5bbf\u4e3b\u673a\u4e0a\uff0c\u81f4\u4f7f\u5728\u987e\u5ba2\u673a\u4e0a\u7684\u529f\u51fb\u8005\u5f88\u96be\u8bbf\u95ee\u5bbf\u4e3b\u673a\u3002\u6570\u636e\uff1a\uff08a\uff09\u80fd\u88ab\u987e\u5ba2\u673a\u8fdb\u7a0b\u641c\u96c6\u6216\uff08b\uff09\u80fd\u88ab\u5bbf\u4e3b\u673a\u4e0a\u7684\u8fdb\u7a0b\u72ec\u5360\u7684\u641c\u96c6\u5e76\u6267\u884c\u3002<\/p>\n
\u975e\u5e38\u5730\uff0c\uff08a\uff09\u51c6\u8bb8\u641c\u96c6\u66f4\u786e\u5207\u7684\u4e0e\u5b8c\u6574\u7684\u987e\u5ba2\u673a\u6570\u636e\uff0c\u5e76\u4e14\u5bb9\u6613\u88ab\u6d4b\u91cf\u3002\u4e00\u4e2a\u987e\u5ba2\u673a\u5b88\u62a4\u8fdb\u7a0b\u4e3b\u8981\u641c\u96c6\u6570\u636e\uff0c\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u5bbf\u4e3b\u673a\u964d\u4f4e\u4f30\u7b97\u8d1f\u8f7d\u3002\u4f46\u662f\uff0c\u5728\u76d1\u63a7\u7cfb\u7edf\u7684\u9690\u853d\u6027\u548c\u964d\u4f4e\u5bbf\u4e3b\u673a\u4f30\u7b97\u8d1f\u8f7d\u6709\u6298\u4e2d\u3002\u5bf9\u4e8e\uff08b\uff09\uff08\u6ca1\u6709\u987e\u5ba2\u673a\u7ec4\u4ef6\uff09\u8fd9\u4e2a\u6280\u672f\u7406\u8bba\u4e0a\u964d\u4f4e\u88ab\u63a2\u6d4b\uff08\u770bRQ1\uff09\uff0c\u5e76\u4e14\u4ec5\u5bb9\u8bb8\u6709\u9650\u7684\u76d1\u63a7\u3002\u7531\u4e8e\u8fd9\u4e2a\u7f18\u7531\uff0cKvmSec\u66f4\u559c\u6b22\uff08a\uff09\uff0c\u800c\uff08b\uff09\u4e5f\u88ab\u652f\u6301\u3002<\/p>\n
\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u5728KvmSec\u4e2d\u6bcf\u4f4d\u865a\u62df\u673a\u4f7f\u7528\u5b83\u81ea\u5df1\u79c1\u6709\u7684\u663e\u5b58\u533a\u4e0e\u5bbf\u4e3b\u673a\u901a\u8baf\uff0c\u5b83\u5b8c\u5168\u72ec\u7acb\u4e8e\u5176\u4ed6\u865a\u62df\u673a\uff08\u53c2\u8003RQ2\uff09\u3002<\/p>\n
KvmSec\u6267\u884c\uff08\u770b\u56fe2\uff09\u88ab\u5206\u4e3a2\u4e2a\u4e3b\u8981\u90e8\u4efd\uff1a\u5bbf\u4e3b\u673a\u548c\u987e\u5ba2\u673a\u3002\u4e8c\u8005\u6709\u76f8\u50cf\u7684\u7ed3\u6784\uff0c\u5b83\u662f\uff1a1\uff09\u4e00\u4e2a\u5185\u6838\u5b88\u62a4\u8fdb\u7a0b\u7ba1\u7406\u4e0e\u5171\u4eab\u901a\u8baf\u901a\u9053\uff1b2\uff09\u4e00\u4e2a\u6a21\u5757\u52a8\u6001\u6536\u6d88\u606f\uff0c\u5256\u6790\u5b83\u4eec\u5e76\u53cd\u5e94\uff08\u751f\u6210\u54cd\u5e94\uff09\u3002<\/p>\n
\u5728\u4e0b\u8fb9\u6211\u4eec\u4e3b\u8981\u5217\u4e3e\u6211\u4eec\u91c7\u7eb3\u7684\u5bf9\u4e8eKvmSec\u7684\u89e3\u51b3\u65b9\u6848\u7684\u5927\u7eb2\uff0c\u54cd\u5e94\u6211\u4eec\u9762\u5bf9\u7684\u6280\u672f\u95ee\u9898\uff0c\u540c\u65f6\u9075\u7167\u539f\u5148\u7684\u8981\u6c42\uff1a<\/p>\n
<\/p>\n
SL1\u5bbf\u4e3b\u673a\u987e\u5ba2\u673a\u901a\u8baf\u7cfb\u7edf\u5728KVM\u4e2d\u4e0d\u53ef\u7528\uff0c\u6211\u4eec\u4e0d\u5f97\u4e0d\u4f7f\u7528\u5171\u4eab\u663e\u5b58\u7684\u65b9\u6cd5\u4f7f\u4e4b\u901a\u8baf\uff08\u770bPR1\uff09\u3002<\/p>\n
SL2\u5728KVM\u4e2d\u6ca1\u6709\u5bbf\u4e3b\u673a\u548c\u987e\u5ba2\u673a\u8baf\u53f7\u901a\u9053\u5f15\u8d77\u6211\u4eec\u8bbe\u8ba1\u4f7f\u7528\u5171\u4eab\u663e\u5b58\u7684\u8baf\u53f7\u673a\u5236\uff08\u770bPR2\uff09\u3002\u6211\u4eec\u4e5f\u4e0d\u9009\u62e9Xen\u7684\u98ce\u6ce2\u901a\u9053\uff0c\u7531\u4e8e\u90a3\u6837\u5b9e\u73b0\u8baf\u53f7\u901a\u9053\u65f6\uff0c\u81f4\u4f7fKvmSec\u5bf9\u4e8e\u65e9\u5df2\u5728\u987e\u5ba2\u673a\u7684\u529f\u51fb\u8005\u80fd\u770b\u89c1\u3002<\/p>\n
SL3\u5728KVM\u4e2d\u7f3a\u5c11\u5171\u4eab\u663e\u5b58\u7684\u5b58\u53d6\u63a7\u5236\u4f7f\u6211\u4eec\u5728\u5171\u4eab\u663e\u5b58\u4e2d\u540c\u6b65\u5bbf\u4e3b\u673a\u4e0e\u987e\u5ba2\u673a\u3002\u4e3a\u4e86\u7b80\u5316\u5b58\u53d6\u63a7\u5236\u7ba1\u7406\uff0c\u6bcf\u4f4dKvmSec\u865a\u62df\u673a\u63d0\u4f9b\u5b83\u81ea\u5df1\u7684\u5171\u4eab\u663e\u5b58\u533a\u4e3a\u548c\u5bbf\u4e3b\u673a\u901a\u4fe1\u3002\u5e76\u4e14\uff0c\u5bf9\u4e8e\u4e24\u4e2a\u53cc\u5411\u901a\u9053\u7684\u6bcf\u4e00\u4e2a\uff0c\u7b80\u5355\u7684\u9501\u5b9a\u673a\u5236\u88ab\u6267\u884c\uff0c\u4e3a\u4e86\u5728\u6d88\u606f\u901a\u884c\u65f6\u53bb\u540c\u6b65\u5b58\u53d6\u3002<\/p>\n
\u5728KVM\u4e2d\uff0c\u4e0d\u50cfXen\uff0c\u5171\u4eab\u663e\u5b58\u4e0d\u88abhypervisor\u76f4\u63a5\u7ba1\u7406\uff0c\u800c\u662f\u88ab\u4e3b\u6a21\u62df\u8fdb\u7a0bQemu-KVM\u7ba1\u7406\u3002\u4f7f\u7528\u5171\u4eab\u663e\u5b58\u7684\u901a\u8baf\u901a\u9053\u548cRQ1\u662f\u4e00\u81f4\u7684\u3002\u5b9e\u9645\u4e0a\uff0c\u5728\u5bbf\u4e3b\u673a\u548c\u987e\u5ba2\u673a\u95f4\u4f7f\u7528\u4e00\u4e2a\u865a\u62df\u7f51\u8def\u5957\u63a5\u5b57\u7684\u7ed3\u679c\u662f\u53ef\u89c1\u7684\u5e76\u5728\u5fd7\u613f\u901a\u8baf\u901a\u9053\u4e2d\uff08\u6b63\u50cf\u53d1\u751f\u5728AIDE[1]\u4e2d\uff09\u3002\u5e76\u4e14\uff0c\u6d88\u606f\u53e5\u67c4\u88ab\u5305\u542b\u5728\u987e\u5ba2\u673a\u5185\u6838\u6a21\u5757\u4e2d\u4e3a\u4e86\u4f7f\u5b83\u5c3d\u53ef\u80fd\u7684\u5b89\u5168\uff0c\u548cRQ2\u4e00\u81f4\u3002\u5728\u5bbf\u4e3b\u673a\u4e0a\uff0c\u6d88\u606f\u53e5\u67c4\u662f\u5728Qemu-KVM\u5171\u4eab\u663e\u5b58\u7ba1\u7406\u6a21\u5757\u4e2d\u6267\u884c\u3002KVM\u5171\u4eab\u663e\u5b58\uff08\u770b\u56fe3\uff09\u75312\u4e2a\u6570\u636e\u7f13\u5b58\u548c2\u4e2a\u9501\u7ec4\u6210\uff0c\u4e3a\u4fdd\u62a4\u76f8\u5e94\u7684\u5173\u952e\u533a\u3002<\/p>\n
<\/p>\n
\u53bb\u6ee1\u8db3RQ4KvmSec\u5e94\u5f53\u80fd\u6d3b\u52a8\u5730\u76d1\u63a7\u8fd0\u884c\u5728\u987e\u5ba2\u673a\u4e0a\u7684\u5173\u952e\u8fdb\u7a0b\u3002\u76ee\u524d\uff0c\u8fd9\u4e9b\u529f\u80fd\u6ca1\u6709\u5b8c\u5168\u5b9e\u73b0\uff1b\u4f46\u662f\uff0cKvmSec\u80fd\u9636\u6bb5\u5730\u68c0\u6d4b\u987e\u5ba2\u673a\u4e0a\u7684\u5b58\u5728\u7684\u548c\u6d3b\u8dc3\u7684\u5b88\u62a4\u8fdb\u7a0b\u6570\u76ee\u3002\u82e5\u679c\u8fd9\u79cd\u8fdb\u7a0b\u5176\u4e2d\u4e00\u4e2a\uff08\u975e\u6b63\u5e38\uff09\u4e2d\u6b62\uff0c\u5bbf\u4e3b\u673a\u5c06\u91c7\u53d6\u5408\u9002\u7684\u7edf\u8ba1\uff0c\u5305\u62ec\u641c\u96c6\u6570\u636e\u4e3a\u9274\u522b\u5256\u6790\uff0c\u751a\u81f3\u51bb\u7ed3\u987e\u5ba2\u673a\u6216\u53ef\u80fd\u91cd\u542f\u52a8\u5b83\uff08\u4f7f\u7528\u53ef\u7528\u7684\u5e72\u51c0\u7684c\u76d8\u955c\u50cf\uff09\u3002KvmSec\u80fd\u521b\u5efa\u4e00\u4e2a\u5bbf\u4e3b\u673a\u65b9\u7684\u6570\u636e\u5e93\uff0c\u5305\u542b\u865a\u62df\u673a\u4e0a\u9009\u53d6\u7684\u5173\u952e\u8def\u5f84\u6587\u4ef6\u7684\u4f30\u7b97\u7684\u6982\u8981\u3002\u4e00\u4e2a\u8fd0\u884c\u65f6\u5b88\u62a4\u8fdb\u7a0b\u80fd\u91cd\u4f30\u7b97hash\u4e3a\u76d1\u63a7\u7684\u6587\u4ef6\u3002\u5018\u82e5\u4e0d\u5339\u914d\u53d1\u89c9\uff0c\u50cf\u524d\u9762\u6240\u63cf\u8ff0\u7684\u4e3e\u63aa\u5c06\u88ab\u6267\u884c\u3002<\/p>\n
\u5728\u5404\u7c7b\u6a21\u5757\u4e2d\u7684\u901a\u8baf\u5408\u540c\uff08\u770b\u56fe4\uff09\u662f\u76f8\u50cf\u7684\u3002\u5bbf\u4e3b\u673a\u548c\u987e\u5ba2\u673a\u660e\u663e\u7684\u533a\u522b\u662f\uff1a<\/p>\n
<\/p>\n
1.\u7ba1\u7406\u4e0e\u5206\u914d\u5171\u4eab\u663e\u5b58\uff1a\u5728\u987e\u5ba2\u673a\u4e0a\u5171\u4eab\u663e\u5b58\u88ab\u5206\u914d\u4e0e\u901a\u8fc7\u5185\u6838\u6a21\u5757\u7ba1\u7406\uff0c\u4f46\u662f\u5728\u5bbf\u4e3b\u673a\uff0c\u5171\u4eab\u663e\u5b58\u5fc5\u987b\u65e9\u5df2\u88ab\u5206\u914d\uff08\u5728\u865a\u62df\u673a\u4e2d\uff09\uff0c\u4f46\u662f\u5b83\u7684\u7ba1\u7406\u88ab\u59d4\u6d3e\u7ed9Qemu-KVM\u8fdb\u7a0b\u3002<\/p>\n
2.\u6a21\u5757\u6570\u76ee\uff1a\u5728\u865a\u62df\u673a\u4e2d\uff0c\u6211\u4eec\u53ea\u987b\u8981\u4e00\u5bf9\u6a21\u5757\uff0c\u7531\u4e8e\u5171\u4eab\u663e\u5b58\u7ba1\u7406\u88ab\u59d4\u6d3e\u7ed9\u5185\u6838\uff0c\u5728\u5bbf\u4e3b\u673a\u4e2d\uff0c\u6211\u4eec\u987b\u89813\u4e2a\u6a21\u5757\uff0c\u5c06\u5728\u4e0b\u4e00\u8282\u4e2d\u6269\u5145\u3002<\/p>\n
5.1KvmSec\u5bbf\u4e3b\u673a<\/p>\n
\u5bbf\u4e3b\u673a\u90e8\u4efd\u75313\u4e2a\u6a21\u5757\u7ec4\u6210\uff1aKvmSecD,DM,Qemu-KVM.<\/p>\n
(1)KvmSecD:\u5b83\u662f\u5b88\u62a4\u8fdb\u7a0b\u800c\u4e14\u8bbf\u95ee\u6240\u6709\u7684\u865a\u62df\u673a\u5730\u5740\u7a7a\u95f4\u3002\u636e\u6089\uff0c\u8fd9\u4e2a\u6a21\u5757\u6653\u5f97\u5176\u4ed62\u4e2a\u5bbf\u4e3b\u673a\u7684\u5b88\u62a4\u8fdb\u7a0b\uff08Qemu-KVM\u548cDM\uff09\uff0c\u7531\u4e8e\u90a32\u4e2a\u5b88\u62a4\u8fdb\u7a0b\u6ce8\u518c\u5b83\u4eec\u7684pid\u5230KvmSecD.<\/p>\n
\u901a\u4fe1\u901a\u9053\u671d\u5411DM\uff1aKvmSecD\u548cDM\u4e4b\u95f4\u7684\u901a\u8baf\u7531\u7ed3\u5408\u7684\u5b57\u7b26\u8bbe\u5907\uff08\u53ebchar_dev\uff09\u6240\u7ba1\u7406,\u7531DM\u901a\u8fc7IOCTL\u63d2\u53e3\u548cPOSIX\u8baf\u53f7\u63a7\u5236\u3002\u5b57\u7b26\u8bbe\u5907\u7684\u80fd\u529b\u4f7f\u7528IOCTL\u63d2\u53e3\u6269\u5145\uff0c\u901a\u8fc7\u5bb9\u8bb8\u4e00\u7cfb\u5217\u5b8f\u4e0e\u5185\u6838\u6a21\u5757\u4ea4\u4e92\uff0c\u8fd8\u5b9a\u4e49\u5230\u8fd9\u79cd\u8bbe\u5907\u7684\u8bbf\u95ee\u7b56\u7565\u3002<\/p>\n
\u5728\u6bcf\u4f4d\u901a\u4fe1\u9636\u6bb5\uff0c\u5185\u6838\u5143\u7d20\uff08\u4e5f\u5c31\u662fbuffers\uff09\u88ab\u5185\u6838\u6a21\u5757\u9501\u95e8\u800c\u4fdd\u62a4\u3002\uff08\u4e3a\u4e86\u8fd9\u4e2a\u76ee\u7684\u6211\u4eec\u7684\u4ee3\u7801\u4f7f\u7528\u4e0b\u8fb9\u7684\u539f\u59cb\u5143\u7d20\uff1asemaphores(semwait),mutexes(mux),atomicvariables(regandqemualive).\uff09\u3002\u8bbf\u95eebuffer\u901a\u8fc7\u4e00\u4e2a\u8fdb\u7a0b\uff08DM\uff09\u4f7f\u7528\u5b8f\u5b8c\u6210linux shell\uff0c\u7531\u4e8e\u5173\u952e\u533a\u57df\u65e9\u5df2\u88ab\u4fdd\u62a4\u3002\u5728\u8fd9\u4e9b\u5f62\u5f0f\u4e0b\uff0c\u7cfb\u7edf\u8d85\u8fc7\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u8fdb\u7a0b\u90fd\u53ef\u4ee5\u5347\u7ea7\uff0c\u7531\u4e8e\u5b83\u4eec\u8bbf\u95eebuffer\u901a\u8fc7\u8fd9\u79cd\u5b8f\u3002<\/p>\n
(2)DM\uff1aDM\u662f2\u4e2a\u7528\u6237\u7a7a\u95f4\u5b88\u62a4\u8fdb\u7a0b\u7684\u7b2c\u4e00\u4e2a\uff0c\u75312\u4e2a\u7ebf\u7a0b\u7ec4\u6210\uff1a<\/p>\n
1.DM-\u5b83\u662f\u4e3b\u8981\u7684\u7ebf\u7a0b\uff0c\u7ba1\u7406\uff1aa\uff09DM\u548cKvmSecD\uff0cDM\u548cQemu\u95f4\u7684\u901a\u4fe1\uff1bb\uff09\u8d2f\u4e32Qemu-KVM\u4ece\u5171\u4eab\u663e\u5b58\u521b\u5efa\u4e0e\u63a5\u6536\u6d88\u606f\uff1bc\uff09\u6ce8\u518cDM\u7684pid\u5230KvmSecD\u4e2d\u3002<\/p>\n
2.WATCHER-\u5b83\u662f\u7b2c\u4e8c\u4e2a\u7ebf\u7a0b\uff0c\u7ba1\u7406\uff1aa\uff09Qemu-KVM\u7684\u542f\u52a8\uff1bb\uff09\u6ce8\u518cQemu-KVM\u7684pid\u5230KvmSecD\u4e2d\uff1bc\uff09\u975e\u6b63\u5e38\u4e2d\u6b62Qemu-KVM\uff1b<\/p>\n
\u4e0eQemu\u7684\u901a\u8baf\u901a\u9053\uff1a\u65e2\u7136DM\u548cQemu\u8fdb\u7a0b\u5728\u7528\u6237\u7a7a\u95f4\u6267\u884c\uff0c\u6211\u4eec\u80fd\u4f7f\u7528\u4efb\u4f55LinuxSystemVIPC\u5de5\u5177\u4e3a\u8fdb\u7a0b\u95f4\u901a\u8baf\u3002\u7279\u6b8a\u5730\uff0c\u6211\u4eec\u4f7f\u7528PIPE\uff08\u6216FIFO\uff09<\/p>\n
(3)Qemu-KVM\uff1aQemu-KVM\u662f\u66f4\u6539\u7684Qemu\uff0c\u5b83\u4e0e\u5185\u6838\u6a21\u5757KVM\u5408\u5e76\u901a\u8baf\u673a\u5236\u3002<\/p>\n
Qemu\u4e0eVM\uff08hostandVM\uff09\u7684\u901a\u8baf\u5408\u540c:\u5728\u865a\u62df\u673a\u548c\u5bbf\u4e3b\u673a\u95f4\u7684\u901a\u8baf\u5408\u540c\u4f9d\u8d56\u540c\u6b65\u8bbf\u95ee\u5171\u4eab\u663e\u5b58\u533a\u3002Qemu\u4f7f\u7528cpu_physical_memory_rw\u51fd\u6570\u5bb9\u8bb8\u5199\u865a\u62df\u673a\u7684\u663e\u5b58\u3002Host-VM\u540c\u6b65\u6784\u5efa\u4e8e\u6b64\u51fd\u6570\u3002\u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e0b\uff0c\u591a\u5b58\u53d6\u8bfb\u5199\u7f13\u51b2\u662f\u540c\u6b65\u7684\uff0c\u53d7\u4fdd\u62a4\u7684\uff0c\u64cd\u4f5c\u7cfb\u7edf\u72ec\u7acb\u7684\u3002<\/p>\n
5.2KvmSec\u987e\u5ba2\u673a<\/p>\n
KvmSec\u987e\u5ba2\u673a\u75312\u4e2a\u6a21\u5757\u7ec4\u6210\uff1aKvmSecDVM\u548cDMVM<\/p>\n
(1)KvmSecDVM\uff1a\u5b83\u662fLinux\u5185\u6838\u5b88\u62a4\u8fdb\u7a0b\uff0c\u7ba1\u7406\u865a\u62df\u673a\u548c\u5bbf\u4e3b\u673a\u7684\u901a\u8baf\u3002\u8fd9\u4e2a\u5b88\u62a4\u8fdb\u7a0b\u5bf9\u5185\u6838\u663e\u5b58\u6709\u8bbf\u95ee\u6743\u3002\u8fd9\u4e2a\u6a21\u5757\u5206\u914d\u901a\u4fe1\u7528\u5171\u4eab\u663e\u5b58\u3002\u5e76\u4e14\uff0c\u6211\u4eec\u5206\u914d\u4e00\u4e2abuffer\u5bb9\u7eb3\u5171\u4eab\u663e\u5b58\u7684\u5316\u5b66\u5730\u5740\u3002\u901a\u8baf\u5408\u540c\u540c\u4e0a\u3002<\/p>\n
(2)DMVM\uff1a\u5b83\u662f\u4e00\u4e2a\u5b88\u62a4\u8fdb\u7a0b\uff0c\u5904\u7406\u76d1\u63a7\uff0c\u5256\u6790\uff0c\u521b\u5efa\u54cd\u5e94\u7684\u4efb\u52a1\u3002\u8fd9\u4e2a\u6a21\u5757\u7ba1\u7406\u5171\u4eab\u663e\u5b58\u7684\u6d88\u606f\u3002\u50cf\u5728\u5bbf\u4e3b\u673a\u4e00\u6837\uff0c\u4f7f\u7528\u5b57\u7b26\u8bbe\u5907\uff08char_dev\uff09\u4f5c\u4e3a\u5b83\u4e0eKvmSecDVM\u7684\u901a\u8baf\u901a\u9053\u3002\u901a\u8baf\u5408\u540c\u4e5f\u7c7b\u4f3cDM\u548cKvmSecD\u3002\u8fd9\u4e2a\u6a21\u5757\u68c0\u6d4b\u5173\u952e\u8def\u5f84\u6587\u4ef6\u5b58\u53d6\uff0c\u5e76\u66f4\u6b63\u3002\u8fd9\u4e2a\u6a21\u5757\u5c06\u6765\u7684\u6267\u884c\u5c06\u4e3a\u5176\u4ed6\u96c6\u6210\u68c0\u6d4b\u63d2\u4ef6\u63d0\u4f9b\u7a7a\u95f4\u3002<\/p>\n
\u516d\u3001\u8ba8\u8bba<\/p>\n
KvmSec\u7684\u76ee\u6807\u662f\u63d0\u4f9b\u6f5c\u5728\u7684\u672a\u88ab\u5bdf\u89c9\u7684\uff0c\u4e0d\u88ab\u6697\u4e2d\u7834\u574f\u7684\u7cfb\u7edf\uff0c\u81f4\u4f7f\u53ef\u4ee5\u6355\u6349\u865a\u62df\u673a\u5b8c\u6574\u6027\u7684\u8fdd\u80cc\u3002\u7531KvmSec\u63d0\u4f9b\u7684\u7279\u70b9\u4e0e\u5148\u524d\u7684\u7cfb\u7edf\u60f3\u6bd4\u6700\u660e\u663e\u7684\u6709\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n
\u6027\u80fd\uff1a\u6211\u4eec\u65e9\u5df2\u6267\u884c\u57fa\u672c\u6027\u80fd\u6d4b\u8bd5\u5bf9\u6bd4KvmSec\u4e0eKvm\u3002\u975e\u5e38\u5730\uff0c\u6211\u4eec\u6d4b\u5ea6\u4e86\u65f6\u95f4\u8981\u6c42\uff1a\u6267\u884c\u6807\u51c62.6\u5185\u6838\u4f7f\u7528\u6807\u51c6\u914d\u7f6e\uff08Kernelbuild\uff09\uff0c\u538b\u7f29\u5b83\u7684\u6e90\u4ee3\u7801\u5230tarball(Kernelunbz2).\u6d4b\u8bd5\u4f7f\u7528Vaio\u4fbf\u643a\u5f0f\u8ba1\u7b97\u673a\uff0c2GB\u663e\u5b58\uff0c\u5355\u68382.1Ghz\u5904\u7406\u5668\uff0c\u8fd0\u884cFedora9x86\uff08\u5bbf\u4e3b\u673a\u548c\u865a\u62df\u673a\uff09\u3002\u521d\u6b65\u7ed3\u679c\u5728\u88682\uff0c\u663e\u793aKvmSec\u4ec5\u6bd4Kvm\u8981\u6c42\u521d\u4e00\u70b9\u3002<\/p>\n
<\/p>\n
\u900f\u660e\uff1aKvmSec\u7684\u987e\u5ba2\u673a\u4e0e\u5bbf\u4e3b\u673a\u6d88\u606f\u5e76\u4e0d\u901a\u8fc7\u6807\u51c6\u7f51\u8def\u6808\u63a7\u5236\uff08\u53d1\u751f\u5728\u4e3b\u6d41\u5b8c\u6574\u6027\u7ed3\u6784\uff0c\u770b3.2\u8282\uff09\uff1b\u6240\u6709\u5b83\u4eec\u662f\u4e0d\u53ef\u6d4b\u91cf\u7684\uff08RQ1\uff09\uff1bKvmSec\u4ec5\u4f9d\u8d56\u5b83\u81ea\u5df1\u7684\u5185\u90e8\u901a\u8baf\u5408\u540c\uff08\u770b5.1\u8282\uff09\uff0c\u4f7f\u5b83\u72ec\u7acb\u4e8e\u6240\u91c7\u7eb3\u7684\u865a\u62df\u673a\u7cfb\u7edf\uff0c\u4e0d\u50cfXen\u7684hypervisor\u3002\u5e76\u4e14\uff0cKvmSec\u4e2d\u6bcf\u4f4d\u865a\u62df\u673a\u6709\u5b83\u81ea\u5df1\u7684\u5171\u4eab\u663e\u5b58\u533a\u53ef\u4ee5\u8fdb\u884c\u5bbf\u4e3b\u673a\u548c\u865a\u62df\u673a\u901a\u8baf\uff1b\u8fd9\u4f7f\u6bcf\u4f4d\u901a\u8baf\u901a\u9053\u72ec\u7acb\u7ba1\u7406\uff0c\u5e76\u548c\u5176\u4ed6\u901a\u9053\u4e0d\u76f8\u5173\uff08RQ2\uff09\u3002<\/p>\n
\u8baf\u53f7\uff1aKvmSec\u6f5c\u5728\u7684\u6bd4\u5176\u4ed6\u7cfb\u7edf\uff08\u6bd4\u5982XenRim\uff09\u591a\u4e8e\u88ab\u63a2\u6d4b\uff0c\u7531\u4e8e\u5728\u5bbf\u4e3b\u673a\u548c\u865a\u62df\u673a\u95f4\u6ca1\u6709\u663e\u8457\u7684\u8baf\u53f7\u901a\u9053\uff08RQ1\uff09\uff08\u770b4\u8282\uff09\u3002<\/p>\n
\u5b88\u62a4\u8fdb\u7a0b\u5904\u7406\uff1aKvmSec\u53ef\u4ee5\u5728\u5bbf\u4e3b\u673a\u548c\u987e\u5ba2\u673a\u95f4\u5171\u4eab\u76d1\u63a7\u4efb\u52a1\u3002\u8fd9\u5c06\u63d0\u4f9b\u6027\u80fd\u4f18\u52bf\uff0c\u4f46\u662f\u964d\u4f4e\u5728\u4e00\u822c\u60c5\u51b5\u4e0b\u76d1\u63a7\u7684\u8d28\u91cf\u3002\u516c\u6b63\u7684\u4ea4\u6613\u4f7f\u76d1\u63a7\u987e\u5ba2\u673a\u7684\u6a21\u5757\u8ba9\u6574\u4e2a\u7cfb\u7edf\u66f4\u53ef\u80fd\u906d\u5230\u63a2\u6d4b\u3002\u5728KvmSec\u7ed3\u6784\u4e2d\u987e\u5ba2\u673a\u6a21\u5757\u5e76\u4e0d\u4e25\u683c\u8981\u6c42\u3002<\/p>\n
\u62b5\u6297\u59a5\u534f\uff1a\u6ce8\u610f\u5185\u6838\u63a2\u6d4b\u7cfb\u7edf\u5728\u5bbf\u4e3b\u673a\u4e0a\uff0c\u8fd9\u4f7f\u7cfb\u7edf\u5f88\u96be\u88ab\u6253\u5165\u3002\u5e76\u4e14\uff0c\u7ba1\u7406\u5bbf\u4e3b\u673a\u548c\u987e\u5ba2\u673a\u901a\u8baf\u7684\u6a21\u5757\u5728\u987e\u5ba2\u673a\u5185\u6838\u4e2d\uff08\u770b4\u8282\uff09\uff08RQ2\uff09\u3002<\/p>\n
\u5e03\u7f72\uff1aKvmSec\u80fd\u88ab\u5e03\u7f72\u5728\u4efb\u4f55\u6700\u65b0\u7684Linux\u5185\u6838\u4e2d\uff0c\u800c\u5176\u4ed6\u7684\u5efa\u8bae\uff08\u6bd4\u5982XenKimono\uff09\u8981\u6c42Xen\u865a\u62df\u5316\u7cfb\u7edf\u88ab\u5b89\u88c5\u4e0e\u8fd0\u884c\u5728\u5bbf\u4e3b\u673a\u4e0a\u3002\u63a5\u7740\uff0cKvmSec\u6240\u652f\u6301\u7684\u5bbf\u4e3b\u673a\u5e73\u53f0\u6570\u91cf\u6bd4\u57fa\u4e8eXen\u89e3\u51b3\u65b9\u6848\u591a\uff08\u770b3.1\u8282\uff09\uff08RQ3\uff09\u3002<\/p>\n
\u4e03\u3001\u7ed3\u8bba<\/p>\n
\u5728\u8fd9\u7bc7\u8bba\u6587\u4e2d\uff0c\u6211\u4eec\u63d0\u51fa\u4e00\u4e2a\u6269\u5145Linux\u5185\u6838\u865a\u62df\u673a\u7684\u7ed3\u6784\uff1akvmsec\u3002\u975e\u5e38\u5730\uff0c\u6211\u4eec\u6269\u5145KVM\u805a\u7126\u4e8e\u5b89\u5168\uff0c\u4e3a\u865a\u62df\u673a\u7684\u5b9e\u65f6\u5b8c\u6574\u6027\u76d1\u63a7\u63d0\u4f9b\u4e00\u4e2a\u89e3\u51b3\u65b9\u6848\uff08KvmSec\uff09\u3002\u636e\u6211\u4eec\u4e86\u89e3\uff0c\u8fd9\u662f\u7b2c\u4e00\u4e2a\u9488\u5bf9LinuxKVM\u7684\u5b89\u5168\u8bfe\u9898\u3002\u6211\u4eec\u6240\u5f00\u53d1\u7684KvmSec\u539f\u578b\u6709\u5982\u4e0b\u7279\u70b9\uff1a\u5bf9\u4e8e\u987e\u5ba2\u673a\u662f\u900f\u660e\u7684\uff08\u751a\u81f3\u662f\u65e9\u5df2\u88ab\u6076\u610f\u4fb5\u5165\u7684\u987e\u5ba2\u673a\uff09\uff1b\u652f\u6301\u5168\u865a\u62df\u5316\uff0c\u8fd9\u5c06\u4f7f\u987e\u5ba2\u673a\u65b9\u964d\u4f4e\u88ab\u63a2\u6d4b\u5230\uff1b\u5b83\u80fd\u641c\u96c6\u6570\u636e\u5e76\u4e0e\u987e\u5ba2\u673a\u4ea4\u4e92\uff0c\u5b83\u7684\u5185\u6838\u4fdd\u5b58\u5728\u53d7\u4fdd\u62a4\u7684\u5bbf\u4e3b\u673a\u4e0a\uff1b\u5b83\u63d0\u4f9bhypervisor\u5230\u987e\u5ba2\u673a\u7684\u4e24\u79cd\u5b89\u5168\u901a\u8baf\u65b9\u6cd5\uff1b\u5b83\u80fd\u88ab\u5e03\u7f72\u5230x86\u548cx86_64\u7684\u673a\u5668\u4e0a\u3002<\/p>\n
\u5bf9\u4e8e\u8fdb\u4e00\u6b65\u7684\u7814\u7a76\u65b9\u5411\uff0c\u6211\u4eec\u52aa\u529b\u53bb\u964d\u4f4e\u5165\u4fb5\u68c0\u67e5\u6a21\u5757\uff0c\u5e76\u5c06\u6587\u4ef6\u7cfb\u7edf\u5b8c\u6574\u6027\u5de5\u5177\u52a0\u5165\u5230\u7cfb\u7edf\u6269\u5145\u6a21\u5757\uff0c\u5b8c\u5168\u52a0\u5165\u524d\u9762\u6240\u8ff0KvmSec\u7684\u7279\u70b9\u3002\u8fdb\u4e00\u6b65\u5730\u6df1\u5165\u7814\u7a76\u6027\u80fd\u95ee\u9898\u548c\u4f7f\u7528Windows\u5bb6\u65cf\u7684\u865a\u62df\u673a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
2.\u6a21\u5757\u6570\u91cf\uff1a\u5728\u865a\u62df\u673a\u4e2d\uff0c\u6211\u4eec\u53ea\u9700\u8981\u4e00\u5bf9\u6a21\u5757\uff0c\u56e0\u4e3a\u5171\u4eab\u5185\u5b58\u7ba1\u7406\u88ab\u6307\u6d3e\u7ed9\u5185\u6838\uff0c\u5728\u5bbf\u4e3b\u673a\u4e2d\uff0c\u6211\u4eec\u9700\u89813\u4e2a\u6a21\u5757\uff0c\u5c06\u5728\u4e0b\u4e00\u8282\u4e2d\u6269\u5c55\u3002\u80fd\u88ab\u90e8\u7f72\u5728\u4efb\u4f55\u6700\u65b0\u7684Linux\u5185\u6838\u4e2d\uff0c\u800c\u5176\u4ed6\u7684\u5efa\u8bae\uff08\u4f8b\u5982XenKimono\uff09\u8981\u6c42Xen\u865a\u62df\u5316\u7cfb\u7edf\u88ab\u5b89\u88c5\u4e0e\u8fd0\u884c\u5728\u5bbf\u4e3b\u673a\u4e0a\u3002<\/p>\n","protected":false},"author":1,"featured_media":287439,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-287438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/287438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=287438"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/287438\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/287439"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=287438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=287438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=287438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}