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

[xen master] x86/hvm: mem_sharing: add dependency from CONFIG_INTEL_VMX



commit 033527e61b1e0d4a5a37a5cce208cf32a7361c6b
Author:     Grygorii Strashko <grygorii_strashko@xxxxxxxx>
AuthorDate: Tue Nov 11 14:44:09 2025 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Nov 11 14:44:09 2025 +0100

    x86/hvm: mem_sharing: add dependency from CONFIG_INTEL_VMX
    
    According to the commit b66e28226dd9 ("x86/mem_sharing: gate enabling on
    cpu_has_vmx") the Xen memory sharing support is only possible on platforms
    with "Intel VT-x" (INTEL_VMX=y) enabled.
    The same commit is also added runtime check for "cpu_has_vmx" in
    mem_sharing_control() which blocks access to XENMEM_sharing_ops if
    !cpu_has_vmx.
    
    Hence add dependency from INTEL_VMX for MEM_SHARING Kconfig option.
    
    Signed-off-by: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
    Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/arch/x86/hvm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/arch/x86/hvm/Kconfig b/xen/arch/x86/hvm/Kconfig
index f10a2b3744..c323d767e7 100644
--- a/xen/arch/x86/hvm/Kconfig
+++ b/xen/arch/x86/hvm/Kconfig
@@ -69,5 +69,6 @@ config MEM_PAGING
 
 config MEM_SHARING
        bool "Xen memory sharing support (UNSUPPORTED)" if UNSUPPORTED
+       depends on INTEL_VMX
 
 endif
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

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