[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] x86/hvm: make AMD-V and Intel VT-x support configurable



commit f1bcfaf1211ff14cc2975fbfc126c0ad296faa1f
Author:     Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
AuthorDate: Thu Aug 29 10:03:22 2024 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Aug 29 10:03:22 2024 +0200

    x86/hvm: make AMD-V and Intel VT-x support configurable
    
    Provide the user with configuration control over the cpu virtualization 
support
    in Xen by making AMD_SVM and INTEL_VMX options user selectable.
    
    To preserve the current default behavior, both options depend on HVM and
    default to value of HVM.
    
    To prevent users from unknowingly disabling virtualization support, make the
    controls user selectable only if EXPERT is enabled.
    
    No functional change intended.
    
    Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
    Signed-off-by: Sergiy Kibrik <Sergiy_Kibrik@xxxxxxxx>
    Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/arch/x86/Kconfig | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig
index 74e081c7bd..d0aaf359eb 100644
--- a/xen/arch/x86/Kconfig
+++ b/xen/arch/x86/Kconfig
@@ -123,11 +123,25 @@ config HVM
          If unsure, say Y.
 
 config AMD_SVM
-       def_bool HVM
+       bool "AMD-V" if EXPERT
+       depends on HVM
+       default y
+       help
+         Enables virtual machine extensions on platforms that implement the
+         AMD Virtualization Technology (AMD-V).
+         If your system includes a processor with AMD-V support, say Y.
+         If in doubt, say Y.
 
 config INTEL_VMX
-       def_bool HVM
+       bool "Intel VT-x" if EXPERT
+       depends on HVM
+       default y
        select ARCH_VCPU_IOREQ_COMPLETION
+       help
+         Enables virtual machine extensions on platforms that implement the
+         Intel Virtualization Technology (Intel VT-x).
+         If your system includes a processor with Intel VT-x support, say Y.
+         If in doubt, say Y.
 
 config XEN_SHSTK
        bool "Supervisor Shadow Stacks"
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.