RE: [PATCH 07/13] x86/kconfig/64: Enable more virtualization guest options in the defconfig: enable Xen, Xen_PVH, Jailhouse, ACRN, Intel TDX and Hyper-V

From: Vitaly Kuznetsov
Date: Fri May 16 2025 - 04:15:40 EST


Michael Kelley <mhklinux@xxxxxxxxxxx> writes:

> From: Ingo Molnar <mingo@xxxxxxxxxx> Sent: Thursday, May 15, 2025 6:27 AM
>>
>> Since the x86 defconfig aims to be a distro kernel work-alike with
>> fewer drivers and a shorter build time, refresh all the virtualization
>> guest Kconfig features, enabling paravirt spinlocks, and
>> enabling the guest support code for the following guests:
>>
>> - Xen
>> - Xen_PVH
>> - Jailhouse
>> - ACRN
>> - Intel TDX
>> - Hyper-V
>
> I built and tested a Hyper-V guest with defconfig. The Hyper-V storage
> and keyboard drivers are pulled in automatically, so my previous
> comment about them being "missing" is moot.
>
> But the Linux console for each Hyper-V guest is a synthetic graphics
> console, and that didn't work with the DRM_HYPERV driver. Missing
> the console pretty much kills any usefulness. DRM doesn't have
> Linux console support, so it needs CONFIG_DRM_FBDEV_EMULATION
> to be set, and defconfig doesn't have it.
>
> So either CONFIG_DRM_FBDEV_EMULATION needs to be added, or
> defconfig should switch to the older HYPERV_FB driver. I think we'd
> rather do the former. Vitaly -- any thoughts?
>

Yea, my vote goes to the same option: let's enable
CONFIG_DRM_FBDEV_EMULATION.

> Michael
>
>>
>> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
>> Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
>> Cc: Ard Biesheuvel <ardb@xxxxxxxxxx>
>> Cc: Arnd Bergmann <arnd@xxxxxxxx>
>> Cc: Carlos Bilbao <carlos.bilbao@xxxxxxxxxx>
>> Cc: David Woodhouse <dwmw@xxxxxxxxxxxx>
>> Cc: Elena Reshetova <elena.reshetova@xxxxxxxxx>
>> Cc: Fei Li <fei1.li@xxxxxxxxx>
>> Cc: H. Peter Anvin <hpa@xxxxxxxxx>
>> Cc: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>
>> Cc: Juergen Gross <jgross@xxxxxxxx>
>> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
>> Cc: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
>> Cc: Michal Marek <michal.lkml@xxxxxxxxxxx>
>> Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx>
>> Cc: Sean Christopherson <seanjc@xxxxxxxxxx>
>> Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>> Cc: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>
>> ---
>> arch/x86/configs/x86_64_defconfig | 14 +++++++++++++-
>> 1 file changed, 13 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/x86/configs/x86_64_defconfig b/arch/x86/configs/x86_64_defconfig
>> index 156e9490e29b..df786b8b4e85 100644
>> --- a/arch/x86/configs/x86_64_defconfig
>> +++ b/arch/x86/configs/x86_64_defconfig
>> @@ -30,7 +30,12 @@ CONFIG_PROFILING=y
>> CONFIG_KEXEC=y
>> CONFIG_SMP=y
>> CONFIG_HYPERVISOR_GUEST=y
>> -CONFIG_PARAVIRT=y
>> +CONFIG_PARAVIRT_SPINLOCKS=y
>> +CONFIG_XEN=y
>> +CONFIG_XEN_PVH=y
>> +CONFIG_JAILHOUSE_GUEST=y
>> +CONFIG_ACRN_GUEST=y
>> +CONFIG_INTEL_TDX_GUEST=y
>> CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y
>> CONFIG_X86_MSR=y
>> CONFIG_X86_CPUID=y
>> @@ -128,6 +133,7 @@ CONFIG_NET_9P=y
>> CONFIG_NET_9P_VIRTIO=y
>> CONFIG_PCI=y
>> CONFIG_PCIEPORTBUS=y
>> +CONFIG_PCI_HYPERV=y
>> CONFIG_HOTPLUG_PCI=y
>> CONFIG_PCCARD=y
>> CONFIG_YENTA=y
>> @@ -168,6 +174,7 @@ CONFIG_SKY2=y
>> CONFIG_FORCEDETH=y
>> CONFIG_8139TOO=y
>> CONFIG_R8169=y
>> +CONFIG_HYPERV_NET=y
>> CONFIG_INPUT_EVDEV=y
>> CONFIG_INPUT_JOYSTICK=y
>> CONFIG_INPUT_TABLET=y
>> @@ -198,6 +205,7 @@ CONFIG_AGP_INTEL=y
>> CONFIG_DRM=y
>> CONFIG_DRM_I915=y
>> CONFIG_DRM_VIRTIO_GPU=y
>> +CONFIG_DRM_HYPERV=y
>> CONFIG_SOUND=y
>> CONFIG_SND=y
>> CONFIG_SND_HRTIMER=y
>> @@ -214,6 +222,7 @@ CONFIG_HID_PETALYNX=y
>> CONFIG_HID_SAMSUNG=y
>> CONFIG_HID_SONY=y
>> CONFIG_HID_SUNPLUS=y
>> +CONFIG_HID_HYPERV_MOUSE=y
>> CONFIG_HID_TOPSEED=y
>> CONFIG_HID_PID=y
>> CONFIG_USB_HIDDEV=y
>> @@ -231,6 +240,9 @@ CONFIG_RTC_CLASS=y
>> CONFIG_DMADEVICES=y
>> CONFIG_VIRTIO_PCI=y
>> CONFIG_VIRTIO_INPUT=y
>> +CONFIG_HYPERV=y
>> +CONFIG_HYPERV_UTILS=y
>> +CONFIG_HYPERV_BALLOON=y
>> CONFIG_EEEPC_LAPTOP=y
>> CONFIG_AMD_IOMMU=y
>> CONFIG_INTEL_IOMMU=y
>> --
>> 2.45.2
>>
>

--
Vitaly