Skip to content

Instantly share code, notes, and snippets.

@sky8273
sky8273 / acpi_qemu_pci_hotplug.md
Created May 6, 2021 01:59 — forked from mcastelino/acpi_qemu_pci_hotplug.md
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

@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