From 180c22e18b0a9be21445271f94347238b0bc0a25 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 6 Jan 2011 15:14:37 +0100 Subject: pci: allow devices being tagged as not hotpluggable. This patch adds a field to PCIDeviceInfo to tag devices as being not hotpluggable. Any attempt to plug-in or -out such a device will throw an error. Signed-off-by: Gerd Hoffmann Signed-off-by: Michael S. Tsirkin --- hw/pci.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hw/pci.h') diff --git a/hw/pci.h b/hw/pci.h index 052960e..bc8d5bb 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -436,6 +436,9 @@ typedef struct { /* pcie stuff */ int is_express; /* is this device pci express? */ + /* device isn't hot-pluggable */ + int no_hotplug; + /* rom bar */ const char *romfile; } PCIDeviceInfo; -- cgit v1.1