mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
parallels: fix prlsdkCheckUnsupportedParams checks
for memory limits since unset ones are no longer zero Signed-off-by: Maxim Nestratov <mnestratov@parallels.com>
This commit is contained in:
parent
1988a96e3a
commit
79265b9834
@ -1781,10 +1781,10 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDomainDefPtr def)
|
||||
}
|
||||
|
||||
if (def->mem.nhugepages ||
|
||||
def->mem.hard_limit ||
|
||||
def->mem.soft_limit ||
|
||||
virMemoryLimitIsSet(def->mem.hard_limit) ||
|
||||
virMemoryLimitIsSet(def->mem.soft_limit) ||
|
||||
def->mem.min_guarantee ||
|
||||
def->mem.swap_hard_limit) {
|
||||
virMemoryLimitIsSet(def->mem.swap_hard_limit)) {
|
||||
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("Memory parameter is not supported "
|
||||
|
Loading…
Reference in New Issue
Block a user