mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
vfio/pci: Cache vendor and device ID
Simplify access to commonly referenced PCI vendor and device ID by caching it on the VFIOPCIDevice struct. Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
c9c5000991
commit
ff635e3775
3 changed files with 11 additions and 19 deletions
|
@ -116,6 +116,8 @@ typedef struct VFIOPCIDevice {
|
|||
EventNotifier err_notifier;
|
||||
EventNotifier req_notifier;
|
||||
int (*resetfn)(struct VFIOPCIDevice *);
|
||||
uint16_t vendor_id;
|
||||
uint16_t device_id;
|
||||
uint32_t features;
|
||||
#define VFIO_FEATURE_ENABLE_VGA_BIT 0
|
||||
#define VFIO_FEATURE_ENABLE_VGA (1 << VFIO_FEATURE_ENABLE_VGA_BIT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue