Re: [PATCH 3/3] qemu: command: add multi boot device support on s390x

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

 



On Thu, Nov 07, 2024 at 17:01:52 +0100, Boris Fiuczynski wrote:
> On 11/7/24 15:53, Peter Krempa wrote:
> > On Wed, Nov 06, 2024 at 15:31:57 +0100, Boris Fiuczynski wrote:
> > > If QEMU supports multi boot device make use of it instead of using the
> > > single boot device machine parameter.
> > > 
> > > Signed-off-by: Boris Fiuczynski <fiuczy@xxxxxxxxxxxxx>
> > > ---

[...]

> 
> OK, will do this here and also the other three similar instances.
> With fixups just like this:
> diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
> index cdc0ea18d7..f67176fbfd 100644
> --- a/src/qemu/qemu_command.c
> +++ b/src/qemu/qemu_command.c
> @@ -1608,7 +1608,7 @@ qemuBuildDiskDeviceProps(const virDomainDef *def,
>      g_autofree char *chardev = NULL;
>      g_autofree char *drive = NULL;
>      unsigned int bootindex = 0;
> -    g_autofree char *bootLoadparm = NULL;
> +    const char *bootLoadparm = NULL;
>      unsigned int logical_block_size = disk->blockio.logical_block_size;
>      unsigned int physical_block_size = disk->blockio.physical_block_size;
>      unsigned int discard_granularity = disk->blockio.discard_granularity;
> @@ -1750,9 +1750,8 @@ qemuBuildDiskDeviceProps(const virDomainDef *def,
>      if (disk->device != VIR_DOMAIN_DISK_DEVICE_FLOPPY) {
>          bootindex = disk->info.effectiveBootIndex;
> 
> -        if (disk->info.loadparm &&
> -            virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_CCW_DEVICE_LOADPARM))
> -            bootLoadparm = g_strdup(disk->info.loadparm);
> +        if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_CCW_DEVICE_LOADPARM))
> +            bootLoadparm = disk->info.loadparm;
>      }

With that:

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>



[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