mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-09-13 05:44:51 +03:00
Compare commits
6 Commits
v5.0.0
...
v2.0-maint
Author | SHA1 | Date | |
---|---|---|---|
|
1e51b78a92 | ||
|
a9e40f2320 | ||
|
c998537991 | ||
|
8b7b45065e | ||
|
b9fed351d4 | ||
|
f3cac03520 |
@@ -618,6 +618,9 @@ Requires: gzip
|
|||||||
Requires: bzip2
|
Requires: bzip2
|
||||||
Requires: lzop
|
Requires: lzop
|
||||||
Requires: xz
|
Requires: xz
|
||||||
|
%if 0%{?fedora} >= 24
|
||||||
|
Requires: systemd-container
|
||||||
|
%endif
|
||||||
|
|
||||||
%description daemon-driver-qemu
|
%description daemon-driver-qemu
|
||||||
The qemu driver plugin for the libvirtd daemon, providing
|
The qemu driver plugin for the libvirtd daemon, providing
|
||||||
@@ -633,6 +636,9 @@ Group: Development/Libraries
|
|||||||
Requires: libvirt-daemon = %{version}-%{release}
|
Requires: libvirt-daemon = %{version}-%{release}
|
||||||
# There really is a hard cross-driver dependency here
|
# There really is a hard cross-driver dependency here
|
||||||
Requires: libvirt-daemon-driver-network = %{version}-%{release}
|
Requires: libvirt-daemon-driver-network = %{version}-%{release}
|
||||||
|
%if 0%{?fedora} >= 24
|
||||||
|
Requires: systemd-container
|
||||||
|
%endif
|
||||||
|
|
||||||
%description daemon-driver-lxc
|
%description daemon-driver-lxc
|
||||||
The LXC driver plugin for the libvirtd daemon, providing
|
The LXC driver plugin for the libvirtd daemon, providing
|
||||||
|
@@ -1077,9 +1077,7 @@ virDomainRestoreFlags(virConnectPtr conn, const char *from, const char *dxml,
|
|||||||
* previously by virDomainSave() or virDomainSaveFlags().
|
* previously by virDomainSave() or virDomainSaveFlags().
|
||||||
*
|
*
|
||||||
* No security-sensitive data will be included unless @flags contains
|
* No security-sensitive data will be included unless @flags contains
|
||||||
* VIR_DOMAIN_XML_SECURE; this flag is rejected on read-only
|
* VIR_DOMAIN_XML_SECURE.
|
||||||
* connections. For this API, @flags should not contain either
|
|
||||||
* VIR_DOMAIN_XML_INACTIVE or VIR_DOMAIN_XML_UPDATE_CPU.
|
|
||||||
*
|
*
|
||||||
* Returns a 0 terminated UTF-8 encoded XML instance, or NULL in case of
|
* Returns a 0 terminated UTF-8 encoded XML instance, or NULL in case of
|
||||||
* error. The caller must free() the returned value.
|
* error. The caller must free() the returned value.
|
||||||
@@ -1095,12 +1093,7 @@ virDomainSaveImageGetXMLDesc(virConnectPtr conn, const char *file,
|
|||||||
|
|
||||||
virCheckConnectReturn(conn, NULL);
|
virCheckConnectReturn(conn, NULL);
|
||||||
virCheckNonNullArgGoto(file, error);
|
virCheckNonNullArgGoto(file, error);
|
||||||
|
virCheckReadOnlyGoto(conn->flags, error);
|
||||||
if ((conn->flags & VIR_CONNECT_RO) && (flags & VIR_DOMAIN_XML_SECURE)) {
|
|
||||||
virReportError(VIR_ERR_OPERATION_DENIED, "%s",
|
|
||||||
_("virDomainSaveImageGetXMLDesc with secure flag"));
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (conn->driver->domainSaveImageGetXMLDesc) {
|
if (conn->driver->domainSaveImageGetXMLDesc) {
|
||||||
char *ret;
|
char *ret;
|
||||||
@@ -11316,6 +11309,7 @@ virConnectGetDomainCapabilities(virConnectPtr conn,
|
|||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
virCheckConnectReturn(conn, NULL);
|
virCheckConnectReturn(conn, NULL);
|
||||||
|
virCheckReadOnlyGoto(conn->flags, error);
|
||||||
|
|
||||||
if (conn->driver->connectGetDomainCapabilities) {
|
if (conn->driver->connectGetDomainCapabilities) {
|
||||||
char *ret;
|
char *ret;
|
||||||
|
@@ -1233,7 +1233,7 @@ qemuBuildDriveStr(virDomainDiskDefPtr disk,
|
|||||||
virBufferAddLit(&opt, ",");
|
virBufferAddLit(&opt, ",");
|
||||||
|
|
||||||
if (secinfo && secinfo->type == VIR_DOMAIN_SECRET_INFO_TYPE_AES) {
|
if (secinfo && secinfo->type == VIR_DOMAIN_SECRET_INFO_TYPE_AES) {
|
||||||
virBufferAsprintf(&opt, "password-secret=%s,",
|
virBufferAsprintf(&opt, "file.password-secret=%s,",
|
||||||
secinfo->s.aes.alias);
|
secinfo->s.aes.alias);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2924,6 +2924,7 @@ qemuBuildMemoryBackendStr(unsigned long long size,
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
virJSONValuePtr props = NULL;
|
virJSONValuePtr props = NULL;
|
||||||
bool nodeSpecified = virDomainNumatuneNodeSpecified(def->numa, guestNode);
|
bool nodeSpecified = virDomainNumatuneNodeSpecified(def->numa, guestNode);
|
||||||
|
bool needHugepage = !!pagesize;
|
||||||
|
|
||||||
*backendProps = NULL;
|
*backendProps = NULL;
|
||||||
*backendType = NULL;
|
*backendType = NULL;
|
||||||
@@ -2946,10 +2947,10 @@ qemuBuildMemoryBackendStr(unsigned long long size,
|
|||||||
mode = VIR_DOMAIN_NUMATUNE_MEM_STRICT;
|
mode = VIR_DOMAIN_NUMATUNE_MEM_STRICT;
|
||||||
|
|
||||||
if (pagesize == 0) {
|
if (pagesize == 0) {
|
||||||
/* Find the huge page size we want to use */
|
|
||||||
for (i = 0; i < def->mem.nhugepages; i++) {
|
|
||||||
bool thisHugepage = false;
|
bool thisHugepage = false;
|
||||||
|
|
||||||
|
/* Find the huge page size we want to use */
|
||||||
|
for (i = 0; i < def->mem.nhugepages; i++) {
|
||||||
hugepage = &def->mem.hugepages[i];
|
hugepage = &def->mem.hugepages[i];
|
||||||
|
|
||||||
if (!hugepage->nodemask) {
|
if (!hugepage->nodemask) {
|
||||||
@@ -2971,6 +2972,7 @@ qemuBuildMemoryBackendStr(unsigned long long size,
|
|||||||
|
|
||||||
if (thisHugepage) {
|
if (thisHugepage) {
|
||||||
/* Hooray, we've found the page size */
|
/* Hooray, we've found the page size */
|
||||||
|
needHugepage = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3077,7 +3079,7 @@ qemuBuildMemoryBackendStr(unsigned long long size,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If none of the following is requested... */
|
/* If none of the following is requested... */
|
||||||
if (!pagesize && !userNodeset && !memAccess && !nodeSpecified && !force) {
|
if (!needHugepage && !userNodeset && !memAccess && !nodeSpecified && !force) {
|
||||||
/* report back that using the new backend is not necessary
|
/* report back that using the new backend is not necessary
|
||||||
* to achieve the desired configuration */
|
* to achieve the desired configuration */
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
@@ -6633,7 +6633,7 @@ qemuDomainSaveImageGetXMLDesc(virConnectPtr conn, const char *path,
|
|||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (virDomainSaveImageGetXMLDescEnsureACL(conn, def, flags) < 0)
|
if (virDomainSaveImageGetXMLDescEnsureACL(conn, def) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
ret = qemuDomainDefFormatXML(driver, def, flags);
|
ret = qemuDomainDefFormatXML(driver, def, flags);
|
||||||
|
@@ -4984,8 +4984,7 @@ enum remote_procedure {
|
|||||||
/**
|
/**
|
||||||
* @generate: both
|
* @generate: both
|
||||||
* @priority: high
|
* @priority: high
|
||||||
* @acl: domain:read
|
* @acl: domain:write
|
||||||
* @acl: domain:read_secure:VIR_DOMAIN_XML_SECURE
|
|
||||||
*/
|
*/
|
||||||
REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 235,
|
REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 235,
|
||||||
|
|
||||||
|
@@ -26,6 +26,7 @@ data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
|
|||||||
keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
|
keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
|
||||||
-drive 'file=rbd:pool/image:id=myname:auth_supported=cephx\;none:\
|
-drive 'file=rbd:pool/image:id=myname:auth_supported=cephx\;none:\
|
||||||
mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,\
|
mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,\
|
||||||
password-secret=virtio-disk0-secret0,format=raw,if=none,id=drive-virtio-disk0' \
|
file.password-secret=virtio-disk0-secret0,format=raw,if=none,\
|
||||||
|
id=drive-virtio-disk0' \
|
||||||
-device virtio-blk-pci,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,\
|
-device virtio-blk-pci,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,\
|
||||||
id=virtio-disk0
|
id=virtio-disk0
|
||||||
|
@@ -10,12 +10,10 @@ QEMU_AUDIO_DRV=none \
|
|||||||
-M pc \
|
-M pc \
|
||||||
-m 1024 \
|
-m 1024 \
|
||||||
-smp 2 \
|
-smp 2 \
|
||||||
-object memory-backend-file,id=ram-node0,prealloc=yes,\
|
-mem-prealloc \
|
||||||
mem-path=/dev/hugepages2M/libvirt/qemu,size=268435456 \
|
-mem-path /dev/hugepages2M/libvirt/qemu \
|
||||||
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
-numa node,nodeid=0,cpus=0,mem=256 \
|
||||||
-object memory-backend-file,id=ram-node1,prealloc=yes,\
|
-numa node,nodeid=1,cpus=1,mem=768 \
|
||||||
mem-path=/dev/hugepages2M/libvirt/qemu,size=805306368 \
|
|
||||||
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
|
||||||
-uuid ef1bdff4-27f3-4e85-a807-5fb4d58463cc \
|
-uuid ef1bdff4-27f3-4e85-a807-5fb4d58463cc \
|
||||||
-nographic \
|
-nographic \
|
||||||
-nodefaults \
|
-nodefaults \
|
||||||
|
Reference in New Issue
Block a user