mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-04-29 12:14:13 +00:00
Add cteate method for vmcs9900 vdev in hypercalls. The destroy method of ivshmem is also suitable for other emulated vdev, move it into hcall_destroy_vdev() for all emulated vdevs Tracked-On: #5394 Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
19 lines
452 B
C
19 lines
452 B
C
/*
|
|
* Copyright (C) 2020 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef VMCS9900_H
|
|
#define VMCS9900_H
|
|
|
|
#define MCS9900_VENDOR 0x9710U
|
|
#define MCS9900_DEV 0x9900U
|
|
|
|
extern const struct pci_vdev_ops vmcs9900_ops;
|
|
void trigger_vmcs9900_msix(struct pci_vdev *vdev);
|
|
int32_t create_vmcs9900_vdev(struct acrn_vm *vm, struct acrn_emul_dev *dev);
|
|
int32_t destroy_vmcs9900_vdev(struct pci_vdev *vdev);
|
|
|
|
#endif
|