From: Tedaz Date: Tue, 20 Dec 2016 08:56:33 +0000 (+0800) Subject: x86/64: enable Hyper-V support in the x86_64 kernel config X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1831e616999cc081c83219fc504f4e73eb098612;p=librecmc%2Flibrecmc.git x86/64: enable Hyper-V support in the x86_64 kernel config Enabled Hyper-V network interface card driver, display adapter driver, storage driver, keyboard driver, mouse driver and Hyper-V utility and EFI boot support in the kernel for subtarget x86/64. Convert the img file to vhd by Ubuntu qemu-img, rather than by the buildroot's built-in qemu-img. Tested on Windows Server 2008 r2 and 2012 r2 Gen1 and Gen2 VMs. Signed-off-by: Tedaz --- diff --git a/target/linux/x86/64/config-default b/target/linux/x86/64/config-default index c9f1a11c02..5cdbc74b23 100644 --- a/target/linux/x86/64/config-default +++ b/target/linux/x86/64/config-default @@ -2,6 +2,7 @@ CONFIG_64BIT=y CONFIG_ACPI=y CONFIG_ACPI_AC=y CONFIG_ACPI_BATTERY=y +# CONFIG_ACPI_BGRT is not set CONFIG_ACPI_BUTTON=y # CONFIG_ACPI_CMPC is not set # CONFIG_ACPI_CONTAINER is not set @@ -48,6 +49,7 @@ CONFIG_BACKLIGHT_LCD_SUPPORT=y CONFIG_BLK_DEV_INTEGRITY=y CONFIG_CALGARY_IOMMU=y CONFIG_CALGARY_IOMMU_ENABLED_BY_DEFAULT=y +CONFIG_CONNECTOR=y CONFIG_CPU_RMAP=y CONFIG_CRC_T10DIF=y # CONFIG_CRYPTO_AES_X86_64 is not set @@ -74,9 +76,24 @@ CONFIG_CRYPTO_CRCT10DIF=y # CONFIG_CRYPTO_TWOFISH_AVX_X86_64 is not set # CONFIG_CRYPTO_TWOFISH_X86_64 is not set # CONFIG_CRYPTO_TWOFISH_X86_64_3WAY is not set -# CONFIG_EFI is not set +# CONFIG_EARLY_PRINTK_EFI is not set +CONFIG_EFI=y +CONFIG_EFIVAR_FS=m +CONFIG_EFI_ESRT=y +# CONFIG_EFI_FAKE_MEMMAP is not set +# CONFIG_EFI_MIXED is not set +# CONFIG_EFI_PGT_DUMP is not set +CONFIG_EFI_RUNTIME_MAP=y +CONFIG_EFI_RUNTIME_WRAPPERS=y +CONFIG_EFI_STUB=y +CONFIG_EFI_VARS=y CONFIG_FB=y +CONFIG_FB_CFB_COPYAREA=y +CONFIG_FB_CFB_FILLRECT=y +CONFIG_FB_CFB_IMAGEBLIT=y CONFIG_FB_CMDLINE=y +# CONFIG_FB_EFI is not set +CONFIG_FB_HYPERV=y CONFIG_FB_MODE_HELPERS=y CONFIG_FB_TILEBLITTING=y # CONFIG_FB_VESA is not set @@ -106,6 +123,8 @@ CONFIG_HAVE_MEMORY_PRESENT=y CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_HID=y CONFIG_HID_BATTERY_STRENGTH=y +CONFIG_HID_GENERIC=y +CONFIG_HID_HYPERV_MOUSE=y CONFIG_HOTPLUG_PCI=y CONFIG_HOTPLUG_PCI_ACPI=y # CONFIG_HOTPLUG_PCI_ACPI_IBM is not set @@ -119,7 +138,13 @@ CONFIG_HVC_DRIVER=y CONFIG_HW_RANDOM_AMD=y CONFIG_HW_RANDOM_INTEL=y CONFIG_HW_RANDOM_VIRTIO=y +CONFIG_HYPERV=y CONFIG_HYPERVISOR_GUEST=y +CONFIG_HYPERV_BALLOON=y +CONFIG_HYPERV_KEYBOARD=y +CONFIG_HYPERV_NET=y +CONFIG_HYPERV_STORAGE=y +CONFIG_HYPERV_UTILS=y # CONFIG_I7300_IDLE is not set # CONFIG_IA32_EMULATION is not set CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 @@ -185,16 +210,21 @@ CONFIG_PHYS_ADDR_T_64BIT=y CONFIG_PNP=y CONFIG_PNPACPI=y CONFIG_PNP_DEBUG_MESSAGES=y +CONFIG_PROC_EVENTS=y # CONFIG_PVPANIC is not set CONFIG_QUEUED_RWLOCKS=y CONFIG_QUEUED_SPINLOCKS=y +# CONFIG_RANDOMIZE_BASE is not set CONFIG_RAS=y CONFIG_RCU_STALL_COMMON=y +CONFIG_RELOCATABLE=y CONFIG_RFS_ACCEL=y CONFIG_RPS=y CONFIG_RWSEM_SPIN_ON_OWNER=y # CONFIG_SAMSUNG_Q10 is not set CONFIG_SATA_AHCI=y +CONFIG_SCHED_MC=y +CONFIG_SCHED_SMT=y # CONFIG_SCIF_BUS is not set CONFIG_SCSI_VIRTIO=y CONFIG_SERIAL_8250_PNP=y @@ -212,6 +242,7 @@ CONFIG_SWIOTLB=y # CONFIG_THUNDER_NIC_VF is not set # CONFIG_TOSHIBA_BT_RFKILL is not set CONFIG_TREE_RCU=y +CONFIG_UCS2_STRING=y # CONFIG_UNISYSSPAR is not set CONFIG_USB=y CONFIG_USB_COMMON=y