Last change
on this file since 51011 was 50953, checked in by vboxsync, 11 years ago |
GIM: Skeleton, work in progress.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.2 KB
|
Line | |
---|
1 | /* $Id: GIMAll.cpp 50953 2014-04-02 14:47:00Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * GIM - Guest Interface Manager - All Contexts.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2014 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 |
|
---|
19 | /*******************************************************************************
|
---|
20 | * Header Files *
|
---|
21 | *******************************************************************************/
|
---|
22 | #define LOG_GROUP LOG_GROUP_GIM
|
---|
23 | #include "GIMInternal.h"
|
---|
24 | #include <VBox/vmm/vm.h>
|
---|
25 |
|
---|
26 |
|
---|
27 | VMMDECL(bool) GIMIsEnabled(PVM pVM)
|
---|
28 | {
|
---|
29 | return pVM->gim.s.fEnabled;
|
---|
30 | }
|
---|
31 |
|
---|
32 |
|
---|
33 | VMM_INT_DECL(int) GIMHypercall(PVMCPU pVCpu, PCPUMCTX pCtx)
|
---|
34 | {
|
---|
35 | PVM pVM = pVCpu->CTX_SUFF(pVM);
|
---|
36 | Assert(GIMIsEnabled(pVM));
|
---|
37 | VMCPU_ASSERT_EMT(pVCpu);
|
---|
38 |
|
---|
39 | return pVM->gim.s.CTX_SUFF(pfnHypercall)(pVCpu, pCtx);
|
---|
40 | }
|
---|
41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.