* [RFC 1/9] Introduce new fields in kvm_arch/vcpu_arch struct for direct build EPT support
@ 2020-08-05 14:12 Yulei Zhang
0 siblings, 0 replies; only message in thread
From: Yulei Zhang @ 2020-08-05 14:12 UTC (permalink / raw)
To: pbonzini
Cc: kvm, linux-kernel, sean.j.christopherson, jmattson, vkuznets,
xiaoguangrong.eric, kernellwp, lihaiwei.kernel, Yulei Zhang
From: Yulei Zhang <yuleixzhang@tencent.com>
Add parameter global_root_hpa for saving direct build global EPT root point,
and add per-vcpu flag direct_build_tdp to indicate using global EPT root
point.
Signed-off-by: Yulei Zhang <yuleixzhang@tencent.com>
---
arch/x86/include/asm/kvm_host.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 86e2e0272c57..2407b872f493 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -821,6 +821,9 @@ struct kvm_vcpu_arch {
/* AMD MSRC001_0015 Hardware Configuration */
u64 msr_hwcr;
+
+ /* vcpu use pre-constructed EPT */
+ bool direct_build_tdp;
};
struct kvm_lpage_info {
@@ -983,6 +986,8 @@ struct kvm_arch {
struct kvm_pmu_event_filter *pmu_event_filter;
struct task_struct *nx_lpage_recovery_thread;
+ /* global root hpa for pre-constructed EPT */
+ hpa_t global_root_hpa;
};
struct kvm_vm_stat {
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-05 16:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05 14:12 [RFC 1/9] Introduce new fields in kvm_arch/vcpu_arch struct for direct build EPT support Yulei Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®