[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN PATCH v4 00/14] x86: make CPU virtualisation support configurable
This is another series to provide a means to render the CPU virtualisation technology support in Xen configurable. Currently, irrespectively of the target platform, both AMD-V and Intel VT-x drivers are built. The series adds three new Kconfig controls, ALT2PM, SVM and VMX, that can be used to switch to a finer-grained configuration for a given platform, and reduce dead code. The code separation is done using the new config guards. Major changes in this series, comparing to v3, are turning of macros using_vmx & using_svm into static inline functions, and also defining & using arch_vcpu_ioreq_completion() only in VMX-enabled build. More specific changes are provided in per-patch changelog. v3 series here: https://lore.kernel.org/xen-devel/cover.1717410850.git.Sergiy_Kibrik@xxxxxxxx/ The question about config option naming still remains. I haven't changed names in this series yet, but a verdict from maintainers is very welcomed. My thought is probably to leave names as they're now, CONFIG_{SVM,VMX} that is. Because now only CONFIG_INTEL_VMX/CONFIG_AMD_SVM occupy much more space, but also add some unneeded redundancy to names -- I mean Intel is the only vendor to provide VT-d as for now, and that does not seem to change anytime soon, does it? (and the same for AMD/AMD-V) -Sergiy Sergiy Kibrik (7): x86/altp2m: add static inline stub for altp2m_vcpu_idx() x86/p2m: guard altp2m routines x86: introduce CONFIG_ALTP2M Kconfig option x86: introduce using_{svm,vmx}() helpers x86/vmx: guard access to cpu_has_vmx_* in common code x86/vpmu: guard calls to vmx/svm functions x86/vmx: replace CONFIG_HVM with CONFIG_VMX in vmx.h Xenia Ragiadakou (7): x86: introduce AMD-V and Intel VT-x Kconfig options x86/p2m: guard EPT functions with using_vmx() check x86/traps: guard vmx specific functions with usinc_vmx() check x86/PV: guard svm specific functions with usinc_svm() check x86/oprofile: guard svm specific symbols with CONFIG_SVM x86/ioreq: guard VIO_realmode_completion with CONFIG_VMX x86/hvm: make AMD-V and Intel VT-x support configurable xen/arch/arm/ioreq.c | 6 ----- xen/arch/x86/Kconfig | 31 +++++++++++++++++++++++++ xen/arch/x86/cpu/vpmu_amd.c | 9 +++---- xen/arch/x86/cpu/vpmu_intel.c | 16 +++++++------ xen/arch/x86/domain.c | 8 +++---- xen/arch/x86/hvm/Makefile | 4 ++-- xen/arch/x86/hvm/hvm.c | 6 ++--- xen/arch/x86/hvm/ioreq.c | 2 ++ xen/arch/x86/hvm/nestedhvm.c | 4 ++-- xen/arch/x86/hvm/viridian/viridian.c | 4 ++-- xen/arch/x86/include/asm/altp2m.h | 11 +++++++-- xen/arch/x86/include/asm/hvm/hvm.h | 17 +++++++++++++- xen/arch/x86/include/asm/hvm/ioreq.h | 5 ++++ xen/arch/x86/include/asm/hvm/vmx/vmcs.h | 17 +++++++++----- xen/arch/x86/include/asm/hvm/vmx/vmx.h | 2 +- xen/arch/x86/include/asm/p2m.h | 23 ++++++++++++++---- xen/arch/x86/mm/Makefile | 5 ++-- xen/arch/x86/mm/hap/Makefile | 2 +- xen/arch/x86/mm/p2m-basic.c | 13 ++++++----- xen/arch/x86/mm/p2m-ept.c | 2 +- xen/arch/x86/oprofile/op_model_athlon.c | 2 +- xen/arch/x86/traps.c | 13 ++++------- xen/common/ioreq.c | 5 +++- xen/include/xen/ioreq.h | 1 - 24 files changed, 141 insertions(+), 67 deletions(-) -- 2.25.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |