Omer Frenkel has uploaded a new change for review. Change subject: core: add configuraion for hot plug memory ......................................................................
core: add configuraion for hot plug memory this patch just add the configuration for hot plug memory support. Change-Id: Iff5ca4b827ff8bbcdc1417677e98f908ac60fbc9 Signed-off-by: Omer Frenkel <[email protected]> --- M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java M packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql 3 files changed, 19 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/38/41138/1 diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java index 0a1d901..51c6db8 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java @@ -266,6 +266,14 @@ return supportedInConfig(ConfigValues.HotUnplugCpuSupported, version, arch); } + public static boolean hotPlugMemory(Version version, ArchitectureType arch) { + return supportedInConfig(ConfigValues.HotPlugMemorySupported, version, arch); + } + + public static boolean hotUnplugMemory(Version version, ArchitectureType arch) { + return supportedInConfig(ConfigValues.HotUnplugMemorySupported, version, arch); + } + /** * @param version * Compatibility version to check for. diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java index b2c33be..68a206a 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java @@ -1823,6 +1823,14 @@ @DefaultValueAttribute("{\"x86_64\":\"false\",\"ppc64\":\"false\"}") HotUnplugCpuSupported, + @TypeConverterAttribute(Map.class) + @DefaultValueAttribute("{\"x86_64\":\"true\",\"ppc64\":\"false\"}") + HotPlugMemorySupported, + + @TypeConverterAttribute(Map.class) + @DefaultValueAttribute("{\"x86_64\":\"false\",\"ppc64\":\"false\"}") + HotUnplugMemorySupported, + @TypeConverterAttribute(String.class) @DefaultValueAttribute("") ChangePasswordMsg, diff --git a/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql b/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql index 03a1d2d..09df3df 100644 --- a/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql +++ b/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql @@ -200,6 +200,9 @@ select fn_db_add_config_value_for_versions_up_to('HotPlugCpuSupported', '{"x86_64":"false","ppc64":"false"}', '3.3'); select fn_db_add_config_value_for_versions_up_to('HotPlugCpuSupported', '{"x86_64":"true","ppc64":"false"}', '3.6'); select fn_db_add_config_value_for_versions_up_to('HotUnplugCpuSupported', '{"x86_64":"false","ppc64":"false"}', '3.6'); +select fn_db_add_config_value_for_versions_up_to('HotPlugMemorySupported', '{"x86_64":"false","ppc64":"false"}', '3.5'); +select fn_db_add_config_value_for_versions_up_to('HotUnplugMemorySupported', '{"x86_64":"false","ppc64":"false"}', '3.6'); + -- migration support per architecture select fn_db_add_config_value('IsMigrationSupported','{"undefined": "true", "x86_64": "true", "ppc64" : "true" }','general'); -- snapshot support per architecture -- To view, visit https://gerrit.ovirt.org/41138 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iff5ca4b827ff8bbcdc1417677e98f908ac60fbc9 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Omer Frenkel <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
