summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsephe <sephe@FreeBSD.org>2016-04-11 03:07:35 +0000
committersephe <sephe@FreeBSD.org>2016-04-11 03:07:35 +0000
commit1cae14fc17208fc1f7c1250539d02a07136ec002 (patch)
tree12324beacdbd2695f4cca0c2fec1598abc31448a
parent65b4f5af73a6ade981e85b0c2246303c5ba9b137 (diff)
downloadFreeBSD-src-1cae14fc17208fc1f7c1250539d02a07136ec002.zip
FreeBSD-src-1cae14fc17208fc1f7c1250539d02a07136ec002.tar.gz
hyperv/vmbus: Nuke unused function
MFC after: 1 week Sponsored by: Microsoft OSTC
-rw-r--r--sys/dev/hyperv/vmbus/hv_hv.c12
-rw-r--r--sys/dev/hyperv/vmbus/hv_vmbus_priv.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/hyperv/vmbus/hv_hv.c b/sys/dev/hyperv/vmbus/hv_hv.c
index a423328..b6795b6 100644
--- a/sys/dev/hyperv/vmbus/hv_hv.c
+++ b/sys/dev/hyperv/vmbus/hv_hv.c
@@ -70,18 +70,6 @@ hv_get_timecount(struct timecounter *tc)
}
/**
- * @brief Query the cpuid for presence of windows hypervisor
- */
-int
-hv_vmbus_query_hypervisor_presence(void)
-{
- if (vm_guest != VM_GUEST_HV)
- return (0);
-
- return (hv_high >= HV_X64_CPUID_MIN && hv_high <= HV_X64_CPUID_MAX);
-}
-
-/**
* @brief Get version of the windows hypervisor
*/
static int
diff --git a/sys/dev/hyperv/vmbus/hv_vmbus_priv.h b/sys/dev/hyperv/vmbus/hv_vmbus_priv.h
index bc625a0..9cee4a6 100644
--- a/sys/dev/hyperv/vmbus/hv_vmbus_priv.h
+++ b/sys/dev/hyperv/vmbus/hv_vmbus_priv.h
@@ -704,7 +704,6 @@ uint16_t hv_vmbus_post_msg_via_msg_ipc(
uint16_t hv_vmbus_signal_event(void *con_id);
void hv_vmbus_synic_init(void *irq_arg);
void hv_vmbus_synic_cleanup(void *arg);
-int hv_vmbus_query_hypervisor_presence(void);
struct hv_device* hv_vmbus_child_device_create(
hv_guid device_type,
OpenPOWER on IntegriCloud