diff options
author | Raghavendra Rao Ananta <[email protected]> | 2022-05-02 23:38:45 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-05-03 14:48:54 +0100 |
commit | 85fbe08e4da862dc64fc10071c4a03e51b6361d0 (patch) | |
tree | af4b1793b6db9557fcf888268e9a44977ab95048 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | b2d229d4ddb17db541098b83524d901257e93845 (diff) |
KVM: arm64: Factor out firmware register handling from psci.c
Common hypercall firmware register handing is currently employed
by psci.c. Since the upcoming patches add more of these registers,
it's better to move the generic handling to hypercall.c for a
cleaner presentation.
While we are at it, collect all the firmware registers under
fw_reg_ids[] to help implement kvm_arm_get_fw_num_regs() and
kvm_arm_copy_fw_reg_indices() in a generic way. Also, define
KVM_REG_FEATURE_LEVEL_MASK using a GENMASK instead.
No functional change intended.
Signed-off-by: Raghavendra Rao Ananta <[email protected]>
Reviewed-by: Oliver Upton <[email protected]>
Reviewed-by: Gavin Shan <[email protected]>
[maz: fixed KVM_REG_FEATURE_LEVEL_MASK]
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions