GIMHv.cpp revision 5067a9619d7131c54d4ebb371d9dac91abdd34f6
/* $Id$ */
/** @file
* GIM - Guest Interface Manager, Hyper-V implementation.
*/
/*
* Copyright (C) 2014 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_GIM
#include "GIMHvInternal.h"
#include "GIMInternal.h"
/*******************************************************************************
* Defined Constants And Macros *
*******************************************************************************/
#define GIMHV_HYPERCALL "GIMHvHypercall"
/**
* Initializes the Hyper-V GIM provider.
*
* @returns VBox status code.
* @param pVM Pointer to the VM.
* @param uVersion The interface version this VM should use.
*/
{
int rc;
#if 0
if (!HMIsEnabled(pVM))
{
}
#endif
/*
* Determine interface capabilities based on the version.
*/
uint32_t uPartFlags = 0;
uint32_t uPowMgmtFeat = 0;
uint32_t uHyperHints = 0;
{
}
/*
* Expose HVP (Hypervisor Present) bit to the guest.
*/
/*
* Modify the standard hypervisor leaves for Hyper-V.
*/
/*
* Add Hyper-V specific leaves.
*/
/*
* Register the complete MSR range for Hyper-V.
*/
return VINF_SUCCESS;
}
{
// int rc = PDMR3LdrGetSymbolRC(pVM, NULL /* pszModule */, GIMHV_HYPERCALL, &pVM->gim.s.pfnHypercallRC);
// AssertFatalRC(rc);
}