Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.toolbox
Commits
3b2ca6a5
Commit
3b2ca6a5
authored
Jun 24, 2021
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qemuqmpclient: Support qemu 5.x+
pc.ram key is used for the initial memory, and it can't be removed.
parent
597ad67a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
slapos/qemuqmpclient/__init__.py
slapos/qemuqmpclient/__init__.py
+3
-1
No files found.
slapos/qemuqmpclient/__init__.py
View file @
3b2ca6a5
...
...
@@ -530,7 +530,9 @@ class QemuQMPWrapper(object):
current_memdev_list
=
self
.
_send
({
"execute"
:
"query-memdev"
},
retry
=
5
)
for
memdev
in
current_memdev_list
[
'return'
]:
cleanup_memdev_id_dict
[
memdev
[
'id'
]]
=
''
# qemu 5.x+ reports init memory static memory as pc.ram
if
memdev
[
'id'
]
!=
'pc.ram'
:
cleanup_memdev_id_dict
[
memdev
[
'id'
]]
=
''
for
dimm
in
current_dimm_list
[
'return'
]:
current_size
+=
dimm
[
'data'
][
'size'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment