dm: code clean up

Following functions have never been used anywhere.
Let's remove them.

fbsdrun_muxed()
fbsdrun_vmexit_on_hlt()
fbsdrun_vmexit_on_pause()
fbsdrun_disable_x2apic()

Remove weird prefix "fbsdrun" from following functions' name.

fbsdrun_virtio_msix()  -->  virtio_uses_msix()
fbsdrun_start_thread() -->  start_thread()

Signed-off-by: Jie Deng <jie.deng@intel.com>
Reviewed-by: Hao Li <hao.l.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Jie Deng
2018-04-27 02:25:42 +08:00
committed by Jack Ren
parent d1a17a6401
commit d63b9002dd
8 changed files with 13 additions and 31 deletions

View File

@@ -1302,7 +1302,7 @@ virtio_heci_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
WPRINTF(("vheci init: mutexattr init fail, erro %d!\r\n", rc));
goto fail;
}
if (fbsdrun_virtio_msix()) {
if (virtio_uses_msix()) {
rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_DEFAULT);
if (rc) {
WPRINTF(("vheci init: mutexattr_settype failed with "
@@ -1340,7 +1340,7 @@ virtio_heci_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
pci_set_cfgdata16(dev, PCIR_SUBDEV_0, VIRTIO_TYPE_HECI);
pci_set_cfgdata16(dev, PCIR_SUBVEND_0, INTEL_VENDOR_ID);
if (virtio_interrupt_init(&vheci->base, fbsdrun_virtio_msix()))
if (virtio_interrupt_init(&vheci->base, virtio_uses_msix()))
goto setup_fail;
virtio_set_io_bar(&vheci->base, 0);