-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Zhou Yimin zhouyi...@huawei.com
---
src/qemu/qemu_driver.c | 64 +++---
1 file changed, 55 insertions(+), 9 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 673d8a6..9615fe4
) API returning success.
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Zhou Yimin zhouyi...@huawei.com
---
src/qemu/qemu_hotplug.c | 33 +
src/qemu/qemu_hotplug.h | 4
2 files changed, 37 insertions(+)
diff --git a/src/qemu/qemu_hotplug.c b/src
index. So pass value:-1 to qmp command(qom-set) to cancel boot index.
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Zhou Yimin zhouyi...@huawei.com
---
src/qemu/qemu_hotplug.c | 35 ++-
1 file changed, 30 insertions(+), 5 deletions(-)
diff --git
Move implementation of qemuDomainAttachDeviceDiskLive after
qemuDomainDetachDiskDevice for later usage.
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Zhou Yimin zhouyi...@huawei.com
---
src/qemu/qemu_hotplug.c | 173
1 file
='virtio'/
driver queues='4'/
boot order='2'/
alias name='net0'/
address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/
/interface
If the 'boot order' is not specified in the xml, that means canceling its boot
order.
Wang Rui (8):
qemu: add a new
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Zhou Yimin zhouyi...@huawei.com
---
src/conf/domain_conf.c | 43 +++
1 file changed, 23 insertions(+), 20 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index d2c4a0a
) API returning success. If new disk is
attached successfully but boot index is set failed, we'll remove the
new disk to restore.
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Zhou Yimin zhouyi...@huawei.com
---
src/qemu/qemu_hotplug.c | 88
The new qemuMonitorSetBootIndex() method can set device' boot order online
using 'qom-set' JSON monitor command. HMP is not supported. And it is used
for QEMU = 2.2.0 . The QMP command is like qom-set net1 bootindex 2.
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Zhou Yimin
to distinguish the owner.
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Zhou Yimin zhouyi...@huawei.com
---
src/conf/device_conf.c | 13 +
src/conf/device_conf.h | 12
src/conf/domain_conf.c | 31 +++
src/conf/domain_conf.h | 9
On 2014/12/17 8:16, Nehal J Wani wrote:
By querying the qemu guest agent with the QMP command
guest-network-get-interfaces and converting the received JSON
output to structured objects.
Although ifconfig is deprecated, IP aliases created by ifconfig
are supported by this API. The legacy
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_driver.c | 9 -
src/qemu/qemu_hotplug.c | 5 -
2 files changed, 14 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index be37c8f..3406385 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu
to VIR_ERR_OPERATION_UNSUPPORTED
2. (patch 3/3) add 'VIR_DOMAIN_XML_SECURE' to flags in initialization.
3. (patch 3/3) Introduce a new function qemuDomainFindGraphicsIndex.
Free the old graphics def and replace it with the new one as what
we did for DEVICE_NET.
Wang Rui (3):
qemu: report properer error
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_hotplug.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index d1767bb..ec0122b 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
It's not supported to change some graphics arguments with '--live'.
Replace some error code VIR_ERR_INTERNAL_ERROR and VIR_ERR_INVALID_ARG
with VIR_ERR_OPERATION_UNSUPPORTED.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_hotplug.c | 16
1 file changed, 8
with config flag.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/conf/domain_conf.c | 2 +-
src/qemu/qemu_driver.c | 18 +-
src/qemu/qemu_hotplug.c | 14 ++
src/qemu/qemu_hotplug.h | 2 ++
4 files changed, 34 insertions(+), 2 deletions(-)
diff --git a/src
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/conf/domain_conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index fe9b986..2d81c37 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -10221,7
On 2014/12/1 4:29, Martin Kletzander wrote:
Yes, you're right, that basically what I wanted to know, but was too
busy searching for. ACK to this patch then. Would you be OK with me
rewording the commit message as follows?
The migration job status is traced in
can't use qemuMigrationUpdateJobStatus.
Wang Rui (2):
qemu: set jobinfo type to CANCELLED if migration is cancelled in all
conditions
qemu: set jobinfo type to FAILED if job is failed in qemuMigrationRun
src/qemu/qemu_migration.c | 9 -
1 file changed, 8 insertions(+), 1 deletion
can't query job status
from QEMU.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_migration.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index c678ba7..75c77ae 100644
--- a/src/qemu
if migration is cancelled during drive
mirror. Moreover, we can't use qemuMigrationUpdateJobStatus
because from qemu's point of view it's just the drive mirror being
cancelled and the migration hasn't even started yet.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_migration.c | 2 ++
1
In qemuMigrationRun the jobinfo type won't be updated until
qemuMigrationWaitForCompletion. If migration is failed or cancelled before
that(such as in qemuMigrationDriveMirror), we can't get the right jobinfo
type. The following patches fix it.
Wang Rui (2):
qemu: set jobinfo type to CANCELLED
If job is failed in qemuMigrationRun, we expect the jobinfo type as
FAILED. But jobinfo type won't be updated until entering
qemuMigrationWaitForCompletion. We should make it updated in all
conditions.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_migration.c | 7 ++-
1
if migration
is cancelled during the drive mirror migration.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_migration.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index a1b1458..c678ba7 100644
--- a/src/qemu
On 2014/11/27 18:48, Martin Kletzander wrote:
On Thu, Nov 27, 2014 at 04:26:24PM +0800, Wang Rui wrote:
The migration job status is traced in qemuMigrationUpdateJobStatus which is
called in qemuMigrationRun. But if migration is cancelled before the trace
such as in qemuMigrationDriveMirror
Commit 6fcddfcd refactored job statistics but missed the jobinfo type updated
in qemuDomainGetJobInfo. After this patch, we can use virDomainGetJobInfo to
get jobinfo type again.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_domain.c | 1 +
1 file changed, 1 insertion
On 2014/11/20 15:47, Peter Krempa wrote:
the status XML is the piece that is reloaded on libvirtd restart for
running VMs. For inactive VMs this doesn't make sense to report.
Thanks.
I missed status XML in /var/run/libvirt/.
--
libvir-list mailing list
libvir-list@redhat.com
On 2014/11/19 18:23, Peter Krempa wrote:
New qemu added a new event that is emitted when a virtio serial channel
is opened in the guest OS. This allows us to update the state of the
port in the output-only XML element.
This patch implements the monitor callbacks and necessary handlers to
We want to use qemuDomainFindGraphics in the qemuDomainUpdateDeviceConfig in
a future patch. So adjust its parameter.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_hotplug.c | 13 ++---
src/qemu/qemu_hotplug.h | 3 +++
2 files changed, 9 insertions(+), 7 deletions
changed with config flag.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/conf/domain_conf.c | 3 ++-
src/qemu/qemu_driver.c | 38 +-
2 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index
arguments persistently
Wang Rui (3):
qemu: report properer error number when change graphics failed
qemu: revise qemuDomainFindGraphics to be reused in the future patch
qemu: make persistent update of graphics device supported
src/conf/domain_conf.c | 3 ++-
src/qemu/qemu_driver.c | 38
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_hotplug.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index b9a0cee..1c75861 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
Hi,
I want to get a total progress(memory + storage). In none drive mirror
migration, I can
use virDomainGetJobInfo API to get the total progress. But in drive mirror
migration,
it seems that I must get file progress by virDomainGetBlockJobInfo and momery
progress
by virDomainGetJobInfo
If the memory mode in numatune is not 'strict', we should not setup
cpuset.mems. Before commit 1a7be8c600905aa07ac2d78293336ba8523ad48e
we have checked the memory mode in virDomainNumatuneGetNodeset. This
patch adds the check as before.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/lxc
with that in
qemuDomainSetNumaParamsLive.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_cgroup.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c
index a87ef40..3b1d16d 100644
--- a/src/qemu/qemu_cgroup.c
+++ b/src/qemu
invoke OOM.
Commit 1a7be8c600905aa07ac2d78293336ba8523ad48e changed the former logic of
checking memory mode in virDomainNumatuneGetNodeset. This patch adds the
check as before.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_cgroup.c | 4
1 file changed, 4 insertions
Fix startup failing with memory mode(strict, preferred or interleave)
in numatune
V1:
https://www.redhat.com/archives/libvir-list/2014-November/msg00057.html
V2 has been revised as Martin' suggestion.
Wang Rui (3):
qemu: don't setup cpuset.mems if memory mode in numatune is not
'strict
On 2014/11/5 16:07, Martin Kletzander wrote:
[...]
diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c
index b5bdb36..8685d6f 100644
--- a/src/qemu/qemu_cgroup.c
+++ b/src/qemu/qemu_cgroup.c
@@ -618,6 +618,11 @@ qemuSetupCpusetMems(virDomainObjPtr vm,
if
mode is 'preferred', cpuset.mems in cgroup shouldn't be set to
'nodeset'. I find that maybe commit 1a7be8c600905aa07ac2d78293336ba8523ad48e
changes the former logic of checking mode in virDomainNumatuneGetNodeset.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_cgroup.c | 5
On 2014/11/4 22:04, Martin Kletzander wrote:
On Tue, Nov 04, 2014 at 09:22:22PM +0800, Wang Rui wrote:
If the memory mode is specified as preferred, we get the following error when
starting domain.
error: Unable to write to '$my_cgroup_path/cpuset.mems': Device or resource
busy
XML
On 2014/10/31 16:16, weiwei li wrote:
commit 3e1e16aa8d4238241a1806cb9bdb3b9ad60db777(Use a port from the
migration range for NBD as well) change ndb port allocation from
remotePorts to migrationPorts, but does not change the port releasing
process, which makes an error when migration seveal
On 2014/10/22 23:34, John Ferlan wrote:
On 09/04/2014 03:52 AM, Wang Rui wrote:
From: Yue Wenyuan yueweny...@huawei.com
This patch implements libvirt_lxc process pin with emulatorpin
specified in xml.
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Yue Wenyuan yueweny
From: Zhou yimin zhouyi...@huawei.com
If VM is configured with many devices(including passthrough devices)
and large memory, libvirtd will take seconds(in the worst case) to
wait for monitor. In this period the qemu process may run on any
PCPU though I intend to pin emulator to the specified PCPU
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/conf/domain_conf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 5dc4b62..35bbd91 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -2417,6 +2417,7
Ping?
On 2014/9/4 15:52, Wang Rui wrote:
We can specify cpuset for a container defined with the xml
like vcpu placement='static' cpuset='0-3' to achieve cpu
isolation. It works when container is started. But there
is no implements we can use to either change or get cpuset.
The following
On 2014/9/19 20:02, Michal Privoznik wrote:
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 360cc67..146d67c 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -265,6 +265,10 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
On 2014/10/9 19:08, Martin Kletzander wrote:
On Thu, Oct 09, 2014 at 11:52:49AM +0100, Daniel P. Berrange wrote:
On Thu, Oct 09, 2014 at 12:37:42PM +0200, Jiri Denemark wrote:
On Thu, Oct 09, 2014 at 11:49:34 +0200, Martin Kletzander wrote:
On Thu, Oct 09, 2014 at 10:14:48AM +0100, Daniel P.
On 2014/10/2 17:55, Martin Kletzander wrote:
On Tue, Sep 30, 2014 at 10:26:21PM +0200, Guido Günther wrote:
On Tue, Sep 30, 2014 at 04:47:14PM +0200, Martin Kletzander wrote:
On Tue, Sep 30, 2014 at 05:34:54PM +0800, Wang Yufei wrote:
Hi, all
I started and stopped libvirtd service repeatly
On 2014/9/8 21:05, Francesco Romani wrote:
+static bool
+qemuDomainGetStatsNeedMonitor(unsigned int stats)
+{
+size_t i;
+
+for (i = 0; qemuDomainGetStatsWorkers[i].func; i++)
+if (stats qemuDomainGetStatsWorkers[i].stats)
+if
On 2014/9/8 21:05, Francesco Romani wrote:
This patch implements the VIR_DOMAIN_STATS_CPU_TOTAL
group of statistics.
Signed-off-by: Francesco Romani from...@redhat.com
---
include/libvirt/libvirt.h.in | 1 +
src/libvirt.c| 9
src/qemu/qemu_driver.c | 51
On 2014/9/9 19:56, Peter Krempa wrote:
+ * VIR_DOMAIN_STATS_VCPU: Return virtual CPU statistics.
+ * Due to VCPU hotplug, the vcpu.num.* array could be sparse.
+ * The actual size of the array correspond to vcpu.current.
+ * The array size will never exceed vcpu.maximum.
+ * The typed
On 2014/9/8 21:05, Francesco Romani wrote:
This patch implements the VIR_DOMAIN_STATS_VCPU
group of statistics.
To do so, this patch also extracts a helper to gather the
VCpu information.
Signed-off-by: Francesco Romani from...@redhat.com
---
include/libvirt/libvirt.h.in | 1 +
On 2014/9/5 6:26, John Ferlan wrote:
If the virJSONValueNewObject() fails, then rather than going to error
and getting a Coverity false positive since it doesn't seem to understand
the relationship between nkeywords, keywords, and values and seems to
believe calling qemuFreeKeywords will cause
as usual. My colleague will go on sending the next
version. Of course, it's grateful to receive your comments in this week.
On 2014/8/28 16:05, Gerd Hoffmann wrote:
On Do, 2014-08-14 at 20:43 +0800, Wang Rui wrote:
From: Zeng Junliang zengjunli...@huawei.com
http://www.redhat.com/archives/libvir
On 2014/9/5 1:40, Laine Stump wrote:
I do point out the existence of exactly the problem that you are fixing.
However, there is a problem with the way you're fixing it if the clock
for the domain is set like this:
clock offset ='variable' basis='localtime'/
The problem is that when the
We can specify cpuset for a container defined with the xml
like vcpu placement='static' cpuset='0-3' to achieve cpu
isolation. It works when container is started. But there
is no implements we can use to either change or get cpuset.
The following patches implement the lxc driver methods for
From: Yue Wenyuan yueweny...@huawei.com
This patch implements libvirt_lxc process pin with emulatorpin
specified in xml.
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Yue Wenyuan yueweny...@huawei.com
---
src/lxc/lxc_cgroup.c | 68
From: Yue Wenyuan yueweny...@huawei.com
Implement the lxc driver method for virDomainPinEmulator
to set container's cpuset.
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Yue Wenyuan yueweny...@huawei.com
---
src/lxc/lxc_cgroup.c | 20
src/lxc/lxc_cgroup.h | 3
From: Yue Wenyuan yueweny...@huawei.com
Implement the lxc driver method for virDomainGetEmulatorPinInfo
to get container's cpuset.
Signed-off-by: Wang Rui moon.wang...@huawei.com
Signed-off-by: Yue Wenyuan yueweny...@huawei.com
---
src/lxc/lxc_driver.c | 75
Memory is allocated for 'mnt_src' by VIR_STRDUP in the loop. Next
loop it will be allocated again. So we need to free 'mnt_src'
before continue the loop.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/lxc/lxc_container.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/lxc
Need to free 'root' and 'opts' before 'return -1' if symlink fails.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/util/vircgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index 8b554a9..a64f081 100644
--- a/src
Need to free 'uri_out' on error path.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
daemon/remote.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/daemon/remote.c b/daemon/remote.c
index 89714ca..0ea2815 100644
--- a/daemon/remote.c
+++ b/daemon/remote.c
@@ -2305,8
If virSecurityManagerClearSocketLabel() fails, 'agent' won't
be freed before jumping to cleanup.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_process.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index f68dfbe
Another six pathes to fix resource leak.
But this may not be the end.
Wang Rui (6):
tests: Resolve Coverity RESOURCE_LEAK in commandhelper
test_conf: Resolve Coverity RESOURCE_LEAK
remote: Resolve Coverity RESOURCE_LEAK
qemu_process: Resolve Coverity RESOURCE_LEAK
vircgroup: Resolve
If the condition 'ret 0' is true, the code will jump to
'cleanup' and 'conf' won't be freed.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
tests/test_conf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_conf.c b/tests/test_conf.c
index 05704df..4d05d8d
Coverity determined that 'log' and 'newenv' were not freed in
some cases. Free them in 'error' branch and normal branch.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
tests/commandhelper.c | 15 +--
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/tests
On 2014/8/28 5:20, Maxime Leroy wrote:
On Tue, Aug 26, 2014 at 11:58 AM, Wang Rui moon.wang...@huawei.com wrote:
On 2014/8/22 18:47, Maxime Leroy wrote:
+# util/virivshmemserver.h
+virStartIvshmemServer;
+virStopIvshmemServer;
I think function name virIvshmemStartServer is better.
So
On 2014/8/28 16:05, Gerd Hoffmann wrote:
On Do, 2014-08-14 at 20:43 +0800, Wang Rui wrote:
From: Zeng Junliang zengjunli...@huawei.com
http://www.redhat.com/archives/libvir-list/2014-July/msg00644.html
diff to v2:
- hide vram attribute silently instead of reporting an error.
- introduce
it before continue this loop to fix that.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/qemu/qemu_capabilities.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index ce899f2..4a540ee 100644
--- a/src/qemu
The 'lib' handle will be leaked if 'dlsym' condition fails.
So close the handle before return.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
tests/shunloadtest.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/shunloadtest.c b/tests/shunloadtest.c
index 499b1be..80f5351 100644
I did coverity scan for libvirt-1.2.8 as John Ferlan did.
He has sent many patches about RESOURCE_LEAK. I picked
the other errors left to fix. There are also many errors
to analyze and fix in the future.
Wang Rui (3):
util: Resolve Coverity RESOURCE_LEAK
tests: Resolve Coverity RESOURCE_LEAK
Coverity determined that 'conflict' would be leaked.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/util/virpci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/virpci.c b/src/util/virpci.c
index 0098d6c..f1d4499 100644
--- a/src/util/virpci.c
+++ b/src/util/virpci.c
On 2014/8/28 17:03, Ján Tomko wrote:
On 08/28/2014 04:40 AM, Wang Rui wrote:
On 2014/8/28 4:54, John Ferlan wrote:
Coverity found that on error paths, the 'arg' value wasn't be cleaned
up. Followed the example in qemuAgentSetVCPUs() where upon successful call
to qemuAgentCommand() the 'cpus
On 2014/8/28 4:54, John Ferlan wrote:
I almost didn't want to do this due to the sheer volume, but figured
at the very least the bulk of these are resource leaks found by the
much pickier new coverity scanner.
After this there are only 70 issues found...
Nice. I did coverity scan yesterday
On 2014/8/28 4:54, John Ferlan wrote:
Coverity found that on error paths, the 'arg' value wasn't be cleaned
up. Followed the example in qemuAgentSetVCPUs() where upon successful call
to qemuAgentCommand() the 'cpus' is set to NULL; otherwise, when cleanup
occurs the free the memory for 'arg'
On 2014/8/22 18:47, Maxime Leroy wrote:
This patch adds configuration support for the shmem device
as described in the schema in the previous patch.
Signed-off-by: Maxime Leroy maxime.le...@6wind.com
---
+static virDomainShmemDefPtr
+virDomainShmemDefParseXML(xmlNodePtr node,
+
On 2014/8/22 18:47, Maxime Leroy wrote:
+static int
+qemuBuildIvshmemCommandLine(virCommandPtr cmd,
+virDomainDefPtr def,
+virDomainShmemDefPtr dev,
+virQEMUCapsPtr qemuCaps)
+{
+char *devstr;
+
On 2014/8/22 18:47, Maxime Leroy wrote:
+# util/virivshmemserver.h
+virStartIvshmemServer;
+virStopIvshmemServer;
I think function name virIvshmemStartServer is better.
So is the stop function.
@@ -5120,6 +5121,12 @@ qemuBuildIvshmemCommandLine(virCommandPtr cmd,
return
On 2014/8/22 17:50, Li Yang wrote:
1.Add function to get vcpu count for lxc(vcpucount)
2.Add function to set vcpu count for lxc(setvcpus)
Signed-off-by: Li Yang liyang.f...@cn.fujitsu.com
---
src/lxc/lxc_driver.c | 159
++
1 files
From: Zhou Yimin zhouyi...@huawei.com
Introduce by 63fbcc692.
When start libvirtd with commandline /usr/sbin/libvirtd -d -l -v,
we expect verbose(info level) log if neither environment variable
nor config file about logging controls is set. But in fact we can't
get any info priority log in the
Ping.
On 2014/8/14 20:43, Wang Rui wrote:
From: Zeng Junliang zengjunli...@huawei.com
http://www.redhat.com/archives/libvir-list/2014-July/msg00644.html
diff to v2:
- hide vram attribute silently instead of reporting an error.
- introduce three new capabilities for vga.vgamem_mb
Hi, all
I define a VM with a virtio scsi disk and I specify a controller index.
disk type='file' device='disk'
driver name='qemu' type='raw' cache='none' io='native'/
source file='/mnt/sdb/wangrui/img/sles10_sp3_32_2U-5'/
target dev='sdb' bus='scsi'/
address type='drive' controller='10'
(shutdown and start), the time adjuestment(RTC change)
set by user will be lost.
This patch make the adjustment persistent for persistent domain.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
I'm not sure about the current purpose so I sent a RFC patch. Is it
for some reason that RTC change
On 2014/8/15 12:16, Sam Bobroff wrote:
On 14/08/14 20:14, Ján Tomko wrote:
On 08/14/2014 11:52 AM, Michal Privoznik wrote:
On 14.08.2014 10:41, Ján Tomko wrote:
Also add qemuDomainChangeGraphicsPasswords,
qemuProcessVerifyGuestCPU and qemuProcessInitPCIAddresses.
Replace tabs by spaces.
On 2014/8/14 20:44, Erik Skultety wrote:
When editing guest's XML (on QEMU), it was possible to add multiple
listen elements into graphics parent element. However QEMU does not
support listening on multiple addresses. Configuration is tested for
multiple 'listen address' and if positive, an
From: Mo yuxiang moyuxi...@huawei.com
commit d9504941 introduces two new attributes cmd_per_lun and
max_sectors same with the names QEMU uses for virtio-scsi.
But the case of parsing them is not exact. Change to parse
them if controller has driver element.
Signed-off-by: Mo yuxiang
zengjunli...@huawei.com
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
docs/formatdomain.html.in | 24 +++---
src/qemu/qemu_command.c| 3 ++-
src/qemu/qemu_domain.c | 12 +++
...qemuhotplug
configuration sample:
video
model type='secondary' vgamem='16384' heads='1'/
/video
The resulting qemu command line change is the addition of:
-device secondary-vga,id=video0,vgamem_mb=16,bus=pci.0,addr=0x5
Signed-off-by: Zeng Junliang zengjunli...@huawei.com
Signed-off-by: Wang Rui moon.wang
From: Zeng Junliang zengjunli...@huawei.com
http://www.redhat.com/archives/libvir-list/2014-July/msg00644.html
diff to v2:
- hide vram attribute silently instead of reporting an error.
- introduce three new capabilities for vga.vgamem_mb, vmvga.vgamem_mb and
qxl.vgamem_mb.
- fix some error
has no attribute named vram*
vmvga vgamem vgamem_mb
Signed-off-by: Zeng Junliang zengjunli...@huawei.com
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
docs/formatdomain.html.in | 35 ---
docs/schemas/domaincommon.rng
Ping. [python PATCH]
On 2014/8/8 17:55, Wang Rui wrote:
From: Mo Yuxiang moyuxi...@huawei.com
On compiling libvirt-python, we get such a warning:
libvirt-qemu-override.c: In function
‘libvirt_qemu_virConnectDomainQemuMonitorEventRegister’:
libvirt-qemu-override.c:304: warning: suggest
On 2014/8/11 22:47, Giuseppe Scrivano wrote:
@@ -6458,6 +6463,7 @@ virDomainFSDefParseXML(xmlNodePtr node,
virDomainFSDefPtr def;
xmlNodePtr cur, save_node = ctxt-node;
char *type = NULL;
+char *model = NULL;
char *fsdriver = NULL;
char *source = NULL;
On 2014/8/11 18:07, Erik Skultety wrote:
The 'min_guarantee' is used by esx and vmx drivers, with qemu however,
libvirt should report error when starting a domain, because this
element is not used. Resolves
https://bugzilla.redhat.com/show_bug.cgi?id=1122455
---
The idea seems good.
I
...@huawei.com
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
libvirt-override.c | 18 +-
typewrappers.c | 2 +-
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/libvirt-override.c b/libvirt-override.c
index ed5e9e4..b2271ae 100644
--- a/libvirt-override.c
+++ b
From: Mo Yuxiang moyuxi...@huawei.com
On compiling libvirt-python, we get such a warning:
libvirt-qemu-override.c: In function
‘libvirt_qemu_virConnectDomainQemuMonitorEventRegister’:
libvirt-qemu-override.c:304: warning: suggest explicit braces to avoid
ambiguous ‘else’
Py_DECREF is a macro.
Fix a comment in virDomainAuditNetDevice.
Fix a typo in comment of qemuPhysIfaceConnect which is
the caller of virDomainAuditNetDevice.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/conf/domain_audit.c | 4 ++--
src/qemu/qemu_command.c | 2 +-
2 files changed, 3 insertions(+), 3
On 2014/8/7 17:07, Ján Tomko wrote:
On 08/07/2014 10:12 AM, Wang Rui wrote:
Fix a comment in virDomainAuditNetDevice.
Fix a typo in comment of qemuPhysIfaceConnect which is
the caller of virDomainAuditNetDevice.
Signed-off-by: Wang Rui moon.wang...@huawei.com
---
src/conf/domain_audit.c
On 2014/8/6 0:48, Maxime Leroy wrote:
This patch adds configuration support for the ivshmem device
as described in the schema in the previous patch.
Signed-off-by: Maxime Leroy maxime.le...@6wind.com
---
src/conf/domain_conf.c | 234
++-
On 2014/8/6 0:48, Maxime Leroy wrote:
This patch documents XML elements used for support of ivshmem
devices.
About ivshmem, please see the following documentation:
http://git.qemu.org/?p=qemu.git;a=blob;f=docs/specs/ivshmem_device_spec.txt
(Ivshmem documentation for qemu will be updated
On 2014/8/6 0:48, Maxime Leroy wrote:
This patch implements support for the ivshmem device
in QEMU.
Example from this xml:
ivshmem server='yes'' role='master'/
s/'yes''/'yes'
source file='/tmp/socket-ivshmem0'/
size unit='M'32/size
msi vectors='32'
On 2014/8/6 0:48, Maxime Leroy wrote:
The following patches are an implementation proposal
for the ivshmem device support in libvirt.
Any feedback is welcome.
Note:
SELinux is not supported (need to be done for the next
patchset version)
Just some questiones:
Is there only one
1 - 100 of 119 matches
Mail list logo