Commit 3072ded3 changed the waya to format the vcpu pinning info
and forget to get cpumap for each vcpu during the loop, that cause
vcpupin command will display vcpu 0 info for other vcpus.
Signed-off-by: Luyao Huang
---
tools/virsh-domain.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion
the memory access related check in the domain config validate function,
and simplify the unit test xml to avoid other error.
https://bugzilla.redhat.com/show_bug.cgi?id=1448149#c14
Signed-off-by: Luyao Huang
---
src/qemu/qemu_domain.c | 55 +++---
tests
Thanks for your quick review ! :)
Have a nice day !
Luyao
- Original Message -
From: "Michal Prívozník"
To: "Luyao Huang" , libvir-list@redhat.com
Sent: Thursday, July 5, 2018 5:11:41 PM
Subject: Re: [libvirt] [PATCH] conf: initialize character pointer xml value to
What !! This can not be true :D
Okay, looks like that github offline in a short time.
BTW, CC libvirt-ci@ maybe better than libvirt-list@ (does this mail-list ever
exist ?)
BR,
Luyao
- Original Message -
From: no-re...@patchew.org
To: f...@redhat.com, lhu...@redhat.com
Cc:
rom /lib64/libc.so.6
Signed-off-by: Luyao Huang
---
src/conf/domain_nwfilter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/conf/domain_nwfilter.c b/src/conf/domain_nwfilter.c
index 948b324..24b5f42 100644
--- a/src/conf/domain_nwfilter.c
+++ b/src/conf/domain_nwfilter.
Thanks for your quick review !
BR,
Luyao
- Original Message -
From: "Erik Skultety"
To: "Luyao Huang"
Cc: libvir-list@redhat.com
Sent: Wednesday, June 20, 2018 7:23:26 PM
Subject: Re: [libvirt] [PATCH 0/3] some small fix for guest SEV related code
On Wed, Jun 20
Use 'preparing' instead of 'prepare' like other place in qemu_process.c.
Signed-off-by: Luyao Huang
---
src/qemu/qemu_process.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 631254d..2967568 100644
--- a/src/qemu
Signed-off-by: Luyao Huang
---
docs/formatdomain.html.in | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 7e710d7..89672a0 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -8481,11
Set the return value to 0 when everything work as expected
Signed-off-by: Luyao Huang
---
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 93fd6ba..631254d 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu
*** BLURB HERE ***
Luyao Huang (3):
qemu: correct the ret value
qemu: improve the debug message when preparing SEV guest
docs: remove extra space in the SEV xml element example
docs/formatdomain.html.in | 10 +-
src/qemu/qemu_process.c | 3 ++-
2 files changed, 7 insertions
Nice idea! Thanks for your help and review.
Have a nice day!
Luyao
- Original Message -
From: "Michal Privoznik" <mpriv...@redhat.com>
To: "Luyao Huang" <lhu...@redhat.com>, libvir-list@redhat.com
Sent: Monday, October 10, 2016 3:02:58 PM
Subject: Re: [
Then we will include these 2 useful script in VPATH build.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
examples/Makefile.am | 2 ++
1 file changed, 2 insertions(+)
diff --git a/examples/Makefile.am b/examples/Makefile.am
index bd8460d..ca6e039 100644
--- a/examples/Makefile.am
Hi Michal,
I remember i have used vhost-user-bridge to test vhost-user before.
And you can find it in qemu source code tests/vhost-user-bridge.c, but
i am not sure if you can avoid this crash with vhost-user-bridge :)
BR,
Luyao
- Original Message -
From: "Michal Privoznik"
In commit ec5dcf2a and b0b4a35c, we have moved some xml to
new directories, but forget fix the Makefile. Add 2 directories
in EXTRA_DIST to fix broken vpath build.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
tests/Makefile.am | 2 ++
1 file changed, 2 insertions(+)
diff --git a
14378.732785511 seconds
https://bugzilla.redhat.com/show_bug.cgi?id=1301807
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
tools/virsh-domain.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 1089a4d..c2146d2 100644
--- a/tools/virsh-do
Dear list,
I met a problem when test with the latest libvirt (build from current master
branch), i found sometimes libvirtd crashed when guest fail to start.
the reproduce way is very easy, but hard to meet:
# cat /root/shdo2.sh
#!/bin/sh
while :
do
virsh start rhel7.0-rhel
done
# sh
v1:
https://www.redhat.com/archives/libvir-list/2015-June/msg00830.html
These patches implement the hot-plug/hot-unplug
and cold-plug/cold-unplug for Inter-VM Shared Memory PCI device.
Luyao Huang (4):
conf: Add helpers to insert/remove/find shmem devices in domain def
qemu: Implement shared
The helpers will be useful when implementing hotplug and coldplug of
shared memory devices.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/conf/domain_conf.c | 66
src/conf/domain_conf.h | 7 +
src/libvirt_private.syms | 3
Add support for using the attach/detach device APIs on the inactive
configuration to add/del shared memory devices.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/libvirt_private.syms | 1 +
src/qemu/qemu_driver.c | 21 +++--
2 files changed, 20 insertions
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/qemu/qemu_driver.c | 4 ++-
src/qemu/qemu_hotplug.c | 94 -
src/qemu/qemu_hotplug.h | 3 ++
3 files changed, 99 insertions(+), 2 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/sr
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/qemu/qemu_driver.c | 10 -
src/qemu/qemu_hotplug.c | 58 +
src/qemu/qemu_hotplug.h | 3 +++
3 files changed, 70 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_driver.c
ACK to all of them
BR,
Luyao
- Original Message -
From: "Hongming Zhang"
To: libvir-list@redhat.com
Sent: Thursday, October 29, 2015 3:19:29 PM
Subject: [libvirt] [libvirt-test-api][PATCH 0/2]Fix issues in the method of
getting vcpu thread id of vcpupin_live
If DAD not finished in 5 seconds, user will get an
unknown error like this:
# virsh net-start ipv6
error: Failed to start network ipv6
error: An error occurred, but the cause is unknown
Call virReportError to set an error.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
I found t
virCgroupRemove use VIR_ERROR to log the error and won't
change the virLastErr in the thread, so no need do this.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/util/vircgroup.c | 10 --
1 file changed, 10 deletions(-)
diff --git a/src/util/vircgroup.c b/src/util/vircg
In commit f41be296, we moved vm->persistent check into
qemuDomainRemoveInactive, but we didn't change the vm->persistent
before call qemuDomainRemoveInactive in some place before and just
call it to remove the inactive vm.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
-
After commit a26669d7, we only jump to error when
virDomainMigrateUnmanagedParams return a value less than -1.
this will make the migrate result always be success even we
meet some problem.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/libvirt-domain.c | 2 +-
1 file chan
Remove the extra %s in error message when call virReportInvalidArg().
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/libvirt-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index 14aeb09..de7eb04 100644
---
https://bugzilla.redhat.com/show_bug.cgi?id=1248277
When count <= 0, the client exit without set an error.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
v2:
- use vshCommandOptUInt to forbid negative number,
and check if count is zero. (thanks Peter and Andrea)
tools/virsh-dom
https://bugzilla.redhat.com/show_bug.cgi?id=1273686
There is no ABI check for serial target type attribute, just
add it.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/conf/domain_conf.c | 8
1 file changed, 8 insertions(+)
diff --git a/src/conf/domain_conf.c b/sr
v1:
https://www.redhat.com/archives/libvir-list/2015-September/msg01054.html
v2:
-improve the error message
-improve the code struct
-add a new patch for rework the exist way to check node and page size
Luyao Huang (3):
util: split the virNumaGetHugePageInfoPath into separate function
util
--pagesize 2047 --pagecount 1
error: operation failed: page size 2047 is not available
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/util/virnuma.c | 24 +++-
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/src/util/virnuma.c b/src/util/virnuma.c
the virNumaGetHugePageInfoPath will
build the directory of system path, but we don't want that.
Introduce a new helper to build the dir path could avoid this issue.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/util/virnuma.c | 51 +++
/node0/hugepages/hugepages-1kB/free_hugepages':No such
file or directory
Add two checks to catch this and therefore produce much more
friendlier error messages.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/util/virnuma.c | 38 ++
1 file chang
https://bugzilla.redhat.com/show_bug.cgi?id=1238338#c6
If the user already specify address in xml, we will set the
wrong $fromConfig, which will make libvirt output a wrong error
message and make hot-plug fail when hot-plug a pci device (see
commit 1e15be1 and 9a12b6c).
Signed-off-by: Luyao
-by: Luyao Huang <lhu...@redhat.com>
---
src/qemu/qemu_driver.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 8cd5ee3..8ca55dd 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -10177,6 +1
/hugepages/hugepages-1kB/free_hugepages': No
such file or directory
Add two checks to catch this and therefore produce much more
friendlier error messages.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/util/virnuma.c | 12
1 file changed, 12 insertions(+)
diff --git
*** BLURB HERE ***
Luyao Huang (2):
util: split the virNumaGetHugePageInfoPath into separate function
util: Produce friendlier error message to user
src/util/virnuma.c | 54 ++
1 file changed, 30 insertions(+), 24 deletions(-)
--
1.8.3.1
the virNumaGetHugePageInfoPath will
build the directory of system path, but we don't want that.
Introduce a new helper to build the dir path could avoid this issue.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/util/virnuma.c | 42 ++
1 file chang
Build fail and error like this:
CC qemu/libvirt_driver_qemu_impl_la-qemu_command.lo
qemu/qemu_capabilities.c:46:27: fatal error: qemu_capspriv.h: No such file or
directory
#include "qemu_capspriv.h"
Add qemu_capspriv.h to source.
Signed-off-by: Luyao Huang <lhu...@redhat.
Just like e92e5ba1, this attribute was missed.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
src/conf/domain_conf.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index a3b3ccb..85c2d0d 100644
--- a/sr
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
cases/linux_domain.conf | 22
repos/domain/set_user_passwd.py | 111
2 files changed, 133 insertions(+)
create mode 100644 repos/domain/set_user_passwd.py
diff --git a
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
cases/linux_domain.conf | 22
repos/domain/set_user_passwd.py | 111
2 files changed, 133 insertions(+)
create mode 100644 repos/domain/set_user_passwd.py
diff --git a
Please ignore this one, i have forgot set the header.
- Original Message -
From: "Luyao Huang" <lhu...@redhat.com>
To: libvir-list@redhat.com
Cc: "Luyao Huang" <lhu...@redhat.com>
Sent: Monday, September 21, 2015 3:27:02 PM
Subject: [libv
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
cases/test_connection.conf | 10
repos/virconn/connection_allocPages.py | 84 ++
2 files changed, 94 insertions(+)
create mode 100644 repos/virconn/connection_allocPages.py
diff --git a
And will return list like this :
[{'devminor': '25', 'mountdir': '/sys/fs/cgroup/cpuset', 'devmajor': '0',
'mounttype': 'cgroup'},...]
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
utils/utils.py | 37 +
1 file changed, 37 insertions(+)
diff
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
cases/linux_domain.conf | 10 +
repos/domain/fsinfo.py | 103
2 files changed, 113 insertions(+)
create mode 100644 repos/domain/fsinfo.py
diff --git a/cases/linux_domain.conf b
-by: Luyao Huang <lhu...@redhat.com>
---
src/conf/numa_conf.c | 10 +---
.../qemuxml2argv-cpu-numa-disordered.xml | 26 +++
.../qemuxml2xmlout-cpu-numa-disordered.xml | 29 ++
tests/qemuxml2xml
will get error.
Let's use 'YYY in XXX.keys()' to avoid this issue.
Signed-off-by: Luyao Huang <lhu...@redhat.com>
---
generator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generator.py b/generator.py
index 2fc838c..d9ae17e 100755
--- a/generator.py
+++ b/generator.py
Signed-off-by: Luyao Huang lhu...@redhat.com
---
cases/test_connection.conf | 4 ++
repos/virconn/connection_allocPages.py | 88 ++
2 files changed, 92 insertions(+)
create mode 100644 repos/virconn/connection_allocPages.py
diff --git a/cases
Introduce a new element in shmem device element, this
could help users to change the shm label to a specified
label.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
docs/formatdomain.html.in | 7 ++
docs/schemas/domaincommon.rng | 3 +
src/conf
Signed-off-by: Luyao Huang lhu...@redhat.com
---
configure.ac | 10 +
po/POTFILES.in | 3 +-
src/Makefile.am | 7 +-
src/libvirt_private.syms | 24 ++
src/util/virshm.c| 739 +++
src/util/virshm.h
A new api to help set/restore the shmem device
label.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/libvirt_private.syms| 2 +
src/security/security_dac.c | 100
src/security/security_driver.h | 9
src/security
Signed-off-by: Luyao Huang lhu...@redhat.com
---
docs/formatdomain.html.in | 5 +++
docs/schemas/domaincommon.rng | 5 +++
src/conf/domain_conf.c | 6 +++
src/conf/domain_conf.h | 1
,
i think we could use that way in this place.
Luyao Huang (5):
conf: introduce seclabels in shmem device element
conf: introduce shareable in shmem device element
util: introduce new helpers to manage shmem device
security: add security part for shmem device
qemu: call the helpers
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_conf.h| 3 +
src/qemu/qemu_driver.c | 4 ++
src/qemu/qemu_process.c | 157
3 files changed, 164 insertions(+)
diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h
index
https://bugzilla.redhat.com/show_bug.cgi?id=1253107
Call virCgroupGetBlkioWeight to re-read blkio.weight right
after it are set in order to keep our internal structures
up-to-date.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_driver.c | 3 ++-
1 file changed, 2 insertions
with matching id 123
The second line should be reset after call virshLookupDomainInternal,
because after some tries we get domain pointer, so output error
during we tried will make user confuse.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
tools/virsh-domain.c | 2 ++
1 file changed, 2 insertions
*** BLURB HERE ***
Luyao Huang (2):
virsh: fix always return false in domrename
libvirt-domain: forbid use virDomainRename in readonly connection
src/libvirt-domain.c | 1 +
tools/virsh-domain.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
--
1.8.3.1
--
libvir-list mailing
This function will change the guest name, we shouldn't
allow the readonly user do this.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/libvirt-domain.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index 9065dab..9314f85 100644
--- a/src
Signed-off-by: Luyao Huang lhu...@redhat.com
---
tools/virsh-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 173bb15..437e43e 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -9827,7 +9827,7
Just like commit 704cf06, the error already will be set in
virCgroup* function, and virCgroupAddTask will return -1,
so We will always report error Operation not permitted
in this place.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_driver.c | 3 ---
1 file changed, 3 deletions
We will try to set the node to cpuset.mems without check if
it is available, since we already have helper to check this.
Call virNumaNodesetIsAvailable to check if node is available,
then try to change it in the cgroup.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_driver.c | 3
in qemuDomainRemoveMemoryDevice, since i
just
see only one place need jump to audit, so i refactor the code (thanks John's
advise).
Luyao Huang (2):
qemu: fix the audit log is not correct after hot-plug memory success
qemu: fix the audit log is not correct after hot-unplug memory device
src/qemu
log will not right
in that case.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_hotplug.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 1ea397f..def3de8 100644
--- a/src/qemu/qemu_hotplug.c
https://bugzilla.redhat.com/show_bug.cgi?id=1226234#c3
We use virDomainDefGetMemoryActual to get the newmem
, but when we failed to remove the memory device, the
virDomainDefGetMemoryActual will still output the oldmem
size, so the audit log will not right in that case.
Signed-off-by: Luyao
https://bugzilla.redhat.com/show_bug.cgi?id=1253107
Update the weight in vm def to fix this.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_driver.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 7a984a8..0b984dc
Signed-off-by: Luyao Huang lhu...@redhat.com
---
cases/linux_domain.conf | 6
repos/domain/info_iothread.py | 80 +++
2 files changed, 86 insertions(+)
create mode 100644 repos/domain/info_iothread.py
diff --git a/cases/linux_domain.conf b
Signed-off-by: Luyao Huang lhu...@redhat.com
---
cases/linux_domain.conf | 6 ++
repos/domain/pin_iothread.py | 158 +++
2 files changed, 164 insertions(+)
create mode 100644 repos/domain/pin_iothread.py
diff --git a/cases/linux_domain.conf b/cases
Signed-off-by: Luyao Huang lhu...@redhat.com
---
cases/linux_domain.conf | 6 +++
repos/domain/add_del_iothread.py | 82
2 files changed, 88 insertions(+)
create mode 100644 repos/domain/add_del_iothread.py
diff --git a/cases/linux_domain.conf
it.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
Is that okay to fix it in this place ?
src/libvirt-domain.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index 837933f..8506942 100644
--- a/src/libvirt-domain.c
+++ b/src/libvirt-domain.c
@@ -7987,6
On 08/10/2015 09:17 PM, John Ferlan wrote:
On 08/10/2015 05:23 AM, Peter Krempa wrote:
On Mon, Aug 10, 2015 at 17:06:31 +0800, Luyao Huang wrote:
https://bugzilla.redhat.com/show_bug.cgi?id=1251886
We do not allow delete an iothread which id is 0 in
virDomainDelIOThread, but allow
https://bugzilla.redhat.com/show_bug.cgi?id=1250287
When run domfsinfo in quiet mode, we cannot get any
useful information (just get \n), this is because
we didn't use vshPrint to print useful information.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
tools/virsh-domain.c | 6 +++---
1 file
Hi Marc-André
On 07/27/2015 11:39 PM, Marc-André Lureau wrote:
Hi
On Thu, Jul 23, 2015 at 12:13 PM, Luyao Huanglhu...@redhat.com wrote:
A new api to help set/restore the shmem deivce dac/selinux label.
typo: deivce / device.
thanks, i will fix this in next version
Signed-off-by: Luyao
On 07/30/2015 06:00 PM, Daniel P. Berrange wrote:
On Thu, Jul 23, 2015 at 06:13:47PM +0800, Luyao Huang wrote:
A new api to help set/restore the shmem deivce dac/selinux label.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/libvirt_private.syms| 2 ++
src/security
Hi Marc-André
On 07/27/2015 11:43 PM, Marc-André Lureau wrote:
Hi
On Thu, Jul 23, 2015 at 12:13 PM, Luyao Huang lhu...@redhat.com wrote:
Signed-off-by: Luyao Huang lhu...@redhat.com
---
configure.ac | 10 +
po/POTFILES.in | 3 +-
src/Makefile.am | 5
On 07/30/2015 06:12 PM, Daniel P. Berrange wrote:
On Thu, Jul 23, 2015 at 06:13:48PM +0800, Luyao Huang wrote:
Signed-off-by: Luyao Huang lhu...@redhat.com
---
configure.ac | 10 +
po/POTFILES.in | 3 +-
src/Makefile.am | 5 +-
src/libvirt_private.syms
On 07/30/2015 05:54 PM, Daniel P. Berrange wrote:
On Thu, Jul 23, 2015 at 06:13:47PM +0800, Luyao Huang wrote:
A new api to help set/restore the shmem deivce dac/selinux label.
s/deivce/device/
Thanks, i will fix in next version
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src
Add nodestats.py in MANIFEST.in and add a
small description for nodestats.py in README
Signed-off-by: Luyao Huang lhu...@redhat.com
---
MANIFEST.in | 1 +
examples/README | 3 +++
2 files changed, 4 insertions(+)
diff --git a/MANIFEST.in b/MANIFEST.in
index b5ba783..0d66f9c 100644
https://bugzilla.redhat.com/show_bug.cgi?id=1248277
When count = 0, the client exit without set an error.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
tools/virsh-domain.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
A new api to help set/restore the shmem deivce dac/selinux label.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/libvirt_private.syms| 2 ++
src/security/security_dac.c | 67 +++
src/security/security_driver.h | 11 +++
src/security
Introduce a new element in shmem device element, this
could help users to change the shm label to a specified
label.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
docs/formatdomain.html.in | 7 ++
docs/schemas/domaincommon.rng | 3 +++
src/conf/domain_conf.c| 55
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_conf.h| 3 +
src/qemu/qemu_driver.c | 4 ++
src/qemu/qemu_process.c | 158
3 files changed, 165 insertions(+)
diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h
index
Signed-off-by: Luyao Huang lhu...@redhat.com
---
configure.ac | 10 +
po/POTFILES.in | 3 +-
src/Makefile.am | 5 +-
src/libvirt_private.syms | 16 ++
src/util/virshm.c| 623 +++
src/util/virshm.h
progrem, then setup the
ivshmem-server by libvirt. we cannot do nothing for the ivshmem-server right
now.
Luyao Huang (4):
conf: introduce seclabels in shmem device element
security: add security part for shmem device
util: introduce new helpers to manage shmem device
qemu: call
https://bugzilla.redhat.com/show_bug.cgi?id=1245476
We won't return the errno after commit 0d7f45ae, and
the more clearly error will be set in the code in vircgroup*.
Also We will always report error Operation not permitted,
because the return is -1.
Signed-off-by: Luyao Huang lhu...@redhat.com
. hot add iothread.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_cgroup.c | 16
src/qemu/qemu_driver.c | 10 +++---
2 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c
index 8ed74ee..640a223 100644
the audit log will not right
in that case.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_hotplug.c | 30 +-
1 file changed, 13 insertions(+), 17 deletions(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 1ea397f..cf7ffa9 100644
As there is a regression in use vcpupin get info, introduce a new function
to test the virsh client.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/test/test_driver.c | 55 ++
tests/vcpupin | 34 +++
2
I was so ashamed of writing a incorrect commit '848ab68' and didn't test with
it. Patch 1/2 fix the issue and Patch 2/2 introduce a test for it.
Luyao Huang (2):
virsh: really fix the error if vcpu number exceed the guest maxvcpu
number
test: introduce a function in test driver for check
Commit '848ab68' left a issue: when we try to get a vcpupin info with no
no flags or --current flags, we still will get the wrong error. Because
VIR_DOMAIN_AFFECT_CURRENT is 0, so this check flags VIR_DOMAIN_AFFECT_CURRENT
will always get false.
Signed-off-by: Luyao Huang lhu...@redhat.com
in the callers function.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_driver.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 900740e..f134248 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
is not running will be better than agent is
not connected. Move the guest status check more early to output error to
point out guest status is not right.
Also from the logic, a running vm is a basic requirement to use
agent, we cannot use agent if vm is not running.
Signed-off-by: Luyao Huang lhu
Signed-off-by: Luyao Huang lhu...@redhat.com
---
cases/linux_domain.conf | 6 +++
repos/domain/set_memory_period.py | 84 +++
2 files changed, 90 insertions(+)
create mode 100644 repos/domain/set_memory_period.py
diff --git a/cases
We set hostcpus but not use them.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_driver.c | 8
1 file changed, 8 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 7a04e67..3f002b3 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu
,
virProcessGetAffinity() will use default value (262144 or 1024) to
create bitmap. This issue was introduced in commit 825df8c.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu/qemu_driver.c | 4 ++--
src/util/virprocess.c | 7 ---
src/util/virprocess.h | 2 +-
3 files changed, 7
If guest unexpect exit(qemu process be killed) and get failed when
exit the monitor, guest job still handled by old function, this will
make guest cannot start later.
Need call qemuDomainObjEndJob to release job status before unref vm.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu
-by: Luyao Huang lhu...@redhat.com
---
tools/virsh-domain.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 27d62e9..681fc1a 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -6497,6 +6497,11 @@ cmdVcpuPin(vshControl *ctl
https://bugzilla.redhat.com/show_bug.cgi?id=1235180
We have API allow vpu to be deleted, but an vcpu may be
included in some domain vcpu sched, so add a new API to
allow removing an iothread from some entry.
Split the virDomainIOThreadSchedDelId to reuse some code.
Signed-off-by: Luyao Huang
If we get fail in qemuMigrationPrepareAny, we forget
check if the vm is persistent then always call
qemuDomainRemoveInactive to clean the inactive settings.
Add a check to avoid this. This issue was introduce in
commit 540c339.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src/qemu
Just refactor existing code to use a child buf instead of
check all element before format blkiotune and cputune.
This will avoid the more and more bigger element check during
we introduce new elements in blkiotune and cputune in the
future.
Signed-off-by: Luyao Huang lhu...@redhat.com
---
src
1 - 100 of 318 matches
Mail list logo