[libvirt] [PATCH v2 04/25] qemu: Move <rng> validation out of qemu_command.c
Andrea Bolognani
abologna at redhat.com
Thu Jan 24 15:52:56 UTC 2019
On Wed, 2019-01-23 at 16:32 -0500, Cole Robinson wrote:
[...]
> static int
> -qemuDomainRNGDefValidate(const virDomainRNGDef *def)
> +qemuDomainRNGDefValidate(const virDomainRNGDef *def,
> + virQEMUCapsPtr qemuCaps)
> {
> + bool model_supported = false;
We usually prefer camelCase to snake_case, so I'd call this
modelSupported or even modelIsSupported.
[...]
> @@ -2276,10 +2276,9 @@ qemuDomainAssignDevicePCISlots(virDomainDefPtr def,
> goto error;
> }
>
> - /* VirtIO RNG */
> + /* rng. the qemu driver only accepts virtio rng devices */
This comment looks weird, I guess the "rng. " bit slipped in.
Regardless of whether you feel like renaming the variable or not,
Reviewed-by: Andrea Bolognani <abologna at redhat.com>
--
Andrea Bolognani / Red Hat / Virtualization
More information about the libvir-list
mailing list