~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/kvm/book3s.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  * Copyright IBM Corporation, 2013
  4  * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
  5  */
  6 
  7 #ifndef __POWERPC_KVM_BOOK3S_H__
  8 #define __POWERPC_KVM_BOOK3S_H__
  9 
 10 extern void kvmppc_core_flush_memslot_hv(struct kvm *kvm,
 11                                          struct kvm_memory_slot *memslot);
 12 extern bool kvm_unmap_gfn_range_hv(struct kvm *kvm, struct kvm_gfn_range *range);
 13 extern bool kvm_age_gfn_hv(struct kvm *kvm, struct kvm_gfn_range *range);
 14 extern bool kvm_test_age_gfn_hv(struct kvm *kvm, struct kvm_gfn_range *range);
 15 
 16 extern int kvmppc_mmu_init_pr(struct kvm_vcpu *vcpu);
 17 extern void kvmppc_mmu_destroy_pr(struct kvm_vcpu *vcpu);
 18 extern int kvmppc_core_emulate_op_pr(struct kvm_vcpu *vcpu,
 19                                      unsigned int inst, int *advance);
 20 extern int kvmppc_core_emulate_mtspr_pr(struct kvm_vcpu *vcpu,
 21                                         int sprn, ulong spr_val);
 22 extern int kvmppc_core_emulate_mfspr_pr(struct kvm_vcpu *vcpu,
 23                                         int sprn, ulong *spr_val);
 24 extern int kvmppc_book3s_init_pr(void);
 25 void kvmppc_book3s_exit_pr(void);
 26 extern int kvmppc_handle_exit_pr(struct kvm_vcpu *vcpu, unsigned int exit_nr);
 27 
 28 #ifdef CONFIG_PPC_TRANSACTIONAL_MEM
 29 extern void kvmppc_emulate_tabort(struct kvm_vcpu *vcpu, int ra_val);
 30 #else
 31 static inline void kvmppc_emulate_tabort(struct kvm_vcpu *vcpu, int ra_val) {}
 32 #endif
 33 
 34 extern void kvmppc_set_msr_hv(struct kvm_vcpu *vcpu, u64 msr);
 35 extern void kvmppc_inject_interrupt_hv(struct kvm_vcpu *vcpu, int vec, u64 srr1_flags);
 36 
 37 #endif
 38 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php