Skip to content

Commit c9dad7f

Browse files
committed
KVM: PPC: Book3S: PR: Export kvmppc_copy_to|from_svcpu
The kvmppc_copy_{to,from}_svcpu functions are publically visible, so we should also export them in a header for others C files to consume. So far we didn't need this because we only called it from asm code. The next patch will introduce a C caller. Signed-off-by: Alexander Graf <[email protected]>
1 parent d825a04 commit c9dad7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/powerpc/include/asm/kvm_book3s.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ extern void kvmppc_load_up_vsx(void);
192192
extern u32 kvmppc_alignment_dsisr(struct kvm_vcpu *vcpu, unsigned int inst);
193193
extern ulong kvmppc_alignment_dar(struct kvm_vcpu *vcpu, unsigned int inst);
194194
extern int kvmppc_h_pr(struct kvm_vcpu *vcpu, unsigned long cmd);
195+
extern void kvmppc_copy_to_svcpu(struct kvmppc_book3s_shadow_vcpu *svcpu,
196+
struct kvm_vcpu *vcpu);
197+
extern void kvmppc_copy_from_svcpu(struct kvm_vcpu *vcpu,
198+
struct kvmppc_book3s_shadow_vcpu *svcpu);
195199

196200
static inline struct kvmppc_vcpu_book3s *to_book3s(struct kvm_vcpu *vcpu)
197201
{

0 commit comments

Comments
 (0)