Skip to content

Commit 47eb2d6

Browse files
author
Marc Zyngier
committed
KVM: arm64: nv: Expose BTI and CSV_frac to a guest hypervisor
Now that we expose PAC to NV guests, we can also expose BTI (as the two as joined at the hip, due to some of the PAC instructions being landing pads). While we're at it, also propagate CSV_frac, which requires no particular emulation. Fixes: f4f6a95 ("KVM: arm64: nv: Advertise support for PAuth") Reviewed-by: Oliver Upton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent 41011e2 commit 47eb2d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arch/arm64/kvm/nested.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ static u64 limit_nv_id_reg(u32 id, u64 val)
5858
break;
5959

6060
case SYS_ID_AA64PFR1_EL1:
61-
/* Only support SSBS */
62-
val &= NV_FTR(PFR1, SSBS);
61+
/* Only support BTI, SSBS, CSV2_frac */
62+
val &= (NV_FTR(PFR1, BT) |
63+
NV_FTR(PFR1, SSBS) |
64+
NV_FTR(PFR1, CSV2_frac));
6365
break;
6466

6567
case SYS_ID_AA64MMFR0_EL1:

0 commit comments

Comments
 (0)