/** * Return total maximum possible memory size for the given VM, including hotplugged memory. * * <p>Note: backend only</p> * * @param osId id of operating system * @param compatibilityVersion version of config value to query * @return the total possible memory size with hotplug */ public static int maxMemorySizeWithHotplugInMb(int osId, Version compatibilityVersion) { final ConfigValues configValue = getMaxMemConfigValueByOsId(osId); return Config.<Integer>getValue( configValue, compatibilityVersion != null ? compatibilityVersion.getValue() : Version.getLast().getValue() ); }