dm: pci: reset passthrough device by default

Do reset for passthrough PCI device by default when assigning it to post-launched
VM:
1. modify opt "reset" to "no_reset" -- could enable no_reset for debug only
2. remove "ptdev_no_reset" opt. It could be replaced by setting "no_reset" for
each passthrough device.

Tracked-On: #3465
Signed-off-by: Li Fei1 <fei1.li@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Li Fei1
2019-12-25 21:29:04 +08:00
committed by wenlingz
parent 21b405d109
commit 933e2178d0
3 changed files with 15 additions and 37 deletions

View File

@@ -65,7 +65,6 @@ int vmexit_task_switch(struct vmctx *ctx, struct vhm_request *vhm_req,
void *paddr_guest2host(struct vmctx *ctx, uintptr_t gaddr, size_t len);
int virtio_uses_msix(void);
size_t high_bios_size(void);
void ptdev_no_reset(bool enable);
void init_debugexit(void);
void deinit_debugexit(void);
#endif