{"id":615,"date":"2025-09-29T11:50:41","date_gmt":"2025-09-29T03:50:41","guid":{"rendered":"https:\/\/189505.xyz\/?p=615"},"modified":"2025-09-29T11:50:41","modified_gmt":"2025-09-29T03:50:41","slug":"confidential-computing%e5%8f%af%e4%bf%a1%e8%ae%a1%e7%ae%97gpu","status":"publish","type":"post","link":"https:\/\/189505.xyz\/?p=615","title":{"rendered":"confidential computing\u53ef\u4fe1\u8ba1\u7b97GPU"},"content":{"rendered":"<h1>confidential computing mode<\/h1>\n<p>\u5728\u770bnvml\u6587\u6863\u7684\u65f6\u5019\uff0c\u770b\u5230confidential computing mode\uff0c\u7ecf\u8fc7\u67e5\u8be2\uff0c\u662f\u53ef\u4fe1\u8ba1\u7b97\u7684\u610f\u601d\u3002\u5c31\u662fHBM\u4f1a\u52a0\u5bc6\u4f60\u7684\u6570\u636e\uff0c\u9632\u6b62\u88ab\u4e91\u5382\u5546\u5077\u770b\u5230\u6743\u91cd\u548c\u6570\u636e\u3002<br \/>\n\ud83d\udd39 What is Confidential Computing?<\/p>\n<p>In general, Confidential Computing = protecting data while it is being processed, not just when stored (at rest) or transmitted (in transit).<\/p>\n<p>It relies on Trusted Execution Environments (TEEs) \u2014 isolated, hardware-enforced secure zones inside CPUs or GPUs.<\/p>\n<p>Goal: prevent a malicious hypervisor, OS, or even cloud provider from snooping on or tampering with sensitive workloads.<\/p>\n<p>\ud83d\udd39 NVIDIA Confidential Computing Mode (GPU-side)<\/p>\n<p>In NVML (NVIDIA Management Library), the Confidential Compute Mode setting controls whether the GPU is operating in this secure execution environment.<\/p>\n<p>On GPUs like the H100, this involves:<\/p>\n<p>Encrypted GPU memory: HBM contents are transparently encrypted.<\/p>\n<p>Encrypted links: PCIe\/NVLink traffic can be encrypted.<\/p>\n<p>Attestation: The GPU can provide a cryptographic proof (quote) that it is running in a trusted, secure mode.<\/p>\n<p>Isolation: Prevents other VMs or processes from accessing sensitive GPU memory\/state.<\/p>\n<p>\ud83d\udd39 NVML and Confidential Computing<\/p>\n<p>In NVML, you\u2019ll see APIs like:<\/p>\n<p>nvmlDeviceGetConfComputeMode()<\/p>\n<p>nvmlDeviceSetConfComputeMode()<\/p>\n<p>These let you query or configure whether a GPU is in:<\/p>\n<p>Disabled mode (normal GPU behavior, no memory encryption).<\/p>\n<p>Enabled mode (confidential computing protections active).<\/p>\n<p>Sometimes also a Mixed mode if the GPU supports partitioned usage.<\/p>\n<p>\ud83d\udd39 Why it Matters<\/p>\n<p>In cloud AI training\/inference, your model weights\/data are valuable IP. Confidential mode ensures the cloud provider (or other tenants) cannot peek into GPU memory.<\/p>\n<p>In multi-tenant HPC clusters, it prevents one user\u2019s workload from leaking into another\u2019s.<\/p>\n<p>In regulated industries (finance, healthcare), it helps meet compliance by securing in-use data.<\/p>\n<p>\ud83d\udd39 Example (H100 GPU)<\/p>\n<p>Without CC: GPU memory is plaintext in HBM; PCIe packets are visible to host.<\/p>\n<p>With CC:<\/p>\n<p>HBM memory \u2192 AES-XTS encrypted.<\/p>\n<p>PCIe\/NVLink links \u2192 optionally encrypted.<\/p>\n<p>Attestation \u2192 remote user can verify the GPU is running trusted firmware.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>confidential computing mode \u5728\u770bnvml\u6587\u6863\u7684\u65f6\u5019\uff0c\u770b\u5230confidential  &#8230; <a title=\"confidential computing\u53ef\u4fe1\u8ba1\u7b97GPU\" class=\"read-more\" href=\"https:\/\/189505.xyz\/?p=615\" aria-label=\"More on confidential computing\u53ef\u4fe1\u8ba1\u7b97GPU\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts\/615"}],"collection":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=615"}],"version-history":[{"count":1,"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions"}],"predecessor-version":[{"id":616,"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions\/616"}],"wp:attachment":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}