提交 cce282fe 编写于 作者: M Michal Privoznik

qemuBuildMemoryBackendStr: Check for @memAccess properly

Even though this variable contains just values from an enum where
zero has the usual meaning, it's enum after all and we should
check it as such.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 4346c9eb
......@@ -3371,7 +3371,8 @@ qemuBuildMemoryBackendStr(unsigned long long size,
}
/* If none of the following is requested... */
if (!needHugepage && !userNodeset && !memAccess && !nodeSpecified &&
if (!needHugepage && !userNodeset && !nodeSpecified &&
memAccess == VIR_DOMAIN_MEMORY_ACCESS_DEFAULT &&
def->mem.source != VIR_DOMAIN_MEMORY_SOURCE_FILE && !force) {
/* report back that using the new backend is not necessary
* to achieve the desired configuration */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册