Skip to content

Instantly share code, notes, and snippets.

@sky8273
sky8273 / hotplug.md
Created April 14, 2021 01:59 — forked from devimc/hotplug.md
Hot plugging devices

Hot plugging devices using ACPI, SHPC and native

This gist is to show different ways to hot plug devices in a Virtual Machine

Set up the environment

Create a device mapper

dd if=/dev/zero of=devmap.img count=1 bs=50M
@mcastelino
mcastelino / acpi_qemu_pci_hotplug.md
Last active January 24, 2023 23:50
APCI QEMU PCI Discovery, Enumeration and Hotplug

Overview

This document attempts to call out all the elements and mechanisms involved in the discovery as well as hotplug of PCI devices including

  • QEMU framework
  • APCI Tables and Methods
  • Linux Kernel functions and tables

The logic pertaining to the GED interrupt based APCI eventing is specific to NEMU. The rest of this document is generic.

QEMU Hotplug Registration

@devimc
devimc / hotplug.md
Last active October 14, 2024 08:31
Hot plugging devices

Hot plugging devices using ACPI, SHPC and native

This gist is to show different ways to hot plug devices in a Virtual Machine

Set up the environment

Create a device mapper

dd if=/dev/zero of=devmap.img count=1 bs=50M