diff options
| author | Anup Patel <apatel@ventanamicro.com> | 2024-03-21 14:20:41 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-10 16:35:48 +0200 |
| commit | 651bf5b1d0708d277e5f2cf2887ec27d3b04f500 (patch) | |
| tree | a11fa75a87ad373475a8830c43c04eabb1802e61 /security | |
| parent | 200cc2c7184138383ceb3249925c06a3e7c653db (diff) | |
| download | linux-651bf5b1d0708d277e5f2cf2887ec27d3b04f500.tar.gz linux-651bf5b1d0708d277e5f2cf2887ec27d3b04f500.tar.bz2 linux-651bf5b1d0708d277e5f2cf2887ec27d3b04f500.zip | |
RISC-V: KVM: Fix APLIC in_clrip[x] read emulation
commit 8e936e98718f005c986be0bfa1ee6b355acf96be upstream.
The reads to APLIC in_clrip[x] registers returns rectified input values
of the interrupt sources.
A rectified input value of an interrupt source is defined by the section
"4.5.2 Source configurations (sourcecfg[1]–sourcecfg[1023])" of the
RISC-V AIA specification as:
rectified input value = (incoming wire value) XOR (source is inverted)
Update the riscv_aplic_input() implementation to match the above.
Cc: stable@vger.kernel.org
Fixes: 74967aa208e2 ("RISC-V: KVM: Add in-kernel emulation of AIA APLIC")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20240321085041.1955293-3-apatel@ventanamicro.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions
