'max' implies that it's not stable and will change depending on qemu
version and build settings. Can you set it to a specific model?

Alex

On Wed, 7 Jul 2021 at 10:55, Yu, Mingli <mingli...@windriver.com> wrote:

> From: Mingli Yu <mingli...@windriver.com>
>
> After rng-tools upgraded to 6.13, the below logic introduced.
> 9070a04 Add support for ARM v8.5A "rndr" instruction
>
> It means there is another entropy source rndr added for arm64,
> so modify the cpu model to max [1] to make the rndr entropy source
> function available and also used to silence the below failed message
> when start rngd service on qemuarm64.
> "[rndr ]: Initialization Failed"
>
> Before the patch:
>  $ systemctl status rngd
>  [snip]
>  Jul 05 07:15:47 qemuarm64 systemd[1]: Started Hardware RNG Entropy
> Gatherer Daemon.
>  Jul 05 07:15:48 qemuarm64 rngd[152]: Initializing available sources
>  Jul 05 07:15:48 qemuarm64 rngd[152]: [hwrng ]: Initialized
>  Jul 05 07:15:48 qemuarm64 rngd[152]: [rndr ]: No HW SUPPORT
>  Jul 05 07:15:48 qemuarm64 rngd[152]: [rndr ]: Initialization Failed
>  Jul 05 07:15:48 qemuarm64 rngd[152]: [jitter]: Initializing AES buffer
>  Jul 05 07:16:14 qemuarm64 rngd[152]: [jitter]: Enabling JITTER rng support
>  Jul 05 07:16:14 qemuarm64 rngd[152]: [jitter]: Initialized
>
> After the patch:
>  $ systemctl status rngd
>  [snip]
>  Jul 07 08:48:30 qemuarm64 systemd[1]: Started Hardware RNG Entropy
> Gatherer Daemon.
>  Jul 07 08:48:34 qemuarm64 rngd[164]: Initializing available sources
>  Jul 07 08:48:34 qemuarm64 rngd[164]: [hwrng ]: Initialized
>  Jul 07 08:48:34 qemuarm64 rngd[164]: [rndr  ]: Enabling aarch64 RNDR rng
> support
>  Jul 07 08:48:34 qemuarm64 rngd[164]: [rndr  ]: Initialized
>  Jul 07 08:48:35 qemuarm64 rngd[164]: [jitter]: Initializing AES buffer
>
> [1] https://github.com/nhorman/rng-tools/pull/128
>
> Signed-off-by: Mingli Yu <mingli...@windriver.com>
> ---
>  meta/conf/machine/qemuarm64.conf | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/conf/machine/qemuarm64.conf
> b/meta/conf/machine/qemuarm64.conf
> index 150a0744eb..a792dc32e6 100644
> --- a/meta/conf/machine/qemuarm64.conf
> +++ b/meta/conf/machine/qemuarm64.conf
> @@ -15,7 +15,7 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
>  # For runqemu
>  QB_SYSTEM_NAME = "qemu-system-aarch64"
>  QB_MACHINE = "-machine virt"
> -QB_CPU = "-cpu cortex-a57"
> +QB_CPU = "-cpu max"
>  QB_SMP = "-smp 4"
>  QB_CPU_KVM = "-cpu host -machine gic-version=3"
>  # For graphics to work we need to define the VGA device as well as the
> necessary USB devices
> --
> 2.17.1
>
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#153641): 
https://lists.openembedded.org/g/openembedded-core/message/153641
Mute This Topic: https://lists.openembedded.org/mt/84040384/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to