Re: [PATCH v1] libxl: remove conditionals from discard configuration

2021-08-13 Thread Jim Fehlig
On 8/13/21 8:00 AM, Olaf Hering wrote: Am Fri, 13 Aug 2021 07:52:31 -0600 schrieb Jim Fehlig : Why remove the cast? Because ->discard is of type virDomainDiskDiscard, the function can receive such type right away. Ah, I missed the change to the function signature. Jim

Re: [PATCH v1] libxl: remove conditionals from discard configuration

2021-08-13 Thread Jim Fehlig
On 8/13/21 5:22 AM, Olaf Hering wrote: LIBXL_HAVE_LIBXL_DEVICE_DISK_DISCARD_ENABLE exists since Xen 4.5.0 Signed-off-by: Olaf Hering --- src/libxl/libxl_conf.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) This patch doesn't apply to libvirt.git master. dif

Re: [PATCH v1] libxl: remove conditionals from discard configuration

2021-08-13 Thread Olaf Hering
Am Fri, 13 Aug 2021 07:52:31 -0600 schrieb Jim Fehlig : > Why remove the cast? Because ->discard is of type virDomainDiskDiscard, the function can receive such type right away. Olaf pgpM9pRwd1XCQ.pgp Description: Digitale Signatur von OpenPGP

[PATCH v1] libxl: remove conditionals from discard configuration

2021-08-13 Thread Olaf Hering
LIBXL_HAVE_LIBXL_DEVICE_DISK_DISCARD_ENABLE exists since Xen 4.5.0 Signed-off-by: Olaf Hering --- src/libxl/libxl_conf.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index 3de2f9f57a..e275996cab 100644