/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() 86 static inline unsigned long kvm_s390_logical_to_effective(struct kvm_vcpu *vcpu, in kvm_s390_logical_to_effective() 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() 278 int write_guest(struct kvm_vcpu *vcpu, unsigned long ga, u8 ar, void *data, in write_guest() 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() [all …]
|
H A D | vsie.c | 103 static int prepare_cpuflags(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) in prepare_cpuflags() 140 static int setup_apcb10(struct kvm_vcpu *vcpu, struct kvm_s390_apcb1 *apcb_s, in setup_apcb10() 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() 227 static int setup_apcb(struct kvm_vcpu *vcpu, struct kvm_s390_crypto_cb *crycb_s, in setup_apcb() 294 static int shadow_crycb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) in shadow_crycb() 369 static void prepare_ibc(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) in prepare_ibc() 392 static void unshadow_scb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) in unshadow_scb() 443 static int shadow_scb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) in shadow_scb() 621 static int map_prefix(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page) in map_prefix() [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() 122 void vgic_v2_populate_lr(struct kvm_vcpu *vcpu, struct vgic_irq *irq, int lr) in vgic_v2_populate_lr() 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() 232 void vgic_v2_get_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) in vgic_v2_get_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() [all …]
|
H A D | vgic-mmio-v3.c | 64 static unsigned long vgic_mmio_read_v3_misc(struct kvm_vcpu *vcpu, in vgic_mmio_read_v3_misc() 104 static void vgic_mmio_write_v3_misc(struct kvm_vcpu *vcpu, in vgic_mmio_write_v3_misc() 153 static int vgic_mmio_uaccess_write_v3_misc(struct kvm_vcpu *vcpu, in vgic_mmio_uaccess_write_v3_misc() 193 static unsigned long vgic_mmio_read_irouter(struct kvm_vcpu *vcpu, in vgic_mmio_read_irouter() 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() 245 static unsigned long vgic_mmio_read_v3r_ctlr(struct kvm_vcpu *vcpu, in vgic_mmio_read_v3r_ctlr() 258 static void vgic_mmio_write_v3r_ctlr(struct kvm_vcpu *vcpu, in vgic_mmio_write_v3r_ctlr() 292 static bool vgic_mmio_vcpu_rdist_is_last(struct kvm_vcpu *vcpu) in vgic_mmio_vcpu_rdist_is_last() 319 static unsigned long vgic_mmio_read_v3r_typer(struct kvm_vcpu *vcpu, in vgic_mmio_read_v3r_typer() [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() 110 static int vgic_mmio_uaccess_write_v2_group(struct kvm_vcpu *vcpu, in vgic_mmio_uaccess_write_v2_group() 128 struct kvm_vcpu *vcpu; in vgic_mmio_write_sgir() local 162 static unsigned long vgic_mmio_read_target(struct kvm_vcpu *vcpu, in vgic_mmio_read_target() 180 static void vgic_mmio_write_target(struct kvm_vcpu *vcpu, in vgic_mmio_write_target() 208 static unsigned long vgic_mmio_read_sgipend(struct kvm_vcpu *vcpu, in vgic_mmio_read_sgipend() 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() [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 | 28 void kvmppc_set_pending_interrupt(struct kvm_vcpu *vcpu, enum int_class type) in kvmppc_set_pending_interrupt() 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() [all …]
|
H A D | book3s_pr_papr.c | 23 static unsigned long get_pteg_addr(struct kvm_vcpu *vcpu, long pte_index) in get_pteg_addr() 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() 273 static int kvmppc_h_pr_logical_ci_store(struct kvm_vcpu *vcpu) in kvmppc_h_pr_logical_ci_store() 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() 315 static int kvmppc_h_pr_put_tce_indirect(struct kvm_vcpu *vcpu) in kvmppc_h_pr_put_tce_indirect() [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() 189 void kvmppc_mmu_pte_flush(struct kvm_vcpu *vcpu, ulong guest_ea, ulong ea_mask) in kvmppc_mmu_pte_flush() 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() 275 void kvmppc_mmu_pte_vflush(struct kvm_vcpu *vcpu, u64 guest_vp, u64 vp_mask) in kvmppc_mmu_pte_vflush() [all …]
|
H A D | e500_mmu.c | 64 static unsigned int get_tlb_esel(struct kvm_vcpu *vcpu, int tlbsel) in get_tlb_esel() 126 static inline void kvmppc_e500_deliver_tlb_miss(struct kvm_vcpu *vcpu, in kvmppc_e500_deliver_tlb_miss() 193 static void kvmppc_set_tlb1map_range(struct kvm_vcpu *vcpu, in kvmppc_set_tlb1map_range() 245 int kvmppc_e500_emul_tlbivax(struct kvm_vcpu *vcpu, gva_t ea) in kvmppc_e500_emul_tlbivax() 307 int kvmppc_e500_emul_tlbilx(struct kvm_vcpu *vcpu, int type, gva_t ea) in kvmppc_e500_emul_tlbilx() 322 int kvmppc_e500_emul_tlbre(struct kvm_vcpu *vcpu) in kvmppc_e500_emul_tlbre() 341 int kvmppc_e500_emul_tlbsx(struct kvm_vcpu *vcpu, gva_t ea) in kvmppc_e500_emul_tlbsx() 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() [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() 358 void kvmppc_mmu_flush_segment(struct kvm_vcpu *vcpu, ulong ea, ulong seg_size) in kvmppc_mmu_flush_segment() 375 void kvmppc_mmu_flush_segments(struct kvm_vcpu *vcpu) in kvmppc_mmu_flush_segments() [all …]
|
H A D | book3s_hv.c | 167 struct kvm_vcpu *vcpu; in next_runnable_thread() local 180 #define for_each_runnable_thread(i, vcpu, vc) \ argument 227 static void kvmppc_fast_vcpu_kick_hv(struct kvm_vcpu *vcpu) in kvmppc_fast_vcpu_kick_hv() 318 static void kvmppc_core_vcpu_load_hv(struct kvm_vcpu *vcpu, int cpu) in kvmppc_core_vcpu_load_hv() 353 static void kvmppc_core_vcpu_put_hv(struct kvm_vcpu *vcpu) in kvmppc_core_vcpu_put_hv() 386 static void kvmppc_set_pvr_hv(struct kvm_vcpu *vcpu, u32 pvr) in kvmppc_set_pvr_hv() 394 static int kvmppc_set_arch_compat(struct kvm_vcpu *vcpu, u32 arch_compat) in kvmppc_set_arch_compat() 452 static void kvmppc_dump_regs(struct kvm_vcpu *vcpu) in kvmppc_dump_regs() 490 static void init_vpa(struct kvm_vcpu *vcpu, struct lppaca *vpa) in init_vpa() 496 static int set_vpa(struct kvm_vcpu *vcpu, struct kvmppc_vpa *v, in set_vpa() [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() 363 static void kvmppc_mmu_book3s_64_slbmte(struct kvm_vcpu *vcpu, u64 rs, u64 rb) in kvmppc_mmu_book3s_64_slbmte() 412 static int kvmppc_mmu_book3s_64_slbfee(struct kvm_vcpu *vcpu, gva_t eaddr, in kvmppc_mmu_book3s_64_slbfee() 425 static u64 kvmppc_mmu_book3s_64_slbmfee(struct kvm_vcpu *vcpu, u64 slb_nr) in kvmppc_mmu_book3s_64_slbmfee() 437 static u64 kvmppc_mmu_book3s_64_slbmfev(struct kvm_vcpu *vcpu, u64 slb_nr) in kvmppc_mmu_book3s_64_slbmfev() 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() [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() 484 static int __vgic_v3_highest_priority_lr(struct kvm_vcpu *vcpu, u32 vmcr, in __vgic_v3_highest_priority_lr() 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() 753 static void __vgic_v3_write_eoir(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_write_eoir() 788 static void __vgic_v3_read_igrpen0(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_igrpen0() 793 static void __vgic_v3_read_igrpen1(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_read_igrpen1() 798 static void __vgic_v3_write_igrpen0(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_write_igrpen0() 810 static void __vgic_v3_write_igrpen1(struct kvm_vcpu *vcpu, u32 vmcr, int rt) in __vgic_v3_write_igrpen1() [all …]
|
/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() 62 static int sgx_read_hva(struct kvm_vcpu *vcpu, unsigned long hva, void *data, in sgx_read_hva() 73 static int sgx_gva_to_gpa(struct kvm_vcpu *vcpu, gva_t gva, bool write, in sgx_gva_to_gpa() 91 static int sgx_gpa_to_hva(struct kvm_vcpu *vcpu, gpa_t gpa, unsigned long *hva) in sgx_gpa_to_hva() 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() 358 static inline bool encls_leaf_enabled_in_guest(struct kvm_vcpu *vcpu, u32 leaf) in encls_leaf_enabled_in_guest() [all …]
|
/openbmc/linux/arch/x86/kvm/ |
H A D | lapic.c | 110 bool kvm_apic_pending_eoi(struct kvm_vcpu *vcpu, int vector) in kvm_apic_pending_eoi() 148 static bool kvm_can_post_timer_interrupt(struct kvm_vcpu *vcpu) in kvm_can_post_timer_interrupt() 154 bool kvm_can_use_hv_timer(struct kvm_vcpu *vcpu) in kvm_can_use_hv_timer() 161 static bool kvm_use_posted_timer_interrupt(struct kvm_vcpu *vcpu) in kvm_use_posted_timer_interrupt() 219 struct kvm_vcpu *vcpu, in kvm_recalculate_phys_map() 295 struct kvm_vcpu *vcpu) in kvm_recalculate_logical_map() 375 struct kvm_vcpu *vcpu; in kvm_recalculate_apic_map() local 566 static inline int kvm_apic_calc_nr_lvt_entries(struct kvm_vcpu *vcpu) in kvm_apic_calc_nr_lvt_entries() 571 void kvm_apic_set_version(struct kvm_vcpu *vcpu) in kvm_apic_set_version() 594 void kvm_apic_after_set_mcg_cap(struct kvm_vcpu *vcpu) in kvm_apic_after_set_mcg_cap() [all …]
|
H A D | smm.c | 112 void kvm_smm_changed(struct kvm_vcpu *vcpu, bool entering_smm) in kvm_smm_changed() 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() 422 static int rsm_enter_protected_mode(struct kvm_vcpu *vcpu, in rsm_enter_protected_mode() [all …]
|
/openbmc/linux/arch/x86/kvm/svm/ |
H A D | avic.c | 147 struct kvm_vcpu *vcpu = NULL; in avic_ga_log_notifier() local 262 static u64 *avic_get_physical_id_entry(struct kvm_vcpu *vcpu, in avic_get_physical_id_entry() 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() 340 static void avic_kick_vcpu(struct kvm_vcpu *vcpu, u32 icrl) in avic_kick_vcpu() 470 struct kvm_vcpu *vcpu; in avic_kick_target_vcpus() local 490 int avic_incomplete_ipi_interception(struct kvm_vcpu *vcpu) in avic_incomplete_ipi_interception() 542 unsigned long avic_vcpu_get_apicv_inhibit_reasons(struct kvm_vcpu *vcpu) in avic_vcpu_get_apicv_inhibit_reasons() 549 static u32 *avic_get_logical_id_entry(struct kvm_vcpu *vcpu, u32 ldr, bool flat) in avic_get_logical_id_entry() 578 static void avic_ldr_write(struct kvm_vcpu *vcpu, u8 g_physical_id, u32 ldr) in avic_ldr_write() [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() 73 void kvm_arch_vcpu_load_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_load_fp() 99 void kvm_arch_vcpu_ctxflush_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_ctxflush_fp() 112 void kvm_arch_vcpu_ctxsync_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_ctxsync_fp() 148 void kvm_arch_vcpu_put_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_put_fp()
|
H A D | reset.c | 79 static int kvm_vcpu_enable_sve(struct kvm_vcpu *vcpu) in kvm_vcpu_enable_sve() 100 static int kvm_vcpu_finalize_sve(struct kvm_vcpu *vcpu) in kvm_vcpu_finalize_sve() 134 int kvm_arm_vcpu_finalize(struct kvm_vcpu *vcpu, int feature) in kvm_arm_vcpu_finalize() 150 bool kvm_arm_vcpu_is_finalized(struct kvm_vcpu *vcpu) in kvm_arm_vcpu_is_finalized() 158 void kvm_arm_vcpu_destroy(struct kvm_vcpu *vcpu) in kvm_arm_vcpu_destroy() 170 static void kvm_vcpu_reset_sve(struct kvm_vcpu *vcpu) in kvm_vcpu_reset_sve() 176 static int kvm_vcpu_enable_ptrauth(struct kvm_vcpu *vcpu) in kvm_vcpu_enable_ptrauth() 210 int kvm_reset_vcpu(struct kvm_vcpu *vcpu) in kvm_reset_vcpu()
|
/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 inline bool fixup_guest_exit(struct kvm_vcpu *vcpu, u64 *exit_code) in fixup_guest_exit() 203 static int __kvm_vcpu_run_vhe(struct kvm_vcpu *vcpu) in __kvm_vcpu_run_vhe() 265 int __kvm_vcpu_run(struct kvm_vcpu *vcpu) in __kvm_vcpu_run() 302 struct kvm_vcpu *vcpu; in __hyp_call_panic() local
|
/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() 119 int kvm_riscv_vcpu_sbi_return(struct kvm_vcpu *vcpu, struct kvm_run *run) in kvm_riscv_vcpu_sbi_return() 138 static int riscv_vcpu_set_sbi_ext_single(struct kvm_vcpu *vcpu, in riscv_vcpu_set_sbi_ext_single() 174 static int riscv_vcpu_get_sbi_ext_single(struct kvm_vcpu *vcpu, in riscv_vcpu_get_sbi_ext_single() 207 static int riscv_vcpu_set_sbi_ext_multi(struct kvm_vcpu *vcpu, in riscv_vcpu_set_sbi_ext_multi() 227 static int riscv_vcpu_get_sbi_ext_multi(struct kvm_vcpu *vcpu, in riscv_vcpu_get_sbi_ext_multi() 250 int kvm_riscv_vcpu_set_reg_sbi_ext(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_set_reg_sbi_ext() 286 int kvm_riscv_vcpu_get_reg_sbi_ext(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_get_reg_sbi_ext() 327 struct kvm_vcpu *vcpu, unsigned long extid) in kvm_vcpu_sbi_find_ext() [all …]
|