[libvirt] [PATCH] virt-aa-helper: add unix channels for nserials as well
by Serge Hallyn
Commit 03d7462d added it for channels, but it is also needed for serials. Add
it for serials, parallels, and consoles as well.
This solves https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1015154
Signed-off-by: Serge Hallyn <serge.hallyn(a)ubuntu.com>
---
src/security/virt-aa-helper.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index 13f8a6a..4440552 100644
--- a/src/security/virt-aa-helper.c
+++ b/src/security/virt-aa-helper.c
@@ -951,8 +951,10 @@ get_files(vahControl * ctl)
(ctl->def->serials[i]->source.type == VIR_DOMAIN_CHR_TYPE_PTY ||
ctl->def->serials[i]->source.type == VIR_DOMAIN_CHR_TYPE_DEV ||
ctl->def->serials[i]->source.type == VIR_DOMAIN_CHR_TYPE_FILE ||
+ ctl->def->serials[i]->source.type == VIR_DOMAIN_CHR_TYPE_UNIX ||
ctl->def->serials[i]->source.type == VIR_DOMAIN_CHR_TYPE_PIPE) &&
- ctl->def->serials[i]->source.data.file.path)
+ ctl->def->serials[i]->source.data.file.path &&
+ ctl->def->serials[i]->source.data.file.path[0] != '\0')
if (vah_add_file_chardev(&buf,
ctl->def->serials[i]->source.data.file.path,
"rw",
@@ -964,8 +966,10 @@ get_files(vahControl * ctl)
(ctl->def->consoles[i]->source.type == VIR_DOMAIN_CHR_TYPE_PTY ||
ctl->def->consoles[i]->source.type == VIR_DOMAIN_CHR_TYPE_DEV ||
ctl->def->consoles[i]->source.type == VIR_DOMAIN_CHR_TYPE_FILE ||
+ ctl->def->consoles[i]->source.type == VIR_DOMAIN_CHR_TYPE_UNIX ||
ctl->def->consoles[i]->source.type == VIR_DOMAIN_CHR_TYPE_PIPE) &&
- ctl->def->consoles[i]->source.data.file.path)
+ ctl->def->consoles[i]->source.data.file.path &&
+ ctl->def->consoles[i]->source.data.file.path[0] != '\0')
if (vah_add_file(&buf,
ctl->def->consoles[i]->source.data.file.path, "rw") != 0)
goto cleanup;
@@ -975,8 +979,10 @@ get_files(vahControl * ctl)
(ctl->def->parallels[i]->source.type == VIR_DOMAIN_CHR_TYPE_PTY ||
ctl->def->parallels[i]->source.type == VIR_DOMAIN_CHR_TYPE_DEV ||
ctl->def->parallels[i]->source.type == VIR_DOMAIN_CHR_TYPE_FILE ||
+ ctl->def->parallels[i]->source.type == VIR_DOMAIN_CHR_TYPE_UNIX ||
ctl->def->parallels[i]->source.type == VIR_DOMAIN_CHR_TYPE_PIPE) &&
- ctl->def->parallels[i]->source.data.file.path)
+ ctl->def->parallels[i]->source.data.file.path &&
+ ctl->def->parallels[i]->source.data.file.path[0] != '\0')
if (vah_add_file_chardev(&buf,
ctl->def->parallels[i]->source.data.file.path,
"rw",
--
2.1.4
9 years, 4 months
[libvirt] [PATCH v3 0/2] Fix nodeinfo output on PPC64 KVM hosts
by Andrea Bolognani
I have reworked the original code quite a bit, while
maintaining the same logic and hopefully introducing
no bugs of my own :)
Notable changes from v2 to v3:
* the function to get the number of threads per subcore
has been moved to the from virarch.c, which deals with
architecture names only and is therefore not the right
place to read host configuration, to nodeinfo.c where
the rest of this stuff lives;
* said function has also been given a shorter name;
* the "valid subcore mode" boolean has been removed:
threads_per_subcore will be a positive number if
subcores should be taken into account, and if that's
not the case (x86 host, tainted configuration) it
will simply be zero, so now the code needs to keep
track of a single variable instead of two;
* the test case has been renamed to be more
descriptive;
* the test data has been cleaned up by removing all
cpu/cpu*/node* links, which prevented 'make dist'
from working due to recursive linking.
I've added a Signed-off-by: tag to each commit and
maintained Shivaprasad as commit author; if that's not
a proper way to handle authorship information in this
situation please let me know.
Shivaprasad G Bhat (2):
Fix nodeinfo output on PPC64 KVM hosts
Add testcase for PPC64 kvm host nodeinfo
src/libvirt_private.syms | 1 +
src/nodeinfo.c | 140 +++++++++++++++++++--
src/nodeinfo.h | 1 +
tests/Makefile.am | 6 +
tests/nodeinfodata/linux-ppc64-subcores.cpuinfo | 59 +++++++++
tests/nodeinfodata/linux-ppc64-subcores.expected | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu0/online | 1 +
.../linux-subcores/cpu/cpu0/physical_id | 1 +
.../linux-subcores/cpu/cpu0/topology/core_id | 1 +
.../linux-subcores/cpu/cpu0/topology/core_siblings | 1 +
.../cpu/cpu0/topology/core_siblings_list | 1 +
.../cpu/cpu0/topology/physical_package_id | 1 +
.../cpu/cpu0/topology/thread_siblings | 1 +
.../cpu/cpu0/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu1/online | 1 +
.../linux-subcores/cpu/cpu1/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu10/online | 1 +
.../linux-subcores/cpu/cpu10/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu11/online | 1 +
.../linux-subcores/cpu/cpu11/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu12/online | 1 +
.../linux-subcores/cpu/cpu12/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu13/online | 1 +
.../linux-subcores/cpu/cpu13/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu14/online | 1 +
.../linux-subcores/cpu/cpu14/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu15/online | 1 +
.../linux-subcores/cpu/cpu15/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu16/online | 1 +
.../linux-subcores/cpu/cpu16/physical_id | 1 +
.../linux-subcores/cpu/cpu16/topology/core_id | 1 +
.../cpu/cpu16/topology/core_siblings | 1 +
.../cpu/cpu16/topology/core_siblings_list | 1 +
.../cpu/cpu16/topology/physical_package_id | 1 +
.../cpu/cpu16/topology/thread_siblings | 1 +
.../cpu/cpu16/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu17/online | 1 +
.../linux-subcores/cpu/cpu17/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu18/online | 1 +
.../linux-subcores/cpu/cpu18/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu19/online | 1 +
.../linux-subcores/cpu/cpu19/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu2/online | 1 +
.../linux-subcores/cpu/cpu2/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu20/online | 1 +
.../linux-subcores/cpu/cpu20/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu21/online | 1 +
.../linux-subcores/cpu/cpu21/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu22/online | 1 +
.../linux-subcores/cpu/cpu22/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu23/online | 1 +
.../linux-subcores/cpu/cpu23/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu24/online | 1 +
.../linux-subcores/cpu/cpu24/physical_id | 1 +
.../linux-subcores/cpu/cpu24/topology/core_id | 1 +
.../cpu/cpu24/topology/core_siblings | 1 +
.../cpu/cpu24/topology/core_siblings_list | 1 +
.../cpu/cpu24/topology/physical_package_id | 1 +
.../cpu/cpu24/topology/thread_siblings | 1 +
.../cpu/cpu24/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu25/online | 1 +
.../linux-subcores/cpu/cpu25/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu26/online | 1 +
.../linux-subcores/cpu/cpu26/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu27/online | 1 +
.../linux-subcores/cpu/cpu27/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu28/online | 1 +
.../linux-subcores/cpu/cpu28/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu29/online | 1 +
.../linux-subcores/cpu/cpu29/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu3/online | 1 +
.../linux-subcores/cpu/cpu3/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu30/online | 1 +
.../linux-subcores/cpu/cpu30/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu31/online | 1 +
.../linux-subcores/cpu/cpu31/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu32/online | 1 +
.../linux-subcores/cpu/cpu32/physical_id | 1 +
.../linux-subcores/cpu/cpu32/topology/core_id | 1 +
.../cpu/cpu32/topology/core_siblings | 1 +
.../cpu/cpu32/topology/core_siblings_list | 1 +
.../cpu/cpu32/topology/physical_package_id | 1 +
.../cpu/cpu32/topology/thread_siblings | 1 +
.../cpu/cpu32/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu33/online | 1 +
.../linux-subcores/cpu/cpu33/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu34/online | 1 +
.../linux-subcores/cpu/cpu34/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu35/online | 1 +
.../linux-subcores/cpu/cpu35/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu36/online | 1 +
.../linux-subcores/cpu/cpu36/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu37/online | 1 +
.../linux-subcores/cpu/cpu37/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu38/online | 1 +
.../linux-subcores/cpu/cpu38/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu39/online | 1 +
.../linux-subcores/cpu/cpu39/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu4/online | 1 +
.../linux-subcores/cpu/cpu4/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu40/online | 1 +
.../linux-subcores/cpu/cpu40/physical_id | 1 +
.../linux-subcores/cpu/cpu40/topology/core_id | 1 +
.../cpu/cpu40/topology/core_siblings | 1 +
.../cpu/cpu40/topology/core_siblings_list | 1 +
.../cpu/cpu40/topology/physical_package_id | 1 +
.../cpu/cpu40/topology/thread_siblings | 1 +
.../cpu/cpu40/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu41/online | 1 +
.../linux-subcores/cpu/cpu41/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu42/online | 1 +
.../linux-subcores/cpu/cpu42/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu43/online | 1 +
.../linux-subcores/cpu/cpu43/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu44/online | 1 +
.../linux-subcores/cpu/cpu44/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu45/online | 1 +
.../linux-subcores/cpu/cpu45/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu46/online | 1 +
.../linux-subcores/cpu/cpu46/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu47/online | 1 +
.../linux-subcores/cpu/cpu47/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu48/online | 1 +
.../linux-subcores/cpu/cpu48/physical_id | 1 +
.../linux-subcores/cpu/cpu48/topology/core_id | 1 +
.../cpu/cpu48/topology/core_siblings | 1 +
.../cpu/cpu48/topology/core_siblings_list | 1 +
.../cpu/cpu48/topology/physical_package_id | 1 +
.../cpu/cpu48/topology/thread_siblings | 1 +
.../cpu/cpu48/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu49/online | 1 +
.../linux-subcores/cpu/cpu49/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu5/online | 1 +
.../linux-subcores/cpu/cpu5/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu50/online | 1 +
.../linux-subcores/cpu/cpu50/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu51/online | 1 +
.../linux-subcores/cpu/cpu51/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu52/online | 1 +
.../linux-subcores/cpu/cpu52/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu53/online | 1 +
.../linux-subcores/cpu/cpu53/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu54/online | 1 +
.../linux-subcores/cpu/cpu54/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu55/online | 1 +
.../linux-subcores/cpu/cpu55/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu56/online | 1 +
.../linux-subcores/cpu/cpu56/physical_id | 1 +
.../linux-subcores/cpu/cpu56/topology/core_id | 1 +
.../cpu/cpu56/topology/core_siblings | 1 +
.../cpu/cpu56/topology/core_siblings_list | 1 +
.../cpu/cpu56/topology/physical_package_id | 1 +
.../cpu/cpu56/topology/thread_siblings | 1 +
.../cpu/cpu56/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu57/online | 1 +
.../linux-subcores/cpu/cpu57/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu58/online | 1 +
.../linux-subcores/cpu/cpu58/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu59/online | 1 +
.../linux-subcores/cpu/cpu59/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu6/online | 1 +
.../linux-subcores/cpu/cpu6/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu60/online | 1 +
.../linux-subcores/cpu/cpu60/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu61/online | 1 +
.../linux-subcores/cpu/cpu61/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu62/online | 1 +
.../linux-subcores/cpu/cpu62/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu63/online | 1 +
.../linux-subcores/cpu/cpu63/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu64/online | 1 +
.../linux-subcores/cpu/cpu64/physical_id | 1 +
.../linux-subcores/cpu/cpu64/topology/core_id | 1 +
.../cpu/cpu64/topology/core_siblings | 1 +
.../cpu/cpu64/topology/core_siblings_list | 1 +
.../cpu/cpu64/topology/physical_package_id | 1 +
.../cpu/cpu64/topology/thread_siblings | 1 +
.../cpu/cpu64/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu65/online | 1 +
.../linux-subcores/cpu/cpu65/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu66/online | 1 +
.../linux-subcores/cpu/cpu66/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu67/online | 1 +
.../linux-subcores/cpu/cpu67/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu68/online | 1 +
.../linux-subcores/cpu/cpu68/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu69/online | 1 +
.../linux-subcores/cpu/cpu69/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu7/online | 1 +
.../linux-subcores/cpu/cpu7/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu70/online | 1 +
.../linux-subcores/cpu/cpu70/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu71/online | 1 +
.../linux-subcores/cpu/cpu71/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu72/online | 1 +
.../linux-subcores/cpu/cpu72/physical_id | 1 +
.../linux-subcores/cpu/cpu72/topology/core_id | 1 +
.../cpu/cpu72/topology/core_siblings | 1 +
.../cpu/cpu72/topology/core_siblings_list | 1 +
.../cpu/cpu72/topology/physical_package_id | 1 +
.../cpu/cpu72/topology/thread_siblings | 1 +
.../cpu/cpu72/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu73/online | 1 +
.../linux-subcores/cpu/cpu73/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu74/online | 1 +
.../linux-subcores/cpu/cpu74/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu75/online | 1 +
.../linux-subcores/cpu/cpu75/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu76/online | 1 +
.../linux-subcores/cpu/cpu76/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu77/online | 1 +
.../linux-subcores/cpu/cpu77/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu78/online | 1 +
.../linux-subcores/cpu/cpu78/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu79/online | 1 +
.../linux-subcores/cpu/cpu79/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu8/online | 1 +
.../linux-subcores/cpu/cpu8/physical_id | 1 +
.../linux-subcores/cpu/cpu8/topology/core_id | 1 +
.../linux-subcores/cpu/cpu8/topology/core_siblings | 1 +
.../cpu/cpu8/topology/core_siblings_list | 1 +
.../cpu/cpu8/topology/physical_package_id | 1 +
.../cpu/cpu8/topology/thread_siblings | 1 +
.../cpu/cpu8/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu80/online | 1 +
.../linux-subcores/cpu/cpu80/physical_id | 1 +
.../linux-subcores/cpu/cpu80/topology/core_id | 1 +
.../cpu/cpu80/topology/core_siblings | 1 +
.../cpu/cpu80/topology/core_siblings_list | 1 +
.../cpu/cpu80/topology/physical_package_id | 1 +
.../cpu/cpu80/topology/thread_siblings | 1 +
.../cpu/cpu80/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu81/online | 1 +
.../linux-subcores/cpu/cpu81/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu82/online | 1 +
.../linux-subcores/cpu/cpu82/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu83/online | 1 +
.../linux-subcores/cpu/cpu83/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu84/online | 1 +
.../linux-subcores/cpu/cpu84/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu85/online | 1 +
.../linux-subcores/cpu/cpu85/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu86/online | 1 +
.../linux-subcores/cpu/cpu86/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu87/online | 1 +
.../linux-subcores/cpu/cpu87/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu88/online | 1 +
.../linux-subcores/cpu/cpu88/physical_id | 1 +
.../linux-subcores/cpu/cpu88/topology/core_id | 1 +
.../cpu/cpu88/topology/core_siblings | 1 +
.../cpu/cpu88/topology/core_siblings_list | 1 +
.../cpu/cpu88/topology/physical_package_id | 1 +
.../cpu/cpu88/topology/thread_siblings | 1 +
.../cpu/cpu88/topology/thread_siblings_list | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu89/online | 1 +
.../linux-subcores/cpu/cpu89/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu9/online | 1 +
.../linux-subcores/cpu/cpu9/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu90/online | 1 +
.../linux-subcores/cpu/cpu90/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu91/online | 1 +
.../linux-subcores/cpu/cpu91/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu92/online | 1 +
.../linux-subcores/cpu/cpu92/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu93/online | 1 +
.../linux-subcores/cpu/cpu93/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu94/online | 1 +
.../linux-subcores/cpu/cpu94/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/cpu95/online | 1 +
.../linux-subcores/cpu/cpu95/physical_id | 1 +
tests/nodeinfodata/linux-subcores/cpu/dscr_default | 1 +
tests/nodeinfodata/linux-subcores/cpu/kernel_max | 1 +
tests/nodeinfodata/linux-subcores/cpu/offline | 1 +
tests/nodeinfodata/linux-subcores/cpu/online | 1 +
tests/nodeinfodata/linux-subcores/cpu/possible | 1 +
tests/nodeinfodata/linux-subcores/cpu/present | 1 +
.../linux-subcores/cpu/subcores_per_core | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu0 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu1 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu10 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu11 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu12 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu13 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu14 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu15 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu16 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu17 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu18 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu19 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu2 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu20 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu21 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu22 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu23 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu3 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu4 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu5 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu6 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu7 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu8 | 1 +
tests/nodeinfodata/linux-subcores/node/node0/cpu9 | 1 +
.../nodeinfodata/linux-subcores/node/node0/cpulist | 1 +
.../nodeinfodata/linux-subcores/node/node0/cpumap | 1 +
.../linux-subcores/node/node0/distance | 1 +
.../nodeinfodata/linux-subcores/node/node0/meminfo | 29 +++++
.../linux-subcores/node/node0/numastat | 6 +
tests/nodeinfodata/linux-subcores/node/node1/cpu24 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu25 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu26 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu27 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu28 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu29 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu30 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu31 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu32 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu33 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu34 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu35 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu36 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu37 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu38 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu39 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu40 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu41 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu42 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu43 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu44 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu45 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu46 | 1 +
tests/nodeinfodata/linux-subcores/node/node1/cpu47 | 1 +
.../nodeinfodata/linux-subcores/node/node1/cpulist | 1 +
.../nodeinfodata/linux-subcores/node/node1/cpumap | 1 +
.../linux-subcores/node/node1/distance | 1 +
.../nodeinfodata/linux-subcores/node/node1/meminfo | 29 +++++
.../linux-subcores/node/node1/numastat | 6 +
.../nodeinfodata/linux-subcores/node/node16/cpu48 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu49 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu50 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu51 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu52 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu53 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu54 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu55 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu56 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu57 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu58 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu59 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu60 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu61 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu62 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu63 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu64 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu65 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu66 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu67 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu68 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu69 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu70 | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpu71 | 1 +
.../linux-subcores/node/node16/cpulist | 1 +
.../nodeinfodata/linux-subcores/node/node16/cpumap | 1 +
.../linux-subcores/node/node16/distance | 1 +
.../linux-subcores/node/node16/meminfo | 29 +++++
.../linux-subcores/node/node16/numastat | 6 +
.../nodeinfodata/linux-subcores/node/node16/uevent | 0
.../nodeinfodata/linux-subcores/node/node16/vmstat | 39 ++++++
.../nodeinfodata/linux-subcores/node/node17/cpu72 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu73 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu74 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu75 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu76 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu77 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu78 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu79 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu80 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu81 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu82 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu83 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu84 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu85 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu86 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu87 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu88 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu89 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu90 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu91 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu92 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu93 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu94 | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpu95 | 1 +
.../linux-subcores/node/node17/cpulist | 1 +
.../nodeinfodata/linux-subcores/node/node17/cpumap | 1 +
.../linux-subcores/node/node17/distance | 1 +
.../linux-subcores/node/node17/meminfo | 29 +++++
.../linux-subcores/node/node17/numastat | 6 +
.../nodeinfodata/linux-subcores/node/node17/vmstat | 39 ++++++
tests/nodeinfodata/linux-subcores/node/online | 1 +
tests/nodeinfodata/linux-subcores/node/possible | 1 +
tests/nodeinfomock.c | 35 ++++++
tests/nodeinfotest.c | 3 +-
400 files changed, 831 insertions(+), 14 deletions(-)
create mode 100644 tests/nodeinfodata/linux-ppc64-subcores.cpuinfo
create mode 100644 tests/nodeinfodata/linux-ppc64-subcores.expected
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu0/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu0/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu0/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu0/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu0/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu0/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu0/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu0/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu1/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu1/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu10/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu10/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu11/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu11/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu12/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu12/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu13/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu13/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu14/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu14/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu15/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu15/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu16/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu16/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu16/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu16/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu16/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu16/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu16/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu16/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu17/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu17/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu18/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu18/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu19/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu19/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu2/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu2/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu20/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu20/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu21/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu21/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu22/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu22/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu23/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu23/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu24/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu24/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu24/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu24/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu24/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu24/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu24/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu24/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu25/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu25/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu26/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu26/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu27/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu27/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu28/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu28/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu29/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu29/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu3/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu3/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu30/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu30/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu31/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu31/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu32/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu32/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu32/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu32/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu32/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu32/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu32/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu32/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu33/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu33/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu34/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu34/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu35/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu35/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu36/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu36/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu37/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu37/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu38/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu38/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu39/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu39/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu4/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu4/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu40/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu40/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu40/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu40/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu40/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu40/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu40/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu40/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu41/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu41/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu42/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu42/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu43/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu43/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu44/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu44/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu45/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu45/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu46/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu46/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu47/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu47/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu48/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu48/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu48/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu48/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu48/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu48/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu48/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu48/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu49/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu49/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu5/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu5/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu50/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu50/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu51/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu51/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu52/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu52/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu53/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu53/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu54/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu54/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu55/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu55/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu56/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu56/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu56/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu56/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu56/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu56/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu56/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu56/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu57/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu57/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu58/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu58/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu59/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu59/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu6/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu6/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu60/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu60/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu61/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu61/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu62/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu62/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu63/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu63/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu64/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu64/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu64/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu64/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu64/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu64/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu64/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu64/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu65/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu65/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu66/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu66/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu67/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu67/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu68/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu68/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu69/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu69/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu7/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu7/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu70/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu70/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu71/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu71/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu72/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu72/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu72/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu72/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu72/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu72/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu72/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu72/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu73/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu73/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu74/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu74/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu75/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu75/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu76/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu76/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu77/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu77/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu78/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu78/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu79/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu79/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu8/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu8/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu8/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu8/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu8/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu8/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu8/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu8/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu80/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu80/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu80/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu80/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu80/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu80/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu80/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu80/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu81/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu81/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu82/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu82/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu83/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu83/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu84/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu84/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu85/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu85/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu86/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu86/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu87/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu87/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu88/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu88/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu88/topology/core_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu88/topology/core_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu88/topology/core_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu88/topology/physical_package_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu88/topology/thread_siblings
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu88/topology/thread_siblings_list
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu89/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu89/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu9/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu9/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu90/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu90/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu91/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu91/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu92/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu92/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu93/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu93/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu94/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu94/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu95/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/cpu95/physical_id
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/dscr_default
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/kernel_max
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/offline
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/online
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/possible
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/present
create mode 100644 tests/nodeinfodata/linux-subcores/cpu/subcores_per_core
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu0
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu1
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu10
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu11
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu12
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu13
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu14
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu15
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu16
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu17
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu18
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu19
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu2
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu20
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu21
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu22
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu23
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu3
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu4
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu5
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu6
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu7
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu8
create mode 120000 tests/nodeinfodata/linux-subcores/node/node0/cpu9
create mode 100644 tests/nodeinfodata/linux-subcores/node/node0/cpulist
create mode 100644 tests/nodeinfodata/linux-subcores/node/node0/cpumap
create mode 100644 tests/nodeinfodata/linux-subcores/node/node0/distance
create mode 100644 tests/nodeinfodata/linux-subcores/node/node0/meminfo
create mode 100644 tests/nodeinfodata/linux-subcores/node/node0/numastat
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu24
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu25
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu26
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu27
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu28
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu29
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu30
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu31
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu32
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu33
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu34
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu35
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu36
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu37
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu38
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu39
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu40
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu41
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu42
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu43
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu44
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu45
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu46
create mode 120000 tests/nodeinfodata/linux-subcores/node/node1/cpu47
create mode 100644 tests/nodeinfodata/linux-subcores/node/node1/cpulist
create mode 100644 tests/nodeinfodata/linux-subcores/node/node1/cpumap
create mode 100644 tests/nodeinfodata/linux-subcores/node/node1/distance
create mode 100644 tests/nodeinfodata/linux-subcores/node/node1/meminfo
create mode 100644 tests/nodeinfodata/linux-subcores/node/node1/numastat
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu48
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu49
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu50
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu51
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu52
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu53
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu54
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu55
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu56
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu57
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu58
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu59
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu60
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu61
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu62
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu63
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu64
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu65
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu66
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu67
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu68
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu69
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu70
create mode 120000 tests/nodeinfodata/linux-subcores/node/node16/cpu71
create mode 100644 tests/nodeinfodata/linux-subcores/node/node16/cpulist
create mode 100644 tests/nodeinfodata/linux-subcores/node/node16/cpumap
create mode 100644 tests/nodeinfodata/linux-subcores/node/node16/distance
create mode 100644 tests/nodeinfodata/linux-subcores/node/node16/meminfo
create mode 100644 tests/nodeinfodata/linux-subcores/node/node16/numastat
create mode 100644 tests/nodeinfodata/linux-subcores/node/node16/uevent
create mode 100644 tests/nodeinfodata/linux-subcores/node/node16/vmstat
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu72
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu73
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu74
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu75
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu76
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu77
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu78
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu79
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu80
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu81
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu82
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu83
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu84
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu85
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu86
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu87
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu88
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu89
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu90
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu91
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu92
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu93
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu94
create mode 120000 tests/nodeinfodata/linux-subcores/node/node17/cpu95
create mode 100644 tests/nodeinfodata/linux-subcores/node/node17/cpulist
create mode 100644 tests/nodeinfodata/linux-subcores/node/node17/cpumap
create mode 100644 tests/nodeinfodata/linux-subcores/node/node17/distance
create mode 100644 tests/nodeinfodata/linux-subcores/node/node17/meminfo
create mode 100644 tests/nodeinfodata/linux-subcores/node/node17/numastat
create mode 100644 tests/nodeinfodata/linux-subcores/node/node17/vmstat
create mode 100644 tests/nodeinfodata/linux-subcores/node/online
create mode 100644 tests/nodeinfodata/linux-subcores/node/possible
create mode 100644 tests/nodeinfomock.c
--
2.4.3
9 years, 4 months
[libvirt] [PATCH] storage: Fix regression in storagePoolUpdateAllState
by Erik Skultety
Commit 2a31c5f0 introduced support for storage pool state XMLs, however
it also introduced a regression:
if (!virstoragePoolObjIsActive(pool)) {
virStoragePoolObjUnlock(pool);
continue;
}
The idea behind this was that since we've got state XMLs and the pool
wasn't marked as active by autostart routine (if the autostart flag had been
set earlier), the pool is inactive and we can leave it be and continue with
other pools. However, filesystem type pools like fs,dir, possibly netfs are
supposed to be active if the filesystem is mounted on the host. And this is
exactly where the regression occurs, e.g. pool type 'dir' which has been
previously destroyed and marked as !autostart gets filtered out
by the condition above.
The resolution should be simply to remove the condition completely,
all pools will get their 'active' flag updated by check callback and if
they do not support such callback, the logic doesn't change and such
pools will be inactive by default (e.g. RBD, even if a state XML exists).
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1238610
---
src/storage/storage_driver.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c
index e600514..d3cdbc5 100644
--- a/src/storage/storage_driver.c
+++ b/src/storage/storage_driver.c
@@ -142,11 +142,6 @@ storagePoolUpdateAllState(void)
virStoragePoolObjPtr pool = driver->pools.objs[i];
virStoragePoolObjLock(pool);
- if (!virStoragePoolObjIsActive(pool)) {
- virStoragePoolObjUnlock(pool);
- continue;
- }
-
storagePoolUpdateState(pool);
virStoragePoolObjUnlock(pool);
}
--
1.9.3
9 years, 4 months
[libvirt] [PATCH 0/3] bitmap: Fix regression when getting iothread info
by Peter Krempa
Peter Krempa (3):
vz: Remove dead code from vzDomainGetVcpus
vz: Use virBitmapToDataBuf instead of virBitmapToData in
vzDomainGetVcpus
util: bitmap: Don't alloc overly large binary bitmaps
src/util/virbitmap.c | 7 +++++--
src/vz/vz_driver.c | 24 ++++--------------------
2 files changed, 9 insertions(+), 22 deletions(-)
--
2.4.5
9 years, 4 months
[libvirt] [PATCH] qemu: move the guest status check before agent config and status check
by Luyao Huang
When use setvcpus command with --guest option to a offline vm,
we will get error:
# virsh setvcpus test3 1 --guest
error: Guest agent is not responding: QEMU guest agent is not connected
However guest is not running, agent status could not be connected.
In this case, report domain 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 <lhuang(a)redhat.com>
---
src/qemu/qemu_domain.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index f9bf32c..814fb2c 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -3084,6 +3084,13 @@ qemuDomainAgentAvailable(virDomainObjPtr vm,
}
return false;
}
+ if (virDomainObjGetState(vm, NULL) != VIR_DOMAIN_RUNNING) {
+ if (reportError) {
+ virReportError(VIR_ERR_OPERATION_INVALID, "%s",
+ _("domain is not running"));
+ }
+ return false;
+ }
if (!priv->agent) {
if (qemuFindAgentConfig(vm->def)) {
if (reportError) {
@@ -3099,13 +3106,6 @@ qemuDomainAgentAvailable(virDomainObjPtr vm,
return false;
}
}
- if (virDomainObjGetState(vm, NULL) != VIR_DOMAIN_RUNNING) {
- if (reportError) {
- virReportError(VIR_ERR_OPERATION_INVALID, "%s",
- _("domain is not running"));
- }
- return false;
- }
return true;
}
--
1.8.3.1
9 years, 4 months
[libvirt] [PATCH] qemu: remove deadcode in qemuDomain{HelperGetVcpus|GetIOThreadsLive}
by Luyao Huang
We set hostcpus but not use them.
Signed-off-by: Luyao Huang <lhuang(a)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/qemu_driver.c
@@ -1418,13 +1418,9 @@ static int
qemuDomainHelperGetVcpus(virDomainObjPtr vm, virVcpuInfoPtr info, int maxinfo,
unsigned char *cpumaps, int maplen)
{
- int hostcpus;
size_t i, v;
qemuDomainObjPrivatePtr priv = vm->privateData;
- if ((hostcpus = nodeGetCPUCount()) < 0)
- return -1;
-
if (priv->vcpupids == NULL) {
virReportError(VIR_ERR_OPERATION_INVALID,
"%s", _("cpu affinity is not supported"));
@@ -5579,7 +5575,6 @@ qemuDomainGetIOThreadsLive(virQEMUDriverPtr driver,
qemuMonitorIOThreadInfoPtr *iothreads = NULL;
virDomainIOThreadInfoPtr *info_ret = NULL;
int niothreads = 0;
- int hostcpus;
size_t i;
int ret = -1;
@@ -5612,9 +5607,6 @@ qemuDomainGetIOThreadsLive(virQEMUDriverPtr driver,
goto endjob;
}
- if ((hostcpus = nodeGetCPUCount()) < 0)
- goto endjob;
-
if (VIR_ALLOC_N(info_ret, niothreads) < 0)
goto endjob;
--
1.8.3.1
9 years, 4 months
[libvirt] [PATCH] rpc: ensure daemon is spawn even if dead socket exists
by Daniel P. Berrange
The auto-spawn code would originally attempt to spawn the
daemon for both ENOENT and ECONNREFUSED errors from connect().
The various refactorings eventually lost this so we only
spawn the daemon on ENOENT. The result is if the daemon exits
uncleanly, so that the socket is left in the filesystem, we
will never be able to auto-spawn the daemon again.
---
src/rpc/virnetsocket.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c
index 3d75081..106d09a 100644
--- a/src/rpc/virnetsocket.c
+++ b/src/rpc/virnetsocket.c
@@ -681,7 +681,8 @@ int virNetSocketNewConnectUNIX(const char *path,
while (retries &&
connect(fd, &remoteAddr.data.sa, remoteAddr.len) < 0) {
- if (!(spawnDaemon && errno == ENOENT)) {
+ if (!(spawnDaemon && (errno == ENOENT ||
+ errno == ECONNREFUSED))) {
virReportSystemError(errno, _("Failed to connect socket to '%s'"),
path);
goto cleanup;
--
2.4.3
9 years, 4 months
[libvirt] [glib v2 0/2] misc gconfig fixes
by Cédric Bosdonnat
Hi all,
Here is a version fixing two bugs I introduced.
Diff to v1:
* takes into account teuf's comments.
Cédric Bosdonnat (2):
Don't overwrite filesystem type when writing format
Dsitribute the whole tests/xml folder
libvirt-gconfig/libvirt-gconfig-domain-filesys.c | 4 ++--
tests/Makefile.am | 14 +-------------
tests/test-gconfig.c | 2 +-
tests/xml/gconfig-domain-device-filesys.xml | 2 +-
4 files changed, 5 insertions(+), 17 deletions(-)
--
2.1.4
9 years, 4 months
[libvirt] [glib] Don't overwrite filesystem type when writing format
by Cédric Bosdonnat
When setting filesystem driver format first and type, only the type
remained and vice-versa.
---
libvirt-gconfig/libvirt-gconfig-domain-filesys.c | 8 ++++++--
tests/test-gconfig.c | 2 +-
tests/xml/gconfig-domain-device-filesys.xml | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-filesys.c b/libvirt-gconfig/libvirt-gconfig-domain-filesys.c
index 9b73af5..4e33d5f 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-filesys.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-filesys.c
@@ -125,7 +125,9 @@ void gvir_config_domain_filesys_set_driver_type(GVirConfigDomainFilesys *filesys
GVirConfigObject *node;
g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys));
- node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(filesys), "driver");
+ node = gvir_config_object_get_child(GVIR_CONFIG_OBJECT(filesys), "driver");
+ if (!node)
+ node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(filesys), "driver");
g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node));
if (type != GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_DEFAULT)
gvir_config_object_set_attribute_with_type(
@@ -143,7 +145,9 @@ void gvir_config_domain_filesys_set_driver_format(GVirConfigDomainFilesys *files
GVirConfigObject *node;
g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys));
- node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(filesys), "driver");
+ node = gvir_config_object_get_child(GVIR_CONFIG_OBJECT(filesys), "driver");
+ if (!node)
+ node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(filesys), "driver");
g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node));
gvir_config_object_set_attribute_with_type(
diff --git a/tests/test-gconfig.c b/tests/test-gconfig.c
index bd2daa6..0eec53e 100644
--- a/tests/test-gconfig.c
+++ b/tests/test-gconfig.c
@@ -368,7 +368,7 @@ static void test_domain_device_filesystem(void)
fs = gvir_config_domain_filesys_new();
gvir_config_domain_filesys_set_type(fs, GVIR_CONFIG_DOMAIN_FILESYS_FILE);
gvir_config_domain_filesys_set_access_type(fs, GVIR_CONFIG_DOMAIN_FILESYS_ACCESS_MAPPED);
- gvir_config_domain_filesys_set_driver_type(fs, GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_DEFAULT);
+ gvir_config_domain_filesys_set_driver_type(fs, GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_NBD);
gvir_config_domain_filesys_set_driver_format(fs, GVIR_CONFIG_DOMAIN_DISK_FORMAT_QCOW2);
gvir_config_domain_filesys_set_source(fs, "/path/to/source");
gvir_config_domain_filesys_set_target(fs, "/path/to/target1");
diff --git a/tests/xml/gconfig-domain-device-filesys.xml b/tests/xml/gconfig-domain-device-filesys.xml
index 30152d2..a831c02 100644
--- a/tests/xml/gconfig-domain-device-filesys.xml
+++ b/tests/xml/gconfig-domain-device-filesys.xml
@@ -1,7 +1,7 @@
<domain>
<devices>
<filesystem type="file" accessmode="mapped">
- <driver format="qcow2"/>
+ <driver type="nbd" format="qcow2"/>
<source file="/path/to/source"/>
<target dir="/path/to/target1"/>
<readonly/>
--
2.1.4
9 years, 4 months
[libvirt] [glib] Add filesys xml file to distribution
by Cédric Bosdonnat
Tests can't succeed from the distribution tarball: the new
gconfig-domain-device-filesys.xml file wasn't included.
---
tests/Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 63865e8..c8bb4c7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -23,6 +23,7 @@ EXTRA_DIST += \
xml/gconfig-domain-device-channel.xml \
xml/gconfig-domain-device-console.xml \
xml/gconfig-domain-device-disk.xml \
+ xml/gconfig-domain-device-filesys.xml \
xml/gconfig-domain-device-graphics.xml \
xml/gconfig-domain-device-input.xml \
xml/gconfig-domain-device-network.xml \
--
2.1.4
9 years, 4 months