stratovirt/0002-docs-turn-on-the-option-switch-of-virtio-rng-for-x86.patch

73 lines
2.6 KiB
Diff
Raw Normal View History

From 6aed6d53acb4a86f7304b800c08cdfb5ffbba83d Mon Sep 17 00:00:00 2001
From: Fei Xu <xufei30@huawei.com>
Date: Sat, 8 May 2021 11:38:34 +0800
Subject: [PATCH] docs: turn on the option switch of virtio rng for x86_64
kernel configuration and add guest kernel configuration for virtio rng in
config_guidebook.md
Signed-off-by: Fei Xu <xufei30@huawei.com>
---
docs/config_guidebook.md | 5 +++++
docs/kernel_config/config_openeuler_4.19_x86_64 | 5 ++++-
docs/kernel_config/config_openeuler_5.10_x86_64 | 5 ++++-
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/docs/config_guidebook.md b/docs/config_guidebook.md
index f31ec92..4f96aaa 100644
--- a/docs/config_guidebook.md
+++ b/docs/config_guidebook.md
@@ -414,6 +414,10 @@ This feature can prevent OOM occur in guest.
### 2.8 Virtio-rng
Virtio rng is a paravirtualized random number generator device, it provides a hardware rng device to the guest.
+If you want use it, need:
+
+* Guest kernel config: CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIA=y CONFIG_HW_RANDOM_VIRTIO=y
+
Only two property is supported for virtio-rng.
* random_file: the path of character device generates with random number in host
* bytes_per_sec: the number of bytes that the character device generates with a random number per second,
@@ -429,6 +433,7 @@ it should satisfy `64<=bytes_per_sec<1000000000`
"bytes_per_sec": 1000000
},
}
+```
## 3. StratoVirt Management
diff --git a/docs/kernel_config/config_openeuler_4.19_x86_64 b/docs/kernel_config/config_openeuler_4.19_x86_64
index f3e1ad9..a4545ea 100644
--- a/docs/kernel_config/config_openeuler_4.19_x86_64
+++ b/docs/kernel_config/config_openeuler_4.19_x86_64
@@ -1302,7 +1302,10 @@ CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_HVC_DRIVER=y
CONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not set
-# CONFIG_HW_RANDOM is not set
+CONFIG_HW_RANDOM=y
+# CONFIG_HW_RANDOM_TIMERIOMEM is not set
+CONFIG_HW_RANDOM_VIA=y
+CONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_NVRAM is not set
# CONFIG_MWAVE is not set
# CONFIG_RAW_DRIVER is not set
diff --git a/docs/kernel_config/config_openeuler_5.10_x86_64 b/docs/kernel_config/config_openeuler_5.10_x86_64
index 71e3480..5ff42d2 100644
--- a/docs/kernel_config/config_openeuler_5.10_x86_64
+++ b/docs/kernel_config/config_openeuler_5.10_x86_64
@@ -1369,7 +1369,10 @@ CONFIG_HVC_DRIVER=y
# CONFIG_SERIAL_DEV_BUS is not set
CONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not set
-# CONFIG_HW_RANDOM is not set
+CONFIG_HW_RANDOM=y
+# CONFIG_HW_RANDOM_TIMERIOMEM is not set
+CONFIG_HW_RANDOM_VIA=y
+CONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_MWAVE is not set
# CONFIG_DEVMEM is not set
# CONFIG_DEVKMEM is not set
--
2.25.1