guest: Add default RNG to s390x guests

As long as it's supported by both QEMU and the guest OS,
there's really no reason not to add it.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Andrea Bolognani 2019-03-21 15:57:24 +01:00 committed by Cole Robinson
parent 8d9743d69f
commit 7b9de27a99
5 changed files with 13 additions and 0 deletions

View File

@ -42,6 +42,9 @@
<model type="virtio"/>
</video>
<watchdog model="diag288" action="reset"/>
<rng model="virtio">
<backend model="random">/dev/urandom</backend>
</rng>
<panic model="s390"/>
</devices>
</domain>

View File

@ -37,5 +37,8 @@
<console type="pty">
<target type="sclp"/>
</console>
<rng model="virtio">
<backend model="random">/dev/urandom</backend>
</rng>
</devices>
</domain>

View File

@ -35,5 +35,8 @@
<video>
<model type="virtio"/>
</video>
<rng model="virtio">
<backend model="random">/dev/urandom</backend>
</rng>
</devices>
</domain>

View File

@ -29,5 +29,8 @@
<console type="pty">
<target type="sclp"/>
</console>
<rng model="virtio">
<backend model="random">/dev/urandom</backend>
</rng>
</devices>
</domain>

View File

@ -828,6 +828,7 @@ class Guest(XMLBuilder):
return
if not (self.os.is_x86() or
self.os.is_arm_machvirt() or
self.os.is_s390x() or
self.os.is_pseries()):
return