Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libguestfs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
libguestfs
Commits
0059fb6c
Commit
0059fb6c
authored
Jun 20, 2020
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QEMU KVM runs only with host CPU
parent
fa1defe9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Makefile
Makefile
+1
-0
libguestfs-1.42.0-cpu_host.patch
libguestfs-1.42.0-cpu_host.patch
+11
-0
No files found.
Makefile
View file @
0059fb6c
...
...
@@ -13,6 +13,7 @@ all:
tar
xf
libguestfs-1.42.0.tar.gz
patch
-Np1
-d
libguestfs-1.42.0
<
libguestfs-1.42.0-certo.patch
patch
-Np1
-d
libguestfs-1.42.0
<
libguestfs-1.42.0-cpu_host.patch
patch
-Np1
-d
libguestfs-1.42.0
<
libguestfs-1.42.0-mlv2v.patch
cd
libguestfs-1.42.0
&&
./configure
--prefix
=
/usr
--with-extra-packages
=
"glibc readline ncurses util-linux xz pcre zlib systemd iproute2 libcap jansson augeas hivex libtirpc parted mdadm libaio cryptsetup popt openssl json-c cdrkit gptfdisk gcc"
$(MAKE)
-C
libguestfs-1.42.0
...
...
libguestfs-1.42.0-cpu_host.patch
0 → 100644
View file @
0059fb6c
diff -uNr libguestfs-1.42.0/lib/qemu.c libguestfs-1.42.0-cpu_host/lib/qemu.c
--- libguestfs-1.42.0/lib/qemu.c 2020-03-06 19:31:08.173077897 +0000
+++ libguestfs-1.42.0-cpu_host/lib/qemu.c 2020-06-19 15:26:17.305478459 +0000
@@ -576,6 +576,7 @@
#endif
"accel=kvm:tcg");
guestfs_int_cmd_add_string_unquoted (cmd, " -qmp stdio");
+ guestfs_int_cmd_add_string_unquoted (cmd, " -cpu host");
guestfs_int_cmd_clear_capture_errors (cmd);
fd = guestfs_int_cmd_pipe_run (cmd, "r");
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