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.rei...@proxmox.com>
> ---
> 
> v2: Move to sub, clean up, extend comment
> 
>  PVE/QemuServer.pm | 26 ++++++++++++++++++++------
>  1 file changed, 20 insertions(+), 6 deletions(-)
> 

applied, thanks!

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to