mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
util/oslib-win32: add qemu_get_host_physmem implementation
Compile tested only. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Stefan Weil <sw@weilnetz.de> Message-Id: <20200724064509.331-6-alex.bennee@linaro.org>
This commit is contained in:
parent
ad06ef0efb
commit
986babaab3
1 changed files with 6 additions and 1 deletions
|
@ -831,6 +831,11 @@ char *qemu_get_host_name(Error **errp)
|
||||||
|
|
||||||
size_t qemu_get_host_physmem(void)
|
size_t qemu_get_host_physmem(void)
|
||||||
{
|
{
|
||||||
/* currently unimplemented */
|
MEMORYSTATUSEX statex;
|
||||||
|
statex.dwLength = sizeof(statex);
|
||||||
|
|
||||||
|
if (GlobalMemoryStatusEx(&statex)) {
|
||||||
|
return statex.ullTotalPhys;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue