mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
hw/pvrdma: Make sure PCI function 0 is vmxnet3
Guest driver enforces it, we should also. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
This commit is contained in:
parent
317639aafd
commit
d961ead16e
2 changed files with 14 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "hw/pci/pci.h"
|
||||
#include "hw/pci/msix.h"
|
||||
#include "chardev/char-fe.h"
|
||||
#include "hw/net/vmxnet3_defs.h"
|
||||
|
||||
#include "../rdma_backend_defs.h"
|
||||
#include "../rdma_rm_defs.h"
|
||||
|
@ -85,6 +86,7 @@ typedef struct PVRDMADev {
|
|||
RdmaBackendDev backend_dev;
|
||||
RdmaDeviceResources rdma_dev_res;
|
||||
CharBackend mad_chr;
|
||||
VMXNET3State *func0;
|
||||
} PVRDMADev;
|
||||
#define PVRDMA_DEV(dev) OBJECT_CHECK(PVRDMADev, (dev), PVRDMA_HW_NAME)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue