refactor: 문서 개선 중
This commit is contained in:
+17
-17
@@ -10,23 +10,23 @@
|
||||
|
||||
## Elements and evidence
|
||||
|
||||
- **QEMU** (service): KVM 핸들을 열고 VM 과 vCPU 를 만드는 유저공간 프로세스. vcpu ioctl 은 그 vcpu 를 만든 스레드에서 낸다. Evidence: L1102–L1108.
|
||||
- **VFIO** (service): IOMMU 보호 아래 장치 접근을 유저공간에 여는 프레임워크. 소유 단위가 IOMMU 그룹이다. Evidence: L1131–L1146.
|
||||
- **물리 PCI 장치** (service): 호스트 드라이버에서 떼어 vfio-pci 에 묶은 장치. Evidence: L1131–L1133, L1144–L1146.
|
||||
- **IOMMU** (service): 장치가 아무 메모리나 건드리지 못하게 막는 리매핑 장치. Evidence: L1144–L1146.
|
||||
- **KVM** (service): mmap 한 공유 메모리로 나온 이유를 유저공간에 알리는 커널 쪽. Evidence: L1105–L1108.
|
||||
- **물리 CPU** (service): VM entry 때 guest-state 영역에서 상태를 싣고 VM exit 때 그리로 저장하는 프로세서. Evidence: L1111–L1113.
|
||||
- **게스트 코드** (service): VMX non-root 로 물리 CPU 에서 도는 게스트 명령. Evidence: L1111–L1113.
|
||||
- **게스트 virtio 드라이버** (service): 게스트가 보는 반가상화 장치의 드라이버. 주고받는 통로가 virtqueue 다. Evidence: L1116–L1118.
|
||||
- **vhost** (service): virtqueue 를 QEMU 밖과 나누는 커널 구현. vhost-user 규약이 이것을 제어하는 ioctl 인터페이스를 보완한다. Evidence: L1125–L1129.
|
||||
- **QEMU** (service): KVM 핸들을 열고 VM 과 vCPU 를 만드는 유저공간 프로세스. vcpu ioctl 은 그 vcpu 를 만든 스레드에서 낸다. Evidence: L3441–L3447.
|
||||
- **VFIO** (service): IOMMU 보호 아래 장치 접근을 유저공간에 여는 프레임워크. 소유 단위가 IOMMU 그룹이다. Evidence: L3470–L3485.
|
||||
- **물리 PCI 장치** (service): 호스트 드라이버에서 떼어 vfio-pci 에 묶은 장치. Evidence: L3470–L3472, L3483–L3485.
|
||||
- **IOMMU** (service): 장치가 아무 메모리나 건드리지 못하게 막는 리매핑 장치. Evidence: L3483–L3485.
|
||||
- **KVM** (service): mmap 한 공유 메모리로 나온 이유를 유저공간에 알리는 커널 쪽. Evidence: L3444–L3447.
|
||||
- **물리 CPU** (service): VM entry 때 guest-state 영역에서 상태를 싣고 VM exit 때 그리로 저장하는 프로세서. Evidence: L3450–L3452.
|
||||
- **게스트 코드** (service): VMX non-root 로 물리 CPU 에서 도는 게스트 명령. Evidence: L3450–L3452.
|
||||
- **게스트 virtio 드라이버** (service): 게스트가 보는 반가상화 장치의 드라이버. 주고받는 통로가 virtqueue 다. Evidence: L3455–L3457.
|
||||
- **vhost** (service): virtqueue 를 QEMU 밖과 나누는 커널 구현. vhost-user 규약이 이것을 제어하는 ioctl 인터페이스를 보완한다. Evidence: L3464–L3468.
|
||||
|
||||
## Relationships
|
||||
|
||||
- **물리 CPU → 게스트 코드:** VMX non-root. Evidence: L1111–L1112.
|
||||
- **물리 PCI 장치 → IOMMU:** DMA. Evidence: L1144–L1146.
|
||||
- **KVM → 물리 CPU:** VM entry. Evidence: L1111–L1112.
|
||||
- **QEMU → VFIO:** 장치 fd. Evidence: L1138–L1141.
|
||||
- **QEMU → KVM:** KVM_RUN. Evidence: L1104–L1106.
|
||||
- **QEMU → vhost:** 제어 ioctl. Evidence: L1125–L1129.
|
||||
- **QEMU → 게스트 virtio 드라이버:** virtqueue. Evidence: L1116–L1118, L1128–L1128.
|
||||
- **VFIO → 물리 PCI 장치:** vfio-pci 결합. Evidence: L1144–L1146.
|
||||
- **물리 CPU → 게스트 코드:** VMX non-root. Evidence: L3450–L3451.
|
||||
- **물리 PCI 장치 → IOMMU:** DMA. Evidence: L3483–L3485.
|
||||
- **KVM → 물리 CPU:** VM entry. Evidence: L3450–L3451.
|
||||
- **QEMU → VFIO:** 장치 fd. Evidence: L3477–L3480.
|
||||
- **QEMU → KVM:** KVM_RUN. Evidence: L3443–L3445.
|
||||
- **QEMU → vhost:** 제어 ioctl. Evidence: L3464–L3468.
|
||||
- **QEMU → 게스트 virtio 드라이버:** virtqueue. Evidence: L3455–L3457, L3467–L3467.
|
||||
- **VFIO → 물리 PCI 장치:** vfio-pci 결합. Evidence: L3483–L3485.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# 게스트가 하드웨어에 닿는 갈래는 셋이고 깊이가 다르다
|
||||
# Question: 게스트의 CPU 실행·virtio I/O·직접 할당한 장치는 각각 어디까지 내려가고 호스트 유저공간을 지나는가
|
||||
direction: down
|
||||
direction: right
|
||||
n0: "QEMU" {
|
||||
shape: rectangle
|
||||
}
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
digraph techviz {
|
||||
graph [rankdir=LR, splines=ortho, nodesep=0.55, ranksep=0.85];
|
||||
node [fontname=Helvetica, fontsize=11, margin="0.18,0.12", style="rounded,filled", fillcolor=white, color="#2d4357", penwidth=1.5];
|
||||
edge [fontname=Helvetica, fontsize=10, color="#364b5f", penwidth=1.4, arrowsize=0.75];
|
||||
n0 [label="QEMU", shape=box, style="rounded,filled"];
|
||||
n1 [label="VFIO", shape=box, style="rounded,filled"];
|
||||
n2 [label="물리 PCI 장치", shape=box, style="rounded,filled"];
|
||||
n3 [label="IOMMU", shape=box, style="rounded,filled"];
|
||||
n4 [label="KVM", shape=box, style="rounded,filled"];
|
||||
n5 [label="물리 CPU", shape=box, style="rounded,filled"];
|
||||
n6 [label="게스트 코드", shape=box, style="rounded,filled"];
|
||||
n7 [label="게스트 virtio 드라이버", shape=box, style="rounded,filled"];
|
||||
n8 [label="vhost", shape=box, style="rounded,filled"];
|
||||
n0 -> n1 [label="장치 fd", style=solid];
|
||||
n1 -> n2 [label="vfio-pci 결합", style=solid];
|
||||
n2 -> n3 [label="DMA", style=solid];
|
||||
n0 -> n4 [label="KVM_RUN", style=solid];
|
||||
n4 -> n5 [label="VM entry", style=solid];
|
||||
n5 -> n6 [label="VMX non-root", style=solid];
|
||||
n0 -> n7 [label="virtqueue", style=solid];
|
||||
n0 -> n8 [label="제어 ioctl", style=solid];
|
||||
}
|
||||
+27
-27
@@ -1,75 +1,75 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mxfile host="app.diagrams.net" modified="2026-07-23T00:00:00.000Z" agent="techviz-harness" version="24.7.17" type="device">
|
||||
<diagram id="cpu-io-passthrough-paths" name="게스트가 하드웨어에 닿는 갈래는 셋이고 깊이가 다르다">
|
||||
<mxGraphModel dx="985" dy="762" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="985" pageHeight="1169" math="0" shadow="0">
|
||||
<mxGraphModel dx="1393" dy="690" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1393" pageHeight="1169" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0"/>
|
||||
<mxCell id="1" parent="0"/>
|
||||
<mxCell id="n_qemu" value="QEMU<br/>/dev/kvm<br/>KVM_CREATE_VM · KVM_CREATE_VCPU" tooltip="KVM 핸들을 열고 VM 과 vCPU 를 만드는 유저공간 프로세스. vcpu ioctl 은 그 vcpu 를 만든 스레드에서 낸다. | Evidence: L1102-L1108" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
|
||||
<mxGeometry x="379.5" y="60.0" width="251.0" height="88.0" as="geometry"/>
|
||||
<mxCell id="n_qemu" value="QEMU<br/>/dev/kvm<br/>KVM_CREATE_VM · KVM_CREATE_VCPU" tooltip="KVM 핸들을 열고 VM 과 vCPU 를 만드는 유저공간 프로세스. vcpu ioctl 은 그 vcpu 를 만든 스레드에서 낸다. | Evidence: L3441-L3447" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
|
||||
<mxGeometry x="70.0" y="308.5" width="251.0" height="88.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_kvm" value="KVM<br/>struct kvm_run<br/>KVM_GET_VCPU_MMAP_SIZE" tooltip="mmap 한 공유 메모리로 나온 이유를 유저공간에 알리는 커널 쪽. | Evidence: L1105-L1108" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="70.0" y="252.5" width="188.0" height="88.0" as="geometry"/>
|
||||
<mxCell id="n_kvm" value="KVM<br/>struct kvm_run<br/>KVM_GET_VCPU_MMAP_SIZE" tooltip="mmap 한 공유 메모리로 나온 이유를 유저공간에 알리는 커널 쪽. | Evidence: L3444-L3447" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="488.0" y="60.0" width="188.0" height="88.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_vfio" value="VFIO<br/>vfio-pci<br/>IOMMU 그룹<br/>/dev/vfio/vfio" tooltip="IOMMU 보호 아래 장치 접근을 유저공간에 여는 프레임워크. 소유 단위가 IOMMU 그룹이다. | Evidence: L1131-L1146" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="318.0" y="244.0" width="150.0" height="105.0" as="geometry"/>
|
||||
<mxCell id="n_vfio" value="VFIO<br/>vfio-pci<br/>IOMMU 그룹<br/>/dev/vfio/vfio" tooltip="IOMMU 보호 아래 장치 접근을 유저공간에 여는 프레임워크. 소유 단위가 IOMMU 그룹이다. | Evidence: L3470-L3485" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="507.0" y="220.0" width="150.0" height="105.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_vhost" value="vhost<br/>리눅스 커널 구현<br/>virtqueue 공유" tooltip="virtqueue 를 QEMU 밖과 나누는 커널 구현. vhost-user 규약이 이것을 제어하는 ioctl 인터페이스를 보완한다. | Evidence: L1125-L1129" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="528.0" y="252.5" width="150.0" height="88.0" as="geometry"/>
|
||||
<mxCell id="n_vhost" value="vhost<br/>리눅스 커널 구현<br/>virtqueue 공유" tooltip="virtqueue 를 QEMU 밖과 나누는 커널 구현. vhost-user 규약이 이것을 제어하는 ioctl 인터페이스를 보완한다. | Evidence: L3464-L3468" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="507.0" y="397.0" width="150.0" height="88.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_virtio-driver" value="게스트 virtio 드라이버<br/>virtio-pci · virtio-mmio<br/>virtqueue" tooltip="게스트가 보는 반가상화 장치의 드라이버. 주고받는 통로가 virtqueue 다. | Evidence: L1116-L1118" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="738.0" y="252.5" width="202.0" height="88.0" as="geometry"/>
|
||||
<mxCell id="n_virtio-driver" value="게스트 virtio 드라이버<br/>virtio-pci · virtio-mmio<br/>virtqueue" tooltip="게스트가 보는 반가상화 장치의 드라이버. 주고받는 통로가 virtqueue 다. | Evidence: L3455-L3457" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="481.0" y="557.0" width="202.0" height="88.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_physical-cpu" value="물리 CPU<br/>VMX root · VMX non-root<br/>VM entry · VM exit<br/>guest-state 영역" tooltip="VM entry 때 guest-state 영역에서 상태를 싣고 VM exit 때 그리로 저장하는 프로세서. | Evidence: L1111-L1113" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="302.5" y="445.0" width="195.0" height="105.0" as="geometry"/>
|
||||
<mxCell id="n_physical-cpu" value="물리 CPU<br/>VMX root · VMX non-root<br/>VM entry · VM exit<br/>guest-state 영역" tooltip="VM entry 때 guest-state 영역에서 상태를 싣고 VM exit 때 그리로 저장하는 프로세서. | Evidence: L3450-L3452" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="843.0" y="228.5" width="195.0" height="105.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_pci-device" value="물리 PCI 장치<br/>게스트 직접 할당" tooltip="호스트 드라이버에서 떼어 vfio-pci 에 묶은 장치. | Evidence: L1131-L1133, L1144-L1146" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="557.5" y="462.0" width="150.0" height="71.0" as="geometry"/>
|
||||
<mxCell id="n_pci-device" value="물리 PCI 장치<br/>게스트 직접 할당" tooltip="호스트 드라이버에서 떼어 vfio-pci 에 묶은 장치. | Evidence: L3470-L3472, L3483-L3485" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="865.5" y="405.5" width="150.0" height="71.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_guest-code" value="게스트 코드<br/>vCPU" tooltip="VMX non-root 로 물리 CPU 에서 도는 게스트 명령. | Evidence: L1111-L1113" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="325.0" y="646.0" width="150.0" height="71.0" as="geometry"/>
|
||||
<mxCell id="n_guest-code" value="게스트 코드<br/>vCPU" tooltip="VMX non-root 로 물리 CPU 에서 도는 게스트 명령. | Evidence: L3450-L3452" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="1198.0" y="245.5" width="150.0" height="71.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_iommu" value="IOMMU<br/>DMA · 인터럽트 리매핑" tooltip="장치가 아무 메모리나 건드리지 못하게 막는 리매핑 장치. | Evidence: L1144-L1146" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="535.0" y="646.0" width="150.0" height="71.0" as="geometry"/>
|
||||
<mxCell id="n_iommu" value="IOMMU<br/>DMA · 인터럽트 리매핑" tooltip="장치가 아무 메모리나 건드리지 못하게 막는 리매핑 장치. | Evidence: L3483-L3485" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
|
||||
<mxGeometry x="1198.0" y="388.5" width="150.0" height="71.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="e_cpu-runs-guest" value="VMX non-root" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_physical-cpu" target="n_guest-code">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="424.0" y="598.0" as="offset"/>
|
||||
<mxPoint x="1118.0" y="253.0" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_device-dma" value="DMA" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_pci-device" target="n_iommu">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="621.2" y="561.5" as="offset"/>
|
||||
<mxPoint x="1130.8" y="432.5" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_kvm-vm-entry" value="VM entry" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_kvm" target="n_physical-cpu">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="282.0" y="364.8" as="offset"/>
|
||||
<mxPoint x="783.5" y="192.5" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_qemu-device-fd" value="장치 fd" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_qemu" target="n_vfio">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="444.5" y="168.0" as="offset"/>
|
||||
<mxPoint x="438.0" y="308.0" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_qemu-kvm-run" value="KVM_RUN" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_qemu" target="n_kvm">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="321.0" y="172.2" as="offset"/>
|
||||
<mxPoint x="428.5" y="214.8" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_qemu-vhost-ioctl" value="제어 ioctl" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_qemu" target="n_vhost">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="558.5" y="172.2" as="offset"/>
|
||||
<mxPoint x="438.0" y="401.2" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_qemu-virtqueue" value="virtqueue" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_qemu" target="n_virtio-driver">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="685.5" y="172.2" as="offset"/>
|
||||
<mxPoint x="425.0" y="490.2" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_vfio-binds-device" value="vfio-pci 결합" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_vfio" target="n_pci-device">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="512.8" y="377.5" as="offset"/>
|
||||
<mxPoint x="785.2" y="356.8" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
</root>
|
||||
|
||||
+147
-147
@@ -6,10 +6,10 @@
|
||||
{
|
||||
"id": "edge-cpu-runs-guest",
|
||||
"type": "arrow",
|
||||
"x": 400.0,
|
||||
"y": 550.0,
|
||||
"width": 0.0,
|
||||
"height": 96.0,
|
||||
"x": 1038.0,
|
||||
"y": 281.0,
|
||||
"width": 160.0,
|
||||
"height": 0.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -36,16 +36,16 @@
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
48.0
|
||||
80.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
48.0
|
||||
80.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
96.0
|
||||
160.0,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -66,8 +66,8 @@
|
||||
{
|
||||
"id": "edge-label-cpu-runs-guest",
|
||||
"type": "text",
|
||||
"x": 376.0,
|
||||
"y": 586.0,
|
||||
"x": 1070.0,
|
||||
"y": 241.0,
|
||||
"width": 96,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -105,10 +105,10 @@
|
||||
{
|
||||
"id": "edge-device-dma",
|
||||
"type": "arrow",
|
||||
"x": 610.0,
|
||||
"y": 533.0,
|
||||
"width": 22.5,
|
||||
"height": 113.0,
|
||||
"x": 1015.5,
|
||||
"y": 424.0,
|
||||
"width": 182.5,
|
||||
"height": 17.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -131,20 +131,20 @@
|
||||
"locked": false,
|
||||
"points": [
|
||||
[
|
||||
22.5,
|
||||
0.0,
|
||||
17.0
|
||||
],
|
||||
[
|
||||
91.25,
|
||||
17.0
|
||||
],
|
||||
[
|
||||
91.25,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
22.5,
|
||||
56.5
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
56.5
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
113.0
|
||||
182.5,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -165,8 +165,8 @@
|
||||
{
|
||||
"id": "edge-label-device-dma",
|
||||
"type": "text",
|
||||
"x": 576.25,
|
||||
"y": 549.5,
|
||||
"x": 1085.75,
|
||||
"y": 420.5,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -204,10 +204,10 @@
|
||||
{
|
||||
"id": "edge-kvm-vm-entry",
|
||||
"type": "arrow",
|
||||
"x": 164.0,
|
||||
"y": 340.5,
|
||||
"width": 236.0,
|
||||
"height": 104.5,
|
||||
"x": 676.0,
|
||||
"y": 104.0,
|
||||
"width": 167.0,
|
||||
"height": 177.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -234,16 +234,16 @@
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
52.25
|
||||
83.5,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
236.0,
|
||||
52.25
|
||||
83.5,
|
||||
177.0
|
||||
],
|
||||
[
|
||||
236.0,
|
||||
104.5
|
||||
167.0,
|
||||
177.0
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -264,8 +264,8 @@
|
||||
{
|
||||
"id": "edge-label-kvm-vm-entry",
|
||||
"type": "text",
|
||||
"x": 237.0,
|
||||
"y": 352.75,
|
||||
"x": 738.5,
|
||||
"y": 180.5,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -303,10 +303,10 @@
|
||||
{
|
||||
"id": "edge-qemu-device-fd",
|
||||
"type": "arrow",
|
||||
"x": 393.0,
|
||||
"y": 148.0,
|
||||
"width": 103.0,
|
||||
"height": 96.0,
|
||||
"x": 321.0,
|
||||
"y": 272.5,
|
||||
"width": 186.0,
|
||||
"height": 71.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -329,20 +329,20 @@
|
||||
"locked": false,
|
||||
"points": [
|
||||
[
|
||||
103.0,
|
||||
0.0,
|
||||
71.0
|
||||
],
|
||||
[
|
||||
93.0,
|
||||
71.0
|
||||
],
|
||||
[
|
||||
93.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
103.0,
|
||||
48.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
48.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
96.0
|
||||
186.0,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -363,8 +363,8 @@
|
||||
{
|
||||
"id": "edge-label-qemu-device-fd",
|
||||
"type": "text",
|
||||
"x": 399.5,
|
||||
"y": 156.0,
|
||||
"x": 393.0,
|
||||
"y": 296.0,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -402,10 +402,10 @@
|
||||
{
|
||||
"id": "edge-qemu-kvm-run",
|
||||
"type": "arrow",
|
||||
"x": 164.0,
|
||||
"y": 148.0,
|
||||
"width": 314.0,
|
||||
"height": 104.5,
|
||||
"x": 321.0,
|
||||
"y": 104.0,
|
||||
"width": 167.0,
|
||||
"height": 221.5,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -428,20 +428,20 @@
|
||||
"locked": false,
|
||||
"points": [
|
||||
[
|
||||
314.0,
|
||||
0.0,
|
||||
221.5
|
||||
],
|
||||
[
|
||||
83.5,
|
||||
221.5
|
||||
],
|
||||
[
|
||||
83.5,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
314.0,
|
||||
52.25
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
52.25
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
104.5
|
||||
167.0,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -462,8 +462,8 @@
|
||||
{
|
||||
"id": "edge-label-qemu-kvm-run",
|
||||
"type": "text",
|
||||
"x": 276.0,
|
||||
"y": 160.25,
|
||||
"x": 383.5,
|
||||
"y": 202.75,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -501,10 +501,10 @@
|
||||
{
|
||||
"id": "edge-qemu-vhost-ioctl",
|
||||
"type": "arrow",
|
||||
"x": 514.0,
|
||||
"y": 148.0,
|
||||
"width": 89.0,
|
||||
"height": 104.5,
|
||||
"x": 321.0,
|
||||
"y": 361.5,
|
||||
"width": 186.0,
|
||||
"height": 79.5,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -531,16 +531,16 @@
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
52.25
|
||||
93.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
89.0,
|
||||
52.25
|
||||
93.0,
|
||||
79.5
|
||||
],
|
||||
[
|
||||
89.0,
|
||||
104.5
|
||||
186.0,
|
||||
79.5
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -561,8 +561,8 @@
|
||||
{
|
||||
"id": "edge-label-qemu-vhost-ioctl",
|
||||
"type": "text",
|
||||
"x": 513.5,
|
||||
"y": 160.25,
|
||||
"x": 393.0,
|
||||
"y": 389.25,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -600,10 +600,10 @@
|
||||
{
|
||||
"id": "edge-qemu-virtqueue",
|
||||
"type": "arrow",
|
||||
"x": 532.0,
|
||||
"y": 148.0,
|
||||
"width": 307.0,
|
||||
"height": 104.5,
|
||||
"x": 321.0,
|
||||
"y": 379.5,
|
||||
"width": 160.0,
|
||||
"height": 221.5,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -630,16 +630,16 @@
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
52.25
|
||||
80.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
307.0,
|
||||
52.25
|
||||
80.0,
|
||||
221.5
|
||||
],
|
||||
[
|
||||
307.0,
|
||||
104.5
|
||||
160.0,
|
||||
221.5
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -660,8 +660,8 @@
|
||||
{
|
||||
"id": "edge-label-qemu-virtqueue",
|
||||
"type": "text",
|
||||
"x": 640.5,
|
||||
"y": 160.25,
|
||||
"x": 380.0,
|
||||
"y": 478.25,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -699,10 +699,10 @@
|
||||
{
|
||||
"id": "edge-vfio-binds-device",
|
||||
"type": "arrow",
|
||||
"x": 393.0,
|
||||
"y": 349.0,
|
||||
"width": 239.5,
|
||||
"height": 113.0,
|
||||
"x": 657.0,
|
||||
"y": 272.5,
|
||||
"width": 208.5,
|
||||
"height": 168.5,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -729,16 +729,16 @@
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
56.5
|
||||
104.25,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
239.5,
|
||||
56.5
|
||||
104.25,
|
||||
168.5
|
||||
],
|
||||
[
|
||||
239.5,
|
||||
113.0
|
||||
208.5,
|
||||
168.5
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -759,8 +759,8 @@
|
||||
{
|
||||
"id": "edge-label-vfio-binds-device",
|
||||
"type": "text",
|
||||
"x": 467.75,
|
||||
"y": 365.5,
|
||||
"x": 740.25,
|
||||
"y": 344.75,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -798,8 +798,8 @@
|
||||
{
|
||||
"id": "node-qemu",
|
||||
"type": "rectangle",
|
||||
"x": 379.5,
|
||||
"y": 60.0,
|
||||
"x": 70.0,
|
||||
"y": 308.5,
|
||||
"width": 251.0,
|
||||
"height": 88.0,
|
||||
"angle": 0,
|
||||
@@ -828,8 +828,8 @@
|
||||
{
|
||||
"id": "node-label-qemu",
|
||||
"type": "text",
|
||||
"x": 389.5,
|
||||
"y": 70.0,
|
||||
"x": 80.0,
|
||||
"y": 318.5,
|
||||
"width": 231.0,
|
||||
"height": 68.0,
|
||||
"angle": 0,
|
||||
@@ -867,8 +867,8 @@
|
||||
{
|
||||
"id": "node-kvm",
|
||||
"type": "rectangle",
|
||||
"x": 70.0,
|
||||
"y": 252.5,
|
||||
"x": 488.0,
|
||||
"y": 60.0,
|
||||
"width": 188.0,
|
||||
"height": 88.0,
|
||||
"angle": 0,
|
||||
@@ -897,8 +897,8 @@
|
||||
{
|
||||
"id": "node-label-kvm",
|
||||
"type": "text",
|
||||
"x": 80.0,
|
||||
"y": 262.5,
|
||||
"x": 498.0,
|
||||
"y": 70.0,
|
||||
"width": 168.0,
|
||||
"height": 68.0,
|
||||
"angle": 0,
|
||||
@@ -936,8 +936,8 @@
|
||||
{
|
||||
"id": "node-vfio",
|
||||
"type": "rectangle",
|
||||
"x": 318.0,
|
||||
"y": 244.0,
|
||||
"x": 507.0,
|
||||
"y": 220.0,
|
||||
"width": 150.0,
|
||||
"height": 105.0,
|
||||
"angle": 0,
|
||||
@@ -966,8 +966,8 @@
|
||||
{
|
||||
"id": "node-label-vfio",
|
||||
"type": "text",
|
||||
"x": 328.0,
|
||||
"y": 254.0,
|
||||
"x": 517.0,
|
||||
"y": 230.0,
|
||||
"width": 130.0,
|
||||
"height": 85.0,
|
||||
"angle": 0,
|
||||
@@ -1005,8 +1005,8 @@
|
||||
{
|
||||
"id": "node-vhost",
|
||||
"type": "rectangle",
|
||||
"x": 528.0,
|
||||
"y": 252.5,
|
||||
"x": 507.0,
|
||||
"y": 397.0,
|
||||
"width": 150.0,
|
||||
"height": 88.0,
|
||||
"angle": 0,
|
||||
@@ -1035,8 +1035,8 @@
|
||||
{
|
||||
"id": "node-label-vhost",
|
||||
"type": "text",
|
||||
"x": 538.0,
|
||||
"y": 262.5,
|
||||
"x": 517.0,
|
||||
"y": 407.0,
|
||||
"width": 130.0,
|
||||
"height": 68.0,
|
||||
"angle": 0,
|
||||
@@ -1074,8 +1074,8 @@
|
||||
{
|
||||
"id": "node-virtio-driver",
|
||||
"type": "rectangle",
|
||||
"x": 738.0,
|
||||
"y": 252.5,
|
||||
"x": 481.0,
|
||||
"y": 557.0,
|
||||
"width": 202.0,
|
||||
"height": 88.0,
|
||||
"angle": 0,
|
||||
@@ -1104,8 +1104,8 @@
|
||||
{
|
||||
"id": "node-label-virtio-driver",
|
||||
"type": "text",
|
||||
"x": 748.0,
|
||||
"y": 262.5,
|
||||
"x": 491.0,
|
||||
"y": 567.0,
|
||||
"width": 182.0,
|
||||
"height": 68.0,
|
||||
"angle": 0,
|
||||
@@ -1143,8 +1143,8 @@
|
||||
{
|
||||
"id": "node-physical-cpu",
|
||||
"type": "rectangle",
|
||||
"x": 302.5,
|
||||
"y": 445.0,
|
||||
"x": 843.0,
|
||||
"y": 228.5,
|
||||
"width": 195.0,
|
||||
"height": 105.0,
|
||||
"angle": 0,
|
||||
@@ -1173,8 +1173,8 @@
|
||||
{
|
||||
"id": "node-label-physical-cpu",
|
||||
"type": "text",
|
||||
"x": 312.5,
|
||||
"y": 455.0,
|
||||
"x": 853.0,
|
||||
"y": 238.5,
|
||||
"width": 175.0,
|
||||
"height": 85.0,
|
||||
"angle": 0,
|
||||
@@ -1212,8 +1212,8 @@
|
||||
{
|
||||
"id": "node-pci-device",
|
||||
"type": "rectangle",
|
||||
"x": 557.5,
|
||||
"y": 462.0,
|
||||
"x": 865.5,
|
||||
"y": 405.5,
|
||||
"width": 150.0,
|
||||
"height": 71.0,
|
||||
"angle": 0,
|
||||
@@ -1242,8 +1242,8 @@
|
||||
{
|
||||
"id": "node-label-pci-device",
|
||||
"type": "text",
|
||||
"x": 567.5,
|
||||
"y": 472.0,
|
||||
"x": 875.5,
|
||||
"y": 415.5,
|
||||
"width": 130.0,
|
||||
"height": 51.0,
|
||||
"angle": 0,
|
||||
@@ -1281,8 +1281,8 @@
|
||||
{
|
||||
"id": "node-guest-code",
|
||||
"type": "rectangle",
|
||||
"x": 325.0,
|
||||
"y": 646.0,
|
||||
"x": 1198.0,
|
||||
"y": 245.5,
|
||||
"width": 150.0,
|
||||
"height": 71.0,
|
||||
"angle": 0,
|
||||
@@ -1311,8 +1311,8 @@
|
||||
{
|
||||
"id": "node-label-guest-code",
|
||||
"type": "text",
|
||||
"x": 335.0,
|
||||
"y": 656.0,
|
||||
"x": 1208.0,
|
||||
"y": 255.5,
|
||||
"width": 130.0,
|
||||
"height": 51.0,
|
||||
"angle": 0,
|
||||
@@ -1350,8 +1350,8 @@
|
||||
{
|
||||
"id": "node-iommu",
|
||||
"type": "rectangle",
|
||||
"x": 535.0,
|
||||
"y": 646.0,
|
||||
"x": 1198.0,
|
||||
"y": 388.5,
|
||||
"width": 150.0,
|
||||
"height": 71.0,
|
||||
"angle": 0,
|
||||
@@ -1380,8 +1380,8 @@
|
||||
{
|
||||
"id": "node-label-iommu",
|
||||
"type": "text",
|
||||
"x": 545.0,
|
||||
"y": 656.0,
|
||||
"x": 1208.0,
|
||||
"y": 398.5,
|
||||
"width": 130.0,
|
||||
"height": 51.0,
|
||||
"angle": 0,
|
||||
|
||||
+6
-5
@@ -2,25 +2,26 @@
|
||||
"harness_version": "0.2.0",
|
||||
"spec_id": "cpu-io-passthrough-paths",
|
||||
"spec_version": "1.1",
|
||||
"spec_sha256": "981204dcf528aa1c3b0a400d3ea0d11fb5c26250adaf6e7929f9f1bf39b72f3a",
|
||||
"spec_sha256": "ea1f7be7592152fc3e9b51bb7c8c1486d851443c7c8e539cce67145362872cae",
|
||||
"source_context": {
|
||||
"document": "docs/keycloak-session-store/final/document.md",
|
||||
"document_sha256": "0ae5674723f25dc85d5069529890f07be1a11b768b56901103fa3ea6ac3dcf55",
|
||||
"document_sha256": "28aef96a2bbb94fbb10ade26a71238fee62a5a4d9fa6e7749ae98cfd0a65e560",
|
||||
"anchor": {
|
||||
"kind": "heading",
|
||||
"value": "이 층 아래의 구조 — 조사한 것",
|
||||
"line": 1091
|
||||
"line": 3430
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
"cpu-io-passthrough-paths.svg",
|
||||
"cpu-io-passthrough-paths.drawio",
|
||||
"cpu-io-passthrough-paths.mmd",
|
||||
"cpu-io-passthrough-paths.d2",
|
||||
"cpu-io-passthrough-paths.dot",
|
||||
"cpu-io-passthrough-paths.drawio",
|
||||
"cpu-io-passthrough-paths.excalidraw",
|
||||
"cpu-io-passthrough-paths.alt.md"
|
||||
],
|
||||
"lint_issue_count": 5,
|
||||
"lint_issue_count": 2,
|
||||
"assumption_count": 0,
|
||||
"assumptions_allowed": false,
|
||||
"composition_profile": "component-flow",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
%% 게스트가 하드웨어에 닿는 갈래는 셋이고 깊이가 다르다
|
||||
%% question: 게스트의 CPU 실행·virtio I/O·직접 할당한 장치는 각각 어디까지 내려가고 호스트 유저공간을 지나는가
|
||||
flowchart TB
|
||||
flowchart LR
|
||||
n0["QEMU"]
|
||||
n1["VFIO"]
|
||||
n2["물리 PCI 장치"]
|
||||
|
||||
+71
-71
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="985" height="762" viewBox="0 0 985 762" role="img" aria-labelledby="diagram-title diagram-description">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1393" height="690" viewBox="0 0 1393 690" role="img" aria-labelledby="diagram-title diagram-description">
|
||||
<title id="diagram-title">게스트가 하드웨어에 닿는 갈래는 셋이고 깊이가 다르다</title>
|
||||
<desc id="diagram-description">위에서 아래로 읽는다. 맨 위 QEMU 에서 갈래 셋이 갈린다. 왼쪽 CPU 갈래는 KVM_RUN 으로 커널의 KVM 에 들어가고 KVM 이 VM entry 로 물리 CPU 에 올리며 게스트 코드가 VMX non-root 로 거기서 돈다. 물리 CPU 상자에 VM exit 이 함께 적혀 있고 나온 이유는 KVM 상자의 struct kvm_run 으로 유저공간에 돌아간다. 가운데 패스스루 갈래는 QEMU 가 VFIO 로 장치 fd 를 받고 vfio-pci 가 장치를 묶으며 그 장치의 DMA 가 IOMMU 를 지난다. 오른쪽 virtio 갈래는 virtqueue 가 게스트 드라이버에 닿고 같은 virtqueue 를 커널 vhost 와 나누는 길이 따로 있다. 앞의 둘은 이 실험대가 쓰고 패스스루는 쓰지 않는다.</desc>
|
||||
<metadata>{"techviz":{"spec_version":"1.1","id":"cpu-io-passthrough-paths","profile":"component-flow"},"source_context":{"document":"docs/keycloak-session-store/final/document.md","document_sha256":"0ae5674723f25dc85d5069529890f07be1a11b768b56901103fa3ea6ac3dcf55","anchor":{"kind":"heading","value":"이 층 아래의 구조 — 조사한 것","line":1091}},"evidence_policy":"Each factual element cites source lines or is marked assumption.","diagram_only":true}</metadata>
|
||||
<metadata>{"techviz":{"spec_version":"1.1","id":"cpu-io-passthrough-paths","profile":"component-flow"},"source_context":{"document":"docs/keycloak-session-store/final/document.md","document_sha256":"28aef96a2bbb94fbb10ade26a71238fee62a5a4d9fa6e7749ae98cfd0a65e560","anchor":{"kind":"heading","value":"이 층 아래의 구조 — 조사한 것","line":3430}},"evidence_policy":"Each factual element cites source lines or is marked assumption.","diagram_only":true}</metadata>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" />
|
||||
@@ -49,91 +49,91 @@
|
||||
.timeline-detail { font-size: 11px; fill: #4b5563; text-anchor: middle; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect class="canvas" width="985" height="762" />
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="400.0,550.0 400.0,598.0 400.0,598.0 400.0,646.0" data-evidence="1111-1112" />
|
||||
<rect class="edge-label-bg" x="374.8" y="584.0" width="98.4" height="22" rx="3" />
|
||||
<text class="edge-label" x="424.0" y="599.0">VMX non-root</text>
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="632.5,533.0 632.5,589.5 610.0,589.5 610.0,646.0" data-evidence="1144-1146" />
|
||||
<rect class="edge-label-bg" x="599.2" y="547.5" width="44.0" height="22" rx="3" />
|
||||
<text class="edge-label" x="621.2" y="562.5">DMA</text>
|
||||
<polyline class="edge kind-request style-solid emphasis-normal" points="164.0,340.5 164.0,392.8 400.0,392.8 400.0,445.0" data-evidence="1111-1112" />
|
||||
<rect class="edge-label-bg" x="246.2" y="350.8" width="71.6" height="22" rx="3" />
|
||||
<text class="edge-label" x="282.0" y="365.8">VM entry</text>
|
||||
<polyline class="edge kind-request style-solid emphasis-normal" points="496.0,148.0 496.0,196.0 393.0,196.0 393.0,244.0" data-evidence="1138-1141" />
|
||||
<rect class="edge-label-bg" x="418.8" y="154.0" width="51.5" height="22" rx="3" />
|
||||
<text class="edge-label" x="444.5" y="169.0">장치 fd</text>
|
||||
<polyline class="edge kind-request style-solid emphasis-normal" points="478.0,148.0 478.0,200.2 164.0,200.2 164.0,252.5" data-evidence="1104-1106" />
|
||||
<rect class="edge-label-bg" x="288.6" y="158.2" width="64.9" height="22" rx="3" />
|
||||
<text class="edge-label" x="321.0" y="173.2">KVM_RUN</text>
|
||||
<polyline class="edge kind-control style-dashed emphasis-normal" points="514.0,148.0 514.0,200.2 603.0,200.2 603.0,252.5" data-evidence="1125-1129" />
|
||||
<rect class="edge-label-bg" x="522.7" y="158.2" width="71.6" height="22" rx="3" />
|
||||
<text class="edge-label" x="558.5" y="173.2">제어 ioctl</text>
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="532.0,148.0 532.0,200.2 839.0,200.2 839.0,252.5" data-evidence="1116-1118,1128-1128" />
|
||||
<rect class="edge-label-bg" x="646.4" y="158.2" width="78.3" height="22" rx="3" />
|
||||
<text class="edge-label" x="685.5" y="173.2">virtqueue</text>
|
||||
<polyline class="edge kind-control style-solid emphasis-normal" points="393.0,349.0 393.0,405.5 632.5,405.5 632.5,462.0" data-evidence="1144-1146" />
|
||||
<rect class="edge-label-bg" x="466.9" y="363.5" width="91.7" height="22" rx="3" />
|
||||
<text class="edge-label" x="512.8" y="378.5">vfio-pci 결합</text>
|
||||
<rect class="canvas" width="1393" height="690" />
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="1038.0,281.0 1118.0,281.0 1118.0,281.0 1198.0,281.0" data-evidence="3450-3451" />
|
||||
<rect class="edge-label-bg" x="1068.8" y="239.0" width="98.4" height="22" rx="3" />
|
||||
<text class="edge-label" x="1118.0" y="254.0">VMX non-root</text>
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="1015.5,441.0 1106.8,441.0 1106.8,424.0 1198.0,424.0" data-evidence="3483-3485" />
|
||||
<rect class="edge-label-bg" x="1108.8" y="418.5" width="44.0" height="22" rx="3" />
|
||||
<text class="edge-label" x="1130.8" y="433.5">DMA</text>
|
||||
<polyline class="edge kind-request style-solid emphasis-normal" points="676.0,104.0 759.5,104.0 759.5,281.0 843.0,281.0" data-evidence="3450-3451" />
|
||||
<rect class="edge-label-bg" x="747.7" y="178.5" width="71.6" height="22" rx="3" />
|
||||
<text class="edge-label" x="783.5" y="193.5">VM entry</text>
|
||||
<polyline class="edge kind-request style-solid emphasis-normal" points="321.0,343.5 414.0,343.5 414.0,272.5 507.0,272.5" data-evidence="3477-3480" />
|
||||
<rect class="edge-label-bg" x="412.2" y="294.0" width="51.5" height="22" rx="3" />
|
||||
<text class="edge-label" x="438.0" y="309.0">장치 fd</text>
|
||||
<polyline class="edge kind-request style-solid emphasis-normal" points="321.0,325.5 404.5,325.5 404.5,104.0 488.0,104.0" data-evidence="3443-3445" />
|
||||
<rect class="edge-label-bg" x="396.1" y="200.8" width="64.9" height="22" rx="3" />
|
||||
<text class="edge-label" x="428.5" y="215.8">KVM_RUN</text>
|
||||
<polyline class="edge kind-control style-dashed emphasis-normal" points="321.0,361.5 414.0,361.5 414.0,441.0 507.0,441.0" data-evidence="3464-3468" />
|
||||
<rect class="edge-label-bg" x="402.2" y="387.2" width="71.6" height="22" rx="3" />
|
||||
<text class="edge-label" x="438.0" y="402.2">제어 ioctl</text>
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="321.0,379.5 401.0,379.5 401.0,601.0 481.0,601.0" data-evidence="3455-3457,3467-3467" />
|
||||
<rect class="edge-label-bg" x="385.9" y="476.2" width="78.3" height="22" rx="3" />
|
||||
<text class="edge-label" x="425.0" y="491.2">virtqueue</text>
|
||||
<polyline class="edge kind-control style-solid emphasis-normal" points="657.0,272.5 761.2,272.5 761.2,441.0 865.5,441.0" data-evidence="3483-3485" />
|
||||
<rect class="edge-label-bg" x="739.4" y="342.8" width="91.7" height="22" rx="3" />
|
||||
<text class="edge-label" x="785.2" y="357.8">vfio-pci 결합</text>
|
||||
<g id="node-qemu">
|
||||
<rect class="node-shape kind-service emphasis-primary role-source" data-evidence="1102-1108" x="379.5" y="60.0" width="251.0" height="88.0" rx="7" />
|
||||
<text class="node-label" x="505.0" y="87.0">QEMU</text>
|
||||
<line class="node-detail-divider" x1="393.5" y1="108.0" x2="616.5" y2="108.0" />
|
||||
<text class="node-detail" x="395.5" y="125.0">/dev/kvm</text>
|
||||
<text class="node-detail" x="395.5" y="141.0">KVM_CREATE_VM · KVM_CREATE_VCPU</text>
|
||||
<rect class="node-shape kind-service emphasis-primary role-source" data-evidence="3441-3447" x="70.0" y="308.5" width="251.0" height="88.0" rx="7" />
|
||||
<text class="node-label" x="195.5" y="335.5">QEMU</text>
|
||||
<line class="node-detail-divider" x1="84.0" y1="356.5" x2="307.0" y2="356.5" />
|
||||
<text class="node-detail" x="86.0" y="373.5">/dev/kvm</text>
|
||||
<text class="node-detail" x="86.0" y="389.5">KVM_CREATE_VM · KVM_CREATE_VCPU</text>
|
||||
</g>
|
||||
<g id="node-kvm">
|
||||
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="1105-1108" x="70.0" y="252.5" width="188.0" height="88.0" rx="7" />
|
||||
<text class="node-label" x="164.0" y="279.5">KVM</text>
|
||||
<line class="node-detail-divider" x1="84.0" y1="300.5" x2="244.0" y2="300.5" />
|
||||
<text class="node-detail" x="86.0" y="317.5">struct kvm_run</text>
|
||||
<text class="node-detail" x="86.0" y="333.5">KVM_GET_VCPU_MMAP_SIZE</text>
|
||||
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="3444-3447" x="488.0" y="60.0" width="188.0" height="88.0" rx="7" />
|
||||
<text class="node-label" x="582.0" y="87.0">KVM</text>
|
||||
<line class="node-detail-divider" x1="502.0" y1="108.0" x2="662.0" y2="108.0" />
|
||||
<text class="node-detail" x="504.0" y="125.0">struct kvm_run</text>
|
||||
<text class="node-detail" x="504.0" y="141.0">KVM_GET_VCPU_MMAP_SIZE</text>
|
||||
</g>
|
||||
<g id="node-vfio">
|
||||
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="1131-1146" x="318.0" y="244.0" width="150.0" height="105.0" rx="7" />
|
||||
<text class="node-label" x="393.0" y="271.0">VFIO</text>
|
||||
<line class="node-detail-divider" x1="332.0" y1="292.0" x2="454.0" y2="292.0" />
|
||||
<text class="node-detail" x="334.0" y="309.0">vfio-pci</text>
|
||||
<text class="node-detail" x="334.0" y="325.0">IOMMU 그룹</text>
|
||||
<text class="node-detail" x="334.0" y="341.0">/dev/vfio/vfio</text>
|
||||
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="3470-3485" x="507.0" y="220.0" width="150.0" height="105.0" rx="7" />
|
||||
<text class="node-label" x="582.0" y="247.0">VFIO</text>
|
||||
<line class="node-detail-divider" x1="521.0" y1="268.0" x2="643.0" y2="268.0" />
|
||||
<text class="node-detail" x="523.0" y="285.0">vfio-pci</text>
|
||||
<text class="node-detail" x="523.0" y="301.0">IOMMU 그룹</text>
|
||||
<text class="node-detail" x="523.0" y="317.0">/dev/vfio/vfio</text>
|
||||
</g>
|
||||
<g id="node-vhost">
|
||||
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="1125-1129" x="528.0" y="252.5" width="150.0" height="88.0" rx="7" />
|
||||
<text class="node-label" x="603.0" y="279.5">vhost</text>
|
||||
<line class="node-detail-divider" x1="542.0" y1="300.5" x2="664.0" y2="300.5" />
|
||||
<text class="node-detail" x="544.0" y="317.5">리눅스 커널 구현</text>
|
||||
<text class="node-detail" x="544.0" y="333.5">virtqueue 공유</text>
|
||||
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="3464-3468" x="507.0" y="397.0" width="150.0" height="88.0" rx="7" />
|
||||
<text class="node-label" x="582.0" y="424.0">vhost</text>
|
||||
<line class="node-detail-divider" x1="521.0" y1="445.0" x2="643.0" y2="445.0" />
|
||||
<text class="node-detail" x="523.0" y="462.0">리눅스 커널 구현</text>
|
||||
<text class="node-detail" x="523.0" y="478.0">virtqueue 공유</text>
|
||||
</g>
|
||||
<g id="node-virtio-driver">
|
||||
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="1116-1118" x="738.0" y="252.5" width="202.0" height="88.0" rx="7" />
|
||||
<text class="node-label" x="839.0" y="279.5">게스트 virtio 드라이버</text>
|
||||
<line class="node-detail-divider" x1="752.0" y1="300.5" x2="926.0" y2="300.5" />
|
||||
<text class="node-detail" x="754.0" y="317.5">virtio-pci · virtio-mmio</text>
|
||||
<text class="node-detail" x="754.0" y="333.5">virtqueue</text>
|
||||
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="3455-3457" x="481.0" y="557.0" width="202.0" height="88.0" rx="7" />
|
||||
<text class="node-label" x="582.0" y="584.0">게스트 virtio 드라이버</text>
|
||||
<line class="node-detail-divider" x1="495.0" y1="605.0" x2="669.0" y2="605.0" />
|
||||
<text class="node-detail" x="497.0" y="622.0">virtio-pci · virtio-mmio</text>
|
||||
<text class="node-detail" x="497.0" y="638.0">virtqueue</text>
|
||||
</g>
|
||||
<g id="node-physical-cpu">
|
||||
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="1111-1113" x="302.5" y="445.0" width="195.0" height="105.0" rx="7" />
|
||||
<text class="node-label" x="400.0" y="472.0">물리 CPU</text>
|
||||
<line class="node-detail-divider" x1="316.5" y1="493.0" x2="483.5" y2="493.0" />
|
||||
<text class="node-detail" x="318.5" y="510.0">VMX root · VMX non-root</text>
|
||||
<text class="node-detail" x="318.5" y="526.0">VM entry · VM exit</text>
|
||||
<text class="node-detail" x="318.5" y="542.0">guest-state 영역</text>
|
||||
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="3450-3452" x="843.0" y="228.5" width="195.0" height="105.0" rx="7" />
|
||||
<text class="node-label" x="940.5" y="255.5">물리 CPU</text>
|
||||
<line class="node-detail-divider" x1="857.0" y1="276.5" x2="1024.0" y2="276.5" />
|
||||
<text class="node-detail" x="859.0" y="293.5">VMX root · VMX non-root</text>
|
||||
<text class="node-detail" x="859.0" y="309.5">VM entry · VM exit</text>
|
||||
<text class="node-detail" x="859.0" y="325.5">guest-state 영역</text>
|
||||
</g>
|
||||
<g id="node-pci-device">
|
||||
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="1131-1133,1144-1146" x="557.5" y="462.0" width="150.0" height="71.0" rx="7" />
|
||||
<text class="node-label" x="632.5" y="489.0">물리 PCI 장치</text>
|
||||
<line class="node-detail-divider" x1="571.5" y1="510.0" x2="693.5" y2="510.0" />
|
||||
<text class="node-detail" x="573.5" y="527.0">게스트 직접 할당</text>
|
||||
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="3470-3472,3483-3485" x="865.5" y="405.5" width="150.0" height="71.0" rx="7" />
|
||||
<text class="node-label" x="940.5" y="432.5">물리 PCI 장치</text>
|
||||
<line class="node-detail-divider" x1="879.5" y1="453.5" x2="1001.5" y2="453.5" />
|
||||
<text class="node-detail" x="881.5" y="470.5">게스트 직접 할당</text>
|
||||
</g>
|
||||
<g id="node-guest-code">
|
||||
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="1111-1113" x="325.0" y="646.0" width="150.0" height="71.0" rx="7" />
|
||||
<text class="node-label" x="400.0" y="673.0">게스트 코드</text>
|
||||
<line class="node-detail-divider" x1="339.0" y1="694.0" x2="461.0" y2="694.0" />
|
||||
<text class="node-detail" x="341.0" y="711.0">vCPU</text>
|
||||
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="3450-3452" x="1198.0" y="245.5" width="150.0" height="71.0" rx="7" />
|
||||
<text class="node-label" x="1273.0" y="272.5">게스트 코드</text>
|
||||
<line class="node-detail-divider" x1="1212.0" y1="293.5" x2="1334.0" y2="293.5" />
|
||||
<text class="node-detail" x="1214.0" y="310.5">vCPU</text>
|
||||
</g>
|
||||
<g id="node-iommu">
|
||||
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="1144-1146" x="535.0" y="646.0" width="150.0" height="71.0" rx="7" />
|
||||
<text class="node-label" x="610.0" y="673.0">IOMMU</text>
|
||||
<line class="node-detail-divider" x1="549.0" y1="694.0" x2="671.0" y2="694.0" />
|
||||
<text class="node-detail" x="551.0" y="711.0">DMA · 인터럽트 리매핑</text>
|
||||
<rect class="node-shape kind-service emphasis-normal role-sink" data-evidence="3483-3485" x="1198.0" y="388.5" width="150.0" height="71.0" rx="7" />
|
||||
<text class="node-label" x="1273.0" y="415.5">IOMMU</text>
|
||||
<line class="node-detail-divider" x1="1212.0" y1="436.5" x2="1334.0" y2="436.5" />
|
||||
<text class="node-detail" x="1214.0" y="453.5">DMA · 인터럽트 리매핑</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user