-
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 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull more KVM updates from Paolo Bonzini: - PPC secure guest support - small x86 cleanup - fix for an x86-specific out-of-bounds write on a ioctl (not guest triggerable, data not attacker-controlled) * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: kvm: vmx: Stop wasting a page for guest_msrs KVM: x86: fix out-of-bounds write in KVM_GET_EMULATED_CPUID (CVE-2019-19332) Documentation: kvm: Fix mention to number of ioctls classes powerpc: Ultravisor: Add PPC_UV config option KVM: PPC: Book3S HV: Support reset of secure guest KVM: PPC: Book3S HV: Handle memory plug/unplug to secure VM KVM: PPC: Book3S HV: Radix changes for secure guest KVM: PPC: Book3S HV: Shared pages support for secure guests KVM: PPC: Book3S HV: Support for running secure guests mm: ksm: Export ksm_madvise() KVM x86: Move kvm cpuid support out of svm
- Loading branch information
Showing
19 changed files
with
1,156 additions
and
20 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
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
Oops, something went wrong.