dm: vPCI: remove passthrough PCI device unused code

Now we split passthrough PCI device from DM to HV, we could remove all the passthrough
PCI device unused code.

Tracked-On: #4371
Signed-off-by: Li Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Li Fei1
2020-01-17 18:16:47 +08:00
committed by wenlingz
parent dafa3da693
commit 9fa6eff3c5
5 changed files with 12 additions and 534 deletions

View File

@@ -194,30 +194,16 @@ struct ic_ptdev_irq {
uint16_t virt_bdf; /* IN: Device virtual BDF# */
/** physical bdf description of pass thru device */
uint16_t phys_bdf; /* IN: Device physical BDF# */
union {
/** info of IOAPIC/PIC interrupt */
struct {
/** virtual IOAPIC pin */
uint32_t virt_pin;
/** physical IOAPIC pin */
uint32_t phys_pin;
/** PIC pin */
uint32_t is_pic_pin;
} intx;
/** info of MSI/MSIX interrupt */
struct {
/* Keep this filed on top of msix */
/** vector count of MSI/MSIX */
uint32_t vector_cnt;
/** size of MSIX table(round up to 4K) */
uint32_t table_size;
/** physical address of MSIX table */
uint64_t table_paddr;
} msix;
};
/** info of IOAPIC/PIC interrupt */
struct {
/** virtual IOAPIC pin */
uint32_t virt_pin;
/** physical IOAPIC pin */
uint32_t phys_pin;
/** PIC pin */
uint32_t is_pic_pin;
} intx;
};
/**

View File

@@ -123,17 +123,12 @@ int vm_run(struct vmctx *ctx);
int vm_suspend(struct vmctx *ctx, enum vm_suspend_how how);
int vm_lapic_msi(struct vmctx *ctx, uint64_t addr, uint64_t msg);
int vm_set_gsi_irq(struct vmctx *ctx, int gsi, uint32_t operation);
int vm_assign_ptdev(struct vmctx *ctx, int bus, int slot, int func);
int vm_unassign_ptdev(struct vmctx *ctx, int bus, int slot, int func);
int vm_assign_pcidev(struct vmctx *ctx, struct acrn_assign_pcidev *pcidev);
int vm_deassign_pcidev(struct vmctx *ctx, struct acrn_assign_pcidev *pcidev);
int vm_map_ptdev_mmio(struct vmctx *ctx, int bus, int slot, int func,
vm_paddr_t gpa, size_t len, vm_paddr_t hpa);
int vm_unmap_ptdev_mmio(struct vmctx *ctx, int bus, int slot, int func,
vm_paddr_t gpa, size_t len, vm_paddr_t hpa);
int vm_set_ptdev_msix_info(struct vmctx *ctx, struct ic_ptdev_irq *ptirq);
int vm_reset_ptdev_msix_info(struct vmctx *ctx, uint16_t virt_bdf, uint16_t phys_bdf,
int vector_count);
int vm_set_ptdev_intx_info(struct vmctx *ctx, uint16_t virt_bdf,
uint16_t phys_bdf, int virt_pin, int phys_pin, bool pic_pin);
int vm_reset_ptdev_intx_info(struct vmctx *ctx, uint16_t virt_bdf,