Re: [libvirt] [PATCH v2 0/2] ESX: Fixing SetAutoStart

2018-08-02 Thread Marcos Paulo de Souza
On Thu, Aug 02, 2018 at 09:23:05PM +0200, Matthias Bolte wrote: > 2018-08-02 18:16 GMT+02:00 John Ferlan : > > > > > > On 08/02/2018 12:11 PM, Marcos Paulo de Souza wrote: > >> On Thu, Aug 02, 2018 at 05:37:46PM +0200, Matthias Bolte wrote: > >>> 2018-08-02 16:45 GMT+02:00 John Ferlan : > >

[libvirt] [PATCH 1/5] virauth.c: Check for valid auth callback

2018-08-02 Thread Marcos Paulo de Souza
Instead of adding the same check for every drivers, execute the checks in virAuthGetUsername and virAuthGetPassword. These funtions are called when user is not set in the URI. Signed-off-by: Marcos Paulo de Souza --- src/util/virauth.c | 12 1 file changed, 12 insertions(+) diff

[libvirt] [PATCH 2/5] esx: Drop check for auth and auth->cb

2018-08-02 Thread Marcos Paulo de Souza
Since they are done inside virAuthGetPassword and virAuthGetUsername when needed. Signed-off-by: Marcos Paulo de Souza --- src/esx/esx_driver.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index c2154799fa..15785858c6 100644 ---

[libvirt] [PATCH 5/5] xenapi: Drop check for auth

2018-08-02 Thread Marcos Paulo de Souza
Since they are done inside virAuthGetPassword and virAuthGetUsername when needed. Also, only auth is checked, but auth->cb, which that could lead to a crash if the callback is NULL. Signed-off-by: Marcos Paulo de Souza --- src/xenapi/xenapi_driver.c | 6 -- 1 file changed, 6 deletions(-)

Re: [libvirt] [PATCH v2 0/2] ESX: Fixing SetAutoStart

2018-08-02 Thread John Ferlan
On 08/02/2018 12:11 PM, Marcos Paulo de Souza wrote: > On Thu, Aug 02, 2018 at 05:37:46PM +0200, Matthias Bolte wrote: >> 2018-08-02 16:45 GMT+02:00 John Ferlan : >>> >>> >>> On 08/02/2018 10:07 AM, Matthias Bolte wrote: 2018-08-02 15:20 GMT+02:00 John Ferlan : > > > On

Re: [libvirt] [PATCH v2 0/2] ESX: Fixing SetAutoStart

2018-08-02 Thread Marcos Paulo de Souza
On Thu, Aug 02, 2018 at 05:37:46PM +0200, Matthias Bolte wrote: > 2018-08-02 16:45 GMT+02:00 John Ferlan : > > > > > > On 08/02/2018 10:07 AM, Matthias Bolte wrote: > >> 2018-08-02 15:20 GMT+02:00 John Ferlan : > >>> > >>> > >>> On 08/02/2018 05:04 AM, Matthias Bolte wrote: > 2018-08-01 18:09

Re: [libvirt] [PATCH v2 0/2] ESX: Fixing SetAutoStart

2018-08-02 Thread Matthias Bolte
2018-08-02 16:45 GMT+02:00 John Ferlan : > > > On 08/02/2018 10:07 AM, Matthias Bolte wrote: >> 2018-08-02 15:20 GMT+02:00 John Ferlan : >>> >>> >>> On 08/02/2018 05:04 AM, Matthias Bolte wrote: 2018-08-01 18:09 GMT+02:00 Marcos Paulo de Souza : > This is a new version from the last

[libvirt] [PATCH] qemu_migration: Avoid writing to freed memory

2018-08-02 Thread Jiri Denemark
When a domain is killed on the source host while it is being migrated and libvirtd is waiting for the migration to finish (waiting for the domain condition in qemuMigrationSrcWaitForCompletion), the run-time state including priv->job.current may already be freed once virDomainObjWait returns with

Re: [libvirt] [PATCH v2 0/2] ESX: Fixing SetAutoStart

2018-08-02 Thread John Ferlan
On 08/02/2018 10:07 AM, Matthias Bolte wrote: > 2018-08-02 15:20 GMT+02:00 John Ferlan : >> >> >> On 08/02/2018 05:04 AM, Matthias Bolte wrote: >>> 2018-08-01 18:09 GMT+02:00 Marcos Paulo de Souza >>> : This is a new version from the last patchset sent yesterday, but now using

Re: [libvirt] [PATCH v2 0/2] ESX: Fixing SetAutoStart

2018-08-02 Thread Matthias Bolte
2018-08-02 15:20 GMT+02:00 John Ferlan : > > > On 08/02/2018 05:04 AM, Matthias Bolte wrote: >> 2018-08-01 18:09 GMT+02:00 Marcos Paulo de Souza >> : >>> This is a new version from the last patchset sent yesterday, but now using >>> VIR_STRNDUP, instead of allocating memory manually. >>> >>>

Re: [libvirt] [PATCH v1 02/32] util: iscsi: use VIR_AUTOPTR for aggregate types

2018-08-02 Thread Erik Skultety
On Sat, Jul 28, 2018 at 11:31:17PM +0530, Sukrit Bhatnagar wrote: > By making use of GNU C's cleanup attribute handled by the > VIR_AUTOPTR macro for declaring aggregate pointer variables, > majority of the calls to *Free functions can be dropped, which > in turn leads to getting rid of most of

Re: [libvirt] Availability of libvirt-4.6.0 Release Candidate 2

2018-08-02 Thread John Ferlan
On 08/02/2018 03:57 AM, Peter Krempa wrote: > On Wed, Aug 01, 2018 at 17:44:56 -0400, John Ferlan wrote: >> On 08/01/2018 04:44 PM, Laine Stump wrote: > > [...] > >>> At any rate, there is no perfect solution in sight for the current >>> release, so the question is whether the new (bad)

Re: [libvirt] [PATCH v1 01/32] util: iscsi: use VIR_AUTOFREE instead of VIR_FREE for scalar types

2018-08-02 Thread Erik Skultety
On Sat, Jul 28, 2018 at 11:31:16PM +0530, Sukrit Bhatnagar wrote: > By making use of GNU C's cleanup attribute handled by the > VIR_AUTOFREE macro for declaring scalar variables, majority > of the VIR_FREE calls can be dropped, which in turn leads to > getting rid of most of our cleanup sections.

Re: [libvirt] [PATCH v2 0/2] ESX: Fixing SetAutoStart

2018-08-02 Thread John Ferlan
On 08/02/2018 05:04 AM, Matthias Bolte wrote: > 2018-08-01 18:09 GMT+02:00 Marcos Paulo de Souza : >> This is a new version from the last patchset sent yesterday, but now using >> VIR_STRNDUP, instead of allocating memory manually. >> >> First version: >>

[libvirt] [PATCH] tests: mock virRandomBits to make it endian stable

2018-08-02 Thread Daniel P . Berrangé
virRandomBits is implemented in terms of virRandomBytes. Although we mock virRandomBytes to give a stable value, this is not sufficient to make virRandomBits give a stable value. The result of virRandomBits will vary depending on endianness. Thus we mock virRandomBits to return a stable value

Re: [libvirt] [PATCH] util: virrandom: make virRandomBits endian-safe

2018-08-02 Thread Pino Toscano
On Thursday, 2 August 2018 12:28:45 CEST Daniel P. Berrangé wrote: > On Thu, Aug 02, 2018 at 10:17:32AM +0200, Bjoern Walk wrote: > > Pino Toscano [2018-08-02, 10:02AM +0200]: > > > I do not think this patch is correct: we are dealing with random bytes, > > > so there is no "endianness" for them.

Re: [libvirt] [PATCH v2 0/2] ESX: Fixing SetAutoStart

2018-08-02 Thread Matthias Bolte
2018-08-01 18:09 GMT+02:00 Marcos Paulo de Souza : > This is a new version from the last patchset sent yesterday, but now using > VIR_STRNDUP, instead of allocating memory manually. > > First version: > https://www.redhat.com/archives/libvir-list/2018-August/msg0.html > > Marcos Paulo de

Re: [libvirt] [PATCH] tests: fix test segfault when libxl configuration setup fails.

2018-08-02 Thread Erik Skultety
On Thu, Aug 02, 2018 at 10:35:27AM +0200, Erik Skultety wrote: > On Thu, Aug 02, 2018 at 01:06:39AM -0300, Julio Faracco wrote: > > This commit fixes a segmentation fault caused by missing conditional to > > check if libxl configuration was properly created by the test. If the > > configuration

Re: [libvirt] [PATCH] tests: fix test segfault when libxl configuration setup fails.

2018-08-02 Thread Erik Skultety
On Thu, Aug 02, 2018 at 01:06:39AM -0300, Julio Faracco wrote: > This commit fixes a segmentation fault caused by missing conditional to > check if libxl configuration was properly created by the test. If the > configuration was not properly created, libxlDriverConfigNew() function > will return

[libvirt] [PATCH] storage: add findPoolSources to iscsi_direct pool backend

2018-08-02 Thread clem
From: Clementine Hayat Change the SetContext function to be able to take the session type in argument. Took the function findPoolSources of iscsi backend and wired it to my function since the formatting is essentially the same. Signed-off-by: Clementine Hayat ---

Re: [libvirt] [PATCH] util: virrandom: make virRandomBits endian-safe

2018-08-02 Thread Bjoern Walk
Pino Toscano [2018-08-02, 10:02AM +0200]: > I do not think this patch is correct: we are dealing with random bytes, > so there is no "endianness" for them. Well, it's not incorrect either, isn't it? I agree that endianness doesn't matter for random data, but in the same time, it doesn't hurt to

Re: [libvirt] Availability of libvirt-4.6.0 Release Candidate 2

2018-08-02 Thread Peter Krempa
On Wed, Aug 01, 2018 at 17:44:56 -0400, John Ferlan wrote: > On 08/01/2018 04:44 PM, Laine Stump wrote: [...] > > At any rate, there is no perfect solution in sight for the current > > release, so the question is whether the new (bad) behavior is better or > > worse than the old (also bad)

[libvirt] [PATCH] util: virrandom: make virRandomBits endian-safe

2018-08-02 Thread Bjoern Walk
Make the generation of random bits in virRandomBits independent of the endianness of the running architecture. This also solves problems with the mocked random byte generation on big-endian machines. Suggested-by: Daniel P. Berrangé Signed-off-by: Bjoern Walk --- This goes on top of Michal's

Re: [libvirt] [Qemu-devel] [PATCH for-3.1] s390x: remove 's390-squash-mcss' option

2018-08-02 Thread Cornelia Huck
On Thu, 2 Aug 2018 09:33:48 +0200 Cornelia Huck wrote: > On Thu, 2 Aug 2018 09:15:24 +0200 > Cornelia Huck wrote: > > > On Thu, 2 Aug 2018 09:34:37 +0800 > > Fam Zheng wrote: > > > > > On Wed, Aug 1, 2018 at 9:18 PM Cornelia Huck wrote: > > > > > > > > > > > On Wed, 1 Aug 2018

Re: [libvirt] [Qemu-devel] [PATCH for-3.1] s390x: remove 's390-squash-mcss' option

2018-08-02 Thread Cornelia Huck
On Thu, 2 Aug 2018 09:15:24 +0200 Cornelia Huck wrote: > On Thu, 2 Aug 2018 09:34:37 +0800 > Fam Zheng wrote: > > > On Wed, Aug 1, 2018 at 9:18 PM Cornelia Huck wrote: > > > > > > On Wed, 1 Aug 2018 15:11:23 +0200 > > > Cornelia Huck wrote: > > > > > > > On Wed, 1 Aug 2018 14:54:51

Re: [libvirt] [PATCH 1/2] util: Don't overflow in virRandomBits

2018-08-02 Thread Michal Privoznik
On 08/01/2018 04:50 PM, Eric Blake wrote: > On 08/01/2018 07:16 AM, Daniel P. Berrangé wrote: >> On Wed, Aug 01, 2018 at 01:44:32PM +0200, Michal Privoznik wrote: >>> The function is supposed to return up to 64bit long integer. In >>> order to do that it calls virRandomBytes() to fill the integer

Re: [libvirt] [PATCH 2/2] viriscsi: Request more random bits for interface name

2018-08-02 Thread Michal Privoznik
On 08/01/2018 04:48 PM, Eric Blake wrote: > On 08/01/2018 06:44 AM, Michal Privoznik wrote: >> In virStorageBackendCreateIfaceIQN() the virRandomBits() is >> called in order to use random bits to generate random name for >> new interface. However, virAsprintf() is expecting 32 bits and we >> are

Re: [libvirt] [Qemu-devel] [PATCH for-3.1] s390x: remove 's390-squash-mcss' option

2018-08-02 Thread Cornelia Huck
On Thu, 2 Aug 2018 09:34:37 +0800 Fam Zheng wrote: > On Wed, Aug 1, 2018 at 9:18 PM Cornelia Huck wrote: > > > > On Wed, 1 Aug 2018 15:11:23 +0200 > > Cornelia Huck wrote: > > > > > On Wed, 1 Aug 2018 14:54:51 +0200 > > > Cornelia Huck wrote: > > > > > > > On Wed, 1 Aug 2018 18:21:27

Re: [libvirt] [PATCH for v4.6.0 0/2] Fix some random problems

2018-08-02 Thread Bjoern Walk
Eric Blake [2018-08-01, 09:51AM -0500]: > On 08/01/2018 07:57 AM, Bjoern Walk wrote: > > And here's the fix for the viriscsitest on big-endian machine like > > Daniel suggested. > > > From d59b254294a90c5a9ca0fb6ad29465cd0950bb61 Mon Sep 17 00:00:00 2001 > > From: Bjoern Walk > > Date: Wed, 1