File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -621,6 +621,13 @@ extern struct fgt_masks hdfgrtr_masks;
621
621
extern struct fgt_masks hdfgwtr_masks ;
622
622
extern struct fgt_masks hafgrtr_masks ;
623
623
624
+ extern struct fgt_masks kvm_nvhe_sym (hfgrtr_masks );
625
+ extern struct fgt_masks kvm_nvhe_sym (hfgwtr_masks );
626
+ extern struct fgt_masks kvm_nvhe_sym (hfgitr_masks );
627
+ extern struct fgt_masks kvm_nvhe_sym (hdfgrtr_masks );
628
+ extern struct fgt_masks kvm_nvhe_sym (hdfgwtr_masks );
629
+ extern struct fgt_masks kvm_nvhe_sym (hafgrtr_masks );
630
+
624
631
struct kvm_cpu_context {
625
632
struct user_pt_regs regs ; /* sp = sp_el0 */
626
633
Original file line number Diff line number Diff line change @@ -2450,6 +2450,14 @@ static void kvm_hyp_init_symbols(void)
2450
2450
kvm_nvhe_sym (__icache_flags ) = __icache_flags ;
2451
2451
kvm_nvhe_sym (kvm_arm_vmid_bits ) = kvm_arm_vmid_bits ;
2452
2452
2453
+ /* Propagate the FGT state to the the nVHE side */
2454
+ kvm_nvhe_sym (hfgrtr_masks ) = hfgrtr_masks ;
2455
+ kvm_nvhe_sym (hfgwtr_masks ) = hfgwtr_masks ;
2456
+ kvm_nvhe_sym (hfgitr_masks ) = hfgitr_masks ;
2457
+ kvm_nvhe_sym (hdfgrtr_masks ) = hdfgrtr_masks ;
2458
+ kvm_nvhe_sym (hdfgwtr_masks ) = hdfgwtr_masks ;
2459
+ kvm_nvhe_sym (hafgrtr_masks ) = hafgrtr_masks ;
2460
+
2453
2461
/*
2454
2462
* Flush entire BSS since part of its data containing init symbols is read
2455
2463
* while the MMU is off.
Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ DEFINE_PER_CPU(struct kvm_host_data, kvm_host_data);
33
33
DEFINE_PER_CPU (struct kvm_cpu_context , kvm_hyp_ctxt );
34
34
DEFINE_PER_CPU (unsigned long, kvm_hyp_vector );
35
35
36
+ struct fgt_masks hfgrtr_masks ;
37
+ struct fgt_masks hfgwtr_masks ;
38
+ struct fgt_masks hfgitr_masks ;
39
+ struct fgt_masks hdfgrtr_masks ;
40
+ struct fgt_masks hdfgwtr_masks ;
41
+ struct fgt_masks hafgrtr_masks ;
42
+
36
43
extern void kvm_nvhe_prepare_backtrace (unsigned long fp , unsigned long pc );
37
44
38
45
static void __activate_cptr_traps (struct kvm_vcpu * vcpu )
You can’t perform that action at this time.
0 commit comments