projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
191e0e1
)
KVM: arm64: nv: Use reg_to_encoding() to get sysreg ID
author
Oliver Upton
<oliver.upton@linux.dev>
Sat, 11 Feb 2023 19:07:42 +0000
(19:07 +0000)
committer
Oliver Upton
<oliver.upton@linux.dev>
Sat, 11 Feb 2023 22:10:34 +0000
(22:10 +0000)
Avoid open-coding and just use the helper to encode the ID from the
sysreg table entry.
No functional change intended.
Acked-by: Marc Zyngier <maz@kernel.org>
Link:
https://lore.kernel.org/r/20230211190742.49843-1-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/nested.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kvm/nested.c
b/arch/arm64/kvm/nested.c
index f7ec27c27a4f0a6cf6a49e044c17c0babb05b498..315354d279786c32fdcc5f6832e66f590382b7e9 100644
(file)
--- a/
arch/arm64/kvm/nested.c
+++ b/
arch/arm64/kvm/nested.c
@@
-26,8
+26,7
@@
void access_nested_id_reg(struct kvm_vcpu *v, struct sys_reg_params *p,
const struct sys_reg_desc *r)
{
- u32 id = sys_reg((u32)r->Op0, (u32)r->Op1,
- (u32)r->CRn, (u32)r->CRm, (u32)r->Op2);
+ u32 id = reg_to_encoding(r);
u64 val, tmp;
val = p->regval;