Skip to content

Commit 4627398

Browse files
authored
Update QEMU to v8.2.2 (#63)
* Merge with QEMU v8.2.2
1 parent 2edf778 commit 4627398

File tree

90 files changed

+472
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+472
-230
lines changed

.gitlab-ci.d/cirrus/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ build_task:
2121
install_script:
2222
- @UPDATE_COMMAND@
2323
- @INSTALL_COMMAND@ @PKGS@
24-
- if test -n "@PYPI_PKGS@" ; then @PIP3@ install @PYPI_PKGS@ ; fi
24+
- if test -n "@PYPI_PKGS@" ; then PYLIB=$(@PYTHON@ -c 'import sysconfig; print(sysconfig.get_path("stdlib"))'); rm -f $PYLIB/EXTERNALLY-MANAGED; @PIP3@ install @PYPI_PKGS@ ; fi
2525
clone_script:
2626
- git clone --depth 100 "$CI_REPOSITORY_URL" .
2727
- git fetch origin "$CI_COMMIT_REF_NAME"

.gitlab-ci.d/windows.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
$MINGW_TARGET-libpng
8989
$MINGW_TARGET-libssh
9090
$MINGW_TARGET-libtasn1
91-
$MINGW_TARGET-libusb
9291
$MINGW_TARGET-lzo2
9392
$MINGW_TARGET-nettle
9493
$MINGW_TARGET-ninja
@@ -98,9 +97,8 @@
9897
$MINGW_TARGET-SDL2
9998
$MINGW_TARGET-SDL2_image
10099
$MINGW_TARGET-snappy
101-
$MINGW_TARGET-spice
102-
$MINGW_TARGET-usbredir
103-
$MINGW_TARGET-zstd "
100+
$MINGW_TARGET-zstd
101+
$EXTRA_PACKAGES "
104102
- Write-Output "Running build at $(Get-Date -Format u)"
105103
- $env:CHERE_INVOKING = 'yes' # Preserve the current working directory
106104
- $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
@@ -123,6 +121,8 @@ msys2-64bit:
123121
variables:
124122
MINGW_TARGET: mingw-w64-x86_64
125123
MSYSTEM: MINGW64
124+
# msys2 only ship these packages for 64-bit, not 32-bit
125+
EXTRA_PACKAGES: $MINGW_TARGET-libusb $MINGW_TARGET-usbredir $MINGW_TARGET-spice
126126
# do not remove "--without-default-devices"!
127127
# commit 9f8e6cad65a6 ("gitlab-ci: Speed up the msys2-64bit job by using --without-default-devices"
128128
# changed to compile QEMU with the --without-default-devices switch
@@ -131,11 +131,3 @@ msys2-64bit:
131131
# qTests don't run successfully with "--without-default-devices",
132132
# so let's exclude the qtests from CI for now.
133133
TEST_ARGS: --no-suite qtest
134-
135-
msys2-32bit:
136-
extends: .shared_msys2_builder
137-
variables:
138-
MINGW_TARGET: mingw-w64-i686
139-
MSYSTEM: MINGW32
140-
CONFIGURE_ARGS: --target-list=ppc64-softmmu -Ddebug=false -Doptimization=0
141-
TEST_ARGS: --no-suite qtest

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.2.1
1+
8.2.2

audio/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ endforeach
3030

3131
if dbus_display
3232
module_ss = ss.source_set()
33-
module_ss.add(when: [gio, pixman], if_true: files('dbusaudio.c'))
33+
module_ss.add(when: [gio, dbus_display1_dep, pixman],
34+
if_true: files('dbusaudio.c'))
3435
audio_modules += {'dbus': module_ss}
3536
endif
3637

block/blkio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ typedef struct {
6868
CoQueue bounce_available;
6969

7070
/* The value of the "mem-region-alignment" property */
71-
size_t mem_region_alignment;
71+
uint64_t mem_region_alignment;
7272

7373
/* Can we skip adding/deleting blkio_mem_regions? */
7474
bool needs_mem_regions;

chardev/char-socket.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ static gboolean tcp_chr_read(QIOChannel *chan, GIOCondition cond, void *opaque)
492492
s->max_size <= 0) {
493493
return TRUE;
494494
}
495-
len = sizeof(buf);
496-
if (len > s->max_size) {
497-
len = s->max_size;
495+
len = tcp_chr_read_poll(opaque);
496+
if (len > sizeof(buf)) {
497+
len = sizeof(buf);
498498
}
499499
size = tcp_chr_recv(chr, (void *)buf, len);
500500
if (size == 0 || (size == -1 && errno != EAGAIN)) {

configure

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,6 +1696,9 @@ fi
16961696
mkdir -p tests/tcg
16971697
echo "# Automatically generated by configure - do not modify" > $config_host_mak
16981698
echo "SRC_PATH=$source_path" >> $config_host_mak
1699+
if test "$plugins" = "yes" ; then
1700+
echo "CONFIG_PLUGIN=y" >> tests/tcg/$config_host_mak
1701+
fi
16991702

17001703
tcg_tests_targets=
17011704
for target in $target_list; do

contrib/vhost-user-gpu/virgl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,15 @@ virgl_get_resource_info_modifiers(uint32_t resource_id,
327327
#ifdef VIRGL_RENDERER_RESOURCE_INFO_EXT_VERSION
328328
struct virgl_renderer_resource_info_ext info_ext;
329329
ret = virgl_renderer_resource_get_info_ext(resource_id, &info_ext);
330-
if (ret < 0) {
330+
if (ret) {
331331
return ret;
332332
}
333333

334334
*info = info_ext.base;
335335
*modifiers = info_ext.modifiers;
336336
#else
337337
ret = virgl_renderer_resource_get_info(resource_id, info);
338-
if (ret < 0) {
338+
if (ret) {
339339
return ret;
340340
}
341341

@@ -372,7 +372,7 @@ virgl_cmd_set_scanout(VuGpu *g,
372372
uint64_t modifiers = 0;
373373
ret = virgl_get_resource_info_modifiers(ss.resource_id, &info,
374374
&modifiers);
375-
if (ret == -1) {
375+
if (ret) {
376376
g_critical("%s: illegal resource specified %d\n",
377377
__func__, ss.resource_id);
378378
cmd->error = VIRTIO_GPU_RESP_ERR_INVALID_RESOURCE_ID;

docs/interop/vhost-user.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ Vring descriptor indices for packed virtqueues
148148
A vring address description
149149
^^^^^^^^^^^^^^^^^^^^^^^^^^^
150150

151-
+-------+-------+------+------------+------+-----------+-----+
152-
| index | flags | size | descriptor | used | available | log |
153-
+-------+-------+------+------------+------+-----------+-----+
151+
+-------+-------+------------+------+-----------+-----+
152+
| index | flags | descriptor | used | available | log |
153+
+-------+-------+------------+------+-----------+-----+
154154

155155
:index: a 32-bit vring index
156156

docs/system/keys.rst.inc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
During the graphical emulation, you can use special key combinations to
2-
change modes. The default key mappings are shown below, but if you use
3-
``-alt-grab`` then the modifier is Ctrl-Alt-Shift (instead of Ctrl-Alt)
4-
and if you use ``-ctrl-grab`` then the modifier is the right Ctrl key
5-
(instead of Ctrl-Alt):
1+
During the graphical emulation, you can use special key combinations from
2+
the following table to change modes. By default the modifier is Ctrl-Alt
3+
(used in the table below) which can be changed with ``-display`` suboption
4+
``mod=`` where appropriate. For example, ``-display sdl,
5+
grab-mod=lshift-lctrl-lalt`` changes the modifier key to Ctrl-Alt-Shift,
6+
while ``-display sdl,grab-mod=rctrl`` changes it to the right Ctrl key.
67

78
Ctrl-Alt-f
89
Toggle full screen
@@ -28,7 +29,7 @@ Ctrl-Alt-n
2829
*3*
2930
Serial port
3031
31-
Ctrl-Alt
32+
Ctrl-Alt-g
3233
Toggle mouse and keyboard grab.
3334
3435
In the virtual consoles, you can use Ctrl-Up, Ctrl-Down, Ctrl-PageUp and

0 commit comments

Comments
 (0)