Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/qemu/
Date: Tue, 06 Oct 2020 08:26:45
Message-Id: 1601972796.8bf80111ae3a9c73b916ce195731ed65090ac694.slyfox@gentoo
1 commit: 8bf80111ae3a9c73b916ce195731ed65090ac694
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 6 08:25:50 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 6 08:26:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bf80111
7
8 app-emulation/qemu: drop USE=tci
9
10 TCG interpreter (TCI) has a few limitations:
11 - it does not support FPU
12 - it's generally slower on non-self-modifying code
13
14 It's advantage is support for host architectures
15 where native codegeneration is not implemented.
16 Gentoo has qemu keyworded only on targets with
17 native code generation available. Avoid the interpreter.
18
19 Reported-by: Kent Fredric
20 Closes: https://bugs.gentoo.org/746752
21 Package-Manager: Portage-3.0.8, Repoman-3.0.1
22 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
23
24 app-emulation/qemu/metadata.xml | 1 -
25 app-emulation/qemu/qemu-5.1.0-r1.ebuild | 13 +++++++++++--
26 app-emulation/qemu/qemu-5.1.0.ebuild | 13 +++++++++++--
27 app-emulation/qemu/qemu-9999.ebuild | 13 +++++++++++--
28 4 files changed, 33 insertions(+), 7 deletions(-)
29
30 diff --git a/app-emulation/qemu/metadata.xml b/app-emulation/qemu/metadata.xml
31 index 465aadf67d4..930ce279794 100644
32 --- a/app-emulation/qemu/metadata.xml
33 +++ b/app-emulation/qemu/metadata.xml
34 @@ -48,7 +48,6 @@
35 <flag name="static-user">Build the User targets as static binaries</flag>
36 <flag name="static">Build the User and Software MMU (system) targets as well as tools as static binaries</flag>
37 <flag name="systemtap">Enable SystemTAP/DTrace tracing</flag>
38 - <flag name="tci">Enable the TCG Interpreter which can speed up or slowdown workloads depending on the host and guest CPUs being emulated. In the future it will be a runtime option but for now its compile time.</flag>
39 <flag name="jemalloc">Enable jemalloc allocator support</flag>
40 <flag name="jpeg">Enable jpeg image support for the VNC console server</flag>
41 <flag name="png">Enable png image support for the VNC console server</flag>
42
43 diff --git a/app-emulation/qemu/qemu-5.1.0-r1.ebuild b/app-emulation/qemu/qemu-5.1.0-r1.ebuild
44 index 6c6c19919a6..b1292bb4dbd 100644
45 --- a/app-emulation/qemu/qemu-5.1.0-r1.ebuild
46 +++ b/app-emulation/qemu/qemu-5.1.0-r1.ebuild
47 @@ -39,7 +39,7 @@ IUSE="accessibility +aio alsa bzip2 capstone +caps +curl debug doc
48 ncurses nfs nls numa opengl +oss +pin-upstream-blobs
49 plugins +png pulseaudio python rbd sasl +seccomp sdl sdl-image selinux
50 +slirp
51 - smartcard snappy spice ssh static static-user systemtap tci test usb
52 + smartcard snappy spice ssh static static-user systemtap test usb
53 usbredir vde +vhost-net vhost-user-fs virgl virtfs +vnc vte xattr xen
54 xfs +xkb zstd"
55
56 @@ -419,6 +419,16 @@ qemu_src_configure() {
57 --disable-containers # bug #732972
58 --disable-guest-agent
59 --disable-strip
60 +
61 + # bug #746752: TCG interpreter has a few limitations:
62 + # - it does not support FPU
63 + # - it's generally slower on non-self-modifying code
64 + # It's advantage is support for host architectures
65 + # where native codegeneration is not implemented.
66 + # Gentoo has qemu keyworded only on targets with
67 + # native code generation available. Avoid the interpreter.
68 + --disable-tcg-interpreter
69 +
70 --disable-werror
71 # We support gnutls/nettle for crypto operations. It is possible
72 # to use gcrypt when gnutls/nettle are disabled (but not when they
73 @@ -433,7 +443,6 @@ qemu_src_configure() {
74 $(use_enable debug debug-tcg)
75 $(use_enable doc docs)
76 $(use_enable plugins)
77 - $(use_enable tci tcg-interpreter)
78 $(use_enable xattr attr)
79 )
80
81
82 diff --git a/app-emulation/qemu/qemu-5.1.0.ebuild b/app-emulation/qemu/qemu-5.1.0.ebuild
83 index 526069649ec..2ba4d0fe944 100644
84 --- a/app-emulation/qemu/qemu-5.1.0.ebuild
85 +++ b/app-emulation/qemu/qemu-5.1.0.ebuild
86 @@ -39,7 +39,7 @@ IUSE="accessibility +aio alsa bzip2 capstone +caps +curl debug doc
87 ncurses nfs nls numa opengl +oss +pin-upstream-blobs
88 plugins +png pulseaudio python rbd sasl +seccomp sdl sdl-image selinux
89 +slirp
90 - smartcard snappy spice ssh static static-user systemtap tci test usb
91 + smartcard snappy spice ssh static static-user systemtap test usb
92 usbredir vde +vhost-net vhost-user-fs virgl virtfs +vnc vte xattr xen
93 xfs +xkb zstd"
94
95 @@ -418,6 +418,16 @@ qemu_src_configure() {
96 --disable-containers # bug #732972
97 --disable-guest-agent
98 --disable-strip
99 +
100 + # bug #746752: TCG interpreter has a few limitations:
101 + # - it does not support FPU
102 + # - it's generally slower on non-self-modifying code
103 + # It's advantage is support for host architectures
104 + # where native codegeneration is not implemented.
105 + # Gentoo has qemu keyworded only on targets with
106 + # native code generation available. Avoid the interpreter.
107 + --disable-tcg-interpreter
108 +
109 --disable-werror
110 # We support gnutls/nettle for crypto operations. It is possible
111 # to use gcrypt when gnutls/nettle are disabled (but not when they
112 @@ -432,7 +442,6 @@ qemu_src_configure() {
113 $(use_enable debug debug-tcg)
114 $(use_enable doc docs)
115 $(use_enable plugins)
116 - $(use_enable tci tcg-interpreter)
117 $(use_enable xattr attr)
118 )
119
120
121 diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild
122 index c46858db497..bcd7de23167 100644
123 --- a/app-emulation/qemu/qemu-9999.ebuild
124 +++ b/app-emulation/qemu/qemu-9999.ebuild
125 @@ -41,7 +41,7 @@ IUSE="accessibility +aio alsa bzip2 capstone +caps +curl debug doc
126 ncurses nfs nls numa opengl +oss +pin-upstream-blobs
127 plugins +png pulseaudio python rbd sasl +seccomp sdl sdl-image selinux
128 +slirp
129 - smartcard snappy spice ssh static static-user systemtap tci test usb
130 + smartcard snappy spice ssh static static-user systemtap test usb
131 usbredir vde +vhost-net vhost-user-fs virgl virtfs +vnc vte xattr xen
132 xfs +xkb zstd"
133
134 @@ -417,6 +417,16 @@ qemu_src_configure() {
135 --disable-containers # bug #732972
136 --disable-guest-agent
137 --disable-strip
138 +
139 + # bug #746752: TCG interpreter has a few limitations:
140 + # - it does not support FPU
141 + # - it's generally slower on non-self-modifying code
142 + # It's advantage is support for host architectures
143 + # where native codegeneration is not implemented.
144 + # Gentoo has qemu keyworded only on targets with
145 + # native code generation available. Avoid the interpreter.
146 + --disable-tcg-interpreter
147 +
148 --disable-werror
149 # We support gnutls/nettle for crypto operations. It is possible
150 # to use gcrypt when gnutls/nettle are disabled (but not when they
151 @@ -431,7 +441,6 @@ qemu_src_configure() {
152 $(use_enable debug debug-tcg)
153 $(use_enable doc docs)
154 $(use_enable plugins)
155 - $(use_enable tci tcg-interpreter)
156 $(use_enable xattr attr)
157 )