/openbmc/linux/tools/testing/selftests/kvm/s390x/ |
H A D | resets.c | 68 static void assert_noirq(struct kvm_vcpu *vcpu) in assert_noirq() 85 static void assert_clear(struct kvm_vcpu *vcpu) in assert_clear() 112 static void assert_initial_noclear(struct kvm_vcpu *vcpu) in assert_initial_noclear() 129 static void assert_initial(struct kvm_vcpu *vcpu) in assert_initial() 172 static void assert_normal_noclear(struct kvm_vcpu *vcpu) in assert_normal_noclear() 182 static void assert_normal(struct kvm_vcpu *vcpu) in assert_normal() 190 static void inject_irq(struct kvm_vcpu *vcpu) in inject_irq() 205 static struct kvm_vm *create_vm(struct kvm_vcpu **vcpu) in create_vm() 218 struct kvm_vcpu *vcpu; in test_normal() local 241 struct kvm_vcpu *vcpu; in test_initial() local [all …]
|
/openbmc/linux/arch/s390/kvm/ |
H A D | gaccess.h | 44 static inline unsigned long kvm_s390_real_to_abs(struct kvm_vcpu *vcpu, in kvm_s390_real_to_abs() 120 #define put_guest_lc(vcpu, x, gra) \ argument 149 int write_guest_lc(struct kvm_vcpu *vcpu, unsigned long gra, void *data, in write_guest_lc() 175 int read_guest_lc(struct kvm_vcpu *vcpu, unsigned long gra, void *data, in read_guest_lc() 259 int write_guest_with_key(struct kvm_vcpu *vcpu, unsigned long ga, u8 ar, in write_guest_with_key() 301 int read_guest_with_key(struct kvm_vcpu *vcpu, unsigned long ga, u8 ar, in read_guest_with_key() 322 int read_guest(struct kvm_vcpu *vcpu, unsigned long ga, u8 ar, void *data, in read_guest() 345 int read_guest_instr(struct kvm_vcpu *vcpu, unsigned long ga, void *data, in read_guest_instr() 371 int write_guest_abs(struct kvm_vcpu *vcpu, unsigned long gpa, void *data, in write_guest_abs() 394 int read_guest_abs(struct kvm_vcpu *vcpu, unsigned long gpa, void *data, in read_guest_abs() [all …]
|
H A D | vsie.c | 169 static int setup_apcb00(struct kvm_vcpu *vcpu, unsigned long *apcb_s, in setup_apcb00() 195 static int setup_apcb11(struct kvm_vcpu *vcpu, unsigned long *apcb_s, in setup_apcb11() 868 static int pin_scb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page, in pin_scb() 890 static int inject_fault(struct kvm_vcpu *vcpu, __u16 code, __u64 vaddr, in inject_fault() 947 static void handle_last_fault(struct kvm_vcpu *vcpu, in handle_last_fault() 1195 static int acquire_gmap_shadow(struct kvm_vcpu *vcpu, in acquire_gmap_shadow() 1231 static void register_shadow_scb(struct kvm_vcpu *vcpu, in register_shadow_scb() 1261 static void unregister_shadow_scb(struct kvm_vcpu *vcpu) in unregister_shadow_scb() 1275 static int vsie_run(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) in vsie_run() 1396 int kvm_s390_handle_vsie(struct kvm_vcpu *vcpu) in kvm_s390_handle_vsie() [all …]
|
/openbmc/linux/arch/arm64/kvm/vgic/ |
H A D | vgic-v2.c | 29 void vgic_v2_set_underflow(struct kvm_vcpu *vcpu) in vgic_v2_set_underflow() 49 void vgic_v2_fold_lr_state(struct kvm_vcpu *vcpu) in vgic_v2_fold_lr_state() 200 void vgic_v2_clear_lr(struct kvm_vcpu *vcpu, int lr) in vgic_v2_clear_lr() 205 void vgic_v2_set_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) in vgic_v2_set_vmcr() 260 void vgic_v2_enable(struct kvm_vcpu *vcpu) in vgic_v2_enable() 403 static void save_lrs(struct kvm_vcpu *vcpu, void __iomem *base) in save_lrs() 424 void vgic_v2_save_state(struct kvm_vcpu *vcpu) in vgic_v2_save_state() 438 void vgic_v2_restore_state(struct kvm_vcpu *vcpu) in vgic_v2_restore_state() 457 void vgic_v2_load(struct kvm_vcpu *vcpu) in vgic_v2_load() 467 void vgic_v2_vmcr_sync(struct kvm_vcpu *vcpu) in vgic_v2_vmcr_sync() [all …]
|
H A D | vgic-mmio-v3.c | 104 static void vgic_mmio_write_v3_misc(struct kvm_vcpu *vcpu, in vgic_mmio_write_v3_misc() 211 static void vgic_mmio_write_irouter(struct kvm_vcpu *vcpu, in vgic_mmio_write_irouter() 238 bool vgic_lpis_enabled(struct kvm_vcpu *vcpu) in vgic_lpis_enabled() 258 static void vgic_mmio_write_v3r_ctlr(struct kvm_vcpu *vcpu, in vgic_mmio_write_v3r_ctlr() 553 static void vgic_mmio_write_invlpi(struct kvm_vcpu *vcpu, in vgic_mmio_write_invlpi() 580 static void vgic_mmio_write_invall(struct kvm_vcpu *vcpu, in vgic_mmio_write_invall() 771 int vgic_register_redist_iodev(struct kvm_vcpu *vcpu) in vgic_register_redist_iodev() 830 void vgic_unregister_redist_iodev(struct kvm_vcpu *vcpu) in vgic_unregister_redist_iodev() 839 struct kvm_vcpu *vcpu; in vgic_register_all_redist_iodevs() local 947 struct kvm_vcpu *vcpu; in vgic_v3_free_redist_region() local [all …]
|
H A D | vgic-mmio-v2.c | 25 static unsigned long vgic_mmio_read_v2_misc(struct kvm_vcpu *vcpu, in vgic_mmio_read_v2_misc() 52 static void vgic_mmio_write_v2_misc(struct kvm_vcpu *vcpu, in vgic_mmio_write_v2_misc() 72 static int vgic_mmio_uaccess_write_v2_misc(struct kvm_vcpu *vcpu, in vgic_mmio_uaccess_write_v2_misc() 128 struct kvm_vcpu *vcpu; in vgic_mmio_write_sgir() local 180 static void vgic_mmio_write_target(struct kvm_vcpu *vcpu, in vgic_mmio_write_target() 225 static void vgic_mmio_write_sgipendc(struct kvm_vcpu *vcpu, in vgic_mmio_write_sgipendc() 247 static void vgic_mmio_write_sgipends(struct kvm_vcpu *vcpu, in vgic_mmio_write_sgipends() 322 static void vgic_mmio_write_vcpuif(struct kvm_vcpu *vcpu, in vgic_mmio_write_vcpuif() 362 static unsigned long vgic_mmio_read_apr(struct kvm_vcpu *vcpu, in vgic_mmio_read_apr() 387 static void vgic_mmio_write_apr(struct kvm_vcpu *vcpu, in vgic_mmio_write_apr() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | vmx_exception_with_invalid_guest_state.c | 23 static void __run_vcpu_with_invalid_state(struct kvm_vcpu *vcpu) in __run_vcpu_with_invalid_state() 35 static void run_vcpu_with_invalid_state(struct kvm_vcpu *vcpu) in run_vcpu_with_invalid_state() 56 static void set_or_clear_invalid_guest_state(struct kvm_vcpu *vcpu, bool set) in set_or_clear_invalid_guest_state() 66 static void set_invalid_guest_state(struct kvm_vcpu *vcpu) in set_invalid_guest_state() 71 static void clear_invalid_guest_state(struct kvm_vcpu *vcpu) in clear_invalid_guest_state() 78 static struct kvm_vcpu *vcpu = NULL; in get_set_sigalrm_vcpu() local 87 struct kvm_vcpu *vcpu = get_set_sigalrm_vcpu(NULL); in sigalrm_handler() local 109 struct kvm_vcpu *vcpu; in main() local
|
H A D | vmx_msrs_test.c | 15 static void vmx_fixed1_msr_test(struct kvm_vcpu *vcpu, uint32_t msr_index, in vmx_fixed1_msr_test() 29 static void vmx_fixed0_msr_test(struct kvm_vcpu *vcpu, uint32_t msr_index, in vmx_fixed0_msr_test() 43 static void vmx_fixed0and1_msr_test(struct kvm_vcpu *vcpu, uint32_t msr_index) in vmx_fixed0and1_msr_test() 49 static void vmx_save_restore_msrs_test(struct kvm_vcpu *vcpu) in vmx_save_restore_msrs_test() 70 static void __ia32_feature_control_msr_test(struct kvm_vcpu *vcpu, in __ia32_feature_control_msr_test() 91 static void ia32_feature_control_msr_test(struct kvm_vcpu *vcpu) in ia32_feature_control_msr_test() 118 struct kvm_vcpu *vcpu; in main() local
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | e500mc.c | 105 void kvmppc_set_pid(struct kvm_vcpu *vcpu, u32 pid) in kvmppc_set_pid() 110 void kvmppc_mmu_msr_notify(struct kvm_vcpu *vcpu, u32 old_msr) in kvmppc_mmu_msr_notify() 117 static void kvmppc_core_vcpu_load_e500mc(struct kvm_vcpu *vcpu, int cpu) in kvmppc_core_vcpu_load_e500mc() 154 static void kvmppc_core_vcpu_put_e500mc(struct kvm_vcpu *vcpu) in kvmppc_core_vcpu_put_e500mc() 200 int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu) in kvmppc_core_vcpu_setup() 219 static int kvmppc_core_get_sregs_e500mc(struct kvm_vcpu *vcpu, in kvmppc_core_get_sregs_e500mc() 243 static int kvmppc_core_set_sregs_e500mc(struct kvm_vcpu *vcpu, in kvmppc_core_set_sregs_e500mc() 277 static int kvmppc_get_one_reg_e500mc(struct kvm_vcpu *vcpu, u64 id, in kvmppc_get_one_reg_e500mc() 293 static int kvmppc_set_one_reg_e500mc(struct kvm_vcpu *vcpu, u64 id, in kvmppc_set_one_reg_e500mc() 309 static int kvmppc_core_vcpu_create_e500mc(struct kvm_vcpu *vcpu) in kvmppc_core_vcpu_create_e500mc() [all …]
|
H A D | book3s_pr_papr.c | 36 static int kvmppc_h_pr_enter(struct kvm_vcpu *vcpu) in kvmppc_h_pr_enter() 86 static int kvmppc_h_pr_remove(struct kvm_vcpu *vcpu) in kvmppc_h_pr_remove() 145 static int kvmppc_h_pr_bulk_remove(struct kvm_vcpu *vcpu) in kvmppc_h_pr_bulk_remove() 214 static int kvmppc_h_pr_protect(struct kvm_vcpu *vcpu) in kvmppc_h_pr_protect() 262 static int kvmppc_h_pr_logical_ci_load(struct kvm_vcpu *vcpu) in kvmppc_h_pr_logical_ci_load() 284 static int kvmppc_h_pr_set_mode(struct kvm_vcpu *vcpu) in kvmppc_h_pr_set_mode() 301 static int kvmppc_h_pr_put_tce(struct kvm_vcpu *vcpu) in kvmppc_h_pr_put_tce() 331 static int kvmppc_h_pr_stuff_tce(struct kvm_vcpu *vcpu) in kvmppc_h_pr_stuff_tce() 347 static int kvmppc_h_pr_put_tce(struct kvm_vcpu *vcpu) in kvmppc_h_pr_put_tce() 357 static int kvmppc_h_pr_stuff_tce(struct kvm_vcpu *vcpu) in kvmppc_h_pr_stuff_tce() [all …]
|
H A D | book3s_mmu_hpte.c | 56 void kvmppc_mmu_hpte_cache_map(struct kvm_vcpu *vcpu, struct hpte_cache *pte) in kvmppc_mmu_hpte_cache_map() 101 static void invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte) in invalidate_pte() 132 static void kvmppc_mmu_pte_flush_all(struct kvm_vcpu *vcpu) in kvmppc_mmu_pte_flush_all() 150 static void kvmppc_mmu_pte_flush_page(struct kvm_vcpu *vcpu, ulong guest_ea) in kvmppc_mmu_pte_flush_page() 169 static void kvmppc_mmu_pte_flush_long(struct kvm_vcpu *vcpu, ulong guest_ea) in kvmppc_mmu_pte_flush_long() 212 static void kvmppc_mmu_pte_vflush_short(struct kvm_vcpu *vcpu, u64 guest_vp) in kvmppc_mmu_pte_vflush_short() 233 static void kvmppc_mmu_pte_vflush_64k(struct kvm_vcpu *vcpu, u64 guest_vp) in kvmppc_mmu_pte_vflush_64k() 255 static void kvmppc_mmu_pte_vflush_long(struct kvm_vcpu *vcpu, u64 guest_vp) in kvmppc_mmu_pte_vflush_long() 320 struct hpte_cache *kvmppc_mmu_hpte_cache_next(struct kvm_vcpu *vcpu) in kvmppc_mmu_hpte_cache_next() 338 void kvmppc_mmu_hpte_destroy(struct kvm_vcpu *vcpu) in kvmppc_mmu_hpte_destroy() [all …]
|
H A D | e500_mmu.c | 193 static void kvmppc_set_tlb1map_range(struct kvm_vcpu *vcpu, in kvmppc_set_tlb1map_range() 322 int kvmppc_e500_emul_tlbre(struct kvm_vcpu *vcpu) in kvmppc_e500_emul_tlbre() 390 int kvmppc_e500_emul_tlbwe(struct kvm_vcpu *vcpu) in kvmppc_e500_emul_tlbwe() 453 static int kvmppc_e500_tlb_search(struct kvm_vcpu *vcpu, in kvmppc_e500_tlb_search() 469 int kvmppc_core_vcpu_translate(struct kvm_vcpu *vcpu, in kvmppc_core_vcpu_translate() 509 void kvmppc_mmu_itlb_miss(struct kvm_vcpu *vcpu) in kvmppc_mmu_itlb_miss() 516 void kvmppc_mmu_dtlb_miss(struct kvm_vcpu *vcpu) in kvmppc_mmu_dtlb_miss() 731 int kvm_vcpu_ioctl_config_tlb(struct kvm_vcpu *vcpu, in kvm_vcpu_ioctl_config_tlb() 856 int kvm_vcpu_ioctl_dirty_tlb(struct kvm_vcpu *vcpu, in kvm_vcpu_ioctl_dirty_tlb() 866 static int vcpu_mmu_init(struct kvm_vcpu *vcpu, in vcpu_mmu_init() [all …]
|
H A D | book3s_64_mmu_host.c | 24 void kvmppc_mmu_invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte) in kvmppc_mmu_invalidate_pte() 33 static u16 kvmppc_sid_hash(struct kvm_vcpu *vcpu, u64 gvsid) in kvmppc_sid_hash() 46 static struct kvmppc_sid_map *find_sid_vsid(struct kvm_vcpu *vcpu, u64 gvsid) in find_sid_vsid() 71 int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte, in kvmppc_mmu_map_page() 214 void kvmppc_mmu_unmap_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *pte) in kvmppc_mmu_unmap_page() 225 static struct kvmppc_sid_map *create_sid_map(struct kvm_vcpu *vcpu, u64 gvsid) in create_sid_map() 271 static int kvmppc_mmu_next_segment(struct kvm_vcpu *vcpu, ulong esid) in kvmppc_mmu_next_segment() 312 int kvmppc_mmu_map_segment(struct kvm_vcpu *vcpu, ulong eaddr) in kvmppc_mmu_map_segment() 375 void kvmppc_mmu_flush_segments(struct kvm_vcpu *vcpu) in kvmppc_mmu_flush_segments() 383 void kvmppc_mmu_destroy_pr(struct kvm_vcpu *vcpu) in kvmppc_mmu_destroy_pr() [all …]
|
H A D | book3s_hv.c | 167 struct kvm_vcpu *vcpu; in next_runnable_thread() local 2172 struct kvm_vcpu *vcpu; in kvmppc_set_lpcr() local 2776 struct kvm_vcpu *vcpu; member 3209 struct kvm_vcpu *vcpu = arg; in do_migrate_away_vcpu() local 3517 struct kvm_vcpu *vcpu; in prepare_threads() local 3567 struct kvm_vcpu *vcpu; in recheck_signals_and_mmu() local 3586 struct kvm_vcpu *vcpu; in post_guest_process() local 3712 struct kvm_vcpu *vcpu; in kvmppc_run_core() local 4316 struct kvm_vcpu *vcpu; in kvmppc_vcore_check_block() local 4985 struct kvm_vcpu *vcpu; in kvm_vm_ioctl_get_dirty_log_hv() local [all …]
|
H A D | book3s_64_mmu.c | 28 struct kvm_vcpu *vcpu, in kvmppc_mmu_book3s_64_find_slbe() 81 static u64 kvmppc_mmu_book3s_64_ea_to_vp(struct kvm_vcpu *vcpu, gva_t eaddr, in kvmppc_mmu_book3s_64_ea_to_vp() 116 static hva_t kvmppc_mmu_book3s_64_get_pteg(struct kvm_vcpu *vcpu, in kvmppc_mmu_book3s_64_get_pteg() 191 static int kvmppc_mmu_book3s_64_xlate(struct kvm_vcpu *vcpu, gva_t eaddr, in kvmppc_mmu_book3s_64_xlate() 449 static void kvmppc_mmu_book3s_64_slbie(struct kvm_vcpu *vcpu, u64 ea) in kvmppc_mmu_book3s_64_slbie() 471 static void kvmppc_mmu_book3s_64_slbia(struct kvm_vcpu *vcpu) in kvmppc_mmu_book3s_64_slbia() 489 static void kvmppc_mmu_book3s_64_mtsrin(struct kvm_vcpu *vcpu, u32 srnum, in kvmppc_mmu_book3s_64_mtsrin() 529 static void kvmppc_mmu_book3s_64_tlbie(struct kvm_vcpu *vcpu, ulong va, in kvmppc_mmu_book3s_64_tlbie() 563 static int segment_contains_magic_page(struct kvm_vcpu *vcpu, ulong esid) in segment_contains_magic_page() 646 static bool kvmppc_mmu_book3s_64_is_dcbz32(struct kvm_vcpu *vcpu) in kvmppc_mmu_book3s_64_is_dcbz32() [all …]
|
/openbmc/linux/arch/arm64/kvm/hyp/vhe/ |
H A D | switch.c | 36 static void __activate_traps(struct kvm_vcpu *vcpu) in __activate_traps() 92 static void __deactivate_traps(struct kvm_vcpu *vcpu) in __deactivate_traps() 145 void activate_traps_vhe_load(struct kvm_vcpu *vcpu) in activate_traps_vhe_load() 154 void deactivate_traps_vhe_put(struct kvm_vcpu *vcpu) in deactivate_traps_vhe_put() 175 static const exit_handler_fn *kvm_get_exit_handler_array(struct kvm_vcpu *vcpu) in kvm_get_exit_handler_array() 180 static void early_exit_filter(struct kvm_vcpu *vcpu, u64 *exit_code) in early_exit_filter() 204 static int __kvm_vcpu_run_vhe(struct kvm_vcpu *vcpu) in __kvm_vcpu_run_vhe() 262 int __kvm_vcpu_run(struct kvm_vcpu *vcpu) in __kvm_vcpu_run() 299 struct kvm_vcpu *vcpu; in __hyp_call_panic() local
|
/openbmc/linux/arch/x86/kvm/vmx/ |
H A D | sgx.c | 24 static int sgx_get_encls_gva(struct kvm_vcpu *vcpu, unsigned long offset, in sgx_get_encls_gva() 54 static void sgx_handle_emulation_failure(struct kvm_vcpu *vcpu, u64 addr, in sgx_handle_emulation_failure() 73 static int sgx_gva_to_gpa(struct kvm_vcpu *vcpu, gva_t gva, bool write, in sgx_gva_to_gpa() 104 static int sgx_inject_fault(struct kvm_vcpu *vcpu, gva_t gva, int trapnr) in sgx_inject_fault() 140 static int __handle_encls_ecreate(struct kvm_vcpu *vcpu, in __handle_encls_ecreate() 216 static int handle_encls_ecreate(struct kvm_vcpu *vcpu) in handle_encls_ecreate() 296 static int handle_encls_einit(struct kvm_vcpu *vcpu) in handle_encls_einit() 373 static inline bool sgx_enabled_in_guest_bios(struct kvm_vcpu *vcpu) in sgx_enabled_in_guest_bios() 380 int handle_encls(struct kvm_vcpu *vcpu) in handle_encls() 427 void vcpu_setup_sgx_lepubkeyhash(struct kvm_vcpu *vcpu) in vcpu_setup_sgx_lepubkeyhash() [all …]
|
/openbmc/linux/arch/arm64/kvm/hyp/ |
H A D | vgic-v3-sr.c | 474 static int __vgic_v3_get_group(struct kvm_vcpu *vcpu) in __vgic_v3_get_group() 523 static int __vgic_v3_find_active_lr(struct kvm_vcpu *vcpu, int intid, in __vgic_v3_find_active_lr() 674 static void __vgic_v3_read_iar(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_iar() 730 static void __vgic_v3_write_dir(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_write_dir() 869 static void __vgic_v3_read_apxrn(struct kvm_vcpu *vcpu, int rt, int n) in __vgic_v3_read_apxrn() 881 static void __vgic_v3_write_apxrn(struct kvm_vcpu *vcpu, int rt, int n) in __vgic_v3_write_apxrn() 891 static void __vgic_v3_read_apxr0(struct kvm_vcpu *vcpu, in __vgic_v3_read_apxr0() 897 static void __vgic_v3_read_apxr1(struct kvm_vcpu *vcpu, in __vgic_v3_read_apxr1() 952 static void __vgic_v3_read_pmr(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_pmr() 971 static void __vgic_v3_read_rpr(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_rpr() [all …]
|
/openbmc/linux/arch/x86/kvm/svm/ |
H A D | avic.c | 147 struct kvm_vcpu *vcpu = NULL; in avic_ga_log_notifier() local 277 static int avic_init_backing_page(struct kvm_vcpu *vcpu) in avic_init_backing_page() 321 void avic_ring_doorbell(struct kvm_vcpu *vcpu) in avic_ring_doorbell() 470 struct kvm_vcpu *vcpu; in avic_kick_target_vcpus() local 722 struct kvm_vcpu *vcpu = &svm->vcpu; in avic_init_vcpu() local 865 struct kvm_vcpu *vcpu = NULL; in get_pi_vcpu_info() local 975 struct kvm_vcpu *vcpu; in avic_pi_update_irte() local 1028 void avic_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in avic_vcpu_load() 1072 void avic_vcpu_put(struct kvm_vcpu *vcpu) in avic_vcpu_put() 1153 void avic_vcpu_blocking(struct kvm_vcpu *vcpu) in avic_vcpu_blocking() [all …]
|
H A D | pmu.c | 41 struct kvm_vcpu *vcpu = pmu_to_vcpu(pmu); in get_gp_pmc_amd() local 81 static bool amd_is_valid_rdpmc_ecx(struct kvm_vcpu *vcpu, unsigned int idx) in amd_is_valid_rdpmc_ecx() 91 static struct kvm_pmc *amd_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in amd_rdpmc_ecx_to_pmc() 97 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc() 108 static bool amd_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in amd_is_valid_msr() 131 static int amd_pmu_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in amd_pmu_get_msr() 153 static int amd_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in amd_pmu_set_msr() 181 static void amd_pmu_refresh(struct kvm_vcpu *vcpu) in amd_pmu_refresh() 220 static void amd_pmu_init(struct kvm_vcpu *vcpu) in amd_pmu_init()
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | fpsimd.c | 17 void kvm_vcpu_unshare_task_fp(struct kvm_vcpu *vcpu) in kvm_vcpu_unshare_task_fp() 39 int kvm_arch_vcpu_run_map_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_run_map_fp() 75 void kvm_arch_vcpu_load_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_load_fp() 126 void kvm_arch_vcpu_ctxflush_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_ctxflush_fp() 139 void kvm_arch_vcpu_ctxsync_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_ctxsync_fp() 175 void kvm_arch_vcpu_put_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_put_fp()
|
H A D | reset.c | 76 static int kvm_vcpu_enable_sve(struct kvm_vcpu *vcpu) in kvm_vcpu_enable_sve() 97 static int kvm_vcpu_finalize_sve(struct kvm_vcpu *vcpu) in kvm_vcpu_finalize_sve() 131 int kvm_arm_vcpu_finalize(struct kvm_vcpu *vcpu, int feature) in kvm_arm_vcpu_finalize() 147 bool kvm_arm_vcpu_is_finalized(struct kvm_vcpu *vcpu) in kvm_arm_vcpu_is_finalized() 155 void kvm_arm_vcpu_destroy(struct kvm_vcpu *vcpu) in kvm_arm_vcpu_destroy() 167 static void kvm_vcpu_reset_sve(struct kvm_vcpu *vcpu) in kvm_vcpu_reset_sve() 173 static int kvm_vcpu_enable_ptrauth(struct kvm_vcpu *vcpu) in kvm_vcpu_enable_ptrauth() 207 int kvm_reset_vcpu(struct kvm_vcpu *vcpu) in kvm_reset_vcpu()
|
/openbmc/linux/arch/x86/kvm/ |
H A D | smm.c | 135 void process_smi(struct kvm_vcpu *vcpu) in process_smi() 155 static void enter_smm_save_seg_32(struct kvm_vcpu *vcpu, in enter_smm_save_seg_32() 169 static void enter_smm_save_seg_64(struct kvm_vcpu *vcpu, in enter_smm_save_seg_64() 183 static void enter_smm_save_state_32(struct kvm_vcpu *vcpu, in enter_smm_save_state_32() 230 static void enter_smm_save_state_64(struct kvm_vcpu *vcpu, in enter_smm_save_state_64() 281 void enter_smm(struct kvm_vcpu *vcpu) in enter_smm() 391 static int rsm_load_seg_32(struct kvm_vcpu *vcpu, in rsm_load_seg_32() 407 static int rsm_load_seg_64(struct kvm_vcpu *vcpu, in rsm_load_seg_64() 470 struct kvm_vcpu *vcpu = ctxt->vcpu; in rsm_load_state_32() local 522 struct kvm_vcpu *vcpu = ctxt->vcpu; in rsm_load_state_64() local [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | smccc_filter.c | 61 static struct kvm_vm *setup_vm(struct kvm_vcpu **vcpu) in setup_vm() 81 struct kvm_vcpu *vcpu; in test_pad_must_be_zero() local 100 struct kvm_vcpu *vcpu; in test_filter_reserved_range() local 122 struct kvm_vcpu *vcpu; in test_invalid_nr_functions() local 135 struct kvm_vcpu *vcpu; in test_overflow_nr_functions() local 148 struct kvm_vcpu *vcpu; in test_reserved_action() local 163 struct kvm_vcpu *vcpu; in test_filter_overlap() local 176 static void expect_call_denied(struct kvm_vcpu *vcpu) in expect_call_denied() 191 struct kvm_vcpu *vcpu; in test_filter_denied() local 207 static void expect_call_fwd_to_user(struct kvm_vcpu *vcpu, uint32_t func_id, in expect_call_fwd_to_user() [all …]
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | vcpu_sbi.c | 79 void kvm_riscv_vcpu_sbi_forward(struct kvm_vcpu *vcpu, struct kvm_run *run) in kvm_riscv_vcpu_sbi_forward() 98 void kvm_riscv_vcpu_sbi_system_reset(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_sbi_system_reset() 116 int kvm_riscv_vcpu_sbi_return(struct kvm_vcpu *vcpu, struct kvm_run *run) in kvm_riscv_vcpu_sbi_return() 135 static int riscv_vcpu_set_sbi_ext_single(struct kvm_vcpu *vcpu, in riscv_vcpu_set_sbi_ext_single() 171 static int riscv_vcpu_get_sbi_ext_single(struct kvm_vcpu *vcpu, in riscv_vcpu_get_sbi_ext_single() 204 static int riscv_vcpu_set_sbi_ext_multi(struct kvm_vcpu *vcpu, in riscv_vcpu_set_sbi_ext_multi() 224 static int riscv_vcpu_get_sbi_ext_multi(struct kvm_vcpu *vcpu, in riscv_vcpu_get_sbi_ext_multi() 247 int kvm_riscv_vcpu_set_reg_sbi_ext(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_set_reg_sbi_ext() 283 int kvm_riscv_vcpu_get_reg_sbi_ext(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_get_reg_sbi_ext() 324 struct kvm_vcpu *vcpu, unsigned long extid) in kvm_vcpu_sbi_find_ext() [all …]
|