summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsephe <sephe@FreeBSD.org>2016-04-11 03:14:28 +0000
committersephe <sephe@FreeBSD.org>2016-04-11 03:14:28 +0000
commit43950de88e5f22790360783b053e31c28f4359bf (patch)
treeecb487ab41f31cc5319ee5b4721e8303fd6f16c8
parent1cae14fc17208fc1f7c1250539d02a07136ec002 (diff)
downloadFreeBSD-src-43950de88e5f22790360783b053e31c28f4359bf.zip
FreeBSD-src-43950de88e5f22790360783b053e31c28f4359bf.tar.gz
hyperv/vmbus: Get rid of max_leaf detection; this is actually not used.
It will be replaced by a new one. MFC after: 1 week Sponsored by: Microsoft OSTC
-rw-r--r--sys/dev/hyperv/vmbus/hv_hv.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/sys/dev/hyperv/vmbus/hv_hv.c b/sys/dev/hyperv/vmbus/hv_hv.c
index b6795b6..c22beac 100644
--- a/sys/dev/hyperv/vmbus/hv_hv.c
+++ b/sys/dev/hyperv/vmbus/hv_hv.c
@@ -70,35 +70,6 @@ hv_get_timecount(struct timecounter *tc)
}
/**
- * @brief Get version of the windows hypervisor
- */
-static int
-hv_vmbus_get_hypervisor_version(void)
-{
- u_int regs[4];
- unsigned int maxLeaf;
- unsigned int op;
-
- /*
- * Its assumed that this is called after confirming that
- * Viridian is present
- * Query id and revision.
- */
- op = HV_CPU_ID_FUNCTION_HV_VENDOR_AND_MAX_FUNCTION;
- do_cpuid(op, regs);
-
- maxLeaf = regs[0];
- op = HV_CPU_ID_FUNCTION_HV_INTERFACE;
- do_cpuid(op, regs);
-
- if (maxLeaf >= HV_CPU_ID_FUNCTION_MS_HV_VERSION) {
- op = HV_CPU_ID_FUNCTION_MS_HV_VERSION;
- do_cpuid(op, regs);
- }
- return (maxLeaf);
-}
-
-/**
* @brief Invoke the specified hypercall
*/
static uint64_t
@@ -147,7 +118,6 @@ hv_vmbus_do_hypercall(uint64_t control, void* input, void* output)
int
hv_vmbus_init(void)
{
- int max_leaf;
hv_vmbus_x64_msr_hypercall_contents hypercall_msr;
void* virt_addr = 0;
@@ -164,8 +134,6 @@ hv_vmbus_init(void)
if (vm_guest != VM_GUEST_HV)
goto cleanup;
- max_leaf = hv_vmbus_get_hypervisor_version();
-
/*
* Write our OS info
*/
OpenPOWER on IntegriCloud