mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv: vpci: a minor fix about is_zombie_vf
Now we check whether a device is zombie by the ->user != NULL. Tracked-On: #4550 Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -208,18 +208,6 @@ static inline uint16_t vmid_2_rel_vmid(uint16_t sos_vmid, uint16_t vmid) {
|
||||
return (vmid - sos_vmid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Check if the specified vdev is a zombie VF instance
|
||||
*
|
||||
* @param vdev Pointer to vdev instance
|
||||
*
|
||||
* @return If the vdev is a zombie VF instance return true, otherwise return false
|
||||
*/
|
||||
static inline bool is_zombie_vf(const struct pci_vdev *vdev)
|
||||
{
|
||||
return (vdev->vpci == NULL);
|
||||
}
|
||||
|
||||
void make_shutdown_vm_request(uint16_t pcpu_id);
|
||||
bool need_shutdown_vm(uint16_t pcpu_id);
|
||||
int32_t shutdown_vm(struct acrn_vm *vm);
|
||||
|
@@ -137,7 +137,7 @@ struct pci_vdev {
|
||||
* user | vdev in HV | vdev in pre-VM | vdev in SOS | vdev in post-VM | vdev in post-VM
|
||||
*/
|
||||
struct pci_vdev *parent_user;
|
||||
struct pci_vdev *user;
|
||||
struct pci_vdev *user; /* NULL means this device is not used or is a zombie VF */
|
||||
struct hlist_node link;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user