mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor: Remove get/set_reg() on AArch64
`Vcpu::get/set_reg()` were only invoked in Vcpu itself. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
committed by
Rob Bradford
parent
f7b6d99c2d
commit
cd7f36a713
@@ -2491,11 +2491,6 @@ mod tests {
|
||||
assert_eq!(state.regs.pstate, 0x3C5);
|
||||
|
||||
assert!(vcpu.set_regs(&state).is_ok());
|
||||
let off = offset__of!(user_pt_regs, pstate);
|
||||
let pstate = vcpu
|
||||
.get_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off))
|
||||
.expect("Failed to call kvm get one reg");
|
||||
assert_eq!(state.regs.pstate, pstate);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user