From 338140ddaef22626e3b954afa2695e5acbc541f4 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 18 Jan 2019 13:35:11 +0000 Subject: [PATCH] cloud-amd64: enable UIO, UIO_HV_GENERIC, VFIO. In order to access Azure's VMbus via /sys/vmbus, the corresponding UIO module must be available. Also enable VFIO for safe userspace device handling when the host exposes a vIOMMU. --- debian/changelog | 3 +++ debian/config/amd64/config.cloud-amd64 | 10 ---------- debian/config/kernelarch-x86/config | 5 +++++ 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/debian/changelog b/debian/changelog index 5ad663f5e..f6fa70750 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,9 @@ linux (4.19.16-2) UNRELEASED; urgency=medium source is set to disabled in debian/config/defines. * linux-perf: explicitly disable the jvmti feature and shared library. * Document pkg.linux.nosource in debian/README.source. + * [amd64] enable UIO_HV_GENERIC for Azure's VMBus access. + * [cloud-amd64] enable UIO for Azure's VMBus access, and VFIO for guests + running on an hypervisor that exposes a vIOMMU. [ Ben Hutchings ] * debian/rules.d, debian/rules.real: Restore build of userland headers for diff --git a/debian/config/amd64/config.cloud-amd64 b/debian/config/amd64/config.cloud-amd64 index b132730cf..3a386e0c7 100644 --- a/debian/config/amd64/config.cloud-amd64 +++ b/debian/config/amd64/config.cloud-amd64 @@ -1144,11 +1144,6 @@ CONFIG_HYPERV_STORAGE=m # CONFIG_SERIAL_8250_MID is not set # CONFIG_SERIAL_8250_MOXA is not set -## -## file: drivers/uio/Kconfig -## -# CONFIG_UIO is not set - ## ## file: drivers/usb/Kconfig ## @@ -1159,11 +1154,6 @@ CONFIG_HYPERV_STORAGE=m ## # CONFIG_UWB is not set -## -## file: drivers/vfio/Kconfig -## -# CONFIG_VFIO is not set - ## ## file: drivers/video/backlight/Kconfig ## diff --git a/debian/config/kernelarch-x86/config b/debian/config/kernelarch-x86/config index 450261a7e..28faf6809 100644 --- a/debian/config/kernelarch-x86/config +++ b/debian/config/kernelarch-x86/config @@ -1729,6 +1729,11 @@ CONFIG_SERIAL_8250_DW=y # CONFIG_SERIAL_8250_LPSS is not set CONFIG_SERIAL_8250_MID=y +## +## file: drivers/uio/Kconfig +## +CONFIG_UIO_HV_GENERIC=m + ## ## file: drivers/usb/Kconfig ##