- 08 11月, 2017 14 次提交
-
-
由 Dawid Zamirski 提交于
Both vboxSnapshotGetReadWriteDisks and vboxSnapshotGetReadWriteDisks do not need to free the def->disks on cleanup because it's being done by the caller via virDomainSnaphotDefFree
-
由 Dawid Zamirski 提交于
This patch prepares the vboxSnapshotGetReadOnlyDisks and vboxSnapshotGetReadWriteDisks functions for further changes so that the code movement does not obstruct the gist of those future changes. This is done primarily because we'll need to know the type of vbox storage controller as early as possible and make decisions based on that info.
-
由 Dawid Zamirski 提交于
Because it deals with other disk types as well not just IDE. Also this function now returns -1 on error
-
由 Dawid Zamirski 提交于
-
由 Dawid Zamirski 提交于
With this patch, the vbox driver will no longer attach all supported storage controllers by default even if no disk devices are associated with them. Instead, it will attach only those that are implicitly added by virDomainDefAddImplicitController based on <disk> element or if explicitly specified via the <controller> element.
-
由 Dawid Zamirski 提交于
Since the VBOX API requires to register an initial VM before proceeding to attach any remaining devices to it, any failure to attach such devices should result in automatic cleanup of the initially registered VM so that the state of VBOX registry remains clean without any leftover "aborted" VMs in it. Failure to cleanup of such partial VMs results in a warning log so that actual define error stays on the top of the error stack.
-
由 John Ferlan 提交于
Move the structures into virstorageobj so that both are known within virstorageobj.c.
-
由 John Ferlan 提交于
Missed from merge from commit id 'b0652192' into commit id 'bfcd8fc9' were a couple of obj->def-> references.
-
由 John Ferlan 提交于
In preparation for privatizing the object, use the accessor.
-
由 John Ferlan 提交于
In preparation for privatizing the object, use the accessor.
-
由 John Ferlan 提交于
In preparation for privatizing the object, use the accessor.
-
由 John Ferlan 提交于
In preparation for privatizing the object, use the accessor.
-
由 John Ferlan 提交于
In preparation for privatizing the object, use the accessor.
-
由 John Ferlan 提交于
In preparation for privatizing the object, use the accessor.
-
- 07 11月, 2017 26 次提交
-
-
由 Christian Ehrhardt 提交于
In case ipv6 is used the network inet6 permission is required for virt-aa-helper. Signed-off-by: NChristian Ehrhardt <christian.ehrhardt@canonical.com>
-
由 Christian Ehrhardt 提交于
Since qemu 2.9 via 9103f1ce "file-posix: Consider max_segments for BlockLimits.max_transfer" this is a new access that is denied by the qemu profile. It is non fatal, but prevents the fix mentioned to actually work. It should be safe to allow reading from that path. Since qemu opens a symlink path we need to translate that for apparmor from "/sys/dev/block/*/queue/max_segments" to "/sys/devices/**/block/*/queue/max_segments" Signed-off-by: NChristian Ehrhardt <christian.ehrhardt@canonical.com>
-
由 Peter Krempa 提交于
Add a new test program called 'qemublocktest' to test the block layer related stuff and test storage source to JSON generator by comparing it to the JSON parser.
-
由 Peter Krempa 提交于
Format out the node-name if it was assigned for JSON-based storage specification.
-
由 Peter Krempa 提交于
-
由 Peter Krempa 提交于
-
由 Peter Krempa 提交于
-
由 Peter Krempa 提交于
-
由 John Ferlan 提交于
-
由 Peter Krempa 提交于
QEMU uses curl for accessing files using http(s) and ftp(s). They share common options so let's generate them in one helper.
-
由 Peter Krempa 提交于
Similarly to how we store gluster names, split the name into a pool and image portions when paring the XML and store them separately.
-
由 Peter Krempa 提交于
Libvirt historically stores storage source path including the volume as one string in the XML, but that is not really flexible enough when dealing with the fields in the code. Previously we'd store the slash separating the two as part of the image name. This was fine for gluster but it's not necessary and does not scale well when converting other protocols. Don't store the slash as part of the path. The resulting change from absolute to relative path within the gluster driver should be okay, as the root directory is the default when accessing gluster.
-
由 Peter Krempa 提交于
Extract the part formatting the basic URI part so that it can be reused to format JSON backing definitions. Parts specific to the command line format will remain in qemuBuildNetworkDriveURI. The new function is called qemuBlockStorageSourceGetURI.
-
由 Peter Krempa 提交于
Original implementation used 'SocketAddress' equivalent from qemu for the disk server field, while qemu documentation specifies 'InetSocketAddress'. The backing store parser uses the correct parsing function but the formatter used the incorrect one (and also with the legacy mode enabled which was wrong).
-
由 Peter Krempa 提交于
-
由 Peter Krempa 提交于
-
由 Peter Krempa 提交于
To allow aggregating the checks, refactor the code to check capabilities only if they were provided.
-
由 Peter Krempa 提交于
Stash all the disk definition and capability checks into one function.
-
由 Peter Krempa 提交于
To allow merging this with other disk type checks we need to check qemuCaps only when available, since some of the checks are executed on disk cold-plug and thus capabilities should not be checked. Make the checks optional by making them conditional on qemuCaps not being NULL.
-
由 Peter Krempa 提交于
All of the error message are already in a conditional block with known bus type. Inline the bus type rather than formatting it from a separate variable.
-
由 Peter Krempa 提交于
The disk index validation is used only in very specific cases and does not need to be performed otherwise. Move it out of the global check into the usage place.
-
由 Peter Krempa 提交于
busid and unitid are ever used only if the device is an SD card due to the check in qemuDiskBusNeedsDeviceArg. Since the SD card does not have an bus or unit number, most of the code and command line formatter can be removed since it will never be used.
-
由 Peter Krempa 提交于
Use the more common '< 0' rather than the non-zero check.
-
由 Michal Privoznik 提交于
In near future we will need more than just a plain VIR_STRDUP(). Better implement that in a separate function and in qemuBuildMemoryBackendStr() which is complicated enough already. Signed-off-by: NMichal Privoznik <mprivozn@redhat.com> Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
-
由 Michal Privoznik 提交于
This function works over domain definition and not domain object. Its name is thus misleading. Signed-off-by: NMichal Privoznik <mprivozn@redhat.com> Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
-
由 Nikolay Shirokovskiy 提交于
After the virNetDaemonAddServerPostExec call in virtlogd we should have netserver refcount set to 2. One goes to netdaemon servers hashtable and one goes to virt{logd,lock} own reference to netserver. Let's add the missing increment in virNetDaemonAddServerPostExec itself while holding the daemon lock. Since lockd defers management of the @srv object by the presence in the hash table, virLockDaemonNewPostExecRestart must Unref the alloc'd Ref on the @srv object done as part of virNetDaemonAddServerPostExec and virNetServerNewPostExecRestart processing. The virNetDaemonGetServer in lock_daemon main will also take a reference which is Unref'd during main cleanup.
-