Skip to content

vCpu for x86_64: Intel VMX virtualization support under x86_64 architecture

Notifications You must be signed in to change notification settings

kern-crates/x86_vcpu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x86_vcpu

CI

Definition of the vCPU structure and virtualization-related interface support for x86_64 architecture.

The crate user must implement the PhysFrameIf trait using crate_interface::impl_interface to provide the low-level implementantion of the allocation and dealloction of PhysFrame, relevant implementation can refer to ArceOS.

Example

use x86_vcpu::PhysFrameIf;

struct PhysFrameIfImpl;

#[crate_interface::impl_interface]
impl axvm::PhysFrameIf for PhysFrameIfImpl {
    fn alloc_frame() -> Option<PhysAddr> {
        // Your implementation here
    }
    fn dealloc_frame(paddr: PhysAddr) {
        // Your implementation here
    }
    fn phys_to_virt(paddr: PhysAddr) -> VirtAddr {
        // Your implementation here
    }
}

About

vCpu for x86_64: Intel VMX virtualization support under x86_64 architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%