Check the return value of virCommandSetMaxMemLock when hotplugging VFIO
PCI hostdevs and reject the hotplug if the memory limit can't be set.
---
src/qemu/qemu_hotplug.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index
If mlock is required either due to use of VFIO hostdevs or due to the
fact that it's enabled it needs to be tweaked prior to adding new memory
or after removing a module. Add a helper to determine when it's
necessary and reuse it both on hotplug and hotunplug.
Resolves:
New function qemuDomainGetMlockLimitBytes will now handle the
calculation so that it unifies the logic to one place and allows later
reuse.
---
src/qemu/qemu_command.c | 18 ++
src/qemu/qemu_domain.c | 27 +++
src/qemu/qemu_domain.h | 2 ++
This allows us to send Qemu Guest Agent commands to running domains.
Signed-off-by: Wido den Hollander
---
src/main/java/org/libvirt/Domain.java | 36 ++
src/main/java/org/libvirt/Library.java | 3 +++
Peter Krempa (3):
qemu: Extract logic to determine the mlock limit size for VFIO
qemu: hotplug: Fix mlock limit handling on memory hotplug
qemu: hotplug: Reject VFIO hotplug if setting RLIMIT_MEMLOCK fails
src/qemu/qemu_command.c | 18 ++---
src/qemu/qemu_domain.c | 54
On 11/09/2015 07:50 AM, Peter Krempa wrote:
> Check the return value of virCommandSetMaxMemLock when hotplugging VFIO
> PCI hostdevs and reject the hotplug if the memory limit can't be set.
> ---
> src/qemu/qemu_hotplug.c | 5 -
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
ACK
John
On 11/09/2015 07:50 AM, Peter Krempa wrote:
> New function qemuDomainGetMlockLimitBytes will now handle the
> calculation so that it unifies the logic to one place and allows later
> reuse.
> ---
> src/qemu/qemu_command.c | 18 ++
> src/qemu/qemu_domain.c | 27
On 11/09/2015 07:50 AM, Peter Krempa wrote:
> If mlock is required either due to use of VFIO hostdevs or due to the
> fact that it's enabled it needs to be tweaked prior to adding new memory
> or after removing a module. Add a helper to determine when it's
> necessary and reuse it both on
As of QEMU 0.10.0, the -drive cache option stopped using
the on/off value names, so the QEMU driver can assume
use of the new value names.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_capabilities.c | 3 --
src/qemu/qemu_capabilities.h
Check the QEMU version and refuse to work with QEMU versions
older than 0.12.0. This is approximately the vintage of QEMU
that is available in RHEL-6 era distros.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_capabilities.c | 7 ++
As of QEMU 0.9.0 the -vnc option accepts a ':' to separate port
from listen address, so the QEMU driver can assume that support
for listen addresses is always available.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_capabilities.c | 4 -
As of QEMU 0.11.0 the 'info chardev' monitor command can be
used to report on allocated chardev paths, so we can drop
support for parsing QEMU stderr to locate the PTY paths.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_process.c | 204
A v2 of this series:
https://www.redhat.com/archives/libvir-list/2015-November/msg00165.html
The patches for introducing virtlogd will be significantly
simplified if we don't need to worry about parsing stderr
during startup. This is required prior to QEMU 0.11 so
that we can get the
The -sdl and -net ...name=XXX arguments were both introduced
in QEMU 0.10, so the QEMU driver can assume they are always
available.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_capabilities.c | 4
src/qemu/qemu_capabilities.h
We have twice previously attempted to remove Xenner
support
commit de9be0ab4d7abe4c3ae5beaaff7ddb208921f1f1
Author: Daniel P. Berrange
Date: Wed Aug 22 17:29:01 2012 +0100
Remove xenner support
commit 92572c3d71bd08e6dd1897c7b14be9d27df608e9
Author: Ján
As of QEMU 0.10.0 the -vga argument was introduced, so the
QEMU driver can assume it is always available.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_capabilities.c | 4 --
src/qemu/qemu_capabilities.h | 2 +-
---
src/qemu/qemu_capabilities.c | 7 +--
src/qemu/qemu_capabilities.h | 2 +-
src/qemu/qemu_command.c| 16
src/qemu/qemu_command.h| 2 --
src/qemu/qemu_hotplug.c
The qemuAssignDeviceDiskAliasFixed() method was missing handling
for the USB disk bus type.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_command.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index
The kQEMU accelerator was deleted in QEMU 0.12, so we no
longer need to support it in the QEMU driver.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_capabilities.c | 18 --
src/qemu/qemu_capabilities.h | 19 ---
src/qemu/qemu_command.c
The -no-reboot arg was added in QEMU 0.9.0, so the QEMU driver
can now assume it is always present.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_capabilities.c | 3 ---
src/qemu/qemu_capabilities.h | 2 +-
Since we require QEMU 0.12.0, we can assume that QEMU supports
all of the fd, tcp, unix and exec migration protocols.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_capabilities.c | 34 +-
src/qemu/qemu_capabilities.h
The QEMU argv -> virDomainDef conversion code was not handling
-drive arguments using the floppy bus. This caused them to be
added as hard disks instead.
Signed-off-by: Daniel P. Berrange
---
src/qemu/qemu_command.c | 5 +
1 file changed, 5 insertions(+)
diff --git
On Mon, Nov 09, 2015 at 13:09:59 -0500, John Ferlan wrote:
> On 11/09/2015 07:50 AM, Peter Krempa wrote:
> > New function qemuDomainGetMlockLimitBytes will now handle the
> > calculation so that it unifies the logic to one place and allows later
> > reuse.
> > ---
[...]
> > +/**
> > + *
On Mon, Nov 09, 2015 at 13:11:16 -0500, John Ferlan wrote:
> On 11/09/2015 07:50 AM, Peter Krempa wrote:
> > If mlock is required either due to use of VFIO hostdevs or due to the
> > fact that it's enabled it needs to be tweaked prior to adding new memory
> > or after removing a module. Add a
On Tue, Oct 20, 2015 at 09:34:05 -0400, John Ferlan wrote:
>
>
> On 10/16/2015 08:11 AM, Peter Krempa wrote:
> > Keep const correctness and allow to use this function in cases where
> > @def is const in the caller.
> > ---
> > src/conf/domain_conf.c | 2 +-
> > src/conf/domain_conf.h | 2 +-
> >
Roman Bogorodskiy wrote:
> Current monitor code overrides domain object's privateData, e.g.
> in virBhyveProcessStart():
>
> vm->privateData = bhyveMonitorOpen(vm, driver);
>
> where bhyveMonitorPtr() returns bhyveMonitorPtr.
>
> This is not right thing to do, so make bhyveMonitorPtr
> a
On 11/09/2015 11:24 AM, Daniel P. Berrange wrote:
> We have twice previously attempted to remove Xenner
> support
>
> commit de9be0ab4d7abe4c3ae5beaaff7ddb208921f1f1
> Author: Daniel P. Berrange
> Date: Wed Aug 22 17:29:01 2012 +0100
>
> Remove xenner support
Add a configure option to disable virt-login-shell build even if lxc is
enabled.
---
configure.ac | 14 ++
tools/Makefile.am | 12 ++--
2 files changed, 20 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac
index f481c50..c766351 100644
---
On 11/09/2015 11:24 AM, Daniel P. Berrange wrote:
> A v2 of this series:
>
> https://www.redhat.com/archives/libvir-list/2015-November/msg00165.html
>
> The patches for introducing virtlogd will be significantly
> simplified if we don't need to worry about parsing stderr
> during startup.
On 11/09/2015 11:24 AM, Daniel P. Berrange wrote:
> As of QEMU 0.11.0 the 'info chardev' monitor command can be
> used to report on allocated chardev paths, so we can drop
> support for parsing QEMU stderr to locate the PTY paths.
>
> Signed-off-by: Daniel P. Berrange
>
On 11/09/2015 11:24 AM, Daniel P. Berrange wrote:
> As of QEMU 0.9.1 the -drive argument can be used to configure
> all disks, so the QEMU driver can assume it is always available
> and drop support for -hda/-cdrom/etc.
>
As I found out (and provided some details in patch 17) - the
On 11/09/2015 11:24 AM, Daniel P. Berrange wrote:
> Since we require QEMU 0.12.0, we can assume that QEMU supports
> all of the fd, tcp, unix and exec migration protocols.
>
> Signed-off-by: Daniel P. Berrange
> ---
> src/qemu/qemu_capabilities.c |
On 11/09/2015 11:24 AM, Daniel P. Berrange wrote:
> The -sdl and -net ...name=XXX arguments were both introduced
> in QEMU 0.10, so the QEMU driver can assume they are always
> available.
>
The -sdl wasn't really removed it seems - although it did me peeking
into the rabbit hole for a make
On Sat, Nov 07, 2015 at 03:59:00PM -0800, Cédric Bosdonnat wrote:
> ---
> libvirt-sandbox/libvirt-sandbox-config.c | 7 ++-
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/libvirt-sandbox/libvirt-sandbox-config.c
> b/libvirt-sandbox/libvirt-sandbox-config.c
> index
On Sat, Nov 07, 2015 at 03:58:59PM -0800, Cédric Bosdonnat wrote:
> ---
> libvirt-sandbox/libvirt-sandbox-config.c | 2 ++
> 1 file changed, 2 insertions(+)
ACK
Regards,
Daniel
--
|: http://berrange.com -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org
35 matches
Mail list logo