[libvirt] [sandbox 0/2] virt-sandbox-config minor fixes
by Cédric Bosdonnat
Hi all,
Here are two really trivial patches, one adding image format guess
to -m host-image in the same way we do it for --disk, and one fixing some
code formatting issue.
Cédric Bosdonnat (2):
Try guessing host-image image format
Code formatting fix
libvirt-sandbox/libvirt-sandbox-config.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
--
2.1.4
9 years
[libvirt] [PATCH 0/2] qemu: Fix mlock limit on memory hotplug
by Peter Krempa
This is necessary so that VFIO doesn't break killing the guests.
Peter Krempa (2):
qemu: Extract logic to determine the mlock limit size for VFIO
qemu: hotplug: Fix mlock limit handling on memory hotplug
src/qemu/qemu_command.c | 18 ++----------------
src/qemu/qemu_domain.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_domain.h | 3 +++
src/qemu/qemu_hotplug.c | 32 +++++++++++++++++---------------
4 files changed, 66 insertions(+), 31 deletions(-)
--
2.6.2
9 years
[libvirt] [PATCHv2] *** "Don't include .c file for editing support" bug was fixed***
by rodinasophie@gmail.com
From: Sophia Rodina <rodinasophie(a)gmail.com>
*** When editing an XML of a domain, network or anything else, it is implemented in virsh-edit.c and currently included as a C file with the behaviour being influenced by EDIT_ macros. This should be changed so that the same file is not being included over and over again, but its function is called instead. The behaviour should be affected by callbacks in some control structure. ***
sonya rodina (1):
"Don't include .c file for editing support" bug was fixed. Callbacks
in special struct were added instead of EDIT-* macros
tools/Makefile.am | 1 +
tools/virsh-domain.c | 187 ++++++++++++++++++++++++++++++++++++------------
tools/virsh-edit.c | 79 ++++++--------------
tools/virsh-edit.h | 42 +++++++++++
tools/virsh-interface.c | 64 +++++++++++++----
tools/virsh-network.c | 62 ++++++++++++----
tools/virsh-nwfilter.c | 64 +++++++++++++----
tools/virsh-pool.c | 64 +++++++++++++----
tools/virsh-snapshot.c | 76 ++++++++++++++------
9 files changed, 464 insertions(+), 175 deletions(-)
create mode 100644 tools/virsh-edit.h
--
2.1.4
9 years
[libvirt] [PATCH v2] tests: redo test argv file line wrapping
by Daniel P. Berrange
Back in
commit bd6c46fa0cfe275c24debc1152cfc5206c04b59b
Author: Juerg Haefliger <juerg.haefliger(a)hp.com>
Date: Mon Jan 31 06:42:57 2011 -0500
tests: handle backspace-newline pairs in test input files
all the test argv files were line wrapped so that the args
were less than 80 characters.
The way the line wrapping was done turns out to be quite
undesirable, because it often leaves multiple parameters
on the same line. If we later need to add or remove
individual parameters, then it leaves us having to redo
line wrapping.
This commit changes the line wrapping so that every
single "-param value" is one its own new line. If the
"value" is still too long, then we break on ',' or ':'
or ' ' as needed.
This means that when we come to add / remove parameters
from the test files line, the patch diffs will only
ever show a single line added/removed which will greatly
simplify review work.
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
---
cfg.mk | 16 ++-
.../bhyvexml2argvdata/bhyvexml2argv-acpiapic.args | 10 +-
.../networkxml2firewalldata/nat-default-linux.args | 137 ++++++++++++++++-----
.../qemuxml2argv-aarch64-aavmf-virtio-mmio.args | 33 +++--
tests/test-wrap-argv.pl | 106 ++++++++++++++++
5 files changed, 262 insertions(+), 40 deletions(-)
create mode 100644 tests/test-wrap-argv.pl
Changed in v2:
- Added hook in syntax-check to run test-wrap-argv
to validate files
diff --git a/cfg.mk b/cfg.mk
index a9bba38..db513be 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -1068,7 +1068,7 @@ _autogen:
# regenerate HACKING as part of the syntax-check
ifneq ($(_gl-Makefile),)
-syntax-check: $(top_srcdir)/HACKING bracket-spacing-check
+syntax-check: $(top_srcdir)/HACKING bracket-spacing-check test-wrap-argv
endif
bracket-spacing-check:
@@ -1077,6 +1077,20 @@ bracket-spacing-check:
{ echo '$(ME): incorrect formatting, see HACKING for rules' 1>&2; \
exit 1; }
+test-wrap-argv:
+ $(AM_V_GEN)files=`$(VC_LIST) | grep -E '\.(ldargs|args)'`; \
+ for file in $$files ; \
+ do \
+ $(PERL) $(top_srcdir)/tests/test-wrap-argv.pl $$file > $${file}-t ; \
+ diff $$file $${file}-t; \
+ res=$$? ; \
+ rm $${file}-t ; \
+ test $$res == 0 || { \
+ echo "$(ME): Incorrect line wrapping in $$file." 1>&2; \
+ echo "$(ME): Use test-wrap-argv.pl to wrap test data files" 1>&2; \
+ exit 1; } \
+ done
+
# sc_po_check can fail if generated files are not built first
sc_po_check: \
$(srcdir)/daemon/remote_dispatch.h \
diff --git a/tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.args b/tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.args
index 6b26964..e1afefd 100644
--- a/tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.args
+++ b/tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.args
@@ -1,3 +1,11 @@
-/usr/sbin/bhyve -c 1 -m 214 -A -I -u -H -P -s 0:0,hostbridge \
+/usr/sbin/bhyve \
+-c 1 \
+-m 214 \
+-A \
+-I \
+-u \
+-H \
+-P \
+-s 0:0,hostbridge \
-s 3:0,virtio-net,faketapdev,mac=52:54:00:00:00:00 \
-s 2:0,ahci-hd,/tmp/freebsd.img bhyve
diff --git a/tests/networkxml2firewalldata/nat-default-linux.args b/tests/networkxml2firewalldata/nat-default-linux.args
index b92a845..ffdafdf 100644
--- a/tests/networkxml2firewalldata/nat-default-linux.args
+++ b/tests/networkxml2firewalldata/nat-default-linux.args
@@ -1,30 +1,107 @@
-iptables --table filter --insert INPUT --in-interface virbr0 --protocol tcp \
---destination-port 67 --jump ACCEPT
-iptables --table filter --insert INPUT --in-interface virbr0 --protocol udp \
---destination-port 67 --jump ACCEPT
-iptables --table filter --insert OUTPUT --out-interface virbr0 --protocol udp \
---destination-port 68 --jump ACCEPT
-iptables --table filter --insert INPUT --in-interface virbr0 --protocol tcp \
---destination-port 53 --jump ACCEPT
-iptables --table filter --insert INPUT --in-interface virbr0 --protocol udp \
---destination-port 53 --jump ACCEPT
-iptables --table filter --insert FORWARD --in-interface virbr0 --jump REJECT
-iptables --table filter --insert FORWARD --out-interface virbr0 --jump REJECT
-iptables --table filter --insert FORWARD --in-interface virbr0 \
---out-interface virbr0 --jump ACCEPT
-iptables --table filter --insert FORWARD --source 192.168.122.0/24 \
---in-interface virbr0 --jump ACCEPT
-iptables --table filter --insert FORWARD --destination 192.168.122.0/24 \
---out-interface virbr0 --match conntrack --ctstate ESTABLISHED,RELATED --jump ACCEPT
-iptables --table nat --insert POSTROUTING --source 192.168.122.0/24 '!' \
---destination 192.168.122.0/24 --jump MASQUERADE
-iptables --table nat --insert POSTROUTING --source 192.168.122.0/24 \
--p udp '!' --destination 192.168.122.0/24 --jump MASQUERADE --to-ports 1024-65535
-iptables --table nat --insert POSTROUTING --source 192.168.122.0/24 \
--p tcp '!' --destination 192.168.122.0/24 --jump MASQUERADE --to-ports 1024-65535
-iptables --table nat --insert POSTROUTING --source 192.168.122.0/24 \
---destination 255.255.255.255/32 --jump RETURN
-iptables --table nat --insert POSTROUTING --source 192.168.122.0/24 \
---destination 224.0.0.0/24 --jump RETURN
-iptables --table mangle --insert POSTROUTING --out-interface virbr0 \
---protocol udp --destination-port 68 --jump CHECKSUM --checksum-fill
+iptables \
+--table filter \
+--insert INPUT \
+--in-interface virbr0 \
+--protocol tcp \
+--destination-port 67 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert INPUT \
+--in-interface virbr0 \
+--protocol udp \
+--destination-port 67 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert OUTPUT \
+--out-interface virbr0 \
+--protocol udp \
+--destination-port 68 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert INPUT \
+--in-interface virbr0 \
+--protocol tcp \
+--destination-port 53 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert INPUT \
+--in-interface virbr0 \
+--protocol udp \
+--destination-port 53 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert FORWARD \
+--in-interface virbr0 \
+--jump REJECT
+iptables \
+--table filter \
+--insert FORWARD \
+--out-interface virbr0 \
+--jump REJECT
+iptables \
+--table filter \
+--insert FORWARD \
+--in-interface virbr0 \
+--out-interface virbr0 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert FORWARD \
+--source 192.168.122.0/24 \
+--in-interface virbr0 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert FORWARD \
+--destination 192.168.122.0/24 \
+--out-interface virbr0 \
+--match conntrack \
+--ctstate ESTABLISHED,RELATED \
+--jump ACCEPT
+iptables \
+--table nat \
+--insert POSTROUTING \
+--source 192.168.122.0/24 '!' \
+--destination 192.168.122.0/24 \
+--jump MASQUERADE
+iptables \
+--table nat \
+--insert POSTROUTING \
+--source 192.168.122.0/24 \
+-p udp '!' \
+--destination 192.168.122.0/24 \
+--jump MASQUERADE \
+--to-ports 1024-65535
+iptables \
+--table nat \
+--insert POSTROUTING \
+--source 192.168.122.0/24 \
+-p tcp '!' \
+--destination 192.168.122.0/24 \
+--jump MASQUERADE \
+--to-ports 1024-65535
+iptables \
+--table nat \
+--insert POSTROUTING \
+--source 192.168.122.0/24 \
+--destination 255.255.255.255/32 \
+--jump RETURN
+iptables \
+--table nat \
+--insert POSTROUTING \
+--source 192.168.122.0/24 \
+--destination 224.0.0.0/24 \
+--jump RETURN
+iptables \
+--table mangle \
+--insert POSTROUTING \
+--out-interface virbr0 \
+--protocol udp \
+--destination-port 68 \
+--jump CHECKSUM \
+--checksum-fill
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args
index d6d8aed..4cc4cd2 100644
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args
@@ -1,14 +1,31 @@
-LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
-/usr/bin/qemu-system-aarch64 -S -M virt -cpu cortex-a53 \
--m 1024 -smp 1 -nographic \
--nodefconfig -nodefaults -monitor unix:/tmp/test-monitor,server,nowait \
--boot c -kernel /aarch64.kernel -initrd /aarch64.initrd -append \
-'earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait' \
--dtb /aarch64.dtb -device virtio-serial-device,id=virtio-serial0 -usb \
+LC_ALL=C \
+PATH=/bin \
+HOME=/home/test \
+USER=test \
+LOGNAME=test \
+QEMU_AUDIO_DRV=none \
+/usr/bin/qemu-system-aarch64 \
+-S \
+-M virt \
+-cpu cortex-a53 \
+-m 1024 \
+-smp 1 \
+-nographic \
+-nodefconfig \
+-nodefaults \
+-monitor unix:/tmp/test-monitor,server,nowait \
+-boot c \
+-kernel /aarch64.kernel \
+-initrd /aarch64.initrd \
+-append 'earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait' \
+-dtb /aarch64.dtb \
+-device virtio-serial-device,id=virtio-serial0 \
+-usb \
-drive file=/aarch64.raw,if=none,id=drive-virtio-disk0 \
-device virtio-blk-device,drive=drive-virtio-disk0,id=virtio-disk0 \
-device virtio-net-device,vlan=0,id=net0,mac=52:54:00:09:a4:37 \
--net user,vlan=0,name=hostnet0 -chardev pty,id=charconsole0 \
+-net user,vlan=0,name=hostnet0 \
+-chardev pty,id=charconsole0 \
-device virtconsole,chardev=charconsole0,id=console0 \
-device virtio-balloon-device,id=balloon0 \
-object rng-random,id=objrng0,filename=/dev/random \
diff --git a/tests/test-wrap-argv.pl b/tests/test-wrap-argv.pl
new file mode 100644
index 0000000..dc70271
--- /dev/null
+++ b/tests/test-wrap-argv.pl
@@ -0,0 +1,106 @@
+#!/usr/bin/perl
+
+
+
+foreach my $file (@ARGV) {
+ &rewrap($file);
+}
+
+sub rewrap {
+ my $file = shift;
+
+ # Read the original file
+ open FILE, "<", $file or die "cannot read $file: $!";
+ my @lines;
+ while (<FILE>) {
+ # If there is a trailing '\' then kill the new line
+ if (/\\$/) {
+ chomp;
+ $_ =~ s/\\$//;
+ }
+
+ push @lines, $_;
+ }
+
+ # Skip empty files
+ return unless @lines;
+
+ # Kill the last new line in the file
+ chomp @lines[$#lines];
+ close FILE;
+
+ # Reconstruct the master data by joining all lines
+ # and then split again based on the real desired
+ # newlines
+ @lines = split /\n/, join('', @lines);
+
+ # Now each @lines represents a single command, we
+ # can process them
+ foreach my $line (@lines) {
+ my @bits = split / /, join('', $line);
+
+ # @bits contains env vars, then the command line
+ # and then the arguments
+ my @env;
+ my $cmd;
+ my @args;
+
+ if ($bits[0] !~ /=/) {
+ $cmd = shift @bits;
+ }
+
+ foreach my $bit (@bits) {
+ # If no command is defined yet, we must still
+ # have env vars
+ if (!defined $cmd) {
+ # Look for leading / to indicate command name
+ if ($bit =~ m,^/,) {
+ $cmd = $bit;
+ } else {
+ push @env, $bit;
+ }
+ } else {
+ # If there's a leading '-' then this is a new
+ # parameter, otherwise its a value for the prev
+ # parameter.
+ if ($bit =~ m,^-,) {
+ push @args, $bit;
+ } else {
+ $args[$#args] .= " " . $bit;
+ }
+ }
+ }
+
+ # Print env + command first
+ print join(" \\\n", @env, $cmd), " \\\n";
+ # We might have to split line argument values...
+ for (my $i = 0; $i <= $#args; $i++) {
+ my $arg = $args[$i];
+ while (length($arg) > 80) {
+ my $split = rindex $arg, ",", 80;
+ if ($split == -1) {
+ $split = rindex $arg, ":", 80;
+ }
+ if ($split == -1) {
+ $split = rindex $arg, " ", 80;
+ }
+ if ($split == -1) {
+ warn "$file: cannot find nice place to split '$arg' below 80 chars\n";
+ $split = 79;
+ }
+ $split++;
+
+ my $head = substr $arg, 0, $split;
+ $arg = substr $arg, $split;
+
+ print $head, "\\\n";
+ }
+ print $arg;
+ if ($i != $#args) {
+ print " \\\n";
+ } else {
+ print "\n";
+ }
+ }
+ }
+}
--
2.5.0
9 years
[libvirt] [PATCH 0/5] Revert virNetDevSendEthtoolIoctl logging errors and adjust code after
by John Ferlan
It's partially a reposting, partially some new stuff, and perhaps a v2
of something else.
Patch 1 is Dan's revert patch - just because it's easier to have it
done first.
Patches 2 & 3 just adjust comments - no functional changes
Patch 4 adds a check for root in virNetDevGetFeatures (rather than
both of the callers). If not root, an empty bitmap would be returned
(somewhat similar to what a platform without the features does). I'm
not against moving the check to before the virBitmapNew; however, I
was considering the case of xml parsing which does a virBitmapFree,
then just calls virNetDevGetFeatures. Not filling in the *out with
either NULL or an empty bitmap would result in that caller referencing
a net.features which no longer exists. If the check should be done
before the virBitmapNew, then an "*out = NULL" would need to be
added before returning 0 just to be 'safe'...
As an aside, it just felt better to add one check rather than two.
Patch 5 restore the virNetDevSetupControl from the reverted patch
back into virNetDevSendEthtoolIoctl. Since we cannot be called unless
we're privileged and the ioctl shouldn't fail any with EPERM, that
was also removed from the list of filtered failure errno values.
Daniel P. Berrange (1):
Revert "utils: Remove the logging of errors from
virNetDevSendEthtoolIoctl"
John Ferlan (4):
virnetdev: Document reasons for ignoring some SIOCETHTOOL errno values
virnetdev: Fix function comments for virNetDevGetFeatures
virnetdev: Check for root in virNetDevGetFeatures
virnetdev: Use virNetDevSetupControl in virNetDevSendEthtoolIoctl
src/util/virnetdev.c | 52 ++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 38 insertions(+), 14 deletions(-)
--
2.1.0
9 years
[libvirt] [PATCH] tests: redo test argv file line wrapping
by Daniel P. Berrange
Back in
commit bd6c46fa0cfe275c24debc1152cfc5206c04b59b
Author: Juerg Haefliger <juerg.haefliger(a)hp.com>
Date: Mon Jan 31 06:42:57 2011 -0500
tests: handle backspace-newline pairs in test input files
all the test argv files were line wrapped so that the args
were less than 80 characters.
The way the line wrapping was done turns out to be quite
undesirable, because it often leaves multiple parameters
on the same line. If we later need to add or remove
individual parameters, then it leaves us having to redo
line wrapping.
This commit changes the line wrapping so that every
single "-param value" is one its own new line. If the
"value" is still too long, then we break on ',' or ':'
or ' ' as needed.
This means that when we come to add / remove parameters
from the test files line, the patch diffs will only
ever show a single line added/removed which will greatly
simplify review work.
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
---
.../bhyvexml2argvdata/bhyvexml2argv-acpiapic.args | 10 +-
.../networkxml2firewalldata/nat-default-linux.args | 137 ++++++++++++++++-----
.../qemuxml2argv-aarch64-aavmf-virtio-mmio.args | 33 +++--
tests/test-wrap-argv.pl | 106 ++++++++++++++++
4 files changed, 247 insertions(+), 39 deletions(-)
create mode 100644 tests/test-wrap-argv.pl
To avoid sending a 10 MB email, I'v only include these 3 example file
changes. To view *all* the changes see my staging branch
https://gitlab.com/berrange/libvirt/commit/4fe45c39dae176ae4dbc7e126d2a2f...
'make check' and 'make syntax-check' of course still pass after
applying the big change.
diff --git a/tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.args b/tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.args
index 6b26964..e1afefd 100644
--- a/tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.args
+++ b/tests/bhyvexml2argvdata/bhyvexml2argv-acpiapic.args
@@ -1,3 +1,11 @@
-/usr/sbin/bhyve -c 1 -m 214 -A -I -u -H -P -s 0:0,hostbridge \
+/usr/sbin/bhyve \
+-c 1 \
+-m 214 \
+-A \
+-I \
+-u \
+-H \
+-P \
+-s 0:0,hostbridge \
-s 3:0,virtio-net,faketapdev,mac=52:54:00:00:00:00 \
-s 2:0,ahci-hd,/tmp/freebsd.img bhyve
diff --git a/tests/networkxml2firewalldata/nat-default-linux.args b/tests/networkxml2firewalldata/nat-default-linux.args
index b92a845..ffdafdf 100644
--- a/tests/networkxml2firewalldata/nat-default-linux.args
+++ b/tests/networkxml2firewalldata/nat-default-linux.args
@@ -1,30 +1,107 @@
-iptables --table filter --insert INPUT --in-interface virbr0 --protocol tcp \
---destination-port 67 --jump ACCEPT
-iptables --table filter --insert INPUT --in-interface virbr0 --protocol udp \
---destination-port 67 --jump ACCEPT
-iptables --table filter --insert OUTPUT --out-interface virbr0 --protocol udp \
---destination-port 68 --jump ACCEPT
-iptables --table filter --insert INPUT --in-interface virbr0 --protocol tcp \
---destination-port 53 --jump ACCEPT
-iptables --table filter --insert INPUT --in-interface virbr0 --protocol udp \
---destination-port 53 --jump ACCEPT
-iptables --table filter --insert FORWARD --in-interface virbr0 --jump REJECT
-iptables --table filter --insert FORWARD --out-interface virbr0 --jump REJECT
-iptables --table filter --insert FORWARD --in-interface virbr0 \
---out-interface virbr0 --jump ACCEPT
-iptables --table filter --insert FORWARD --source 192.168.122.0/24 \
---in-interface virbr0 --jump ACCEPT
-iptables --table filter --insert FORWARD --destination 192.168.122.0/24 \
---out-interface virbr0 --match conntrack --ctstate ESTABLISHED,RELATED --jump ACCEPT
-iptables --table nat --insert POSTROUTING --source 192.168.122.0/24 '!' \
---destination 192.168.122.0/24 --jump MASQUERADE
-iptables --table nat --insert POSTROUTING --source 192.168.122.0/24 \
--p udp '!' --destination 192.168.122.0/24 --jump MASQUERADE --to-ports 1024-65535
-iptables --table nat --insert POSTROUTING --source 192.168.122.0/24 \
--p tcp '!' --destination 192.168.122.0/24 --jump MASQUERADE --to-ports 1024-65535
-iptables --table nat --insert POSTROUTING --source 192.168.122.0/24 \
---destination 255.255.255.255/32 --jump RETURN
-iptables --table nat --insert POSTROUTING --source 192.168.122.0/24 \
---destination 224.0.0.0/24 --jump RETURN
-iptables --table mangle --insert POSTROUTING --out-interface virbr0 \
---protocol udp --destination-port 68 --jump CHECKSUM --checksum-fill
+iptables \
+--table filter \
+--insert INPUT \
+--in-interface virbr0 \
+--protocol tcp \
+--destination-port 67 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert INPUT \
+--in-interface virbr0 \
+--protocol udp \
+--destination-port 67 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert OUTPUT \
+--out-interface virbr0 \
+--protocol udp \
+--destination-port 68 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert INPUT \
+--in-interface virbr0 \
+--protocol tcp \
+--destination-port 53 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert INPUT \
+--in-interface virbr0 \
+--protocol udp \
+--destination-port 53 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert FORWARD \
+--in-interface virbr0 \
+--jump REJECT
+iptables \
+--table filter \
+--insert FORWARD \
+--out-interface virbr0 \
+--jump REJECT
+iptables \
+--table filter \
+--insert FORWARD \
+--in-interface virbr0 \
+--out-interface virbr0 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert FORWARD \
+--source 192.168.122.0/24 \
+--in-interface virbr0 \
+--jump ACCEPT
+iptables \
+--table filter \
+--insert FORWARD \
+--destination 192.168.122.0/24 \
+--out-interface virbr0 \
+--match conntrack \
+--ctstate ESTABLISHED,RELATED \
+--jump ACCEPT
+iptables \
+--table nat \
+--insert POSTROUTING \
+--source 192.168.122.0/24 '!' \
+--destination 192.168.122.0/24 \
+--jump MASQUERADE
+iptables \
+--table nat \
+--insert POSTROUTING \
+--source 192.168.122.0/24 \
+-p udp '!' \
+--destination 192.168.122.0/24 \
+--jump MASQUERADE \
+--to-ports 1024-65535
+iptables \
+--table nat \
+--insert POSTROUTING \
+--source 192.168.122.0/24 \
+-p tcp '!' \
+--destination 192.168.122.0/24 \
+--jump MASQUERADE \
+--to-ports 1024-65535
+iptables \
+--table nat \
+--insert POSTROUTING \
+--source 192.168.122.0/24 \
+--destination 255.255.255.255/32 \
+--jump RETURN
+iptables \
+--table nat \
+--insert POSTROUTING \
+--source 192.168.122.0/24 \
+--destination 224.0.0.0/24 \
+--jump RETURN
+iptables \
+--table mangle \
+--insert POSTROUTING \
+--out-interface virbr0 \
+--protocol udp \
+--destination-port 68 \
+--jump CHECKSUM \
+--checksum-fill
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args
index d6d8aed..4cc4cd2 100644
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args
@@ -1,14 +1,31 @@
-LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
-/usr/bin/qemu-system-aarch64 -S -M virt -cpu cortex-a53 \
--m 1024 -smp 1 -nographic \
--nodefconfig -nodefaults -monitor unix:/tmp/test-monitor,server,nowait \
--boot c -kernel /aarch64.kernel -initrd /aarch64.initrd -append \
-'earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait' \
--dtb /aarch64.dtb -device virtio-serial-device,id=virtio-serial0 -usb \
+LC_ALL=C \
+PATH=/bin \
+HOME=/home/test \
+USER=test \
+LOGNAME=test \
+QEMU_AUDIO_DRV=none \
+/usr/bin/qemu-system-aarch64 \
+-S \
+-M virt \
+-cpu cortex-a53 \
+-m 1024 \
+-smp 1 \
+-nographic \
+-nodefconfig \
+-nodefaults \
+-monitor unix:/tmp/test-monitor,server,nowait \
+-boot c \
+-kernel /aarch64.kernel \
+-initrd /aarch64.initrd \
+-append 'earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait' \
+-dtb /aarch64.dtb \
+-device virtio-serial-device,id=virtio-serial0 \
+-usb \
-drive file=/aarch64.raw,if=none,id=drive-virtio-disk0 \
-device virtio-blk-device,drive=drive-virtio-disk0,id=virtio-disk0 \
-device virtio-net-device,vlan=0,id=net0,mac=52:54:00:09:a4:37 \
--net user,vlan=0,name=hostnet0 -chardev pty,id=charconsole0 \
+-net user,vlan=0,name=hostnet0 \
+-chardev pty,id=charconsole0 \
-device virtconsole,chardev=charconsole0,id=console0 \
-device virtio-balloon-device,id=balloon0 \
-object rng-random,id=objrng0,filename=/dev/random \
diff --git a/tests/test-wrap-argv.pl b/tests/test-wrap-argv.pl
new file mode 100644
index 0000000..e8c782b
--- /dev/null
+++ b/tests/test-wrap-argv.pl
@@ -0,0 +1,106 @@
+#!/usr/bin/perl
+
+
+
+foreach my $file (@ARGV) {
+ &rewrap($file);
+}
+
+sub rewrap {
+ my $file = shift;
+
+ # Read the original file
+ open FILE, "<", $file or die "cannot read $file: $!";
+ my @lines;
+ while (<FILE>) {
+ # If there is a trailing '\' then kill the new line
+ if (/\\$/) {
+ chomp;
+ $_ =~ s/\\$//;
+ }
+
+ push @lines, $_;
+ }
+
+ # Skip empty files
+ return unless @lines;
+
+ # Kill the last new line in the file
+ chomp @lines[$#lines];
+ close FILE;
+
+ # Reconstruct the master data by joining all lines
+ # and then split again based on the real desired
+ # newlines
+ @lines = split /\n/, join('', @lines);
+
+ open FILE, ">", $file or die "cannot create $file: $!";
+
+ print "Process $file\n";
+ # Now each @lines represents a single command, we
+ # can process them
+ foreach my $line (@lines) {
+ my @bits = split / /, join('', $line);
+
+ # @bits contains env vars, then the command line
+ # and then the arguments
+ my @env;
+ my $cmd;
+ my @args;
+
+ foreach my $bit (@bits) {
+ # If no command is defined yet, we must still
+ # have env vars
+ if (!defined $cmd) {
+ # Look for leading / or = to indicate command name
+ if ($bit =~ m,^/,) {
+ $cmd = $bit;
+ } else {
+ push @env, $bit;
+ }
+ } else {
+ # If there's a leading '-' then this is a new
+ # parameter, otherwise its a value for the prev
+ # parameter.
+ if ($bit =~ m,^-,) {
+ push @args, $bit;
+ } else {
+ $args[$#args] .= " " . $bit;
+ }
+ }
+ }
+
+ # Print env + command first
+ print FILE join(" \\\n", @env, $cmd), " \\\n";
+ # We might have to split line argument values...
+ for (my $i = 0; $i <= $#args; $i++) {
+ my $arg = $args[$i];
+ while (length($arg) > 80) {
+ my $split = rindex $arg, ",", 80;
+ if ($split == -1) {
+ $split = rindex $arg, ":", 80;
+ }
+ if ($split == -1) {
+ $split = rindex $arg, " ", 80;
+ }
+ if ($split == -1) {
+ warn "$file: cannot find nice place to split '$arg' below 80 chars\n";
+ $split = 79;
+ }
+ $split++;
+
+ my $head = substr $arg, 0, $split;
+ $arg = substr $arg, $split;
+
+ print FILE $head, "\\\n";
+ }
+ print FILE $arg;
+ if ($i != $#args) {
+ print FILE " \\\n";
+ } else {
+ print FILE "\n";
+ }
+ }
+ }
+ close FILE;
+}
--
2.5.0
9 years
[libvirt] [PATCH libvirt-java] Add new WITH_SNAPSHOTS removal flag for Storage Volumes
by Wido den Hollander
This was recently added to libvirt and this is to match the API
Signed-off-by: Wido den Hollander <wido(a)widodh.nl>
---
src/main/java/org/libvirt/StorageVol.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/libvirt/StorageVol.java b/src/main/java/org/libvirt/StorageVol.java
index 3b1533e..47a9013 100644
--- a/src/main/java/org/libvirt/StorageVol.java
+++ b/src/main/java/org/libvirt/StorageVol.java
@@ -22,6 +22,10 @@ public class StorageVol {
* Clear all data to zeros (slow)
*/
static final int VIR_STORAGE_POOL_DELETE_ZEROED = 1;
+ /**
+ * Delete a volume even if it has snapshots
+ */
+ static final int VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS = 2;
}
public static final class ResizeFlags {
--
1.9.1
9 years
[libvirt] [PATCH 0/3] Alternative proposal to revert the removal of logging of errors from virNetDevSendEthtoolIoctl
by John Ferlan
Rather than revert as proposed here:
http://www.redhat.com/archives/libvir-list/2015-November/msg00082.html
Let's make some adjustments to the existing algorithm.
The only question I don't have answered in my mind is whether an
unprivileged daemon that has an interface with the feature bits
defined should be allowed to start. Historically we haven't stopped
it, so doing so now may not be right/good. Conversely, someone may
"believe" their bits are set on their device when in fact they are
not. Of course it's not documented on formatnode.html that setting
the feature bits requires root. I did find through various searches
that SIOCETHTOOL doesn't work unless it's run under root.
John Ferlan (3):
virnetdev: Check correct return value for virNetDevFeatureAvailable
virnetdev: Message in virNetDevSendEthtoolIoctl rather than caller.
virnetdev: Add check for unprivileged daemon
src/util/virnetdev.c | 38 ++++++++++++++++++++++++--------------
1 file changed, 24 insertions(+), 14 deletions(-)
--
2.1.0
9 years
[libvirt] [PATCH 0/7] Drop support for QEMU < 0.12.0
by Daniel P. Berrange
The patches for introducing virtlogd will be significantly
simplified if we don't need to worry about parsing stderr
during startup. This is required prior to QEMU 0.11 so
that we can get the dyanamically allocated /dev/pty/NNN
paths.
The QEMU 0.12.1 release was shipped in RHEL-6 vintage
distros and is already quite old, so seems like a fair
target version to aim for as the minimum required.
By dropping support for anything older than QEMU 0.12.0
we can remove the code for parsing stderr. The QEMU 0.12.0
release was quite special because it was the release where
QEMU switched what I call its "modern" approach to configuration
via -device. A major part of the complexity of the QEMU command
line generator is due to need to support non-device syntax,
so by mandating QEMU 0.12.0 we'll be able to kill off alot
of conditional code. This series makes a start by assuming
existance of 5 features, -vnc, 'info chardev', -no-reboot,
-drive and -name, but there are a tonne more we can assume.
Looking at tests/qemuhelptest, we can drop about 30 capability
flag tests
QEMU_CAPS_UUID,
QEMU_CAPS_MIGRATE_QEMU_TCP,
QEMU_CAPS_MIGRATE_QEMU_EXEC,
QEMU_CAPS_DRIVE_CACHE_V2,
QEMU_CAPS_DRIVE_FORMAT,
QEMU_CAPS_DRIVE_SERIAL,
QEMU_CAPS_DRIVE_READONLY,
QEMU_CAPS_VGA,
QEMU_CAPS_0_10,
QEMU_CAPS_ENABLE_KVM,
QEMU_CAPS_SDL,
QEMU_CAPS_XEN_DOMID,
QEMU_CAPS_MIGRATE_QEMU_UNIX,
QEMU_CAPS_CHARDEV,
QEMU_CAPS_BALLOON,
QEMU_CAPS_DEVICE,
QEMU_CAPS_SMP_TOPOLOGY,
QEMU_CAPS_RTC,
QEMU_CAPS_NO_HPET,
QEMU_CAPS_BOOT_MENU,
QEMU_CAPS_NAME_PROCESS,
QEMU_CAPS_SMBIOS_TYPE,
QEMU_CAPS_VGA_NONE,
QEMU_CAPS_MIGRATE_QEMU_FD,
QEMU_CAPS_DRIVE_AIO,
QEMU_CAPS_NO_SHUTDOWN,
QEMU_CAPS_PCI_ROMBAR,
QEMU_CAPS_NO_ACPI,
QEMU_CAPS_VIRTIO_BLK_SG_IO,
QEMU_CAPS_CPU_HOST,
QEMU_CAPS_VNC
The only slow complication is that some non-x86 architectures
were slow in converting to -device syntax, so we cannot
entirely assume -device is used everywhere.
Daniel P. Berrange (7):
qemu: mandate QEMU version 0.12.0 or newer
qemu: remove all support for kQEMU
qemu: assume -vnc arg always takes a ':'
qemu: assume 'info chardev' is always available
qemu: assume -no-reboot is always available
qemu: assume -drive argument is always available
qemu: assume -name is always available
src/qemu/qemu_capabilities.c | 85 ++--
src/qemu/qemu_capabilities.h | 12 +-
src/qemu/qemu_command.c | 559 ++++++++-------------
src/qemu/qemu_hotplug.c | 3 +-
src/qemu/qemu_process.c | 193 -------
tests/qemucapabilitiesdata/caps_1.2.2-1.caps | 4 -
tests/qemucapabilitiesdata/caps_1.3.1-1.caps | 4 -
tests/qemucapabilitiesdata/caps_1.4.2-1.caps | 4 -
tests/qemucapabilitiesdata/caps_1.5.3-1.caps | 4 -
tests/qemucapabilitiesdata/caps_1.6.0-1.caps | 4 -
tests/qemucapabilitiesdata/caps_1.6.50-1.caps | 4 -
tests/qemucapabilitiesdata/caps_2.1.1-1.caps | 4 -
tests/qemucaps2xmldata/all_1.6.0-1.caps | 4 -
tests/qemucaps2xmldata/nodisksnapshot_1.6.0-1.caps | 4 -
tests/qemuhelpdata/kvm-74 | 111 ----
tests/qemuhelpdata/kvm-83-rhel56 | 141 ------
tests/qemuhelpdata/kvm-86 | 170 -------
tests/qemuhelpdata/qemu-0.10.5 | 141 ------
tests/qemuhelpdata/qemu-0.9.1 | 102 ----
tests/qemuhelpdata/qemu-kvm-0.10.5 | 155 ------
tests/qemuhelpdata/qemu-kvm-0.11.0-rc2 | 177 -------
tests/qemuhelptest.c | 195 -------
tests/qemuhotplugtest.c | 1 -
.../qemuxml2argv-aarch64-aavmf-virtio-mmio.args | 2 +-
.../qemuxml2argv-aarch64-cpu-passthrough.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-aarch64-gic.args | 2 +-
.../qemuxml2argv-aarch64-gicv3.args | 2 +-
.../qemuxml2argv-aarch64-kvm-32-on-64.args | 2 +-
.../qemuxml2argv-aarch64-mmio-default-pci.args | 2 +-
.../qemuxml2argv-aarch64-virt-default-nic.args | 4 +-
.../qemuxml2argv-aarch64-virt-virtio.args | 2 +-
.../qemuxml2argv-aarch64-virtio-pci.args | 2 +-
.../qemuxml2argv-arm-vexpressa9-basic.args | 2 +-
.../qemuxml2argv-arm-vexpressa9-nodevs.args | 2 +-
.../qemuxml2argv-arm-vexpressa9-virtio.args | 2 +-
.../qemuxml2argv-arm-virt-virtio.args | 2 +-
.../qemuxml2argv-balloon-device-auto.args | 9 +-
.../qemuxml2argv-balloon-device-period.args | 9 +-
.../qemuxml2argv-balloon-device.args | 9 +-
.../qemuxml2argvdata/qemuxml2argv-bios-nvram.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-bios.args | 7 +-
.../qemuxml2argv-blkiotune-device.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-blkiotune.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-boot-cdrom.args | 5 +-
.../qemuxml2argv-boot-complex-bootindex.args | 2 +-
.../qemuxml2argv-boot-complex.args | 2 +-
.../qemuxml2argv-boot-floppy-q35.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-boot-floppy.args | 5 +-
...xml2argv-boot-menu-disable-drive-bootindex.args | 2 +-
.../qemuxml2argv-boot-menu-disable-drive.args | 2 +-
.../qemuxml2argv-boot-menu-disable.args | 6 +-
...qemuxml2argv-boot-menu-enable-with-timeout.args | 2 +-
.../qemuxml2argv-boot-menu-enable.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-boot-multi.args | 6 +-
.../qemuxml2argv-boot-network.args | 4 +-
.../qemuxml2argvdata/qemuxml2argv-boot-order.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-boot-strict.args | 2 +-
.../qemuxml2argv-bootindex-floppy-q35.args | 2 +-
.../qemuxml2argv-channel-guestfwd.args | 6 +-
.../qemuxml2argv-channel-spicevmc-old.args | 8 +-
.../qemuxml2argv-channel-spicevmc.args | 8 +-
.../qemuxml2argv-channel-virtio-auto.args | 8 +-
.../qemuxml2argv-channel-virtio-autoadd.args | 5 +-
.../qemuxml2argv-channel-virtio-autoassign.args | 5 +-
.../qemuxml2argv-channel-virtio-default.args | 5 +-
.../qemuxml2argv-channel-virtio-state.args | 5 +-
.../qemuxml2argv-channel-virtio-unix.args | 5 +-
.../qemuxml2argv-channel-virtio.args | 8 +-
.../qemuxml2argv-clock-catchup.args | 4 +-
.../qemuxml2argv-clock-france.args | 6 +-
.../qemuxml2argv-clock-hpet-off.args | 4 +-
...muxml2argv-clock-localtime-basis-localtime.args | 4 +-
.../qemuxml2argv-clock-localtime.args | 4 +-
.../qemuxml2argv-clock-timer-hyperv-rtc.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-clock-utc.args | 9 +-
tests/qemuxml2argvdata/qemuxml2argv-clock-utc.xml | 2 +-
.../qemuxml2argv-clock-variable.args | 4 +-
.../qemuxml2argv-console-compat-auto.args | 4 +-
.../qemuxml2argv-console-compat-chardev.args | 6 +-
.../qemuxml2argv-console-compat.args | 4 +-
.../qemuxml2argv-console-sclp.args | 2 +-
.../qemuxml2argv-console-virtio-ccw.args | 2 +-
.../qemuxml2argv-console-virtio-many.args | 8 +-
.../qemuxml2argv-console-virtio-s390.args | 2 +-
.../qemuxml2argv-console-virtio.args | 8 +-
.../qemuxml2argv-controller-order.args | 2 +-
.../qemuxml2argv-cpu-Haswell-noTSX.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-cpu-Haswell.args | 2 +-
.../qemuxml2argv-cpu-Haswell2.args | 2 +-
.../qemuxml2argv-cpu-Haswell3.args | 2 +-
.../qemuxml2argv-cpu-eoi-disabled.args | 2 +-
.../qemuxml2argv-cpu-eoi-enabled.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-cpu-exact1.args | 2 +-
.../qemuxml2argv-cpu-exact2-nofallback.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-cpu-exact2.args | 2 +-
.../qemuxml2argv-cpu-fallback.args | 2 +-
.../qemuxml2argv-cpu-host-kvmclock.args | 2 +-
.../qemuxml2argv-cpu-host-model-fallback.args | 2 +-
.../qemuxml2argv-cpu-host-model-vendor.args | 2 +-
.../qemuxml2argv-cpu-host-model.args | 2 +-
...qemuxml2argv-cpu-host-passthrough-features.args | 4 +-
.../qemuxml2argv-cpu-host-passthrough.args | 2 +-
.../qemuxml2argv-cpu-kvmclock.args | 2 +-
.../qemuxml2argv-cpu-minimum1.args | 2 +-
.../qemuxml2argv-cpu-minimum2.args | 2 +-
.../qemuxml2argv-cpu-numa-disjoint.args | 2 +-
.../qemuxml2argv-cpu-numa-no-memory-element.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-cpu-numa1.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-cpu-numa2.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-cpu-strict1.args | 2 +-
.../qemuxml2argv-cpu-topology1.args | 2 +-
.../qemuxml2argv-cpu-topology2.args | 2 +-
.../qemuxml2argv-cpu-topology3.args | 2 +-
.../qemuxml2argv-cputune-numatune.args | 2 +-
.../qemuxml2argv-cputune-zero-shares.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-cputune.args | 2 +-
.../qemuxml2argv-default-kvm-host-arch.args | 2 +-
.../qemuxml2argv-default-qemu-host-arch.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-disk-aio.args | 2 +-
.../qemuxml2argv-disk-blockio.args | 2 +-
.../qemuxml2argv-disk-cdrom-empty.args | 2 +-
.../qemuxml2argv-disk-cdrom-network-ftp.args | 2 +-
.../qemuxml2argv-disk-cdrom-network-ftps.args | 2 +-
.../qemuxml2argv-disk-cdrom-network-http.args | 2 +-
.../qemuxml2argv-disk-cdrom-network-https.args | 2 +-
.../qemuxml2argv-disk-cdrom-network-tftp.args | 2 +-
...qemuxml2argv-disk-cdrom-tray-no-device-cap.args | 5 +-
.../qemuxml2argv-disk-cdrom-tray.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-disk-cdrom.args | 5 +-
.../qemuxml2argv-disk-copy_on_read.args | 2 +-
.../qemuxml2argv-disk-drive-boot-cdrom.args | 2 +-
.../qemuxml2argv-disk-drive-boot-disk.args | 2 +-
.../qemuxml2argv-disk-drive-cache-directsync.args | 2 +-
.../qemuxml2argv-disk-drive-cache-unsafe.args | 2 +-
.../qemuxml2argv-disk-drive-cache-v1-none.args | 2 +-
.../qemuxml2argv-disk-drive-cache-v1-wb.args | 2 +-
.../qemuxml2argv-disk-drive-cache-v1-wt.args | 2 +-
.../qemuxml2argv-disk-drive-cache-v2-none.args | 2 +-
.../qemuxml2argv-disk-drive-cache-v2-wb.args | 2 +-
.../qemuxml2argv-disk-drive-cache-v2-wt.args | 2 +-
.../qemuxml2argv-disk-drive-copy-on-read.args | 2 +-
.../qemuxml2argv-disk-drive-discard.args | 2 +-
...uxml2argv-disk-drive-error-policy-enospace.args | 2 +-
.../qemuxml2argv-disk-drive-error-policy-stop.args | 2 +-
...gv-disk-drive-error-policy-wreport-rignore.args | 2 +-
.../qemuxml2argv-disk-drive-fat.args | 2 +-
.../qemuxml2argv-disk-drive-fmt-qcow.args | 2 +-
.../qemuxml2argv-disk-drive-network-gluster.args | 2 +-
...qemuxml2argv-disk-drive-network-iscsi-auth.args | 2 +-
.../qemuxml2argv-disk-drive-network-iscsi-lun.args | 2 +-
.../qemuxml2argv-disk-drive-network-iscsi.args | 2 +-
...qemuxml2argv-disk-drive-network-nbd-export.args | 2 +-
...ml2argv-disk-drive-network-nbd-ipv6-export.args | 2 +-
.../qemuxml2argv-disk-drive-network-nbd-ipv6.args | 2 +-
.../qemuxml2argv-disk-drive-network-nbd-unix.args | 2 +-
.../qemuxml2argv-disk-drive-network-nbd.args | 2 +-
.../qemuxml2argv-disk-drive-network-rbd-auth.args | 2 +-
...muxml2argv-disk-drive-network-rbd-ceph-env.args | 2 +-
.../qemuxml2argv-disk-drive-network-rbd-ipv6.args | 2 +-
.../qemuxml2argv-disk-drive-network-rbd.args | 2 +-
.../qemuxml2argv-disk-drive-network-sheepdog.args | 2 +-
.../qemuxml2argv-disk-drive-no-boot.args | 2 +-
.../qemuxml2argv-disk-drive-readonly-disk.args | 2 +-
...qemuxml2argv-disk-drive-readonly-no-device.args | 2 +-
.../qemuxml2argv-disk-drive-shared.args | 2 +-
.../qemuxml2argv-disk-floppy-pseries.args | 2 +-
...emuxml2argv-disk-floppy-tray-no-device-cap.args | 5 +-
.../qemuxml2argv-disk-floppy-tray.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-disk-floppy.args | 7 +-
.../qemuxml2argv-disk-geometry.args | 2 +-
.../qemuxml2argv-disk-ide-drive-split.args | 2 +-
.../qemuxml2argv-disk-ide-wwn.args | 2 +-
.../qemuxml2argv-disk-ioeventfd.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-disk-iscsi.args | 6 +-
tests/qemuxml2argvdata/qemuxml2argv-disk-many.args | 8 +-
.../qemuxml2argvdata/qemuxml2argv-disk-order.args | 2 +-
.../qemuxml2argv-disk-sata-device.args | 2 +-
.../qemuxml2argv-disk-scsi-device-auto.args | 2 +-
.../qemuxml2argv-disk-scsi-device.args | 2 +-
.../qemuxml2argv-disk-scsi-disk-split.args | 2 +-
.../qemuxml2argv-disk-scsi-disk-vpd.args | 2 +-
.../qemuxml2argv-disk-scsi-disk-wwn.args | 2 +-
.../qemuxml2argv-disk-scsi-lun-passthrough.args | 2 +-
.../qemuxml2argv-disk-scsi-megasas.args | 2 +-
.../qemuxml2argv-disk-scsi-virtio-scsi.args | 2 +-
.../qemuxml2argv-disk-scsi-vscsi.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-disk-serial.args | 2 +-
.../qemuxml2argv-disk-snapshot.args | 2 +-
.../qemuxml2argv-disk-source-pool-mode.args | 2 +-
.../qemuxml2argv-disk-source-pool.args | 2 +-
.../qemuxml2argv-disk-usb-device-removable.args | 2 +-
.../qemuxml2argv-disk-usb-device.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-disk-usb.args | 5 +-
.../qemuxml2argv-disk-virtio-ccw-many.args | 2 +-
.../qemuxml2argv-disk-virtio-ccw.args | 2 +-
.../qemuxml2argv-disk-virtio-s390.args | 2 +-
.../qemuxml2argv-disk-virtio-scsi-ccw.args | 2 +-
.../qemuxml2argv-disk-virtio-scsi-cmd_per_lun.args | 2 +-
.../qemuxml2argv-disk-virtio-scsi-ioeventfd.args | 2 +-
.../qemuxml2argv-disk-virtio-scsi-max_sectors.args | 2 +-
.../qemuxml2argv-disk-virtio-scsi-num_queues.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-disk-virtio.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-disk-xenvbd.args | 2 +-
.../qemuxml2argv-eoi-disabled.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-eoi-enabled.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-event_idx.args | 2 +-
.../qemuxml2argv-fips-enabled.args | 4 +-
.../qemuxml2argv-floppy-drive-fat.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-fs9p-ccw.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-fs9p.args | 8 +-
.../qemuxml2argv-graphics-sdl-fullscreen.args | 6 +-
.../qemuxml2argv-graphics-sdl.args | 6 +-
...emuxml2argv-graphics-spice-agent-file-xfer.args | 8 +-
.../qemuxml2argv-graphics-spice-agentmouse.args | 6 +-
.../qemuxml2argv-graphics-spice-compression.args | 9 +-
.../qemuxml2argv-graphics-spice-qxl-vga.args | 8 +-
.../qemuxml2argv-graphics-spice-sasl.args | 7 +-
.../qemuxml2argv-graphics-spice-timeout.args | 2 +-
.../qemuxml2argv-graphics-spice-usb-redir.args | 2 +-
.../qemuxml2argv-graphics-spice.args | 8 +-
.../qemuxml2argv-graphics-vnc-policy.args | 4 +-
.../qemuxml2argv-graphics-vnc-sasl.args | 7 +-
.../qemuxml2argv-graphics-vnc-socket.args | 4 +-
.../qemuxml2argv-graphics-vnc-tls.args | 6 +-
.../qemuxml2argv-graphics-vnc-websocket.args | 2 +-
.../qemuxml2argv-graphics-vnc.args | 4 +-
.../qemuxml2argv-hostdev-pci-address-device.args | 8 +-
.../qemuxml2argv-hostdev-pci-address.args | 5 +-
.../qemuxml2argv-hostdev-scsi-boot.args | 2 +-
.../qemuxml2argv-hostdev-scsi-lsi-iscsi-auth.args | 2 +-
.../qemuxml2argv-hostdev-scsi-lsi-iscsi.args | 2 +-
.../qemuxml2argv-hostdev-scsi-lsi.args | 2 +-
.../qemuxml2argv-hostdev-scsi-readonly.args | 2 +-
...emuxml2argv-hostdev-scsi-virtio-iscsi-auth.args | 2 +-
.../qemuxml2argv-hostdev-scsi-virtio-iscsi.args | 2 +-
.../qemuxml2argv-hostdev-scsi-virtio-scsi.args | 2 +-
...muxml2argv-hostdev-usb-address-device-boot.args | 7 +-
.../qemuxml2argv-hostdev-usb-address-device.args | 8 +-
.../qemuxml2argv-hostdev-usb-address.args | 4 +-
.../qemuxml2argv-hostdev-vfio-multidomain.args | 8 +-
.../qemuxml2argv-hostdev-vfio.args | 8 +-
.../qemuxml2argv-hotplug-base.args | 2 +-
.../qemuxml2argv-hugepages-numa.args | 2 +-
.../qemuxml2argv-hugepages-pages.args | 4 +-
.../qemuxml2argv-hugepages-pages2.args | 4 +-
.../qemuxml2argv-hugepages-pages3.args | 4 +-
.../qemuxml2argv-hugepages-pages5.args | 4 +-
.../qemuxml2argv-hugepages-pages6.args | 4 +-
.../qemuxml2argv-hugepages-shared.args | 4 +-
tests/qemuxml2argvdata/qemuxml2argv-hugepages.args | 6 +-
.../qemuxml2argvdata/qemuxml2argv-hyperv-off.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-hyperv.args | 2 +-
.../qemuxml2argv-input-usbmouse-addr.args | 6 +-
.../qemuxml2argv-input-usbmouse.args | 4 +-
.../qemuxml2argv-input-usbtablet.args | 4 +-
.../qemuxml2argv-iothreads-disk-virtio-ccw.args | 2 +-
.../qemuxml2argv-iothreads-disk.args | 2 +-
.../qemuxml2argv-iothreads-ids-partial.args | 6 +-
.../qemuxml2argv-iothreads-ids.args | 6 +-
tests/qemuxml2argvdata/qemuxml2argv-iothreads.args | 6 +-
.../qemuxml2argv-kvm-features-off.args | 2 +-
.../qemuxml2argv-kvm-features.args | 2 +-
.../qemuxml2argv-kvm-pit-delay.args | 4 +-
.../qemuxml2argv-kvm-pit-device.args | 4 +-
tests/qemuxml2argvdata/qemuxml2argv-kvm.args | 2 +-
.../qemuxml2argv-kvmclock+eoi-disabled.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-kvmclock.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-lease.args | 4 +-
.../qemuxml2argv-machine-aeskeywrap-off-argv.args | 2 +-
.../qemuxml2argv-machine-aeskeywrap-off-cap.args | 2 +-
.../qemuxml2argv-machine-aeskeywrap-off-caps.args | 2 +-
.../qemuxml2argv-machine-aeskeywrap-on-argv.args | 2 +-
.../qemuxml2argv-machine-aeskeywrap-on-cap.args | 2 +-
.../qemuxml2argv-machine-aeskeywrap-on-caps.args | 2 +-
.../qemuxml2argv-machine-aliases1.args | 6 +-
.../qemuxml2argv-machine-aliases2.args | 4 +-
.../qemuxml2argv-machine-core-off.args | 4 +-
.../qemuxml2argv-machine-core-on.args | 4 +-
.../qemuxml2argv-machine-deakeywrap-off-argv.args | 2 +-
.../qemuxml2argv-machine-deakeywrap-off-cap.args | 2 +-
.../qemuxml2argv-machine-deakeywrap-off-caps.args | 2 +-
.../qemuxml2argv-machine-deakeywrap-on-argv.args | 2 +-
.../qemuxml2argv-machine-deakeywrap-on-cap.args | 2 +-
.../qemuxml2argv-machine-deakeywrap-on-caps.args | 2 +-
.../qemuxml2argv-machine-keywrap-none-argv.args | 2 +-
.../qemuxml2argv-machine-keywrap-none-caps.args | 2 +-
.../qemuxml2argv-machine-keywrap-none.args | 2 +-
.../qemuxml2argv-machine-usb-opt.args | 4 +-
.../qemuxml2argv-machine-vmport-opt.args | 4 +-
.../qemuxml2argv-memory-hotplug-dimm-addr.args | 5 +-
.../qemuxml2argv-memory-hotplug-dimm.args | 5 +-
.../qemuxml2argv-memory-hotplug.args | 4 +-
.../qemuxml2argv-memtune-unlimited.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-memtune.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-metadata.args | 2 +-
.../qemuxml2argv-migrate-numa-unaligned.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-migrate.args | 4 +-
.../qemuxml2argv-minimal-msg-timestamp.args | 2 +-
.../qemuxml2argv-minimal-s390.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-minimal.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-misc-acpi.args | 4 +-
.../qemuxml2argv-misc-disable-s3.args | 4 +-
.../qemuxml2argv-misc-disable-suspends.args | 4 +-
.../qemuxml2argv-misc-enable-s4.args | 4 +-
.../qemuxml2argv-misc-no-reboot.args | 4 +-
tests/qemuxml2argvdata/qemuxml2argv-misc-uuid.args | 4 +-
tests/qemuxml2argvdata/qemuxml2argv-mlock-off.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-mlock-on.args | 2 +-
.../qemuxml2argv-mlock-unsupported.args | 2 +-
.../qemuxml2argv-monitor-json.args | 8 +-
.../qemuxml2argv-multifunction-pci-device.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-net-client.args | 4 +-
.../qemuxml2argv-net-eth-ifname.args | 4 +-
.../qemuxml2argv-net-eth-names.args | 4 +-
tests/qemuxml2argvdata/qemuxml2argv-net-eth.args | 4 +-
.../qemuxml2argv-net-hostdev-multidomain.args | 5 +-
.../qemuxml2argv-net-hostdev-vfio-multidomain.args | 5 +-
.../qemuxml2argv-net-hostdev-vfio.args | 5 +-
.../qemuxml2argvdata/qemuxml2argv-net-hostdev.args | 5 +-
tests/qemuxml2argvdata/qemuxml2argv-net-mcast.args | 4 +-
.../qemuxml2argvdata/qemuxml2argv-net-server.args | 4 +-
tests/qemuxml2argvdata/qemuxml2argv-net-udp.args | 4 +-
tests/qemuxml2argvdata/qemuxml2argv-net-user.args | 4 +-
.../qemuxml2argv-net-vhostuser-multiq.args | 5 +-
.../qemuxml2argv-net-vhostuser.args | 5 +-
.../qemuxml2argv-net-virtio-ccw.args | 2 +-
.../qemuxml2argv-net-virtio-device.args | 8 +-
.../qemuxml2argv-net-virtio-disable-offloads.args | 5 +-
.../qemuxml2argv-net-virtio-netdev.args | 8 +-
.../qemuxml2argv-net-virtio-s390.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-net-virtio.args | 4 +-
.../qemuxml2argvdata/qemuxml2argv-no-shutdown.args | 5 +-
.../qemuxml2argv-nographics-vga.args | 4 +-
.../qemuxml2argvdata/qemuxml2argv-nographics.args | 4 +-
.../qemuxml2argv-nosharepages.args | 4 +-
...qemuxml2argv-numad-auto-memory-vcpu-cpuset.args | 6 +-
...d-auto-memory-vcpu-no-cpuset-and-placement.args | 6 +-
...muxml2argv-numad-auto-vcpu-static-numatune.args | 6 +-
...qemuxml2argv-numad-static-memory-auto-vcpu.args | 6 +-
tests/qemuxml2argvdata/qemuxml2argv-numad.args | 6 +-
...qemuxml2argv-numatune-auto-nodeset-invalid.args | 4 +-
.../qemuxml2argv-numatune-auto-prefer.args | 2 +-
.../qemuxml2argv-numatune-memnode-no-memory.args | 2 +-
.../qemuxml2argv-numatune-memnode.args | 2 +-
.../qemuxml2argv-numatune-memory.args | 6 +-
.../qemuxml2argv-panic-no-address.args | 5 +-
tests/qemuxml2argvdata/qemuxml2argv-panic.args | 5 +-
.../qemuxml2argv-parallel-parport-chardev.args | 6 +-
.../qemuxml2argv-parallel-tcp-chardev.args | 6 +-
.../qemuxml2argv-parallel-tcp.args | 4 +-
.../qemuxml2argv-pci-autoadd-addr.args | 5 +-
.../qemuxml2argv-pci-autoadd-idx.args | 5 +-
.../qemuxml2argv-pci-bridge-many-disks.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-pci-many.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-pci-rom.args | 7 +-
.../qemuxml2argv-pci-serial-dev-chardev.args | 6 +-
.../qemuxml2argv-pcie-root-port.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-pcie-root.args | 2 +-
.../qemuxml2argv-pcie-switch-downstream-port.args | 2 +-
.../qemuxml2argv-pcie-switch-upstream-port.args | 2 +-
.../qemuxml2argv-pcihole64-none.args | 2 +-
.../qemuxml2argv-pcihole64-q35.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-pcihole64.args | 2 +-
.../qemuxml2argv-pmu-feature-off.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-pmu-feature.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.args | 2 +-
.../qemuxml2argv-ppce500-serial.args | 3 +-
.../qemuxml2argv-pseries-basic.args | 4 +-
.../qemuxml2argv-pseries-cpu-compat.args | 4 +-
.../qemuxml2argv-pseries-cpu-exact.args | 4 +-
.../qemuxml2argv-pseries-cpu-le.args | 2 +-
.../qemuxml2argv-pseries-disk.args | 2 +-
.../qemuxml2argv-pseries-nvram.args | 2 +-
.../qemuxml2argv-pseries-panic-missing.args | 2 +-
.../qemuxml2argv-pseries-panic-no-address.args | 2 +-
.../qemuxml2argv-pseries-usb-default.args | 2 +-
.../qemuxml2argv-pseries-usb-kbd.args | 2 +-
.../qemuxml2argv-pseries-usb-multi.args | 2 +-
.../qemuxml2argv-pseries-vio-user-assigned.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-pseries-vio.args | 2 +-
.../qemuxml2argv-pv-spinlock-disabled.args | 2 +-
.../qemuxml2argv-pv-spinlock-enabled.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-q35.args | 2 +-
.../qemuxml2argv-qemu-ns-no-env.args | 4 +-
tests/qemuxml2argvdata/qemuxml2argv-qemu-ns.args | 6 +-
.../qemuxml2argv-reboot-timeout-disabled.args | 2 +-
.../qemuxml2argv-reboot-timeout-enabled.args | 2 +-
.../qemuxml2argvdata/qemuxml2argv-restore-v1.args | 4 +-
.../qemuxml2argv-restore-v2-fd.args | 4 +-
.../qemuxml2argvdata/qemuxml2argv-restore-v2.args | 4 +-
...muxml2argv-s390-allow-bogus-usb-controller.args | 2 +-
.../qemuxml2argv-s390-allow-bogus-usb-none.args | 2 +-
.../qemuxml2argv-seclabel-dac-none.args | 2 +-
.../qemuxml2argv-seclabel-dynamic-baselabel.args | 2 +-
.../qemuxml2argv-seclabel-dynamic-labelskip.args | 2 +-
.../qemuxml2argv-seclabel-dynamic-override.args | 6 +-
.../qemuxml2argv-seclabel-dynamic-relabel.args | 2 +-
.../qemuxml2argv-seclabel-dynamic.args | 2 +-
.../qemuxml2argv-seclabel-none.args | 2 +-
.../qemuxml2argv-seclabel-static-labelskip.args | 2 +-
.../qemuxml2argv-seclabel-static-relabel.args | 2 +-
.../qemuxml2argv-seclabel-static.args | 2 +-
.../qemuxml2argv-serial-dev-chardev-iobase.args | 6 +-
.../qemuxml2argv-serial-dev-chardev.args | 6 +-
.../qemuxml2argvdata/qemuxml2argv-serial-dev.args | 4 +-
.../qemuxml2argv-serial-file-chardev.args | 6 +-
.../qemuxml2argvdata/qemuxml2argv-serial-file.args | 4 +-
.../qemuxml2argv-serial-many-chardev.args | 6 +-
.../qemuxml2argvdata/qemuxml2argv-serial-many.args | 4 +-
.../qemuxml2argv-serial-pty-chardev.args | 6 +-
.../qemuxml2argvdata/qemuxml2argv-serial-pty.args | 4 +-
.../qemuxml2argv-serial-spiceport-nospice.args | 2 +-
.../qemuxml2argv-serial-spiceport.args | 5 +-
.../qemuxml2argv-serial-tcp-chardev.args | 6 +-
.../qemuxml2argv-serial-tcp-telnet-chardev.args | 6 +-
.../qemuxml2argv-serial-tcp-telnet.args | 4 +-
.../qemuxml2argvdata/qemuxml2argv-serial-tcp.args | 4 +-
.../qemuxml2argv-serial-udp-chardev.args | 6 +-
.../qemuxml2argvdata/qemuxml2argv-serial-udp.args | 4 +-
.../qemuxml2argv-serial-unix-chardev.args | 6 +-
.../qemuxml2argvdata/qemuxml2argv-serial-unix.args | 4 +-
.../qemuxml2argv-serial-vc-chardev.args | 6 +-
tests/qemuxml2argvdata/qemuxml2argv-serial-vc.args | 4 +-
tests/qemuxml2argvdata/qemuxml2argv-shmem.args | 2 +-
.../qemuxml2argv-smartcard-controller.args | 2 +-
.../qemuxml2argv-smartcard-host-certificates.args | 2 +-
.../qemuxml2argv-smartcard-host.args | 2 +-
...emuxml2argv-smartcard-passthrough-spicevmc.args | 2 +-
.../qemuxml2argv-smartcard-passthrough-tcp.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-smbios.args | 6 +-
tests/qemuxml2argvdata/qemuxml2argv-smp.args | 6 +-
.../qemuxml2argv-sound-device.args | 8 +-
tests/qemuxml2argvdata/qemuxml2argv-sound.args | 4 +-
.../qemuxml2argv-tpm-passthrough.args | 2 +-
.../qemuxml2argv-usb-controller.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-usb-hub.args | 2 +-
.../qemuxml2argv-usb-ich9-companion.args | 2 +-
.../qemuxml2argv-usb-ich9-ehci-addr.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-usb-none.args | 2 +-
.../qemuxml2argv-usb-piix3-controller.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-usb-ports.args | 2 +-
.../qemuxml2argv-usb-redir-boot.args | 2 +-
.../qemuxml2argv-usb-redir-filter-version.args | 2 +-
.../qemuxml2argv-usb-redir-filter.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-usb-redir.args | 2 +-
tests/qemuxml2argvdata/qemuxml2argv-usb1-usb2.args | 2 +-
.../qemuxml2argv-video-device-pciaddr-default.args | 6 +-
.../qemuxml2argv-video-qxl-device-vgamem.args | 5 +-
.../qemuxml2argv-video-qxl-device.args | 5 +-
.../qemuxml2argv-video-qxl-nodevice.args | 5 +-
.../qemuxml2argv-video-qxl-sec-device-vgamem.args | 5 +-
.../qemuxml2argv-video-qxl-sec-device.args | 5 +-
.../qemuxml2argv-video-vga-device-vgamem.args | 5 +-
.../qemuxml2argv-video-vga-device.args | 5 +-
.../qemuxml2argv-video-vga-nodevice.args | 5 +-
.../qemuxml2argvdata/qemuxml2argv-virtio-lun.args | 2 +-
.../qemuxml2argv-virtio-rng-ccw.args | 2 +-
.../qemuxml2argv-virtio-rng-default.args | 2 +-
.../qemuxml2argv-virtio-rng-egd.args | 2 +-
.../qemuxml2argv-virtio-rng-multiple.args | 2 +-
.../qemuxml2argv-virtio-rng-random.args | 2 +-
.../qemuxml2argv-watchdog-device.args | 8 +-
.../qemuxml2argv-watchdog-diag288.args | 2 +-
.../qemuxml2argv-watchdog-dump.args | 4 +-
.../qemuxml2argv-watchdog-injectnmi.args | 4 +-
tests/qemuxml2argvdata/qemuxml2argv-watchdog.args | 4 +-
tests/qemuxml2argvtest.c | 404 +++++++--------
tests/qemuxml2xmltest.c | 4 -
.../qemuxmlns-qemu-ns-commandline-ns0.args | 6 +-
.../qemuxmlns-qemu-ns-commandline-ns1.args | 6 +-
.../qemuxmlns-qemu-ns-commandline.args | 6 +-
.../qemuxmlns-qemu-ns-domain-commandline-ns0.args | 6 +-
.../qemuxmlns-qemu-ns-domain-commandline.args | 6 +-
.../qemuxmlns-qemu-ns-domain-ns0.args | 6 +-
tests/qemuxmlnsdata/qemuxmlns-qemu-ns-domain.args | 6 +-
tests/qemuxmlnstest.c | 2 -
476 files changed, 1262 insertions(+), 2754 deletions(-)
delete mode 100644 tests/qemuhelpdata/kvm-74
delete mode 100644 tests/qemuhelpdata/kvm-83-rhel56
delete mode 100644 tests/qemuhelpdata/kvm-86
delete mode 100644 tests/qemuhelpdata/qemu-0.10.5
delete mode 100644 tests/qemuhelpdata/qemu-0.9.1
delete mode 100644 tests/qemuhelpdata/qemu-kvm-0.10.5
delete mode 100644 tests/qemuhelpdata/qemu-kvm-0.11.0-rc2
--
2.5.0
9 years