On Tue, 2016-01-19 at 16:36 +0100, Andrea Bolognani wrote:
> This function mirrors reattachPCIDevices().
>
> The handling of active and inactive devices is updated and made more
> explicit, which means virHostdevPreparePCIDevices() has to be
> updated as well.
> ---
> src/util/virhostdev.c | 125
On Mon, 2016-01-18 at 13:08 +0300, Alexander Burluka wrote:
> This functions setups per-domain cpu bandwidth parameters
>
> Signed-off-by: Alexander Burluka
> ---
> src/qemu/qemu_cgroup.c | 54
> +
>
On Mon, 2016-01-18 at 13:08 +0300, Alexander Burluka wrote:
> We decide to make a global per domain bandwidth setting
> as were discussed in mailing list earlier.
> This patchset implements hierarchy top level cpu.cfs_period_us
> and cpu.cfs_quota_us control knob. I've named this parameters
> as
virSecuritySELinuxRestoreFileLabel should never be called with NULL path
add check before call this function in case of causeing libvirtd crash
https://bugzilla.redhat.com/show_bug.cgi?id=1300532
Signed-off-by: Shanzhi Yu
---
src/security/security_selinux.c | 25
... and consolidate the cmdline/extra/root parsing to facilitate doing
so.
The logic is the same as xl's parse_cmdline from the current xen.git master
branch (e6f0e099d2c17de47fd86e817b1998db903cab61).
On the formatting side switch to producing cmdline= instead of extra=.
Update a few tests and
I forgot to mention that all patches are also available in
post-copy-migration branch in my staging repository at
https://gitlab.com/jirkade/libvirt
Jirka
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
On Wed, 2016-01-20 at 11:58 -0700, Jim Fehlig wrote:
> Add "Xen XL Config" to the virErrorDomain enum and use it in
> src/xenconfig/xen_xl.c.
>
> Signed-off-by: Jim Fehlig
Acked-by: Ian Campbell
--
libvir-list mailing list
libvir-list@redhat.com
When destination libvirtd is restarted during migration in Finish phase
just after the point we started guest CPUs, we should not kill the
domain.
Signed-off-by: Jiri Denemark
---
Notes:
Version 2:
- no change
src/qemu/qemu_process.c | 10 +++---
1 file
(See "Add public APIs for post-copy migration" patch for more details
about post-copy migration.)
Post-copy support was originally written by Cristian Klein in 2014, but
no one touched the series since then. Some patches in this series are
modified versions of the old patches from Cristian, some
From: Cristian Klein
Signed-off-by: Cristian Klein
Signed-off-by: Jiri Denemark
---
Notes:
Version 2:
- no change
tools/virsh-domain.c | 55
tools/virsh.pod |
From: Cristian Klein
Signed-off-by: Cristian Klein
Signed-off-by: Jiri Denemark
---
Notes:
Version 2:
- no change
src/qemu/qemu_domain.c| 1 +
src/qemu/qemu_domain.h| 1 +
src/qemu/qemu_driver.c| 58
VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY and VIR_DOMAIN_PAUSED_POSTCOPY are
used on the source host once migration enters post-copy mode (which
means the domain gets paused on the source. After the destination host
takes over the execution of the domain, its virtual CPUs are resumed and
the domain
On 01/21/2016 01:41 AM, Jim Fehlig wrote:
> Joao Martins wrote:
>> As suggested in a previous thread [0] this patch adds some missing calls
>> to libxl_dominfo_dispose when doing some of the libxl_domain_info
>> operations which would otherwise lead to memory leaks.
>>
>> [0]
>>
From: Cristian Klein
Signed-off-by: Cristian Klein
Signed-off-by: Jiri Denemark
---
Notes:
Version 2:
- implement --postcopy-after-precopy entirely in virsh
tools/virsh-domain.c | 35
From: Cristian Klein
To use post-copy one has to start the migration with
VIR_MIGRATE_POSTCOPY flag and, while migration is in progress, call
virDomainMigrateStartPostCopy() to switch from pre-copy to post-copy.
Signed-off-by: Cristian Klein
As suggested in a previous thread [0] this patch adds some missing calls
to libxl_dominfo_{init,dispose} when doing some of the libxl_domain_info
operations which would otherwise lead to memory leaks.
[0]
https://www.redhat.com/archives/libvir-list/2015-September/msg00519.html
Signed-off-by:
Signed-off-by: Jiri Denemark
---
Notes:
Version 2:
- no change
tools/virsh-domain.c | 63 +---
tools/virsh.pod | 15 -
2 files changed, 65 insertions(+), 13 deletions(-)
diff --git
From: Cristian Klein
Signed-off-by: Cristian Klein
Signed-off-by: Jiri Denemark
---
Notes:
The migration capability is called x-postcopy-ram in QEMU, which
means it's still considered experimental. The main reason for
Migration enters "postcopy-active" state after QEMU switches to
post-copy and pauses guest CPUs. From libvirt's point of view this state
is similar to "completed" because we need to transfer guest execution to
the destination host.
Signed-off-by: Jiri Denemark
---
Notes:
When migration fails in the post-copy mode, it's impossible to just kill
the destination domain and resume the source since the source no longer
contains current guest state. Let's mark domains on both sides as
VIR_DOMAIN_PAUSED_POSTCOPY_FAILED to let the upper layer decide what to
do with them.
From: Cristian Klein
Signed-off-by: Cristian Klein
Signed-off-by: Jiri Denemark
---
Notes:
Version 2:
- no change
src/qemu/qemu_migration.c | 76 +++
The function already takes two bool arguments, switching to flags makes
it a lot easier to read. Especially in case we need to add another
boolean in the future.
Signed-off-by: Jiri Denemark
---
Notes:
Version 2:
- moved to the end of the series since it is not
On Wed, 2016-01-20 at 11:58 -0700, Jim Fehlig wrote:
> The virErrorDomain enum has VIR_FROM_XEN, VIR_FROM_XEND,
> VIR_FROM_XENSTORE, VIR_FROM_SEXPR, and VIR_FROM_XENXM. Use
> these elements in the corresponding .c files. While at it,
> remove the VIR_FROM_THIS define in
On Mon, Jan 18, 2016 at 15:53:04 +0100, Jiri Denemark wrote:
> The VIR_DOMAIN_EVENT_ID_MIGRATION_ITERATION event will be triggered
> whenever VIR_DOMAIN_JOB_MEMORY_ITERATION changes its value, i.e.,
> whenever a new iteration over guest memory pages is started during
> migration.
>
>
On Thu, Jan 21, 2016 at 18:31:58 +0800, Shanzhi Yu wrote:
> when failed to boot a guest, virSecuritySELinuxRestoreFileLabel
> will be called eventually to reset security label, which will
> lead a crash if pass null to virFileResolveLink(path, ).
>
>
Signed-off-by: Jiri Denemark
---
Notes:
Version 2:
- no change
src/qemu/qemu_process.c | 206 ++--
1 file changed, 110 insertions(+), 96 deletions(-)
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index
In post-copy mode none of the hosts has a complete guest state and
rolling back migration is impossible. Thus aborting it would be
equivalent to destroying the domain.
Signed-off-by: Jiri Denemark
---
Notes:
Version 2:
- no change
src/qemu/qemu_driver.c | 14
On Wed, 2016-01-20 at 11:16 -0700, Jim Fehlig wrote:
> Ian Campbell wrote:
> > ... and consolidate the cmdline/extra/root parsing to facilitate doing
> > so.
> >
> > The logic is the same as xl's parse_cmdline from the current xen.git
> > master
> > branch
With a very old QEMU which doesn't support events we need to explicitly
call qemuMigrationSetOffline at the end of migration to update our
internal state. On the other hand, if we talk to QEMU using QMP, we
should just wait for the STOP event and let the event handler update the
state and trigger
when failed to boot a guest, virSecuritySELinuxRestoreFileLabel
will be called eventually to reset security label, which will
lead a crash if pass null to virFileResolveLink(path, ).
https://bugzilla.redhat.com/show_bug.cgi?id=1300532
Signed-off-by: Shanzhi Yu
---
On 10/01/16 16:27, Martin Kletzander wrote:
> On Mon, Nov 30, 2015 at 04:03:01PM +0100, Erik Skultety wrote:
>> Since the daemon can manage and add (at fresh start) multiple servers,
>> we also should be able to add them from a JSON state file in case of a
>> daemon restart. This patch introduces
On Mon, Jan 18, 2016 at 03:53:03PM +0100, Jiri Denemark wrote:
> Jiri Denemark (2):
> Introduce migration iteration event
> qemu: Add support for migration iteration event
>
> daemon/remote.c | 32 ++
> include/libvirt/libvirt-domain.h | 22 +
>
On Mon, Jan 18, 2016 at 03:53:21PM +0100, Jiri Denemark wrote:
> Signed-off-by: Jiri Denemark
> ---
> examples/event-test.py | 4 +++
> libvirt-override-virConnect.py | 9 +++
> libvirt-override.c | 57
> ++
>
Joao Martins wrote:
> As suggested in a previous thread [0] this patch adds some missing calls
> to libxl_dominfo_{init,dispose} when doing some of the libxl_domain_info
> operations which would otherwise lead to memory leaks.
>
> [0]
>
Ian Campbell wrote:
> ... and consolidate the cmdline/extra/root parsing to facilitate doing
> so.
>
> The logic is the same as xl's parse_cmdline from the current xen.git master
> branch (e6f0e099d2c17de47fd86e817b1998db903cab61).
>
> On the formatting side switch to producing cmdline= instead
'free' on Fedora 23 will use MemAvailable to calculate its 'available'
field, but we are passing through the host's value. Set it to match
MemFree, which is what 'free' will do for older linux that don't have
MemAvailable
https://bugzilla.redhat.com/show_bug.cgi?id=1300781
---
src/lxc/lxc_fuse.c
'free' on fedora23 wants to use the Slab field for calculated used
memory. The equation is:
used = MemTotal - MemFree - (Cached + Slab) - Buffers
We already set Cached and Buffers to 0, do the same for Slab and its
related values
https://bugzilla.redhat.com/show_bug.cgi?id=1300781
---
We virtualize bits of /proc/meminfo by replacing host values with
values specific to the container.
However for calculating the final size of the returned data, we are
using the size of the original file and not the altered copy, which
could give garbelled output.
---
src/lxc/lxc_fuse.c | 13
Reverse the conditional at the start so we aren't stuffing all the logic
in an 'if' block
---
src/lxc/lxc_fuse.c | 122 ++---
1 file changed, 61 insertions(+), 61 deletions(-)
diff --git a/src/lxc/lxc_fuse.c b/src/lxc/lxc_fuse.c
index
We need to add a few bits to our /proc/meminfo virtualization to
make 'free' work correctly on Fedora 23.
https://bugzilla.redhat.com/show_bug.cgi?id=1300781
Cole Robinson (4):
lxc: fuse: Unindent meminfo logic
lxc: fuse: Fix /proc/meminfo size calculation
lxc: fuse: Fill in MemAvailable
(Intro - not to be pushed with the patch:
Tony Krowiak had pointed out here:
https://www.redhat.com/archives/libvir-list/2015-October/msg00877.html
that libvirt takes a *very long time* to creat macvtap/macvlan devices
when there are a lot of them already in use.
The first patch generally improves performance when creating a lot of
macvtap devices. It was inspired by Tony Krowiak's email back in
November.
The 2nd patch eliminates a bogus error when destroying a macvtap
passthrough device that is using 802.1Qbh.
Laine Stump (2):
util: keep/use a bitmap
libvirt always resets the MAC address of the physdev used for macvtap
passthrough when the guest is finished with it. This was happening
prior to the 802.1Qb[gh] DISASSOCIATE command, and was quite often
failing, presumably because the driver wouldn't allow the MAC address
to be reset while the
On 01/20/2016 08:51 AM, Leno Hou wrote:
1. When switching CPUs to offline/online in a system more than 128 cpus
2. When using virsh to destroy domain in a system with more interface
All of above happens nl_recv returned with error: No buffer space available.
This patch sets the socket buffer
Ian Campbell wrote:
> On Wed, 2016-01-20 at 11:16 -0700, Jim Fehlig wrote:
>> Ian Campbell wrote:
>>> ... and consolidate the cmdline/extra/root parsing to facilitate doing
>>> so.
>>>
>>> The logic is the same as xl's parse_cmdline from the current xen.git
>>> master
>>> branch
Ian Campbell wrote:
> On Wed, 2016-01-20 at 11:58 -0700, Jim Fehlig wrote:
>> Add "Xen XL Config" to the virErrorDomain enum and use it in
>> src/xenconfig/xen_xl.c.
>>
>> Signed-off-by: Jim Fehlig
>
> Acked-by: Ian Campbell
Thanks! I've now pushed
On 12/23/2015 04:29 AM, Wido den Hollander wrote:
> RBD supports cloning by creating a snapshot, protecting it and create
> a child image based on that snapshot afterwards.
>
> The RBD storage driver will try to find a snapshot with zero deltas between
> the current state of the original volume
On 12/23/2015 10:06 AM, Wido den Hollander wrote:
> This allows user to use the volume wiping functionality of the libvirt
> storage driver.
>
> This patch also adds a new wiping algorithm VIR_STORAGE_VOL_WIPE_ALG_DISCARD
>
> By default the VIR_STORAGE_VOL_WIPE_ALG_ZERO algorithm is used and
48 matches
Mail list logo