From 483b9a92b3b47eb3c4bfe1a6276f556461c39f0b Mon Sep 17 00:00:00 2001
From: Lucian Cristian <lucian.cristian@gmail.com>
Date: Sun, 30 Jun 2019 09:31:15 +0300
Subject: [PATCH] kernel: x86: enable NVME support for 64 bit target

Newer motherboards support NVMe U.2 connectors but also NVMe storage can
be used on add-on pcie adapters.
Enable kernel driver on x86 for now so the NVMe flash storage can be used

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
---
 target/linux/x86/64/config-4.14 | 1 +
 target/linux/x86/64/config-4.19 | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/target/linux/x86/64/config-4.14 b/target/linux/x86/64/config-4.14
index 2aad5acc09d..85ddd6309b0 100644
--- a/target/linux/x86/64/config-4.14
+++ b/target/linux/x86/64/config-4.14
@@ -64,6 +64,7 @@ CONFIG_BACKLIGHT_GENERIC=y
 CONFIG_BACKLIGHT_LCD_SUPPORT=y
 CONFIG_BALLOON_COMPACTION=y
 CONFIG_BLK_DEV_INTEGRITY=y
+CONFIG_BLK_DEV_NVME=y
 CONFIG_BLK_MQ_VIRTIO=y
 # CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set
 CONFIG_CALGARY_IOMMU=y
diff --git a/target/linux/x86/64/config-4.19 b/target/linux/x86/64/config-4.19
index 28573bd5a71..43642e5a660 100644
--- a/target/linux/x86/64/config-4.19
+++ b/target/linux/x86/64/config-4.19
@@ -70,6 +70,8 @@ CONFIG_BACKLIGHT_GENERIC=y
 CONFIG_BACKLIGHT_LCD_SUPPORT=y
 CONFIG_BALLOON_COMPACTION=y
 CONFIG_BLK_DEV_INTEGRITY=y
+CONFIG_BLK_DEV_NVME=y
+CONFIG_NVME_MULTIPATH=y
 CONFIG_BLK_MQ_VIRTIO=y
 # CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set
 CONFIG_BTT=y
-- 
GitLab