mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
hv: vpci: remove vm structure pointer from vpci
We could use container_of to get vm structure pointer from vpci. So vm structure pointer is no need in vpci structure. Tracked-On: #4550 Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -30,8 +30,14 @@
|
||||
#ifndef VPCI_PRIV_H_
|
||||
#define VPCI_PRIV_H_
|
||||
|
||||
#include <list.h>
|
||||
#include <pci.h>
|
||||
|
||||
static inline struct acrn_vm *vpci2vm(const struct acrn_vpci *vpci)
|
||||
{
|
||||
return container_of(vpci, struct acrn_vm, vpci);
|
||||
}
|
||||
|
||||
static inline bool is_quirk_ptdev(const struct pci_vdev *vdev)
|
||||
{
|
||||
return ((vdev->flags & QUIRK_PTDEV) != 0U);
|
||||
|
Reference in New Issue
Block a user