Remove artificial minimum limit for guest memory

Remove the artificial minimum of 4096 KB for guest memory. It's drivers'
job to set the limit if needed.
This commit is contained in:
Jiri Denemark 2011-04-21 12:06:41 +02:00
parent 41461ff7f7
commit 068add8ea9

View File

@ -2738,7 +2738,7 @@ virDomainSetMaxMemory(virDomainPtr domain, unsigned long memory)
virLibDomainError(VIR_ERR_OPERATION_DENIED, __FUNCTION__);
goto error;
}
if (memory < 4096) {
if (!memory) {
virLibDomainError(VIR_ERR_INVALID_ARG, __FUNCTION__);
goto error;
}
@ -2792,7 +2792,7 @@ virDomainSetMemory(virDomainPtr domain, unsigned long memory)
virLibDomainError(VIR_ERR_OPERATION_DENIED, __FUNCTION__);
goto error;
}
if (memory < 4096) {
if (!memory) {
virLibDomainError(VIR_ERR_INVALID_ARG, __FUNCTION__);
goto error;
}
@ -2861,7 +2861,7 @@ virDomainSetMemoryFlags(virDomainPtr domain, unsigned long memory,
goto error;
}
if (memory < 4096) {
if (!memory) {
virLibDomainError(VIR_ERR_INVALID_ARG, __FUNCTION__);
goto error;
}