Re: [PATCH 7/7] qemuBuildDeviceVideoStr: Don't overwrite @model

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 11, 2021 at 17:05:00 +0200, Michal Privoznik wrote:
> Now we have everything prepared so that @model doesn't have to be
> rewritten. The correct model can be chosen right from the
> beginning.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/qemu/qemu_command.c | 27 ++++++++++++++++-----------
>  1 file changed, 16 insertions(+), 11 deletions(-)
> 
> diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
> index c9e152324d..22cc383f33 100644
> --- a/src/qemu/qemu_command.c
> +++ b/src/qemu/qemu_command.c
> @@ -4164,6 +4164,12 @@ qemuDeviceVideoGetModel(virQEMUCaps *qemuCaps,
>  {
>      const char *model = NULL;
>      bool primaryVga = false;
> +    virTristateSwitch accel3d = VIR_TRISTATE_SWITCH_ABSENT;
> +
> +    *virtio = false;

You've already have this ...

> +
> +    if (video->accel)
> +        accel3d = video->accel->accel3d;
>  
>      *virtio = false;

... here.


>  




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux