Skip to content

valium007/BareSVM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BareSVM

AMD Hypervisor written in Rust

Written for learning purposes, very bare and minimal to act as a base to build upon

Sample program to do a hypercall from usermode

#[unsafe(naked)]
unsafe extern "win64" fn hypercall() -> u64 {
    core::arch::naked_asm!(
        "
        mov rcx, 1
        vmmcall
        ret
        "
    );
}

fn main() {
    println!("hypercall response: {}",unsafe {hypercall() as u64});
}

When the hypervisor is running it will return 4919/0x1337 as response

About

amd hypervisor

Topics

Resources

Stars

47 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages