x86/mem_sharing: gate enabling on cpu_has_vmx
authorTamas K Lengyel <tamas@tklengyel.com>
Wed, 27 May 2020 07:50:55 +0000 (09:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 27 May 2020 07:50:55 +0000 (09:50 +0200)
commitb66e28226dd9df8a28101438f44c0a26d63b76fa
treecb4818e76ee9b9531f64932ee0cf080ef384cbd8
parent93401e28a84b9dc5945f5d0bf5bce68e9d5ee121
x86/mem_sharing: gate enabling on cpu_has_vmx

It is unclear whether mem_sharing was ever made to work on other architectures
but at this time the only verified platform for it is vmx. No plans to support
or maintain it on other architectures. Make this explicit by checking during
initialization.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/arch/x86/mm/mem_sharing.c