Skip to content
Snippets Groups Projects
Commit 986babaa authored by Alex Bennée's avatar Alex Bennée
Browse files

util/oslib-win32: add qemu_get_host_physmem implementation


Compile tested only.

Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
Message-Id: <20200724064509.331-6-alex.bennee@linaro.org>
parent ad06ef0e
No related branches found
No related tags found
No related merge requests found
......@@ -831,6 +831,11 @@ char *qemu_get_host_name(Error **errp)
size_t qemu_get_host_physmem(void)
{
/* currently unimplemented */
MEMORYSTATUSEX statex;
statex.dwLength = sizeof(statex);
if (GlobalMemoryStatusEx(&statex)) {
return statex.ullTotalPhys;
}
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment