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:
Wei Liu
2020-10-07 14:45:25 +00:00
committed by Sebastien Boeuf
parent 9ad14e6b3a
commit ed1fdd1f7d
5 changed files with 19 additions and 19 deletions

View File

@@ -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);
}