[libvirt] [ 0/5] netdev ethernet allow to set ip, route and peer address
by Vasiliy Tolstov
Some minor improvements and patch split as suggested by Laine Stump
Vasiliy Tolstov (5):
virnetdev allow to set peer address
libvirt domain xml allow to set peer address
lxc domain allow to set peer address
bridge network ignore peer address
qemu domain allow to set ip address, peer address and route
docs/formatdomain.html.in | 12 +++++++++-
docs/schemas/domaincommon.rng | 5 ++++
src/conf/domain_conf.c | 14 ++++++++++-
src/conf/domain_conf.h | 1 +
src/lxc/lxc_container.c | 2 +-
src/network/bridge_driver.c | 2 +-
src/qemu/qemu_interface.c | 39 +++++++++++++++++++++++++++++++
src/util/virnetdev.c | 54 ++++++++++++++++++++++++++++++-------------
src/util/virnetdev.h | 1 +
9 files changed, 110 insertions(+), 20 deletions(-)
--
2.7.3
8 years, 7 months
[libvirt] [PATCH 0/4] Make uninstall clean again
by Michal Privoznik
It's been a while since 'make uninstall' cleaned up everything
that 'make install' created. I've noticed this while trying to
figure out why some build test on *BSD is failing (fix for that
is in the first patch btw).
Michal Privoznik (4):
nss: Try harder to uninstall
examples: Try harder to uninstall nwfilter
docs: Uninstall libvirt logo too
docs: Don't leave any documentation behind
docs/Makefile.am | 7 +++++++
examples/Makefile.am | 2 +-
tools/Makefile.am | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
--
2.7.3
8 years, 7 months
[libvirt] [PATCH REBASE 0/2] vz: fix handling inputs in config
by Nikolay Shirokovskiy
Input devices are not stored in SDK but we report them
on dumpxml if vnc is on. Thus we need to handle input devices
on define xml as well. The latter part have some problems.
Let's fix them.
Nikolay Shirokovskiy (2):
vz: add default input devices on post parse
vz: fix config input device check
src/vz/vz_driver.c | 26 +++++++++++++++++++++++++-
src/vz/vz_sdk.c | 27 ++++++++++++++++++---------
2 files changed, 43 insertions(+), 10 deletions(-)
--
1.8.3.1
8 years, 7 months
[libvirt] [libvirt-php][PATCH 0/2] Fix some build issues
by Michal Privoznik
While trying to make 'distcheck' work again, this is where I got so far.
Unfortunately, distcheck is still not working.
Michal Privoznik (2):
tools: Compile generate-api-docs into builddir
configure.ac: Slightly rework
configure.ac | 11 ++++++-----
tools/Makefile.am | 2 +-
2 files changed, 7 insertions(+), 6 deletions(-)
--
2.7.3
8 years, 7 months
[libvirt] [PATCH] virt-aa-helper: disallow VNC socket read permissions
by Cole Robinson
From: Simon Arlott <bugzilla.redhat.simon(a)arlott.org>
The VM does not need read permission for its own VNC socket to create(),
bind(), accept() connections or to receive(), send(), etc. on connections.
https://bugzilla.redhat.com/show_bug.cgi?id=1312573
---
src/security/virt-aa-helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index 50d2a08..a4cb409 100644
--- a/src/security/virt-aa-helper.c
+++ b/src/security/virt-aa-helper.c
@@ -1062,7 +1062,7 @@ get_files(vahControl * ctl)
for (i = 0; i < ctl->def->ngraphics; i++) {
if (ctl->def->graphics[i]->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC &&
ctl->def->graphics[i]->data.vnc.socket &&
- vah_add_file(&buf, ctl->def->graphics[i]->data.vnc.socket, "rw"))
+ vah_add_file(&buf, ctl->def->graphics[i]->data.vnc.socket, "w"))
goto cleanup;
}
--
2.5.5
8 years, 7 months
[libvirt] [PATCH] man: Clarify virsh vol-clone works within a single pool
by Cole Robinson
virsh vol-clone is expected to clone a volume within a single
pool; it doesn't work for cloning across pools. Clarify the docs
https://bugzilla.redhat.com/show_bug.cgi?id=1103714
---
tools/virsh-volume.c | 2 +-
tools/virsh.pod | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tools/virsh-volume.c b/tools/virsh-volume.c
index 36dd0ed..9cc8e52 100644
--- a/tools/virsh-volume.c
+++ b/tools/virsh-volume.c
@@ -546,7 +546,7 @@ static const vshCmdInfo info_vol_clone[] = {
.data = N_("clone a volume.")
},
{.name = "desc",
- .data = N_("Clone an existing volume.")
+ .data = N_("Clone an existing volume within the parent pool.")
},
{.name = NULL}
};
diff --git a/tools/virsh.pod b/tools/virsh.pod
index 6c9d4ec..e1c0d8e 100644
--- a/tools/virsh.pod
+++ b/tools/virsh.pod
@@ -3530,10 +3530,10 @@ only slightly higher initial disk space usage.
=item B<vol-clone> [I<--pool> I<pool-or-uuid>] I<vol-name-or-key-or-path>
I<name> [I<--prealloc-metadata>] [I<--reflink>]
-Clone an existing volume. Less powerful, but easier to type, version of
-B<vol-create-from>.
+Clone an existing volume within the parent pool. Less powerful,
+but easier to type, version of B<vol-create-from>.
I<--pool> I<pool-or-uuid> is the name or UUID of the storage pool to create
-the volume in.
+that contains the source volume, and will contain the new volume.
I<vol-name-or-key-or-path> is the name or key or path of the source volume.
I<name> is the name of the new volume.
[I<--prealloc-metadata>] preallocate metadata (for qcow2 images which don't
--
2.7.3
8 years, 7 months
[libvirt] [PATCH 0/3] storage: drop support for qcow-create, kvm-img
by Cole Robinson
I don't think we need to try and support qcow-create or kvm-img
binaries anymore; everywhere we care about should have a
/usr/bin/qemu-img. See patches for more details
Cole Robinson (3):
storage: remove support for /usr/bin/qcow-create
storage: remove support for /usr/bin/kvm-img
storage: drop the plumbing needed for kvm-img/qcow-create
src/qemu/qemu_domain.c | 2 +-
src/qemu/qemu_driver.c | 4 +-
src/storage/storage_backend.c | 131 ++-------------------------------------
src/storage/storage_backend.h | 9 ++-
src/storage/storage_backend_fs.c | 21 ++-----
src/util/virfile.c | 2 +-
tests/virstoragetest.c | 4 +-
7 files changed, 18 insertions(+), 155 deletions(-)
--
2.7.3
8 years, 7 months
[libvirt] [PATCH] tests: Fix enumeration value
by Andrea Bolognani
Commit 3a773c43c801 introduced the testCompareNetXML2XMLResult
enumeration; however, in one instance the result variable was
assigned a value from the very similar testCompareDocXML2XMLResult
enumeration, leading to a build error.
networkxml2xmltest.c:33:42: error:
implicit conversion from enumeration type 'testCompareDomXML2XMLResult'
to different enumeration type 'testCompareNetXML2XMLResult'
[-Werror,-Wenum-conversion]
testCompareNetXML2XMLResult result = TEST_COMPARE_DOM_XML2XML_RESULT_SUCCESS;
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Use the proper value (TEST_COMPARE_NET_XML2XML_RESULT_SUCCESS) instead.
---
Pushed as build breaker.
tests/networkxml2xmltest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/networkxml2xmltest.c b/tests/networkxml2xmltest.c
index a52b350..c069f3d 100644
--- a/tests/networkxml2xmltest.c
+++ b/tests/networkxml2xmltest.c
@@ -30,7 +30,7 @@ testCompareXMLToXMLFiles(const char *inxml, const char *outxml,
{
char *actual = NULL;
int ret;
- testCompareNetXML2XMLResult result = TEST_COMPARE_DOM_XML2XML_RESULT_SUCCESS;
+ testCompareNetXML2XMLResult result = TEST_COMPARE_NET_XML2XML_RESULT_SUCCESS;
virNetworkDefPtr dev = NULL;
if (!(dev = virNetworkDefParseFile(inxml))) {
--
2.5.5
8 years, 7 months
[libvirt] [PATCH 0/7] Probe and expose GIC capabilities
by Andrea Bolognani
Changes from [RFC]:
* Fix issues pointed out during review (see patches
1 and 2 for details)
* Add documentation
The only thing missing AFAIK is some test cases... I'm not sure
whether it's possible to include QMP replies for QEMU 2.6 even
though it hasn't been released yet, and I wouldn't know how to
generate a .replies file anyway. Any pointers?
Cheers.
[RFC] https://www.redhat.com/archives/libvir-list/2016-March/msg00956.html
Andrea Bolognani (7):
conf: Get rid of virDomainCapsDevice
qemu: Probe GIC capabilities
schema: Validate GIC capabilities
conf: Expose GIC capabilities
qemu: Fill in GIC capabilities
qemu: Cache GIC capabilities
docs: Document the new XML elements
docs/formatdomain.html.in | 3 +-
docs/formatdomaincaps.html.in | 43 ++++-
docs/schemas/domaincaps.rng | 18 ++
src/conf/domain_capabilities.c | 42 ++++-
src/conf/domain_capabilities.h | 24 +--
src/qemu/qemu_capabilities.c | 194 ++++++++++++++++++++-
src/qemu/qemu_monitor.c | 17 ++
src/qemu/qemu_monitor.h | 4 +
src/qemu/qemu_monitor_json.c | 115 ++++++++++++
src/qemu/qemu_monitor_json.h | 4 +
src/util/virgic.h | 13 ++
tests/domaincapsschemadata/domaincaps-basic.xml | 3 +
tests/domaincapsschemadata/domaincaps-full.xml | 3 +
.../domaincaps-qemu_1.6.50-1.xml | 3 +
tests/domaincapstest.c | 8 +-
15 files changed, 470 insertions(+), 24 deletions(-)
--
2.5.5
8 years, 7 months
[libvirt] [PATCH] network: Don't use ERR_NO_SUPPORT for invalid net-update requests
by Cole Robinson
VIR_ERR_NO_SUPPORT maps to the error string
this function is not supported by the connection driver
and is largely only used for when a driver doesn't have any
implementation for a public API. So its usage with invalid
net-update requests is a bit out of place. Instead use
VIR_ERR_OPERATION_UNSUPPORTED which maps to:
Operation not supported
And is what qemu's hotplug routines use in similar scenarios
---
src/conf/network_conf.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c
index 4fb2e2a..eabaccd 100644
--- a/src/conf/network_conf.c
+++ b/src/conf/network_conf.c
@@ -3376,14 +3376,14 @@ void virNetworkSetBridgeMacAddr(virNetworkDefPtr def)
static void
virNetworkDefUpdateNoSupport(virNetworkDefPtr def, const char *section)
{
- virReportError(VIR_ERR_NO_SUPPORT,
+ virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
_("can't update '%s' section of network '%s'"),
section, def->name);
}
static void
virNetworkDefUpdateUnknownCommand(unsigned int command)
{
- virReportError(VIR_ERR_NO_SUPPORT,
+ virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
_("unrecognized network update command code %d"), command);
}
@@ -3666,7 +3666,7 @@ virNetworkDefUpdateIPDHCPRange(virNetworkDefPtr def,
/* parse the xml into a virSocketAddrRange */
if (command == VIR_NETWORK_UPDATE_COMMAND_MODIFY) {
- virReportError(VIR_ERR_NO_SUPPORT, "%s",
+ virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("dhcp ranges cannot be modified, "
"only added or deleted"));
goto cleanup;
@@ -3772,7 +3772,7 @@ virNetworkDefUpdateForwardInterface(virNetworkDefPtr def,
goto cleanup;
if (command == VIR_NETWORK_UPDATE_COMMAND_MODIFY) {
- virReportError(VIR_ERR_NO_SUPPORT, "%s",
+ virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("forward interface entries cannot be modified, "
"only added or deleted"));
goto cleanup;
@@ -3973,7 +3973,7 @@ virNetworkDefUpdateDNSHost(virNetworkDefPtr def,
memset(&host, 0, sizeof(host));
if (command == VIR_NETWORK_UPDATE_COMMAND_MODIFY) {
- virReportError(VIR_ERR_NO_SUPPORT, "%s",
+ virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("DNS HOST records cannot be modified, "
"only added or deleted"));
goto cleanup;
@@ -4067,7 +4067,7 @@ virNetworkDefUpdateDNSSrv(virNetworkDefPtr def,
memset(&srv, 0, sizeof(srv));
if (command == VIR_NETWORK_UPDATE_COMMAND_MODIFY) {
- virReportError(VIR_ERR_NO_SUPPORT, "%s",
+ virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("DNS SRV records cannot be modified, "
"only added or deleted"));
goto cleanup;
@@ -4151,7 +4151,7 @@ virNetworkDefUpdateDNSTxt(virNetworkDefPtr def,
memset(&txt, 0, sizeof(txt));
if (command == VIR_NETWORK_UPDATE_COMMAND_MODIFY) {
- virReportError(VIR_ERR_NO_SUPPORT, "%s",
+ virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("DNS TXT records cannot be modified, "
"only added or deleted"));
goto cleanup;
@@ -4268,7 +4268,7 @@ virNetworkDefUpdateSection(virNetworkDefPtr def,
ret = virNetworkDefUpdateDNSSrv(def, command, parentIndex, ctxt, flags);
break;
default:
- virReportError(VIR_ERR_NO_SUPPORT, "%s",
+ virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("can't update unrecognized section of network"));
break;
}
--
2.7.3
8 years, 7 months