On 17.09.2015 02:11, John Ferlan wrote:
>
>
> On 09/10/2015 09:20 AM, Nikolay Shirokovskiy wrote:
>> p2p plain and direct function are good candidates for code reuse. Their main
>> function is same - to branch among different versions of migration protocol
>> and
>> implementation of this
Am 18.09.2015 um 11:03 hat Vasiliy Tolstov geschrieben:
> 2015-09-18 12:02 GMT+03:00 Kevin Wolf :
> > Doesn't sheepdog already support storing snapshots in the same image?
> > I thought it would just work; at least, there's some code there for it.
>
> Yes, qemu and sheepdog have
On 17.09.2015 17:39, Daniel P. Berrange wrote:
> On Thu, Sep 17, 2015 at 01:11:59PM +0100, Daniel P. Berrange wrote:
>> On Thu, Sep 10, 2015 at 04:20:12PM +0300, Nikolay Shirokovskiy wrote:
>>> Current implementation of 'toURI' migration interfaces does not support all
>>> combinations of
On 17.09.2015 01:24, John Ferlan wrote:
>
>
> On 09/10/2015 09:20 AM, Nikolay Shirokovskiy wrote:
>> This is more structured code so it will be easier to add branch for _PARAMS
>> protocol here. It is not a pure refactoring strictly speaking as we remove
>> scenarios for broken cases when
On 17.09.2015 18:22, John Ferlan wrote:
>
>
> On 09/10/2015 09:20 AM, Nikolay Shirokovskiy wrote:
>> May be a matter of a taste but this version with one return point in every
>> function looks simplier to understand and to exetend too. Anyway after such
>
> s/exetend/extend
>
>> a heavy
On 17.09.2015 17:32, John Ferlan wrote:
>
>
> On 09/10/2015 09:20 AM, Nikolay Shirokovskiy wrote:
>> Finally on this step we get what we were aimed for - toURI{1, 2} (and
>> migration{*} APIs too) now can work thru V3_PARAMS protocol. Execution path
>> goes thru unchanged
Similar to commit id '35847860', it's possible to attempt to create
a 'netfs' directory in an NFS root-squash environment which will cause
the 'vol-delete' command to fail. It's also possible error paths from
the 'vol-create' would result in an error to remove a created directory
if the
A followup of sorts to recently pushed patches regarding NFS root-squash.
During libvirt-security list review it was pointed out that the new code
was essentially open coding what virProcessWait does. However, since the
model being used also was open coded and there was a time element, the
change
This reverts commit 69b850fe2a19d0c32ae2f209e8d8463df6ead665.
This change broke the ability to "clear" or reset unfiltered back
to filtered.
Signed-off-by: John Ferlan
---
This is a event - have to wonder what I was thinking
at the time. The patch pushed removes the
On 09/16/2015 05:14 AM, Michal Privoznik wrote:
> So, as Peter pointed out, we may want to updated startupPolicy for
> live domains too. That's what patches 2/7-7/7 do.
>
> Michal Privoznik (7):
> qemuDomainUpdateDeviceConfig: Allow startupPolicy update, yet again
> qemu:
Rather than inlining the code, use the common API.
Signed-off-by: John Ferlan
---
src/util/virfile.c | 38 +-
1 file changed, 13 insertions(+), 25 deletions(-)
diff --git a/src/util/virfile.c b/src/util/virfile.c
index a0c8f0c..02d1a1f
Rather than inlining the code, use the common API
Signed-off-by: John Ferlan
---
src/util/virfile.c | 47 +--
1 file changed, 13 insertions(+), 34 deletions(-)
diff --git a/src/util/virfile.c b/src/util/virfile.c
index
Rather than inlining the code, use the common API.
Signed-off-by: John Ferlan
---
src/util/virfile.c | 45 +++--
1 file changed, 19 insertions(+), 26 deletions(-)
diff --git a/src/util/virfile.c b/src/util/virfile.c
index
On 09/16/2015 05:15 AM, Michal Privoznik wrote:
> Signed-off-by: Michal Privoznik
> ---
> src/qemu/qemu_domain.c | 1 -
> src/qemu/qemu_driver.c | 29 -
> 2 files changed, 20 insertions(+), 10 deletions(-)
>
> diff --git
On Thu, Sep 17, 2015 at 18:40:59 -0400, John Ferlan wrote:
>
>
> On 09/11/2015 09:26 AM, Jiri Denemark wrote:
> > When persistently migrating a domain to a destination host where the
> > same domain already exists (i.e., it is persistent and shutdown at the
> > destination), we would happily
On Thu, Sep 17, 2015 at 17:45:26 -0400, John Ferlan wrote:
>
>
> On 09/11/2015 09:26 AM, Jiri Denemark wrote:
> > Offline migration migration is quite special because we don't really
> > need to do anything but make the domain persistent. Let's do it
> > separately from normal migration to avoid
On Thu, Sep 17, 2015 at 18:24:29 -0400, John Ferlan wrote:
>
>
> On 09/11/2015 09:26 AM, Jiri Denemark wrote:
> > Every single call to qemuDomainEventQueue() uses the following pattern:
> >
> > if (event)
> > qemuDomainEventQueue(driver, event);
> >
> > Let's move the check for
On 09/18/2015 07:46 AM, Jiri Denemark wrote:
> On Thu, Sep 17, 2015 at 18:24:29 -0400, John Ferlan wrote:
>>
>>
>> On 09/11/2015 09:26 AM, Jiri Denemark wrote:
>>> Every single call to qemuDomainEventQueue() uses the following pattern:
>>>
>>> if (event)
>>>
On Thu, Sep 17, 2015 at 17:48:21 -0400, John Ferlan wrote:
>
>
> On 09/11/2015 09:26 AM, Jiri Denemark wrote:
> > When we save status XML at the point during migration where we have
> > already started the domain on destination, we can't really go back and
> > abort migration. Thus the only
On Fri, Sep 18, 2015 at 6:49 PM, Kevin Wolf wrote:
> Am 18.09.2015 um 11:03 hat Vasiliy Tolstov geschrieben:
>> 2015-09-18 12:02 GMT+03:00 Kevin Wolf :
>> > Doesn't sheepdog already support storing snapshots in the same image?
>> > I thought it would just work;
On 17.09.2015 00:54, John Ferlan wrote:
>
> FWIW: I figured I'd at least take a look - it's not my area of expertise
> though. I also ran the changes through my Coverity checker. The first
> pass found an issue in patch 10, which seems to be a result of some
> changes in patch 2 and perhaps
We use miguri name for this parameter in other places. So
make naming more consitent.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c | 12 ++--
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/libvirt-domain.c
Refactor dconnuri local server URI check to common API.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c | 44
1 files changed, 24 insertions(+), 20 deletions(-)
diff --git a/src/libvirt-domain.c
Current implementation of 'toURI' migration interfaces does not support all
combinations of interface versions and protocol versions. For example 'toURI2'
with p2p flag will not migrate if driver supports only v3params proto.
This is not convinient as drivers that starts to support migration have
Let's put main functionality into params version of virDomainMigrateUnmanaged
as a preparation step for merging it with virDomainMigratePeer2PeerParams.
virDomainMigrateUnmanaged then does nothing more then just adapting arguments.
Signed-off-by: Nikolay Shirokovskiy
Check dconnuri is not null or we will catch nullpointer later.
I hope this makes Coverity happy.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c |8 ++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/libvirt-domain.c
May be a matter of a taste but this version with one return point in every
function looks simplier to understand and to extend too. Anyway after such
a heavy refactoring a little cleanup will not hurt.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c |
It is *not* a pure refactoring patch as it introduces offline check for older
versions. Looks like it must be done that way and no one will be broken too.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c | 75
Finally on this step we get what we were aimed for - toURI{1, 2} (and
migration{*} APIs too) now can work thru V3_PARAMS protocol. Execution path
goes thru unchanged virDomainMigrateUnmanaged adapter function which is called
by all target places.
Note that we keep the fact that direct migration
Move virDomainMigrateUnmanagedProto* expected params list check into
function itself and use common virTypedParamsCheck for this purpose.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c | 56 -
1 files
On 17.09.2015 07:15, Chunyan Liu wrote:
> After attach-device a with --config, new device doesn't
> show up in dumpxml and in guest.
>
> To fix that, set dev->data.hostdev = NULL after work so that the
> pointer is not freed, since vmdef has the pointer and still need it.
>
> Signed-off-by:
On 09/18/2015 08:25 AM, Michal Privoznik wrote:
On 17.09.2015 07:15, Chunyan Liu wrote:
After attach-device a with --config, new device doesn't
show up in dumpxml and in guest.
To fix that, set dev->data.hostdev = NULL after work so that the
pointer is not freed, since vmdef has the pointer
With current master (56945e1), while toying around with a WS2008R2 Hyper-V host:
root@probook:~ # gdb --quiet -ex 'r -c hv dumpxml all-sles12-dev' -ex bt -ex
detach -ex quit virsh
Reading symbols from virsh...Reading symbols from
/usr/lib/debug/usr/bin/virsh.debug...done.
done.
Starting
From: Michal Privoznik
Direct migration should work if *perform3 is present but *perform
is not. This is situation when driver migration is implemented
after new version of driver function is introduced. We should not
be forced to support old version too as its parameter
p2p plain and direct function are good candidates for code reuse. Their main
function is same - to branch among different versions of migration protocol and
implementation of this function is also same. Also they have other common
functionality in lesser aspects. So let's merge them.
But as they
virDomainMigrateUnmanagedParams is not a good candidate for this functionality
as it is used by migrate family functions too and its have its own checks that
are superset of extracted and we don't need to check twice.
Actually name of the function is slightly misleading as there is also a check
'useParams' parameter usage is an example of control coupling. Most of the work
inside the function is done differently except for the uri check. Lets split
this function into two, one with extensible parameters set and one with
hardcoded
parameter set.
Signed-off-by: Nikolay Shirokovskiy
This is more structured code so it will be easier to add branch for _PARAMS
protocol here. It is not a pure refactoring strictly speaking as we remove
scenarios for broken cases when driver defines V3 feature and implements
perform function. So it is additionally a more solid code.
Signed-off-by:
Extract parameter adaptation and checking which is protocol dependent into
designated functions. Leave only branching and common checks in
virDomainMigrateUnmanagedParams.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c | 118
On Fri, Sep 11, 2015 at 15:26:02 +0200, Jiri Denemark wrote:
> While hacking qemuMigrationFinish I found it pretty hard to follow and
> revealed few bugs (patches 3 to 5, and 8) in the code.
>
> Version 2:
> - rebased and review comments addressed
> - new patch "qemu: Fix some corner cases in
On 17.09.2015 18:22, John Ferlan wrote:
>
>
> On 09/10/2015 09:20 AM, Nikolay Shirokovskiy wrote:
>> May be a matter of a taste but this version with one return point in every
>> function looks simplier to understand and to exetend too. Anyway after such
>
> s/exetend/extend
>
>> a heavy
On 17.09.2015 18:07, John Ferlan wrote:
>
>
> On 09/10/2015 09:20 AM, Nikolay Shirokovskiy wrote:
>> Introduce a new function for the check. virDomainMigrateUnmanagedParams is
>> not
>> a good candidate for this functionality as it is used by migrate family
>> functions too and its have its
Hi,
The attached patch adds the missing virDomainSetMemoryStatsPeriod API,
which was introduced since around 2013.
Cheers,
Wei Mingzhi
--
"The best way to predict the future is to invent it." -Alan Kay
diff --git a/src/main/java/org/libvirt/Domain.java
On 09/14/2015 10:44 AM, Shivaprasad G Bhat wrote:
> Tunnelled migration can hang if the destination qemu exits despite all the
> ABI checks. This happens whenever the destination qemu exits before the
> complete transfer is noticed by source qemu. The savevm state checks at
> runtime can fail at
44 matches
Mail list logo