summary refs log tree commit diff stats
path: root/hw/vfio/types.h
blob: 5482d908088af7240e00c4e0cfe2e68e842c2520 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * VFIO types definition
 *
 * Copyright Red Hat, Inc. 2025
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */
#ifndef HW_VFIO_VFIO_TYPES_H
#define HW_VFIO_VFIO_TYPES_H

/*
 * TYPE_VFIO_PCI_DEVICE is an abstract type used to share code
 * between VFIO implementations that use a kernel driver
 * with those that use user sockets.
 */
#define TYPE_VFIO_PCI_DEVICE "vfio-pci-device"

#define TYPE_VFIO_PCI "vfio-pci"
/* TYPE_VFIO_PCI shares struct VFIOPCIDevice. */

#define TYPE_VFIO_PCI_NOHOTPLUG "vfio-pci-nohotplug"

#endif /* HW_VFIO_VFIO_TYPES_H */