[OS-BUILD PATCH] [redhat] virtio: enable virtio-mem on x86-64 as
tech-preview
by David Hildenbrand (via Email Bridge)
From: David Hildenbrand <david(a)redhat.com>
[redhat] virtio: enable virtio-mem on x86-64 as tech-preview
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2014492
Let's enable CONFIG_VIRTIO_MEM=m on x86-64 in RHEL 9. As it will be
tech-preview, properly taint the kernel as soon as we're initializing
the driver for an actual device in a !kdump environment where we might
actually hot(un)plug memory when instructed by the hypervisor.
We won't be tainting in a kdump kernel where the sole purpose is to check
if a given PFN is actually part of a plugged virtio-mem device and can
be dumped safely.
Signed-off-by: David Hildenbrand <david(a)redhat.com>
diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c
index blahblah..blahblah 100644
--- a/drivers/virtio/virtio_mem.c
+++ b/drivers/virtio/virtio_mem.c
@@ -2754,6 +2754,19 @@ static int virtio_mem_probe(struct virtio_device *vdev)
/* trigger a config update to start processing the requested_size */
if (!vm->in_kdump) {
+#ifdef CONFIG_RHEL_DIFFERENCES
+ static bool printed;
+
+ /*
+ * virtio-mem, and especially its memory hot(un)plug
+ * functionality, is tech-preview.
+ */
+ if (!printed) {
+ printed = true;
+ mark_tech_preview("virtio_mem", THIS_MODULE);
+ }
+#endif /* CONFIG_RHEL_DIFFERENCES */
+
atomic_set(&vm->config_changed, 1);
queue_work(system_freezable_wq, &vm->wq);
}
diff --git a/redhat/configs/common/generic/x86/x86_64/CONFIG_VIRTIO_MEM b/redhat/configs/common/generic/x86/x86_64/CONFIG_VIRTIO_MEM
index blahblah..blahblah 100644
--- a/redhat/configs/common/generic/x86/x86_64/CONFIG_VIRTIO_MEM
+++ b/redhat/configs/common/generic/x86/x86_64/CONFIG_VIRTIO_MEM
@@ -1 +1 @@
-# CONFIG_VIRTIO_MEM is not set
+CONFIG_VIRTIO_MEM=m
diff --git a/redhat/configs/fedora/generic/x86/x86_64/CONFIG_VIRTIO_MEM b/redhat/configs/fedora/generic/x86/x86_64/CONFIG_VIRTIO_MEM
deleted file mode 100644
index blahblah..blahblah 0
--- a/redhat/configs/fedora/generic/x86/x86_64/CONFIG_VIRTIO_MEM
+++ /dev/null
@@ -1 +0,0 @@
-CONFIG_VIRTIO_MEM=m
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1535
2 years, 2 months
[OS-BUILD PATCH] redhat: configs: increase
CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE
by Rafael Aquini (via Email Bridge)
From: Rafael Aquini <aquini(a)redhat.com>
redhat: configs: increase CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE
Some really large instances do require a slightly increased pool size
so kmemleak can track early system allocations before kmemleak_object
entries can be allocated out of the system's slab caches. If there is
not enough entries in the pre-allocated static pool, the facility is
disabled at boot time and no futher tracking is done by kmemleak at
system's runtime (see RHBZ#2008118).
This patch doubles the size of kmemleak's memory pool size which for
now will allow enough room for proper kmemleak initialization for the
large systems described at RHBZ#2008118. Kernel memory footprint for
the kmemleak pool will increase from its current 7.17 mB to 14.34 mb.
Signed-off-by: Rafael Aquini <aquini(a)redhat.com>
diff --git a/redhat/configs/ark/debug/CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE b/redhat/configs/ark/debug/CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE
index blahblah..blahblah 100644
--- a/redhat/configs/ark/debug/CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE
+++ b/redhat/configs/ark/debug/CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE
@@ -1 +1 @@
-CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE=20000
+CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE=40000
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1516
2 years, 2 months
[OS-BUILD PATCHv2 0/2] redhat/configs: Enable HYPERV host support on
aarch64
by Jeremy Linton (via Email Bridge)
From: Jeremy Linton on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1393
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2007430
Upstream Status: RHEL-only
Windows on Arm is a thing, and some of those machines support
HYPERV. For WoA users it would be helpful if Fedora/etc
ran well as a guest OS.
Signed-off-by: Jeremy Linton <jlinton(a)redhat.com>
---
arch/arm64/hyperv/mshyperv.c | 18 +++++++--
arch/arm64/include/asm/mshyperv.h | 18 ++++++++++
arch/arm64/kernel/setup.c | 4 ++
drivers/clocksource/hyperv_timer.c | 14 +++++++
drivers/hv/Kconfig | 2 +-
redhat/configs/ark/generic/arm/aarch64/CONFIG_INPUT_KEYBOARD | 1 -
redhat/configs/common/generic/arm/aarch64/CONFIG_KEYBOARD_ATKBD | 1 +
redhat/configs/common/generic/arm/aarch64/CONFIG_SERIO_LIBPS2 | 1 +
redhat/configs/fedora/generic/arm/CONFIG_INPUT_MATRIXKMAP => redhat/configs/common/generic/arm/CONFIG_INPUT_MATRIXKMAP | 0
redhat/configs/fedora/generic/arm/CONFIG_KEYBOARD_TEGRA => redhat/configs/common/generic/arm/CONFIG_KEYBOARD_TEGRA | 0
10 files changed, 52 insertions(+), 7 deletions(-)
2 years, 2 months