Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypervisor rootkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flg_bachelors
TS
2024
hypervisor rootkit
Commits
c7647d19
Commit
c7647d19
authored
4 months ago
by
iliya.saroukha
Browse files
Options
Downloads
Patches
Plain Diff
wip: looking for technical details about the VMCS
parent
73c7c7eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/vmcs.md
+32
-0
32 additions, 0 deletions
docs/vmcs.md
with
32 additions
and
0 deletions
docs/vmcs.md
0 → 100644
+
32
−
0
View file @
c7647d19
# VMCS -- Virtual Machine Control Structure
## Purpose
-
**
VMCSs help to manage transitions into and out of VMX non-root operation (i.e
VM entries and exits)
**
-
Manage processor behaviour in VMX non-root operation
-
VMCSs are manipulated using
`vmclear`
,
`vmptrld`
,
`vmread`
,
`vmwrite`
instructions
> **For a multi-vCPU VM, the VMM can use a different VMCS for each vCPU**
## Requirements
-
**VMCS pointer**
$
\r
ightarrow$ 64-bit
**physical address**
(will be $
\s
im$ 39
in reality)
-
Aligned to a 4-KByte boundary (bits 11:0 must be zero)
### Structure
The size of the structure below should be precisely equal to a page (i.e. 4KiB).[^1]
```
c
struct
vmcs_t
{
unsigned
long
vmcs_rev_id
:
31
;
unsigned
long
shadow_vmcs
:
1
;
unsigned
long
vmx_abort
;
char
data
[
0x1000
-
(
sizeof
(
unsigned
long
)
<<
1
)];
};
```
[
^1
]:
it
seems that the
`gcc`
extension
`__attribute__((packed))`
doesn't help
in this case because it ruins the 8-byte alignment (according to
`clangd`
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment