This commit is contained in:
Masato Imai
2025-08-10 14:57:56 +00:00
parent 1c835cc32b
commit 1a8f54df49
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ impl ShadowMsr {
}
pub fn phys(&self) -> PhysAddr {
PhysAddr::new(self.ents.as_ptr() as u64)
PhysAddr::new((&self.ents as *const Vec<SavedMsr>) as u64)
}
pub fn concat(r1: u64, r2: u64) -> u64 {

View File

@ -119,7 +119,7 @@ impl IntelVCpu {
}
fn vmentry(&mut self) -> Result<(), InstructionError> {
msr::update_msrs(self).unwrap();
//msr::update_msrs(self).unwrap();
let success = {
let result: u16;