mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-01 00:47:23 +00:00
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:
@@ -231,25 +231,13 @@ dm_gpa2hva(uint64_t gpa, size_t size)
|
||||
}
|
||||
|
||||
int
|
||||
fbsdrun_vmexit_on_pause(void)
|
||||
{
|
||||
return guest_vmexit_on_pause;
|
||||
}
|
||||
|
||||
int
|
||||
fbsdrun_vmexit_on_hlt(void)
|
||||
{
|
||||
return guest_vmexit_on_hlt;
|
||||
}
|
||||
|
||||
int
|
||||
fbsdrun_virtio_msix(void)
|
||||
virtio_uses_msix(void)
|
||||
{
|
||||
return virtio_msix;
|
||||
}
|
||||
|
||||
static void *
|
||||
fbsdrun_start_thread(void *param)
|
||||
start_thread(void *param)
|
||||
{
|
||||
char tname[MAXCOMLEN + 1];
|
||||
struct mt_vmm_info *mtp;
|
||||
@@ -285,7 +273,7 @@ add_cpu(struct vmctx *ctx, int guest_ncpus)
|
||||
}
|
||||
|
||||
error = pthread_create(&mt_vmm_info[0].mt_thr, NULL,
|
||||
fbsdrun_start_thread, &mt_vmm_info[0]);
|
||||
start_thread, &mt_vmm_info[0]);
|
||||
assert(error == 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user