Last change
on this file since 72549 was 72469, checked in by vboxsync, 7 years ago |
GIM,IEM: Correctly hook up hypercalls thru IEM. bugref:9044
- IEM: Pass opcode and instruction length to GIM so it can do patching.
- GIM: Introduced GIMHypercallEx API for receiving hypercalls with instruction opcode+length. Hooking this into the exiting #UD code paths.
- GIM: Move the VMMPatchHypercall API into GIM and corrected the name to GIMQueryHypercallOpcodeBytes.
- GIM/KVM: Use GIMQueryHypercallOpcodeBytes to decide which instruction is native and cache the opcode bytes for patching.
- GIM/KVM: Check the VMCALL instruction encoding length rather than assuming its always 3 bytes when patching.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
804 bytes
|
Line | |
---|
1 | /* $Id: IEMAllCImplVmxInstr.cpp.h 72469 2018-06-07 11:35:23Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * IEM - VT-x instruction implementation.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2011-2018 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 | * Implements 'VMCALL'.
|
---|
21 | */
|
---|
22 | IEM_CIMPL_DEF_0(iemCImpl_vmcall)
|
---|
23 | {
|
---|
24 | /** @todo intercept. */
|
---|
25 |
|
---|
26 | /* Join forces with vmmcall. */
|
---|
27 | return IEM_CIMPL_CALL_1(iemCImpl_Hypercall, OP_VMCALL);
|
---|
28 | }
|
---|
29 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.