[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] configure: define CONFIG_XEN when Xen is enabled
From: |
Peter Maydell |
Subject: |
Re: [PATCH] configure: define CONFIG_XEN when Xen is enabled |
Date: |
Tue, 28 Jul 2020 11:13:38 +0100 |
On Tue, 28 Jul 2020 at 11:00, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
> Apparently kvm_enabled() checks CONFIG_KVM_IS_POSSIBLE instead
> of CONFIG_KVM, I suppose to bypass this limitation (from osdep.h):
>
> 21 #ifdef NEED_CPU_H
> 22 # ifdef CONFIG_KVM
> 24 # define CONFIG_KVM_IS_POSSIBLE
> 25 # endif
> 26 #else
> 27 # define CONFIG_KVM_IS_POSSIBLE
> 28 #endif
> 29
> 30 #ifdef CONFIG_KVM_IS_POSSIBLE
> ...
Interesting. We don't have CONFIG_WHPX_IS_POSSIBLE,
CONFIG_HVF_IS_POSSIBLE, etc -- also bugs, or do we avoid
them by happening not to check whpx_enabled(), hvf_enabled(),
etc in obj-common-compiled source files?
thanks
-- PMM