mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor, arch: rename "OneRegister" and relevant code
The OneRegister literally means "one (arbitrary) register". Just call it "Register" instead. There is no need to inherit KVM's naming scheme in the hypervisor agnostic code. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -1627,7 +1627,7 @@ mod tests {
|
||||
assert!(vcpu.set_core_registers(&state).is_ok());
|
||||
let off = offset__of!(user_pt_regs, pstate);
|
||||
let pstate = vcpu
|
||||
.get_one_reg(arm64_core_reg_id!(KVM_REG_SIZE_U64, off))
|
||||
.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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user