Skip to content

Commit df56f1c

Browse files
author
Marc Zyngier
committed
KVM: arm64: Add FEAT_FGT2 registers to the VNCR page
The FEAT_FGT2 registers are part of the VNCR page. Describe the corresponding offsets and add them to the vcpu sysreg enumeration. Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent b2a324f commit df56f1c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

arch/arm64/include/asm/kvm_host.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,11 @@ enum vcpu_sysreg {
562562
VNCR(HDFGRTR_EL2),
563563
VNCR(HDFGWTR_EL2),
564564
VNCR(HAFGRTR_EL2),
565+
VNCR(HFGRTR2_EL2),
566+
VNCR(HFGWTR2_EL2),
567+
VNCR(HFGITR2_EL2),
568+
VNCR(HDFGRTR2_EL2),
569+
VNCR(HDFGWTR2_EL2),
565570

566571
VNCR(CNTVOFF_EL2),
567572
VNCR(CNTV_CVAL_EL0),

arch/arm64/include/asm/vncr_mapping.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#define VNCR_CNTP_CTL_EL0 0x180
3636
#define VNCR_SCXTNUM_EL1 0x188
3737
#define VNCR_TFSR_EL1 0x190
38+
#define VNCR_HDFGRTR2_EL2 0x1A0
39+
#define VNCR_HDFGWTR2_EL2 0x1B0
3840
#define VNCR_HFGRTR_EL2 0x1B8
3941
#define VNCR_HFGWTR_EL2 0x1C0
4042
#define VNCR_HFGITR_EL2 0x1C8
@@ -52,6 +54,9 @@
5254
#define VNCR_PIRE0_EL1 0x290
5355
#define VNCR_PIR_EL1 0x2A0
5456
#define VNCR_POR_EL1 0x2A8
57+
#define VNCR_HFGRTR2_EL2 0x2C0
58+
#define VNCR_HFGWTR2_EL2 0x2C8
59+
#define VNCR_HFGITR2_EL2 0x310
5560
#define VNCR_ICH_LR0_EL2 0x400
5661
#define VNCR_ICH_LR1_EL2 0x408
5762
#define VNCR_ICH_LR2_EL2 0x410

0 commit comments

Comments
 (0)