GIMMinimal.cpp revision 3357df142080b5abd7a5da3358371ce0bff34e91
/* $Id$ */
/** @file
* GIM - Guest Interface Manager, Minimal 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;
* you can redistribute it and/or modify it under the terms of the GNU
* 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 "GIMMinimalInternal.h"
#include "GIMInternal.h"
#include <iprt/assert.h>
#include <iprt/err.h>
#include <VBox/vmm/cpum.h>
#include <VBox/vmm/vm.h>
/*******************************************************************************
* Defined Constants And Macros *
*******************************************************************************/
VMMR3_INT_DECL(int) GIMR3MinimalInit(PVM pVM)
{
AssertReturn(pVM, VERR_INVALID_PARAMETER);
AssertReturn(pVM->gim.s.enmProvider == GIMPROVIDER_MINIMAL, VERR_INTERNAL_ERROR_5);
Assert(CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_HVP));
/** @todo Register CPUID leaves, MSR ranges with CPUM. */
return VINF_SUCCESS;
}
VMMR3_INT_DECL(void) GIMR3MinimalRelocate(PVM pVM, RTGCINTPTR offDelta)
{
NOREF(pVM); NOREF(offDelta);
}