sys_regs.c (280b748e871e5a9bd61fc13019b8cbda6e0242dd) | sys_regs.c (9f75b6d447d712b6ed9abc869eedf456fe7f5e9b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2012,2013 - ARM Ltd 4 * Author: Marc Zyngier <marc.zyngier@arm.com> 5 * 6 * Derived from arch/arm/kvm/coproc.c: 7 * Copyright (C) 2012 - Virtual Open Systems and Columbia University 8 * Authors: Rusty Russell <rusty@rustcorp.com.au> --- 1209 unchanged lines hidden (view full) --- 1218static bool access_id_reg(struct kvm_vcpu *vcpu, 1219 struct sys_reg_params *p, 1220 const struct sys_reg_desc *r) 1221{ 1222 if (p->is_write) 1223 return write_to_read_only(vcpu, p, r); 1224 1225 p->regval = read_id_reg(vcpu, r); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2012,2013 - ARM Ltd 4 * Author: Marc Zyngier <marc.zyngier@arm.com> 5 * 6 * Derived from arch/arm/kvm/coproc.c: 7 * Copyright (C) 2012 - Virtual Open Systems and Columbia University 8 * Authors: Rusty Russell <rusty@rustcorp.com.au> --- 1209 unchanged lines hidden (view full) --- 1218static bool access_id_reg(struct kvm_vcpu *vcpu, 1219 struct sys_reg_params *p, 1220 const struct sys_reg_desc *r) 1221{ 1222 if (p->is_write) 1223 return write_to_read_only(vcpu, p, r); 1224 1225 p->regval = read_id_reg(vcpu, r); |
1226 if (vcpu_has_nv(vcpu)) 1227 access_nested_id_reg(vcpu, p, r); 1228 |
|
1226 return true; 1227} 1228 1229/* Visibility overrides for SVE-specific control registers */ 1230static unsigned int sve_visibility(const struct kvm_vcpu *vcpu, 1231 const struct sys_reg_desc *rd) 1232{ 1233 if (vcpu_has_sve(vcpu)) --- 2020 unchanged lines hidden --- | 1229 return true; 1230} 1231 1232/* Visibility overrides for SVE-specific control registers */ 1233static unsigned int sve_visibility(const struct kvm_vcpu *vcpu, 1234 const struct sys_reg_desc *rd) 1235{ 1236 if (vcpu_has_sve(vcpu)) --- 2020 unchanged lines hidden --- |