-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'kvm-ppc-fixes-5.5-1' of git://git.kernel.org/pub/scm/linux…
…/kernel/git/paulus/powerpc into kvm-master PPC KVM fix for 5.5 - Fix a bug where we try to do an ultracall on a system without an ultravisor.
- Loading branch information
Showing
73 changed files
with
2,712 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#ifndef __ASM_KVM_BOOK3S_UVMEM_H__ | ||
#define __ASM_KVM_BOOK3S_UVMEM_H__ | ||
|
||
#ifdef CONFIG_PPC_UV | ||
int kvmppc_uvmem_init(void); | ||
void kvmppc_uvmem_free(void); | ||
int kvmppc_uvmem_slot_init(struct kvm *kvm, const struct kvm_memory_slot *slot); | ||
void kvmppc_uvmem_slot_free(struct kvm *kvm, | ||
const struct kvm_memory_slot *slot); | ||
unsigned long kvmppc_h_svm_page_in(struct kvm *kvm, | ||
unsigned long gra, | ||
unsigned long flags, | ||
unsigned long page_shift); | ||
unsigned long kvmppc_h_svm_page_out(struct kvm *kvm, | ||
unsigned long gra, | ||
unsigned long flags, | ||
unsigned long page_shift); | ||
unsigned long kvmppc_h_svm_init_start(struct kvm *kvm); | ||
unsigned long kvmppc_h_svm_init_done(struct kvm *kvm); | ||
int kvmppc_send_page_to_uv(struct kvm *kvm, unsigned long gfn); | ||
void kvmppc_uvmem_drop_pages(const struct kvm_memory_slot *free, | ||
struct kvm *kvm); | ||
#else | ||
static inline int kvmppc_uvmem_init(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline void kvmppc_uvmem_free(void) { } | ||
|
||
static inline int | ||
kvmppc_uvmem_slot_init(struct kvm *kvm, const struct kvm_memory_slot *slot) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline void | ||
kvmppc_uvmem_slot_free(struct kvm *kvm, const struct kvm_memory_slot *slot) { } | ||
|
||
static inline unsigned long | ||
kvmppc_h_svm_page_in(struct kvm *kvm, unsigned long gra, | ||
unsigned long flags, unsigned long page_shift) | ||
{ | ||
return H_UNSUPPORTED; | ||
} | ||
|
||
static inline unsigned long | ||
kvmppc_h_svm_page_out(struct kvm *kvm, unsigned long gra, | ||
unsigned long flags, unsigned long page_shift) | ||
{ | ||
return H_UNSUPPORTED; | ||
} | ||
|
||
static inline unsigned long kvmppc_h_svm_init_start(struct kvm *kvm) | ||
{ | ||
return H_UNSUPPORTED; | ||
} | ||
|
||
static inline unsigned long kvmppc_h_svm_init_done(struct kvm *kvm) | ||
{ | ||
return H_UNSUPPORTED; | ||
} | ||
|
||
static inline int kvmppc_send_page_to_uv(struct kvm *kvm, unsigned long gfn) | ||
{ | ||
return -EFAULT; | ||
} | ||
|
||
static inline void | ||
kvmppc_uvmem_drop_pages(const struct kvm_memory_slot *free, | ||
struct kvm *kvm) { } | ||
#endif /* CONFIG_PPC_UV */ | ||
#endif /* __ASM_KVM_BOOK3S_UVMEM_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.