{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/firecracker/json-schema/firecracker-memory-hotplug-config-schema.json",
  "title": "MemoryHotplugConfig",
  "description": "The configuration of the hotpluggable memory device (virtio-mem)",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/firecracker-hotplug-api-openapi.yml#/components/schemas/MemoryHotplugConfig",
  "type": "object",
  "properties": {
    "total_size_mib": {
      "type": "integer",
      "description": "Total size of the hotpluggable memory in MiB."
    },
    "slot_size_mib": {
      "type": "integer",
      "default": 128,
      "minimum": 128,
      "description": "Slot size for the hotpluggable memory in MiB. This will determine the granularity of hot-plug memory from the host. Refer to the device documentation on how to tune this value."
    },
    "block_size_mib": {
      "type": "integer",
      "default": 2,
      "minimum": 2,
      "description": "(Logical) Block size for the hotpluggable memory in MiB. This will determine the logical granularity of hot-plug memory for the guest. Refer to the device documentation on how to tune this value."
    }
  }
}