https://bugzilla.redhat.com/show_bug.cgi?id=1527740
Users might use a block device as UEFI VAR store. Or even have
OVMF stored there. Therefore, when starting a domain and separate
mount namespace is used, we have to create all the /dev entries
that are configured for the domain.
Signed-off-by:
https://bugzilla.redhat.com/show_bug.cgi?id=1448149
If a domain has no numa nodes, that means we don't put any
memory-backend-file onto the qemu command line. That in turn
means we can't set access='shared'. Therefore, we should produce
an error instead of ignoring the setting silently.
On 01/02/2018 12:57 PM, Mihamina RAKOTOMANDIMBY wrote:
> Hello,
>
> I face this problem and I am willing to provide a patch in order to have
> a more informative message.
> This, of course with our help. I am not quite certain.
>
> First of all: What is the problem?
>
> On a fresh Install
On 01/02/2018 11:23 PM, Eric Blake wrote:
> From: Michal Privoznik
>
> Unfortunately, since gnulib's commit of 2c5d558745 there's an
> unused parameter to stat_time_normalize() function which gnulib
> developers don't want to fix yet [1]. Therefore, we have to work
> around
From: Michal Privoznik
Unfortunately, since gnulib's commit of 2c5d558745 there's an
unused parameter to stat_time_normalize() function which gnulib
developers don't want to fix yet [1]. Therefore, we have to work
around it by temporarily providing a downstream patch.
1:
On 12/26/2017 07:35 AM, Jie Wang wrote:
> when the blockjob return status:"BLOCK_JOB_COMPLETED" with error:
> "File descriptor in bad state", "offset" and "len" are equal to zero,
> but the blockjob event should be "VIR_DOMAIN_BLOCK_JOB_FAILED"
> ---
> src/qemu/qemu_monitor_json.c | 2 +-
> 1
On 01/02/2018 07:09 AM, John Ferlan wrote:
>
>
> On 01/02/2018 04:28 AM, Michal Privoznik wrote:
>> Unfortunately, since gnulib's commit of 2c5d558745 there's an
>> unused parameter to stat_time_normalize() function which gnulib
>> developers don't want to fix [1]. Therefore, we have to work
>>
On 12/13/2017 10:39 AM, Martin Kletzander wrote:
> Signed-off-by: Martin Kletzander
> ---
> src/libvirt_private.syms | 2 -
> src/util/virresctrl.c| 132
> ---
> src/util/virresctrl.h| 11
> 3 files changed, 145
On 12/13/2017 10:39 AM, Martin Kletzander wrote:
> Signed-off-by: Martin Kletzander
> ---
> src/conf/capabilities.c | 53
> -
> src/conf/capabilities.h | 2 ++
> 2 files changed, 28 insertions(+), 27 deletions(-)
>
On 12/13/2017 10:39 AM, Martin Kletzander wrote:
> This will make the current functions obsolete and it will provide more
> information to the virresctrl module so that it can be used later.
>
> Signed-off-by: Martin Kletzander
> ---
> po/POTFILES.in | 1 +
>
On 12/13/2017 10:39 AM, Martin Kletzander wrote:
> Just to ease the review of following patches.
>
> Signed-off-by: Martin Kletzander
> ---
> src/conf/capabilities.c | 2 +-
> src/conf/capabilities.h | 2 +-
> src/util/virresctrl.c | 4 ++--
> src/util/virresctrl.h |
Hi guys,
Any possibility to include a test case for this scenario?
2018-01-02 16:52 GMT-02:00 Julio Faracco :
> After commit a693fdb 'vol-dumpxml' missed the ability to show backingStore
> information. This commit adds a volume type for files that fixes this
> problem.
>
>
After commit a693fdb 'vol-dumpxml' missed the ability to show backingStore
information. This commit adds a volume type for files that fixes this
problem.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1529663
Signed-off-by: Julio Faracco
---
On 12/20/2017 11:47 AM, Daniel P. Berrange wrote:
> Signed-off-by: Daniel P. Berrange
> ---
> src/qemu/qemu_driver.c | 57
> +
> src/qemu/qemu_process.c | 31 ++-
> src/qemu/qemu_process.h | 1 +
>
This command is going to be called from bash completion script in
the following form:
virsh complete -- start --domain
Its only purpose is to return list of possible strings for
completion. Note that this is a 'hidden', unlisted command and
therefore there's no documentation to it.
Now that we have everything prepared let the fun begin. This
completer is very simple and returns domain names. Moreover,
depending on the command it can return just a subset of domains
(e.g. only running/paused/transient/.. ones).
Signed-off-by: Michal Privoznik
---
The only purpose of this file is to be sourced. After that one
can use completion even for their bash:
# virsh list --
--all --inactive ...
Signed-off-by: Michal Privoznik
---
configure.ac | 3 ++
libvirt.spec.in| 3 ++
For given domain fetch list of defined interfaces. This can be
used for commands like domif-getlink and others. If available,
the interface name is returned (e.g. "vnet0", usually available
only for running domains), if not the MAC address is returned.
Moreover, the detach-interface command
Signed-off-by: Michal Privoznik
---
tools/Makefile.am| 9 ++
tools/virt-admin-completer.c | 76
tools/virt-admin-completer.h | 33 +++
tools/virt-admin.c | 8 +
4 files changed, 126
Now that we have a way of retrieving partly parsed command we
don't need duplicate code that parses the user's input.
Yes, this code removes call of opt's completer, but:
a) current implementation is broken anyway, and
b) it will be added back shortly
Signed-off-by: Michal Privoznik
Similarly to the previous commit, once we've presented an
--option for a command to the user it makes no sense to offer it
again. Therefore, we can prune all already specified options. For
instance, after this patch:
virsh # migrate --verbose
will no longer offer --verbose option.
For two string lists merge one into the other one.
Signed-off-by: Michal Privoznik
---
src/libvirt_private.syms | 1 +
src/util/virstring.c | 36
src/util/virstring.h | 3 +++
3 files changed, 40 insertions(+)
diff --git
In the future, completer callbacks will receive partially parsed
command (and thus possibly incomplete). However, we still want
them to use command options fetching APIs we already have (e.g.
vshCommandOpt*()) and at the same time don't report any errors
(nor call any asserts).
Signed-off-by:
When returning a string that needs escaping there are two
scenarios that can happen. Firstly, user already started the
string with a quote (or double quote) in which case we don't need
to do anything - readline takes care of that. However, if they
haven't typed anything yet, we need to escape the
In the future, this function is going to be called from
vshReadlineParse() to provide parsed input for completer
callbacks. The idea is to allow the callbacks to provide more
specific data. For instance, for the following input:
virsh # domifaddr --domain fedora --interface
the --interface
It's better to fetch list of either commands or options just once
and then iterate over it. Moreover, it makes future completers
way simpler as they will return string lists too.
Signed-off-by: Michal Privoznik
---
tools/vsh.c | 121
Now that we have everything prepared we can call options'
completer again. At the same time, pass partially parsed input to
the completer callback - it will help the callbacks to narrow
down the list of returned options based on user's input. For
instance, if the completer is supposed to return
When parsing cmd line which has "--" on it, this is leaked.
Problem is, parser->getNextArg() allocates new string and stores
it into tkdata. But as soon as "--" is detected 'continue' is
issued without any free of the allocated memory.
==5304== 3 bytes in 1 blocks are definitely lost in loss
Instead of having completers prune returned string list based on
user's input we can do that right after the callback is called.
Only strings matching the prefix will be presented to the user
then.
Signed-off-by: Michal Privoznik
---
tools/vsh.c | 43
The first argument passed to this function is vshControl *.
There's no need to use void pointer.
Signed-off-by: Michal Privoznik
---
tools/vsh.c | 2 +-
tools/vsh.h | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/vsh.c b/tools/vsh.c
index
All our internal *Free() functions are capable of handling NULL.
Signed-off-by: Michal Privoznik
---
tools/vsh.c | 12
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/tools/vsh.c b/tools/vsh.c
index e38dcec92..a21e1d1de 100644
--- a/tools/vsh.c
Technically, this is a v2 of [1], but this implements the feature from
different angle and therefore it's a start of new series.
What's implemented?
===
Auto completion for both interactive and non-interactive
virsh/virt-admin.
Known limitations
=
Currently,
All our internal *Free() functions are capable of handling NULL.
Signed-off-by: Michal Privoznik
---
tools/vsh.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tools/vsh.c b/tools/vsh.c
index e878119b9..e38dcec92 100644
--- a/tools/vsh.c
+++
A very 2018 ping :)
On Thu, 2017-12-14 at 13:33 +0100, Andrea Bolognani wrote:
> Changes from [v2]:
>
> * improve the parser;
> * print the architecture name instead of "your architecture".
>
> Changes from [v1]:
>
> * adopt Bjoern's approach to refactoring.
>
> [v2]
Signed-off-by: Andrea Bolognani
---
Pushed as trivial.
docs/formatdomain.html.in | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 01db83e60..d272cc1ba 100644
---
On 12/20/2017 11:47 AM, Daniel P. Berrange wrote:
> Currently the QEMU driver will reconnect to running guests during libvirtd
> startup. To support the ability to launch a fully supported guest externally
> to the main libvirtd daemon, this adds a QEMU specific public API
>
>
On 12/20/2017 11:47 AM, Daniel P. Berrange wrote:
> Currently drivers can only do a bulk load of config / status files for
> their guests. This exposes some helper methods to allow individual
> guests to be loaded.
>
> Signed-off-by: Daniel P. Berrange
> ---
>
I know it's a POC type series, but figured I'd take a look primarily at
the first 4 patches, learn a bit in the 5th one, and provide some review
feedback in order to help move things along... There's perhaps a few
adjustments in here that could be made into multiple patches.
On 12/20/2017
On 01/02/2018 02:09 PM, John Ferlan wrote:
>
>
> On 01/02/2018 04:28 AM, Michal Privoznik wrote:
>> Unfortunately, since gnulib's commit of 2c5d558745 there's an
>> unused parameter to stat_time_normalize() function which gnulib
>> developers don't want to fix [1]. Therefore, we have to work
>>
On 01/02/2018 04:28 AM, Michal Privoznik wrote:
> Unfortunately, since gnulib's commit of 2c5d558745 there's an
> unused parameter to stat_time_normalize() function which gnulib
> developers don't want to fix [1]. Therefore, we have to work
> around it by temporarily suspending
Hello,
I face this problem and I am willing to provide a patch in order to have
a more informative message.
This, of course with our help. I am not quite certain.
First of all: What is the problem?
On a fresh Install (ArchLinux for me), if ever forget to install Qemu
and launch
On 01/02/2018 10:28 AM, Pavel Hrdina wrote:
> Introduced by commit <4ae9dbea99c>.
>
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1528572
>
> Signed-off-by: Pavel Hrdina
> ---
> src/conf/virnodedeviceobj.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git
Unfortunately, since gnulib's commit of 2c5d558745 there's an
unused parameter to stat_time_normalize() function which gnulib
developers don't want to fix [1]. Therefore, we have to work
around it by temporarily suspending -Wunused-parameter.
1:
Introduced by commit <4ae9dbea99c>.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1528572
Signed-off-by: Pavel Hrdina
---
src/conf/virnodedeviceobj.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/conf/virnodedeviceobj.c b/src/conf/virnodedeviceobj.c
On 12/27/2017 11:00 PM, Oscar Segarra wrote:
> Hi,
>
> For any unkown reason the virsh save raises an error in my environment
> Centos 7.2:
>
> [root@vdicnode02 ~]# virsh list
> Id Name State
>
> 2
45 matches
Mail list logo