1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
|
other: 0.979
instruction: 0.974
semantic: 0.967
boot: 0.947
mistranslation: 0.933
[BUG] qemu git error with virgl
Hello,
i can't start any system if i use virgl. I get the following error:
qemu-x86_64: ../ui/console.c:1791: dpy_gl_ctx_create: Assertion
`con->gl' failed.
./and.sh: line 27: 3337167 Aborted                qemu-x86_64 -m 4096
-smp cores=4,sockets=1 -cpu host -machine pc-q35-4.0,accel=kvm -device
virtio-vga,virgl=on,xres=1280,yres=800 -display sdl,gl=on -device
intel-hda,id=sound0,msi=on -device
hda-micro,id=sound0-codec0,bus=sound0.0,cad=0 -device qemu-xhci,id=xhci
-device usb-tablet,bus=xhci.0 -net
nic,macaddr=52:54:00:12:34:62,model=e1000 -net
tap,ifname=$INTERFACE,script=no,downscript=no -drive
file=/media/daten2/image/lineageos.qcow2,if=virtio,index=1,media=disk,cache=none,aio=threads
Set 'tap3' nonpersistent
i have bicected the issue:
towo:Defiant> git bisect good
b4e1a342112e50e05b609e857f38c1f2b7aafdc4 is the first bad commit
commit b4e1a342112e50e05b609e857f38c1f2b7aafdc4
Author: Paolo Bonzini <pbonzini@redhat.com>
Date:Â Â Tue Oct 27 08:44:23 2020 -0400
   vl: remove separate preconfig main_loop
   Move post-preconfig initialization to the x-exit-preconfig. If
preconfig
   is not requested, just exit preconfig mode immediately with the QMP
   command.
   As a result, the preconfig loop will run with accel_setup_post
   and os_setup_post restrictions (xen_restrict, chroot, etc.)
   already done.
   Reviewed-by: Igor Mammedov <imammedo@redhat.com>
   Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
 include/sysemu/runstate.h | 1 -
 monitor/qmp-cmds.c       | 9 -----
 softmmu/vl.c             | 95
++++++++++++++++++++---------------------------
 3 files changed, 41 insertions(+), 64 deletions(-)
Regards,
Torsten Wohlfarth
Cc'ing Gerd + patch author/reviewer.
On 1/2/21 2:11 PM, Torsten Wohlfarth wrote:
>
Hello,
>
>
i can't start any system if i use virgl. I get the following error:
>
>
qemu-x86_64: ../ui/console.c:1791: dpy_gl_ctx_create: Assertion
>
`con->gl' failed.
>
./and.sh: line 27: 3337167 Aborted                qemu-x86_64 -m 4096
>
-smp cores=4,sockets=1 -cpu host -machine pc-q35-4.0,accel=kvm -device
>
virtio-vga,virgl=on,xres=1280,yres=800 -display sdl,gl=on -device
>
intel-hda,id=sound0,msi=on -device
>
hda-micro,id=sound0-codec0,bus=sound0.0,cad=0 -device qemu-xhci,id=xhci
>
-device usb-tablet,bus=xhci.0 -net
>
nic,macaddr=52:54:00:12:34:62,model=e1000 -net
>
tap,ifname=$INTERFACE,script=no,downscript=no -drive
>
file=/media/daten2/image/lineageos.qcow2,if=virtio,index=1,media=disk,cache=none,aio=threads
>
>
Set 'tap3' nonpersistent
>
>
i have bicected the issue:
>
>
towo:Defiant> git bisect good
>
b4e1a342112e50e05b609e857f38c1f2b7aafdc4 is the first bad commit
>
commit b4e1a342112e50e05b609e857f38c1f2b7aafdc4
>
Author: Paolo Bonzini <pbonzini@redhat.com>
>
Date:Â Â Tue Oct 27 08:44:23 2020 -0400
>
>
   vl: remove separate preconfig main_loop
>
>
   Move post-preconfig initialization to the x-exit-preconfig. If
>
preconfig
>
   is not requested, just exit preconfig mode immediately with the QMP
>
   command.
>
>
   As a result, the preconfig loop will run with accel_setup_post
>
   and os_setup_post restrictions (xen_restrict, chroot, etc.)
>
   already done.
>
>
   Reviewed-by: Igor Mammedov <imammedo@redhat.com>
>
   Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
>
 include/sysemu/runstate.h | 1 -
>
 monitor/qmp-cmds.c       | 9 -----
>
 softmmu/vl.c             | 95
>
++++++++++++++++++++---------------------------
>
 3 files changed, 41 insertions(+), 64 deletions(-)
>
>
Regards,
>
>
Torsten Wohlfarth
>
>
>
On Sun, 3 Jan 2021 18:28:11 +0100
Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>
Cc'ing Gerd + patch author/reviewer.
>
>
On 1/2/21 2:11 PM, Torsten Wohlfarth wrote:
>
> Hello,
>
>
>
> i can't start any system if i use virgl. I get the following error:
>
>
>
> qemu-x86_64: ../ui/console.c:1791: dpy_gl_ctx_create: Assertion
>
> `con->gl' failed.
Does following fix issue:
[PULL 12/55] vl: initialize displays _after_ exiting preconfiguration
>
> ./and.sh: line 27: 3337167 Aborted                qemu-x86_64 -m 4096
>
> -smp cores=4,sockets=1 -cpu host -machine pc-q35-4.0,accel=kvm -device
>
> virtio-vga,virgl=on,xres=1280,yres=800 -display sdl,gl=on -device
>
> intel-hda,id=sound0,msi=on -device
>
> hda-micro,id=sound0-codec0,bus=sound0.0,cad=0 -device qemu-xhci,id=xhci
>
> -device usb-tablet,bus=xhci.0 -net
>
> nic,macaddr=52:54:00:12:34:62,model=e1000 -net
>
> tap,ifname=$INTERFACE,script=no,downscript=no -drive
>
> file=/media/daten2/image/lineageos.qcow2,if=virtio,index=1,media=disk,cache=none,aio=threads
>
>
>
> Set 'tap3' nonpersistent
>
>
>
> i have bicected the issue:
>
>
>
> towo:Defiant> git bisect good
>
> b4e1a342112e50e05b609e857f38c1f2b7aafdc4 is the first bad commit
>
> commit b4e1a342112e50e05b609e857f38c1f2b7aafdc4
>
> Author: Paolo Bonzini <pbonzini@redhat.com>
>
> Date:Â Â Tue Oct 27 08:44:23 2020 -0400
>
>
>
> Â Â Â vl: remove separate preconfig main_loop
>
>
>
> Â Â Â Move post-preconfig initialization to the x-exit-preconfig. If
>
> preconfig
>
> Â Â Â is not requested, just exit preconfig mode immediately with the QMP
>
> Â Â Â command.
>
>
>
> Â Â Â As a result, the preconfig loop will run with accel_setup_post
>
> Â Â Â and os_setup_post restrictions (xen_restrict, chroot, etc.)
>
> Â Â Â already done.
>
>
>
> Â Â Â Reviewed-by: Igor Mammedov <imammedo@redhat.com>
>
> Â Â Â Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
>
>
> Â include/sysemu/runstate.h |Â 1 -
>
>  monitor/qmp-cmds.c       | 9 -----
>
>  softmmu/vl.c             | 95
>
> ++++++++++++++++++++---------------------------
>
> Â 3 files changed, 41 insertions(+), 64 deletions(-)
>
>
>
> Regards,
>
>
>
> Torsten Wohlfarth
>
>
>
>
>
>
>
>
Hi Igor,
yes, that fixes my issue.
Regards, Torsten
Am 04.01.21 um 19:50 schrieb Igor Mammedov:
On Sun, 3 Jan 2021 18:28:11 +0100
Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
Cc'ing Gerd + patch author/reviewer.
On 1/2/21 2:11 PM, Torsten Wohlfarth wrote:
Hello,
i can't start any system if i use virgl. I get the following error:
qemu-x86_64: ../ui/console.c:1791: dpy_gl_ctx_create: Assertion
`con->gl' failed.
Does following fix issue:
[PULL 12/55] vl: initialize displays _after_ exiting preconfiguration
./and.sh: line 27: 3337167 Aborted                qemu-x86_64 -m 4096
-smp cores=4,sockets=1 -cpu host -machine pc-q35-4.0,accel=kvm -device
virtio-vga,virgl=on,xres=1280,yres=800 -display sdl,gl=on -device
intel-hda,id=sound0,msi=on -device
hda-micro,id=sound0-codec0,bus=sound0.0,cad=0 -device qemu-xhci,id=xhci
-device usb-tablet,bus=xhci.0 -net
nic,macaddr=52:54:00:12:34:62,model=e1000 -net
tap,ifname=$INTERFACE,script=no,downscript=no -drive
file=/media/daten2/image/lineageos.qcow2,if=virtio,index=1,media=disk,cache=none,aio=threads
Set 'tap3' nonpersistent
i have bicected the issue:
towo:Defiant> git bisect good
b4e1a342112e50e05b609e857f38c1f2b7aafdc4 is the first bad commit
commit b4e1a342112e50e05b609e857f38c1f2b7aafdc4
Author: Paolo Bonzini <pbonzini@redhat.com>
Date:Â Â Tue Oct 27 08:44:23 2020 -0400
   vl: remove separate preconfig main_loop
   Move post-preconfig initialization to the x-exit-preconfig. If
preconfig
   is not requested, just exit preconfig mode immediately with the QMP
   command.
   As a result, the preconfig loop will run with accel_setup_post
   and os_setup_post restrictions (xen_restrict, chroot, etc.)
   already done.
   Reviewed-by: Igor Mammedov <imammedo@redhat.com>
   Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
 include/sysemu/runstate.h | 1 -
 monitor/qmp-cmds.c       | 9 -----
 softmmu/vl.c             | 95
++++++++++++++++++++---------------------------
 3 files changed, 41 insertions(+), 64 deletions(-)
Regards,
Torsten Wohlfarth
|