mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Move simplification variable to begining of the function
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
37e85cff06
commit
04b57b4ae1
@ -5052,6 +5052,7 @@ qemuBuildMemoryBackendStr(unsigned long long size,
|
||||
virBitmapPtr nodemask = NULL;
|
||||
int ret = -1;
|
||||
virJSONValuePtr props = NULL;
|
||||
bool nodeSpecified = virDomainNumatuneNodeSpecified(def->numa, guestNode);
|
||||
|
||||
*backendProps = NULL;
|
||||
*backendType = NULL;
|
||||
@ -5204,7 +5205,6 @@ qemuBuildMemoryBackendStr(unsigned long long size,
|
||||
}
|
||||
|
||||
if (!hugepage && !pagesize) {
|
||||
bool nodeSpecified = virDomainNumatuneNodeSpecified(def->numa, guestNode);
|
||||
|
||||
if ((userNodeset || nodeSpecified || force) &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_MEMORY_RAM)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user