# syunnpc/qemu-system-ia64 architecture

> Architecture diagram of the GitHub repository syunnpc/qemu-system-ia64, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/syunnpc/qemu-system-ia64
- Repository: https://github.com/syunnpc/qemu-system-ia64

## Overview

This fork is QEMU’s full-system IA-64 emulator. The documented user workflow selects an IA-64 machine and CPU/topology, attaches guest media and display options, then runs a guest using the IA-64 firmware. The graph preserves those stages and the documented device, NVRAM, and acceleration capabilities. Source excerpts are sparse and mostly generic QEMU infrastructure, so IA-64 machine wiring and several runtime links are represented only where the README supports them; unsampled implementation details are not inferred.

Main entry points: [`hw/core/machine.c`](https://github.com/syunnpc/qemu-system-ia64/blob/main/hw/core/machine.c) (IA-64 profiles), [`system/main.c`](https://github.com/syunnpc/qemu-system-ia64/blob/main/system/main.c) (System entry), [`hw/uefi/var-service-vars.c`](https://github.com/syunnpc/qemu-system-ia64/blob/main/hw/uefi/var-service-vars.c) (EFI variables), [`accel/tcg/cpu-exec.c`](https://github.com/syunnpc/qemu-system-ia64/blob/main/accel/tcg/cpu-exec.c) (TCG execution)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Emulator launch"]
  node_system["System entry<br/>[main.c]"]
end

subgraph group_guest["Guest platform"]
  node_machine["IA-64 profiles<br/>[machine.c]"]
  node_cpu["IA-64 CPU"]
  node_firmware["EFI firmware"]
  node_nvram[("EFI variables<br/>[var-service-vars.c]")]
end

subgraph group_io["Virtual devices"]
  node_usb["USB storage<br/>[dev-storage.c]"]
  node_display["Display devices"]
  node_audio["Audio devices"]
  node_network["Virtual networking"]
  node_serial["Serial console"]
end

subgraph group_runtime["Execution and storage"]
  node_tcg["TCG execution<br/>[cpu-exec.c]"]
  node_block["Block devices<br/>[block.c]"]
end

node_operator(("Emulator user"))
node_media[("Guest media")]
node_host(("Host platform"))

node_operator -->|"starts"| node_system
node_system -.->|"configures"| node_machine
node_operator -->|"selects profile"| node_machine
node_machine -->|"sets default CPU"| node_cpu
node_operator -->|"selects model"| node_cpu
node_cpu -->|"executes with"| node_tcg
node_machine -->|"boots firmware"| node_firmware
node_operator -->|"sets persistence"| node_nvram
node_machine -.->|"provides EFI variables"| node_nvram
node_operator -->|"attaches media"| node_media
node_media -->|"backed by"| node_block
node_operator -->|"selects adapter"| node_display
node_operator -.->|"configures devices"| node_audio
node_operator -->|"configures networking"| node_network
node_operator -->|"selects console"| node_serial
node_host -.->|"runs emulation"| node_tcg
node_operator -.->|"configures storage"| node_usb

click node_system "https://github.com/syunnpc/qemu-system-ia64/blob/main/system/main.c"
click node_machine "https://github.com/syunnpc/qemu-system-ia64/blob/main/hw/core/machine.c"
click node_firmware "https://github.com/syunnpc/qemu-system-ia64/tree/main/roms/ia64-firmware"
click node_nvram "https://github.com/syunnpc/qemu-system-ia64/blob/main/hw/uefi/var-service-vars.c"
click node_tcg "https://github.com/syunnpc/qemu-system-ia64/blob/main/accel/tcg/cpu-exec.c"
click node_block "https://github.com/syunnpc/qemu-system-ia64/blob/main/block.c"
click node_usb "https://github.com/syunnpc/qemu-system-ia64/blob/main/hw/usb/dev-storage.c"
click node_display "https://github.com/syunnpc/qemu-system-ia64/tree/main/hw/display"
click node_audio "https://github.com/syunnpc/qemu-system-ia64/tree/main/hw/audio"
click node_network "https://github.com/syunnpc/qemu-system-ia64/tree/main/net"
click node_serial "https://github.com/syunnpc/qemu-system-ia64/tree/main/chardev"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_system,node_operator toneBlue
class node_machine,node_cpu,node_firmware,node_nvram,node_media toneAmber
class node_usb,node_display,node_audio,node_network,node_serial toneMint
class node_tcg,node_block toneRose
class node_host toneIndigo
```

## Components

### Emulator launch

- [System entry](https://github.com/syunnpc/qemu-system-ia64/blob/main/system/main.c): `system/main.c`

### Guest platform

- [IA-64 profiles](https://github.com/syunnpc/qemu-system-ia64/blob/main/hw/core/machine.c): `hw/core/machine.c`
- **IA-64 CPU**
- [EFI firmware](https://github.com/syunnpc/qemu-system-ia64/tree/main/roms/ia64-firmware): `roms/ia64-firmware`
- [EFI variables](https://github.com/syunnpc/qemu-system-ia64/blob/main/hw/uefi/var-service-vars.c): `hw/uefi/var-service-vars.c`

### Virtual devices

- [USB storage](https://github.com/syunnpc/qemu-system-ia64/blob/main/hw/usb/dev-storage.c): `hw/usb/dev-storage.c`
- [Display devices](https://github.com/syunnpc/qemu-system-ia64/tree/main/hw/display): `hw/display`
- [Audio devices](https://github.com/syunnpc/qemu-system-ia64/tree/main/hw/audio): `hw/audio`
- [Virtual networking](https://github.com/syunnpc/qemu-system-ia64/tree/main/net): `net`
- [Serial console](https://github.com/syunnpc/qemu-system-ia64/tree/main/chardev): `chardev`

### Execution and storage

- [TCG execution](https://github.com/syunnpc/qemu-system-ia64/blob/main/accel/tcg/cpu-exec.c): `accel/tcg/cpu-exec.c`
- [Block devices](https://github.com/syunnpc/qemu-system-ia64/blob/main/block.c): `block.c`

### Other components

- **Emulator user**
- **Guest media**
- **Host platform**

## Connections

- Emulator user → System entry: starts (evidence: `README.md`)
- System entry → IA-64 profiles: configures
- Emulator user → IA-64 profiles: selects profile (evidence: `README.md`)
- IA-64 profiles → IA-64 CPU: sets default CPU (evidence: `README.md`)
- Emulator user → IA-64 CPU: selects model (evidence: `README.md`)
- IA-64 CPU → TCG execution: executes with (evidence: `README.md`)
- IA-64 profiles → EFI firmware: boots firmware (evidence: `README.md`)
- Emulator user → EFI variables: sets persistence (evidence: `README.md`)
- IA-64 profiles → EFI variables: provides EFI variables
- Emulator user → Guest media: attaches media (evidence: `README.md`)
- Guest media → Block devices: backed by (evidence: `README.md`)
- Emulator user → Display devices: selects adapter (evidence: `README.md`)
- Emulator user → Audio devices: configures devices
- Emulator user → Virtual networking: configures networking (evidence: `README.md`)
- Emulator user → Serial console: selects console (evidence: `README.md`)
- Host platform → TCG execution: runs emulation
- Emulator user → USB storage: configures storage
