Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vmine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pipelines
tools
vmine
Merge requests
!13
ci: work around qemu hang
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
ci: work around qemu hang
virt-sparsify-debug
into
master
Overview
1
Commits
1
Pipelines
2
Changes
2
Closed
godog
requested to merge
virt-sparsify-debug
into
master
1 year ago
Overview
1
Commits
1
Pipelines
2
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
747d049c
1 commit,
1 year ago
2 files
+
18
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
aux/qemu.py
0 → 100755
+
17
−
0
Options
#!/usr/bin/python3
# On recent kernels it seems -machine accel=kvm makes qemu hang with nested
# kvm_amd. Thus wrap qemu and strip the parameter as needed.
import
os
import
sys
args
=
sys
.
argv
[:]
# only strip -machine when actually booting, not for other operations e.g.
# probing capabilities by libguestfs
if
'
-machine
'
in
args
and
'
-append
'
in
args
:
idx
=
args
.
index
(
'
-machine
'
)
del
args
[
idx
]
del
args
[
idx
]
os
.
execve
(
'
/usr/bin/qemu-system-x86_64
'
,
args
,
os
.
environ
)
Loading