33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Gao Junhao <junhao.gao@intel.com>
|
||
|
Date: Wed, 5 Jun 2019 11:45:49 +0000
|
||
|
Subject: [PATCH] virtio: enable polling mode for virtio-console
|
||
|
|
||
|
add polling mode for virtio-console
|
||
|
|
||
|
Tracked-On: projectacrn/acrn-hypervisor#3237
|
||
|
Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>
|
||
|
Signed-off-by: Gao Junhao <junhao.gao@intel.com>
|
||
|
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
|
||
|
---
|
||
|
drivers/char/virtio_console.c | 3 +++
|
||
|
1 file changed, 3 insertions(+)
|
||
|
|
||
|
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
|
||
|
index ca71ee939533..ada66f76635a 100644
|
||
|
--- a/drivers/char/virtio_console.c
|
||
|
+++ b/drivers/char/virtio_console.c
|
||
|
@@ -2239,6 +2239,9 @@ static struct virtio_driver virtio_console = {
|
||
|
.driver.name = KBUILD_MODNAME,
|
||
|
.driver.owner = THIS_MODULE,
|
||
|
.id_table = id_table,
|
||
|
+#ifdef CONFIG_VIRTIO_PMD
|
||
|
+ .polling_mode = true,
|
||
|
+#endif
|
||
|
.probe = virtcons_probe,
|
||
|
.remove = virtcons_remove,
|
||
|
.config_changed = config_intr,
|
||
|
--
|
||
|
https://clearlinux.org
|
||
|
|