{"id":106313,"date":"2024-02-28T10:41:38","date_gmt":"2024-02-28T02:41:38","guid":{"rendered":"http:\/\/stmu.1000uc.com\/mu\/?p=106313"},"modified":"2024-02-28T10:41:38","modified_gmt":"2024-02-28T02:41:38","slug":"%e5%a5%87%e8%bf%b9mu%e6%b8%b8%e6%88%8f%e6%a1%86%e6%9e%b6%ef%bc%8c%e5%a5%87%e8%bf%b9mu%e5%93%aa%e4%b8%aa%e6%89%8d%e6%98%af%e6%ad%a3%e7%89%88","status":"publish","type":"post","link":"http:\/\/stmu.1000uc.com\/mu\/106313.html","title":{"rendered":"\u5947\u8ff9mu\u6e38\u620f\u6846\u67b6\uff0c\u5947\u8ff9mu\u54ea\u4e2a\u624d\u662f\u6b63\u7248"},"content":{"rendered":"<h3>\u4e00\u3001\u4e3b\u677f\u7684iommu\u662f\u4ec0\u4e48\u529f\u80fd<\/h3>\n<p>IOMMU(i\/omemorymanagementunit)\u3002iommu\u6709\u4e24\u5927\u529f\u80fd\uff1a\u63a7\u5236\u8bbe\u5907dma\u5730\u5740\u6620\u5c04\u5230\u673a\u5668\u7269\u7406\u5730\u5740\uff08dmar\uff09\uff0c\u4e2d\u65ad\u91cd\u6620\u5c04\uff08intremap\uff09\uff08\u53ef\u9009\uff09<\/p>\n<p>Iommu\u7684\u4e3b\u8981\u529f\u80fd\u4e3a\u8bbe\u5907dma\u65f6\u523b\u80fd\u591f\u8bbf\u95ee\u673a\u5668\u7684\u7269\u7406\u5185\u5b58\u533a\uff0c\u540c\u65f6\u4fdd\u8bc1\u5b89\u5168\u6027\u3002<\/p>\n<p>\u5728\u6ca1\u6709Iommu\u7684\u65f6\u5019\uff0c\u8bbe\u5907\u901a\u8fc7dma\u53ef\u4ee5\u8bbf\u95ee\u5230\u673a\u5668\u7684\u5168\u90e8\u7684\u5730\u5740\u7a7a\u95f4\u3002<\/p>\n<p>1\u3001\u8fd9\u79cd\u673a\u5236\u4e0b\u5982\u679c\u5c06\u8bbe\u5907\u7684\u9a71\u52a8\u653e\u5728\u7528\u6237\u6001\uff0c\u90a3\u4e48\u5982\u4f55\u4fdd\u62a4\u673a\u5668\u7269\u7406\u5185\u5b58\u533a\u5bf9\u4e8e\u7528\u6237\u6001\u9a71\u52a8\u6846\u67b6\u8bbe\u8ba1\u5e26\u6765\u6311\u6218\u3002\u5f53\u51fa\u73b0\u4e86iommu\u4ee5\u540e\uff0ciommu\u901a\u8fc7\u63a7\u5236\u6bcf\u4e2a\u8bbe\u5907dma\u5730\u5740\u5230\u5b9e\u9645\u7269\u7406\u5730\u5740\u7684\u6620\u5c04\u8f6c\u6362\uff0c\u4f7f\u5f97\u5728\u4e00\u5b9a\u7684\u5185\u6838\u9a71\u52a8\u6846\u67b6\u4e0b\uff0c\u7528\u6237\u6001\u9a71\u52a8\u80fd\u80fd\u591f\u5b8c\u5168\u64cd\u4f5c\u67d0\u4e2a\u8bbe\u5907dma\u548c\u4e2d\u65ad\u6210\u4e3a\u53ef\u80fd\u3002<\/p>\n<p>2\u3001\u5982\u679c\u5c06\u8fd9\u4e2a\u7269\u7406\u8bbe\u5907\u901a\u8fc7\u900f\u4f20\u7684\u65b9\u5f0f\u8fdb\u5165\u5230\u865a\u62df\u5316\u865a\u62df\u673a\u91cc\uff0c\u865a\u62df\u673a\u7684\u8bbe\u5907\u9a71\u52a8\u914d\u7f6e\u8bbe\u5907\u7684dma\u540e\uff0chypervisor\u5fc5\u987b\u5728\u900f\u4f20\u8bbe\u5907dma\u8bbf\u95ee\u65f6\u523b\uff0c\u5bf9dma\u8bbf\u95ee\u8fdb\u884c\u622a\u83b7\uff0c\u5c06\u5176\u4e2ddma\u8bbf\u95ee\u7684\u865a\u62df\u673a\u7269\u7406\u5730\u5740\uff0c\u8f6c\u6362\u4e3ahypervisor\u4e3a\u865a\u62df\u673a\u5206\u914d\u7684\u7269\u7406\u5730\u5740\uff0c\u4e5f\u5c31\u662f\u9700\u8981\u5c06\u865a\u62df\u673a\u900f\u4f20\u8bbe\u5907dma\u8bbf\u95ee\u505avpaddr(\u865a\u62df\u673a\u7269\u7406\u5730\u5740)&#8212;-&gt;ppaddr\uff08\u7269\u7406\u673a\u7269\u7406\u5730\u5740\uff09\u3002\u8fd9\u90e8\u5206\u622a\u83b7\u5bf9\u865a\u62df\u673adma\u6765\u8bf4\u5e26\u6765\u5207\u6362\u5230hypervisor\u5f00\u9500\uff0chypervisor\u8f6c\u6362\u5730\u5740\u5f00\u9500\u3002<\/p>\n<p>\u5f53\u5f15\u5165\u4e86iommu\u4ee5\u540e\uff0c\u8fd9\u90e8\u5206\u5f00\u9500\u7531iommu\u786c\u4ef6\u627f\u62c5\uff0c\u6240\u6709hypervisor\u5de5\u4f5c\u5c31\u66f4\u52a0\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5c06\u900f\u4f20\u8bbe\u5907Iommudma\u5730\u5740\u6620\u5c04\u8868\u4f7f\u7528vpaddr&#8212;&gt;ppaddr\u5730\u5740\u8f6c\u6362\u8868\u5373\u53ef\uff08\u8fd9\u90e8\u5206\u8868\u5728hypervisor\u91cc\u914d\u7f6e\u5728ept\u4e2d\uff09<\/p>\n<p>3\u3001\u65b9\u4fbf\u4e86\u8001\u5f0f32\u4f4dpci\u786c\u4ef6\u572864\u4f4d\u673a\u5668\u4e0a\u7684\u4f7f\u7528\u3002\u53ea\u9700\u8981\u5728iommu\u5730\u5740\u6620\u5c04\u8868\u4e0a\u914d\u7f6e32bitpci\u8bbe\u5907dma\u5730\u5740&#8211;&gt;64\u4f4d\u673a\u5668\u7269\u7406\u5730\u5740\u5373\u53ef\u3002<\/p>\n<p>4\u3001\u65b9\u4fbf\u4e86\u4e3b\u673aos\u914d\u7f6e\u8bbe\u5907dma\u5de5\u4f5c\uff0c\u56e0\u4e3adma\u8981\u6c42\u4f7f\u7528\u8fde\u7eed\u7684\u5730\u5740\u7a7a\u95f4\u8fdb\u884c\u8bfb\u5199\uff0c\u6709\u4e86iommu\u7684\u5b58\u5728os\u5c31\u53ef\u4ee5\u4e3a\u8bbe\u5907\u914d\u7f6e\u8fde\u7eed\u7684dma\u5730\u5740\u800c\u771f\u6b63\u5bf9\u5e94\u7684\u975e\u8fde\u7eed\u7684\u7269\u7406\u5730\u5740<\/p>\n<h3>\u4e8c\u30015\u7c73\u8de8\u5ea6\u5c4b\u9762\u6846\u67b6\u6881\u89c4\u8303\u914d\u7b4b<\/h3>\n<p>1\u3001\u8de8\u5ea65\u7c73\u7684\u6881\u4e00\u822c\u505a\u7684\u9ad8\u5ea650cm\u7684\u914d\u7b4b\uff0c\u8fd9\u91cc\u5c31\u5df2\u7ecf\u5305\u62ec\u697c\u677f\u7684\u9ad8\u5ea6\uff0c\u4e5f\u5c31\u662f\u8bf412cm\u7684\u697c\u677f\u4e0b\u9762\u770b\u5230\u7684\u53ea\u670938cm\u3002<\/p>\n<p>2\u3001\u914d\u7b4b\u7387\u662f\u94a2\u7b4b\u6df7\u51dd\u571f\u6784\u4ef6\u4e2d\u7eb5\u5411\u53d7\u529b\u94a2\u7b4b\u7684\u9762\u79ef\u4e0e\u6784\u4ef6\u7684\u6709\u6548\u9762\u79ef\u4e4b\u6bd4\uff08\u8f74\u5fc3\u53d7\u538b\u6784\u4ef6\u4e3a\u5168\u622a\u9762\u7684\u9762\u79ef\uff09\u3002\uff0c\u5176\u4e2d\uff0c\u4e3a\u914d\u7b4b\u7387\uff1bAs\u4e3a\u53d7\u62c9\u533a\u7eb5\u5411\u94a2\u7b4b\u7684\u622a\u9762\u9762\u79ef\uff1bb\u4e3a\u77e9\u5f62\u622a\u9762\u7684\u5bbd\u5ea6\uff1bh0\u4e3a\u622a\u9762\u7684\u6709\u6548\u9ad8\u5ea6\u3002\u03c1=As\/bh0\u3002\u914d\u7b4b\u7387\u662f\u53cd\u6620\u914d\u7b4b\u6570\u91cf\u7684\u4e00\u4e2a\u53c2\u6570\u3002<\/p>\n<p>3\u3001\u6700\u5c0f\u914d\u7b4b\u7387\u662f\u6307\uff0c\u5f53\u6881\u7684\u914d\u7b4b\u7387\u03c1\u5f88\u5c0f\uff0c\u6881\u62c9\u533a\u5f00\u88c2\u540e\uff0c\u94a2\u7b4b\u5e94\u529b\u8d8b\u8fd1\u4e8e\u5c48\u670d\u5f3a\u5ea6\uff0c\u8fd9\u65f6\u7684\u914d\u7b4b\u7387\u79f0\u4e3a\u6700\u5c0f\u914d\u7b4b\u7387\u03c1min\u3002\u662f\u6839\u636eMu=Mcy\u65f6\u786e\u5b9a\u6700\u5c0f\u914d\u7b4b\u7387\u3002<\/p>\n<p>4\u3001\u914d\u7b4b\u7387\u662f\u5f71\u54cd\u6784\u4ef6\u53d7\u529b\u7279\u5f81\u7684\u4e00\u4e2a\u53c2\u6570\uff0c\u63a7\u5236\u914d\u7b4b\u7387\u53ef\u4ee5\u63a7\u5236\u7ed3\u6784\u6784\u4ef6\u7684\u7834\u574f\u5f62\u6001\uff0c\u4e0d\u53d1\u751f\u8d85\u7b4b\u7834\u574f\u548c\u5c11\u7b4b\u7834\u574f\uff0c\u914d\u7b4b\u7387\u53c8\u662f\u53cd\u6620\u7ecf\u6d4e\u6548\u679c\u7684\u4e3b\u8981\u6307\u6807\u3002\u63a7\u5236\u6700\u5c0f\u914d\u7b4b\u7387\u662f\u9632\u6b62\u6784\u4ef6\u53d1\u751f\u5c11\u7b4b\u7834\u574f\uff0c\u5c11\u7b4b\u7834\u574f\u662f\u8106\u6027\u7834\u574f\uff0c\u8bbe\u8ba1\u65f6\u5e94\u5f53\u907f\u514d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u4e3b\u677f\u7684iommu\u662f\u4ec0\u4e48\u529f\u80fd IOMMU(i\/omemorymanagementunit)\u3002iommu\u6709\u4e24\u5927\u529f\u80fd\uff1a\u63a7\u5236\u8bbe\u5907dma\u5730\u5740\u6620\u5c04\u5230\u673a\u5668\u7269\u7406\u5730\u5740\uff08dmar\uff09\uff0c\u4e2d\u65ad\u91cd\u6620\u5c04\uff08intremap\uff09\uff08\u53ef\u9009\uff09 Iommu\u7684\u4e3b\u8981\u529f\u80fd\u4e3a\u8bbe\u5907dma\u65f6&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"_links":{"self":[{"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/posts\/106313"}],"collection":[{"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/comments?post=106313"}],"version-history":[{"count":1,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/posts\/106313\/revisions"}],"predecessor-version":[{"id":106314,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/posts\/106313\/revisions\/106314"}],"wp:attachment":[{"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/media?parent=106313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/categories?post=106313"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/tags?post=106313"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/topic?post=106313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}