/linux-6.12.1/arch/powerpc/kvm/ |
D | guest-state-buffer.c | 89 static int kvmppc_gsid_class(u16 iden) in kvmppc_gsid_class() argument 91 if ((iden >= KVMPPC_GSE_GUESTWIDE_START) && in kvmppc_gsid_class() 92 (iden <= KVMPPC_GSE_GUESTWIDE_END)) in kvmppc_gsid_class() 95 if ((iden >= KVMPPC_GSE_META_START) && (iden <= KVMPPC_GSE_META_END)) in kvmppc_gsid_class() 98 if ((iden >= KVMPPC_GSE_DW_REGS_START) && in kvmppc_gsid_class() 99 (iden <= KVMPPC_GSE_DW_REGS_END)) in kvmppc_gsid_class() 102 if ((iden >= KVMPPC_GSE_W_REGS_START) && in kvmppc_gsid_class() 103 (iden <= KVMPPC_GSE_W_REGS_END)) in kvmppc_gsid_class() 106 if ((iden >= KVMPPC_GSE_VSRS_START) && (iden <= KVMPPC_GSE_VSRS_END)) in kvmppc_gsid_class() 109 if ((iden >= KVMPPC_GSE_INTR_REGS_START) && in kvmppc_gsid_class() [all …]
|
D | test-guest-state-buffer.c | 130 u16 iden; in test_gs_bitmap() local 134 for (u16 iden = KVMPPC_GSID_HOST_STATE_SIZE; in test_gs_bitmap() local 135 iden <= KVMPPC_GSID_PROCESS_TABLE; iden++) { in test_gs_bitmap() 136 kvmppc_gsbm_set(&gsbm, iden); in test_gs_bitmap() 137 kvmppc_gsbm_set(&gsbm1, iden); in test_gs_bitmap() 138 KUNIT_EXPECT_TRUE(test, kvmppc_gsbm_test(&gsbm, iden)); in test_gs_bitmap() 139 kvmppc_gsbm_clear(&gsbm, iden); in test_gs_bitmap() 140 KUNIT_EXPECT_FALSE(test, kvmppc_gsbm_test(&gsbm, iden)); in test_gs_bitmap() 144 for (u16 iden = KVMPPC_GSID_RUN_INPUT; iden <= KVMPPC_GSID_VPA; in test_gs_bitmap() local 145 iden++) { in test_gs_bitmap() [all …]
|
D | book3s_hv_nestedv2.c | 114 u16 iden; in gs_msg_ops_vcpu_get_size() local 117 kvmppc_gsbm_for_each(&gsbm, iden) in gs_msg_ops_vcpu_get_size() 119 switch (iden) { in gs_msg_ops_vcpu_get_size() 128 size += kvmppc_gse_total_size(kvmppc_gsid_size(iden)); in gs_msg_ops_vcpu_get_size() 140 u16 iden; in gs_msg_ops_vcpu_fill_info() local 145 kvmppc_gsm_for_each(gsm, iden) in gs_msg_ops_vcpu_fill_info() 150 (kvmppc_gsid_flags(iden) & KVMPPC_GS_FLAGS_WIDE)) in gs_msg_ops_vcpu_fill_info() 153 switch (iden) { in gs_msg_ops_vcpu_fill_info() 155 rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.dscr); in gs_msg_ops_vcpu_fill_info() 158 rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.mmcra); in gs_msg_ops_vcpu_fill_info() [all …]
|
D | book3s_hv.h | 68 #define KVMPPC_BOOK3S_HV_VCPU_ACCESSOR_SET(reg, size, iden) \ argument 72 kvmhv_nestedv2_mark_dirty(vcpu, iden); \ 75 #define KVMPPC_BOOK3S_HV_VCPU_ACCESSOR_GET(reg, size, iden) \ argument 78 kvmhv_nestedv2_cached_reload(vcpu, iden); \ 82 #define KVMPPC_BOOK3S_HV_VCPU_ACCESSOR(reg, size, iden) \ argument 83 KVMPPC_BOOK3S_HV_VCPU_ACCESSOR_SET(reg, size, iden) \ 84 KVMPPC_BOOK3S_HV_VCPU_ACCESSOR_GET(reg, size, iden) \ 86 #define KVMPPC_BOOK3S_HV_VCPU_ARRAY_ACCESSOR_SET(reg, size, iden) \ argument 90 kvmhv_nestedv2_mark_dirty(vcpu, iden(i)); \ 93 #define KVMPPC_BOOK3S_HV_VCPU_ARRAY_ACCESSOR_GET(reg, size, iden) \ argument [all …]
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | guest-state-buffer.h | 219 __be16 iden; member 307 u16 kvmppc_gsid_size(u16 iden); 308 unsigned long kvmppc_gsid_flags(u16 iden); 309 u64 kvmppc_gsid_mask(u16 iden); 447 return be16_to_cpu(gse->iden); in kvmppc_gse_iden() 537 int __kvmppc_gse_put(struct kvmppc_gs_buff *gsb, u16 iden, u16 size, 547 static inline int kvmppc_gse_put_be32(struct kvmppc_gs_buff *gsb, u16 iden, in kvmppc_gse_put_be32() argument 553 return __kvmppc_gse_put(gsb, iden, sizeof(__be32), &tmp); in kvmppc_gse_put_be32() 563 static inline int kvmppc_gse_put_u32(struct kvmppc_gs_buff *gsb, u16 iden, in kvmppc_gse_put_u32() argument 568 val &= kvmppc_gsid_mask(iden); in kvmppc_gse_put_u32() [all …]
|
D | kvm_book3s.h | 353 int __kvmhv_nestedv2_mark_dirty(struct kvm_vcpu *vcpu, u16 iden); 354 int __kvmhv_nestedv2_cached_reload(struct kvm_vcpu *vcpu, u16 iden); 371 static inline int kvmhv_nestedv2_mark_dirty(struct kvm_vcpu *vcpu, u16 iden) in kvmhv_nestedv2_mark_dirty() argument 374 return __kvmhv_nestedv2_mark_dirty(vcpu, iden); in kvmhv_nestedv2_mark_dirty() 378 static inline int kvmhv_nestedv2_cached_reload(struct kvm_vcpu *vcpu, u16 iden) in kvmhv_nestedv2_cached_reload() argument 381 return __kvmhv_nestedv2_cached_reload(vcpu, iden); in kvmhv_nestedv2_cached_reload() 549 #define KVMPPC_BOOK3S_VCPU_ACCESSOR_SET(reg, size, iden) \ argument 554 kvmhv_nestedv2_mark_dirty(vcpu, iden); \ 557 #define KVMPPC_BOOK3S_VCPU_ACCESSOR_GET(reg, size, iden) \ argument 560 WARN_ON(kvmhv_nestedv2_cached_reload(vcpu, iden) < 0); \ [all …]
|
D | kvm_ppc.h | 643 static inline int kvmhv_nestedv2_mark_dirty(struct kvm_vcpu *vcpu, u16 iden) in kvmhv_nestedv2_mark_dirty() argument 648 static inline int kvmhv_nestedv2_cached_reload(struct kvm_vcpu *vcpu, u16 iden) in kvmhv_nestedv2_cached_reload() argument 977 #define KVMPPC_VCPU_SHARED_REGS_ACCESSOR_GET(reg, size, iden) \ argument 980 if (iden) \ 981 WARN_ON(kvmhv_nestedv2_cached_reload(vcpu, iden) < 0); \ 988 #define KVMPPC_VCPU_SHARED_REGS_ACCESSOR_SET(reg, size, iden) \ argument 996 if (iden) \ 997 kvmhv_nestedv2_mark_dirty(vcpu, iden); \ 1000 #define KVMPPC_VCPU_SHARED_REGS_ACCESSOR(reg, size, iden) \ argument 1001 KVMPPC_VCPU_SHARED_REGS_ACCESSOR_GET(reg, size, iden) \ [all …]
|