[pve-devel] applied: [PATCH v2 qemu-server] rng: die when trying to pass through disconnected hwrng

Thomas Lamprecht t.lamprecht at proxmox.com
Wed May 6 14:24:18 CEST 2020


On 5/5/20 4:53 PM, Stefan Reiter wrote:
> If /dev/hwrng exists, but no actual generator is connected (or it is
> disabled on the host), QEMU will happily start the VM but crash as soon
> as the guest accesses the VirtIO RNG device.
> 
> To prevent this unfortunate behaviour, check if a useable hwrng is
> connected to the host before allowing the VM to be started.
> 
> While at it, clean up config_to_command by moving new and existing rng
> source checks to a seperate sub.
> 
> Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
> ---
> 
> v2: Move to sub, clean up, extend comment
> 
>  PVE/QemuServer.pm | 26 ++++++++++++++++++++------
>  1 file changed, 20 insertions(+), 6 deletions(-)
> 

applied, thanks!




More information about the pve-devel mailing list