qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 0038e9: Call qemu_socketpair() instead of soc


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 0038e9: Call qemu_socketpair() instead of socketpair() whe...
Date: Thu, 19 Jan 2023 10:57:59 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 0038e9a22619387a905b57888fb34c5d8ece720e
      
https://github.com/qemu/qemu/commit/0038e9a22619387a905b57888fb34c5d8ece720e
  Author: Guoyi Tu <tugy@chinatelecom.cn>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M backends/tpm/tpm_emulator.c
    M tests/qtest/dbus-display-test.c
    M tests/qtest/migration-test.c
    M tests/unit/test-crypto-tlssession.c
    M tests/unit/test-io-channel-tls.c

  Log Message:
  -----------
  Call qemu_socketpair() instead of socketpair() when possible

As qemu_socketpair() was introduced in commit 3c63b4e9
("oslib-posix: Introduce qemu_socketpair()"), it's time
to replace the other existing socketpair() calls with
qemu_socketpair() if possible

Signed-off-by: Guoyi Tu <tugy@chinatelecom.cn>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <cd28916a-f1f3-b54e-6ade-8a3647c3a9a5@chinatelecom.cn>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 9815d8839a62603ab2adce58dcc5e4bcc8f9a1ce
      
https://github.com/qemu/qemu/commit/9815d8839a62603ab2adce58dcc5e4bcc8f9a1ce
  Author: Philippe Mathieu-Daudé <philmd@linaro.org>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/display/meson.build

  Log Message:
  -----------
  hw/display: Move omap_lcdc.c out of target-specific source set

While only used by the ARM targets, this device can be built
once for all.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221209170042.71169-2-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230112134928.1026006-2-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: d9e2d244c77b3aa4a5ba8ad778019354849e018d
      
https://github.com/qemu/qemu/commit/d9e2d244c77b3aa4a5ba8ad778019354849e018d
  Author: Philippe Mathieu-Daudé <philmd@linaro.org>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/intc/meson.build

  Log Message:
  -----------
  hw/intc: Move some files out of the target-specific source set

The Goldfish interrupt controller is not target specific.

While the Exynos interrupt combiner is only used by the ARM
targets, we can build this device once for all.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221209170042.71169-3-philmd@linaro.org>
[thuth: Change patch title, and also move 'exynos4210_gic.c']
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230112134928.1026006-3-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: ef5c8d0bdf681a843d1b788dc462e5c1404b1580
      
https://github.com/qemu/qemu/commit/ef5c8d0bdf681a843d1b788dc462e5c1404b1580
  Author: Philippe Mathieu-Daudé <philmd@linaro.org>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/tpm/meson.build

  Log Message:
  -----------
  hw/tpm: Move tpm_ppi.c out of target-specific source set

The TPM Physical Presence Interface is not target specific.
Build this file once for all targets.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221209170042.71169-4-philmd@linaro.org>
[thuth: Drop the CONFIG_SOFTMMU statements, they are not needed here]
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230112134928.1026006-4-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: fbdefc85df6db6a15c57733317fd7f7b87d152da
      
https://github.com/qemu/qemu/commit/fbdefc85df6db6a15c57733317fd7f7b87d152da
  Author: Philippe Mathieu-Daudé <philmd@linaro.org>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/arm/meson.build

  Log Message:
  -----------
  hw/arm: Move various units to softmmu_ss[]

arm_ss[] units are built twice: once for 32-bit word size and
once for 64-bit. The following units don't require any word
size knowledge and can be moved to softmmu_ss[] (where they
are built once):

 - smmu-common.c
 - exynos4_boards.c
 - bcm2835_peripherals.c
 - tosa.c

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230110164406.94366-2-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230112134928.1026006-5-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: fb73eec46bdbfad0977b9a46f102a53e9083599c
      
https://github.com/qemu/qemu/commit/fb73eec46bdbfad0977b9a46f102a53e9083599c
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/cpu/meson.build

  Log Message:
  -----------
  hw/cpu: Mark arm11 and realview mpcore as target-independent code

Seems like there is nothing target-specific in here, so these files
can be moved to softmmu_ss to avoid that they get compiled twice
(once for qemu-system-arm and once for qemu-system-aarch64).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230112134928.1026006-6-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 550174d629e505f087124ebcb935c83fc205fdc7
      
https://github.com/qemu/qemu/commit/550174d629e505f087124ebcb935c83fc205fdc7
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/intc/meson.build

  Log Message:
  -----------
  hw/intc: Mark more interrupt-controller files as target independent

Seems like there is also nothing target-specific in here, so these
files can be moved to softmmu_ss to avoid that they get compiled
twice (once for qemu-system-arm and once for qemu-system-aarch64).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230112134928.1026006-7-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: a48f692929828212f75eb6e8d11bbb6cdffad153
      
https://github.com/qemu/qemu/commit/a48f692929828212f75eb6e8d11bbb6cdffad153
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/usb/meson.build

  Log Message:
  -----------
  hw/usb: Mark the XLNX_VERSAL-related files as target-independent

Seems like there is nothing target-specific in here, so these files
can be moved to softmmu_ss to avoid that they get compiled twice
(once for qemu-system-arm and once for qemu-system-aarch64).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230112134928.1026006-8-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 6eb71c6a1e917f3a6ece71593ff44de6eae8bba9
      
https://github.com/qemu/qemu/commit/6eb71c6a1e917f3a6ece71593ff44de6eae8bba9
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M tests/qtest/test-hmp.c

  Log Message:
  -----------
  tests/qtest/test-hmp: Improve the check for verbose mode

Running the test-hmp with V=2 up to V=9 runs the test in verbose mode,
but running for example with V=10 falls back to non-verbose mode ...
Improve this oddity by properly treating the argument as a number.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230109101306.271444-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 09aa7be196ebd94d68dc06c62fdcea040e2bd196
      
https://github.com/qemu/qemu/commit/09aa7be196ebd94d68dc06c62fdcea040e2bd196
  Author: Philippe Mathieu-Daudé <philmd@linaro.org>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/i386/pc.c
    M hw/pci-host/i440fx.c
    M hw/pci-host/q35.c
    M include/hw/i386/pc.h

  Log Message:
  -----------
  hw/i386/pc: Remove unused 'owner' argument from pc_pci_as_mapping_init

This argument was added 9 years ago in commit 83d08f2673
("pc: map PCI address space as catchall region for not mapped
addresses") and has never been used since, so remove it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20230105173826.56748-1-philmd@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: daa500cab6a4f8fdaa1a0689a5d39a6b67213801
      
https://github.com/qemu/qemu/commit/daa500cab6a4f8fdaa1a0689a5d39a6b67213801
  Author: Marc-André Lureau <marcandre.lureau@redhat.com>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/usb/ccid-card-emulated.c

  Log Message:
  -----------
  ccid-card-emulated: fix cast warning/error

../hw/usb/ccid-card-emulated.c: In function 'handle_apdu_thread':
../hw/usb/ccid-card-emulated.c:251:24: error: cast from pointer to integer of 
different size [-Werror=pointer-to-int-cast]
  251 |                 assert((unsigned long)event > 1000);

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230103110814.3726795-2-marcandre.lureau@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 31c4b6fb0293e359f9ef8a61892667e76eea4c99
      
https://github.com/qemu/qemu/commit/31c4b6fb0293e359f9ef8a61892667e76eea4c99
  Author: Yuval Shaia <yuval.shaia.ml@gmail.com>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/rdma/vmw/pvrdma_cmd.c

  Log Message:
  -----------
  hw/pvrdma: Protect against buggy or malicious guest driver

Guest driver might execute HW commands when shared buffers are not yet
allocated.
This could happen on purpose (malicious guest) or because of some other
guest/host address mapping error.
We need to protect againts such case.

Fixes: CVE-2022-1050

Reported-by: Raven <wxhusst@gmail.com>
Signed-off-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Message-Id: <20220403095234.2210-1-yuval.shaia.ml@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: f0376c3f0fc37912d068ab26fc24af77c60d6e77
      
https://github.com/qemu/qemu/commit/f0376c3f0fc37912d068ab26fc24af77c60d6e77
  Author: Michael Tokarev <mjt@tls.msk.ru>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M hw/cxl/cxl-cdat.c

  Log Message:
  -----------
  hw/cxl/cxl-cdat.c: spelling: missmatch

Introduced by: aba578bdace5303a441f8a37aad781b5cb06f38c

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221215123749.1026775-1-mjt@msgid.tls.msk.ru>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: f99ad11cd193f21d8740ca836e2d84315171aefd
      
https://github.com/qemu/qemu/commit/f99ad11cd193f21d8740ca836e2d84315171aefd
  Author: Hoa Nguyen <hoanguyen@ucdavis.edu>
  Date:   2023-01-17 (Tue, 17 Jan 2023)

  Changed paths:
    M hw/cxl/cxl-host.c

  Log Message:
  -----------
  hw/cxl/cxl-host: Fix an error message typo

Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221127032220.2649-1-hoanguyen@ucdavis.edu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: b93b3cb1bb72f313d8c33791e0a82a25da780cf0
      
https://github.com/qemu/qemu/commit/b93b3cb1bb72f313d8c33791e0a82a25da780cf0
  Author: Michael Tokarev <mjt@tls.msk.ru>
  Date:   2023-01-17 (Tue, 17 Jan 2023)

  Changed paths:
    M hw/ssi/sifive_spi.c

  Log Message:
  -----------
  hw/ssi/sifive_spi.c: spelling: reigster

Fixes: 0694dabe9763847f3010b54ab3ec7d367d2f0ff0
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Message-Id: <20221105115329.306527-1-mjt@msgid.tls.msk.ru>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 239b8b0699a222fd21da1c5fdeba0a2456085a47
      
https://github.com/qemu/qemu/commit/239b8b0699a222fd21da1c5fdeba0a2456085a47
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2023-01-19 (Thu, 19 Jan 2023)

  Changed paths:
    M backends/tpm/tpm_emulator.c
    M hw/arm/meson.build
    M hw/cpu/meson.build
    M hw/cxl/cxl-cdat.c
    M hw/cxl/cxl-host.c
    M hw/display/meson.build
    M hw/i386/pc.c
    M hw/intc/meson.build
    M hw/pci-host/i440fx.c
    M hw/pci-host/q35.c
    M hw/rdma/vmw/pvrdma_cmd.c
    M hw/ssi/sifive_spi.c
    M hw/tpm/meson.build
    M hw/usb/ccid-card-emulated.c
    M hw/usb/meson.build
    M include/hw/i386/pc.h
    M tests/qtest/dbus-display-test.c
    M tests/qtest/migration-test.c
    M tests/qtest/test-hmp.c
    M tests/unit/test-crypto-tlssession.c
    M tests/unit/test-io-channel-tls.c

  Log Message:
  -----------
  Merge tag 'trivial-branch-for-8.0-pull-request' of 
https://gitlab.com/laurent_vivier/qemu into staging

trivial branch pull request 20230118

# -----BEGIN PGP SIGNATURE-----
#
# iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmPHpRASHGxhdXJlbnRA
# dml2aWVyLmV1AAoJEPMMOL0/L748fwEP+wTA6dBYqRnZMCPEkk6yy0nSVr6GF8FA
# i9JrUbRuBf8WT2RAFJEwOyACTaYgCwqU9tu6UxG2ekGfGDtR84HH1yozTAbBuPct
# qoT/cvrQ0/Nfymw1Ia1vH5D6EQiAn+j6/1C41PEHvqTQBMe8E4U8jDIwbXTaJS7j
# QSUDplRfCbSBXQ9ctFrcD6XxX06dj4U9l8L4gl5Uc4B1OmFacyJnfzMIyVRTIhvF
# S4sKB/8B36emFITw/gk+MW5HnBgjEIWvZjof71eglMqo79jmacGeOe8NQi1+ApQ1
# lVmllKewdgLHVwdOGVX4dCJQdhSL/7DjreqtKGrUmhZfJdmCWJdl3jVWqhr4lfME
# U7ytd68iLdKgfKqepc3+WbhA8pWT+brPVpTU9hq17DsNJqeZa6628OguDEtjz9dP
# 4Y4XFZMxFadYl4YaCpGzTN1tqsrO8Ct+Kvq/90nt5FUeTX+i+/WM/9XXNf9MD4VS
# OVCwHXCa4yHMMq2LGV0sWaL7vSI26lv0asKtalAelbVZhVyB1kSZfde2rZXuhoD5
# S2d9x2bcFG6WNlDfyaANkCKyHlxUaOroQVE+y0SqgtaC2oPhuXtG6fusiyvjG9+l
# 9O6jy87e4uR+Xach6MmybMjiPDi0VMvPayVz3BR/6hBZZB/GkLO1OmNQcZiXcbOd
# yROzKPmyZ/q+
# =35x0
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 18 Jan 2023 07:51:44 GMT
# gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
# gpg:                issuer "laurent@vivier.eu"
# gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
# gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
# gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" 
[full]
# Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C

* tag 'trivial-branch-for-8.0-pull-request' of 
https://gitlab.com/laurent_vivier/qemu:
  hw/ssi/sifive_spi.c: spelling: reigster
  hw/cxl/cxl-host: Fix an error message typo
  hw/cxl/cxl-cdat.c: spelling: missmatch
  hw/pvrdma: Protect against buggy or malicious guest driver
  ccid-card-emulated: fix cast warning/error
  hw/i386/pc: Remove unused 'owner' argument from pc_pci_as_mapping_init
  tests/qtest/test-hmp: Improve the check for verbose mode
  hw/usb: Mark the XLNX_VERSAL-related files as target-independent
  hw/intc: Mark more interrupt-controller files as target independent
  hw/cpu: Mark arm11 and realview mpcore as target-independent code
  hw/arm: Move various units to softmmu_ss[]
  hw/tpm: Move tpm_ppi.c out of target-specific source set
  hw/intc: Move some files out of the target-specific source set
  hw/display: Move omap_lcdc.c out of target-specific source set
  Call qemu_socketpair() instead of socketpair() when possible

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Compare: https://github.com/qemu/qemu/compare/ef4f031fab7b...239b8b0699a2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]