doc updates and CentOS 7 removal
Subsystems (5)
Hi Peter!
The following changes since commit 52848929b70dcf92a68aedcfd90207be81ba3274:
Merge remote-tracking branch 'remotes/kraxel/tags/usb-20210528-pull-request' into staging (2021-05-30 20:10:30 +0100)
are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2021-06-02
for you to fetch changes up to 2a85a08c998e418a46a308095893f223642f6fc9:
configure: bump min required CLang to 6.0 / XCode 10.0 (2021-06-02 09:11:32 +0200)
----------------------------------------------------------------
* Update the references to some doc files (use *.rst instead of *.txt)
* Bump minimum versions of some requirements after removing CentOS 7 support
----------------------------------------------------------------
Daniel P. Berrangé (11):
patchew: move quick build job from CentOS 7 to CentOS 8 container
crypto: bump min nettle to 3.4, dropping RHEL-7 support
crypto: drop back compatibility typedefs for nettle
crypto: bump min gcrypt to 1.8.0, dropping RHEL-7 support
crypto: bump min gnutls to 3.5.18, dropping RHEL-7 support
crypto: drop used conditional check
tests/vm: convert centos VM recipe to CentOS 8 tests/docker: drop CentOS 7 container
configure: bump min required glib version to 2.56
configure: bump min required GCC to 7.5.0
configure: bump min required CLang to 6.0 / XCode 10.0
Stefano Garzarella (5):
docs: fix references to docs/devel/tracing.rst
docs: fix references to docs/devel/atomics.rst
docs: fix references to docs/devel/build-system.rst
docs: fix references to docs/specs/tpm.rst
docs: fix references to docs/devel/s390-dasd-ipl.rst
Thomas Huth (1):
block/ssh: Bump minimum libssh version to 0.8.7
.gitlab-ci.d/buildtest.yml | 35 ------ .gitlab-ci.d/containers.yml | 5 - .patchew.yml | 6 +- MAINTAINERS | 4 +- accel/kvm/trace-events | 2 +- accel/tcg/trace-events | 2 +- audio/trace-events | 2 +- authz/trace-events | 2 +- backends/tpm/trace-events | 2 +- backends/trace-events | 2 +- block/ssh.c | 59 --------- block/trace-events | 2 +- chardev/trace-events | 2 +- configure | 59 ++------- crypto/cipher-nettle.c.inc | 91 ++++---------- crypto/hash-nettle.c | 10 +- crypto/hmac-nettle.c | 12 +- crypto/meson.build | 6 +- crypto/tlscredsx509.c | 2 - crypto/trace-events | 2 +- docs/devel/lockcnt.txt | 2 +- hw/9pfs/trace-events | 2 +- hw/acpi/tpm.c | 2 +- hw/acpi/trace-events | 2 +- hw/adc/trace-events | 2 +- hw/alpha/trace-events | 2 +- hw/arm/trace-events | 2 +- hw/audio/trace-events | 2 +- hw/block/dataplane/trace-events | 2 +- hw/block/trace-events | 2 +- hw/char/trace-events | 2 +- hw/display/trace-events | 2 +- hw/dma/trace-events | 2 +- hw/gpio/trace-events | 2 +- hw/hppa/trace-events | 2 +- hw/i2c/trace-events | 2 +- hw/i386/trace-events | 2 +- hw/i386/xen/trace-events | 2 +- hw/ide/trace-events | 2 +- hw/input/trace-events | 2 +- hw/intc/trace-events | 2 +- hw/isa/trace-events | 2 +- hw/mem/trace-events | 2 +- hw/misc/macio/trace-events | 2 +- hw/misc/trace-events | 2 +- hw/net/trace-events | 2 +- hw/nvram/trace-events | 2 +- hw/pci-host/trace-events | 2 +- hw/pci/trace-events | 2 +- hw/ppc/trace-events | 2 +- hw/rdma/trace-events | 2 +- hw/rdma/vmw/trace-events | 2 +- hw/rtc/trace-events | 2 +- hw/s390x/trace-events | 2 +- hw/scsi/trace-events | 2 +- hw/sd/trace-events | 2 +- hw/sparc/trace-events | 2 +- hw/sparc64/trace-events | 2 +- hw/timer/trace-events | 2 +- hw/tpm/tpm_ppi.c | 2 +- hw/tpm/trace-events | 2 +- hw/usb/trace-events | 2 +- hw/vfio/trace-events | 2 +- hw/virtio/trace-events | 2 +- hw/watchdog/trace-events | 2 +- hw/xen/trace-events | 2 +- include/glib-compat.h | 13 +- include/qemu/atomic.h | 4 +- include/qemu/atomic128.h | 2 +- io/trace-events | 2 +- linux-user/trace-events | 2 +- migration/trace-events | 2 +- monitor/trace-events | 2 +- nbd/trace-events | 2 +- net/trace-events | 2 +- pc-bios/s390-ccw/dasd-ipl.c | 2 +- qapi/trace-events | 2 +- qom/trace-events | 2 +- scripts/simpletrace.py | 2 +- scsi/trace-events | 2 +- softmmu/trace-events | 2 +- target/arm/trace-events | 2 +- target/hppa/trace-events | 2 +- target/i386/kvm/trace-events | 2 +- target/i386/trace-events | 2 +- target/mips/trace-events | 2 +- target/ppc/trace-events | 2 +- target/s390x/trace-events | 2 +- target/sparc/trace-events | 2 +- tcg/README | 2 +- tests/docker/dockerfiles/centos7.docker | 43 ------- tests/qapi-schema/meson.build | 2 +- tests/vm/centos | 17 ++- trace-events | 2 +- ui/trace-events | 2 +- util/oslib-win32.c | 204 -------------------------------- util/trace-events | 2 +- 97 files changed, 141 insertions(+), 591 deletions(-) delete mode 100644 tests/docker/dockerfiles/centos7.docker
[PULL 02/17] docs: fix references to docs/devel/atomics.rst
From: Stefano Garzarella <[email protected]>
Commit 15e8699f00 ("atomics: convert to reStructuredText") converted docs/devel/atomics.txt to docs/devel/atomics.rst.
We still have several references to the old file, so let's fix them with the following command:
sed -i s/atomics.txt/atomics.rst/ $(git grep -l docs/devel/atomics.txt)
Message-Id: <[email protected]>
--- docs/devel/lockcnt.txt | 2 +- include/qemu/atomic.h | 4 ++-- include/qemu/atomic128.h | 2 +- tcg/README | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
docs/devel/lockcnt.txt +1 -1
@@ -145,7 +145,7 @@ can also be more efficient in two ways: - on some platforms, one can implement QemuLockCnt to hold the lock and the mutex in a single word, making the fast path no more expensive than simply managing a counter using atomic operations (see - docs/devel/atomics.txt). This can be very helpful if concurrent access to + docs/devel/atomics.rst). This can be very helpful if concurrent access to the data structure is expected to be rare.
include/qemu/atomic.h +2 -2
@@ -8,7 +8,7 @@* This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. * -* See docs/devel/atomics.txt for discussion about the guarantees each +* See docs/devel/atomics.rst for discussion about the guarantees each * atomic primitive is meant to provide. */
@@ -432,7 +432,7 @@* sequentially consistent operations. * * As long as they are used as paired operations they are safe to -* use. See docs/devel/atomics.txt for more discussion. +* use. See docs/devel/atomics.rst for more discussion. */ #ifndef qatomic_mb_read
include/qemu/atomic128.h +1 -1
@@ -6,7 +6,7 @@* This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. * -* See docs/devel/atomics.txt for discussion about the guarantees each +* See docs/devel/atomics.rst for discussion about the guarantees each * atomic primitive is meant to provide. */
tcg/README +1 -1
@@ -461,7 +461,7 @@ when MTTCG is enabled. The guest translators should generate this opcode for all guest instructions which have ordering side effects. -Please see docs/devel/atomics.txt for more information on memory barriers. +Please see docs/devel/atomics.rst for more information on memory barriers. ********* 64-bit guest on 32-bit host support
Signature · 1 line
2.27.0
[PULL 01/17] docs: fix references to docs/devel/tracing.rst
In reply to Thomas HuthFrom: Stefano Garzarella <[email protected]>
Commit e50caf4a5c ("tracing: convert documentation to rST") converted docs/devel/tracing.txt to docs/devel/tracing.rst.
We still have several references to the old file, so let's fix them with the following command:
sed -i s/tracing.txt/tracing.rst/ $(git grep -l docs/devel/tracing.txt)
Message-Id: <[email protected]>
--- MAINTAINERS | 2 +- accel/kvm/trace-events | 2 +- accel/tcg/trace-events | 2 +- audio/trace-events | 2 +- authz/trace-events | 2 +- backends/tpm/trace-events | 2 +- backends/trace-events | 2 +- block/trace-events | 2 +- chardev/trace-events | 2 +- crypto/trace-events | 2 +- hw/9pfs/trace-events | 2 +- hw/acpi/trace-events | 2 +- hw/adc/trace-events | 2 +- hw/alpha/trace-events | 2 +- hw/arm/trace-events | 2 +- hw/audio/trace-events | 2 +- hw/block/dataplane/trace-events | 2 +- hw/block/trace-events | 2 +- hw/char/trace-events | 2 +- hw/display/trace-events | 2 +- hw/dma/trace-events | 2 +- hw/gpio/trace-events | 2 +- hw/hppa/trace-events | 2 +- hw/i2c/trace-events | 2 +- hw/i386/trace-events | 2 +- hw/i386/xen/trace-events | 2 +- hw/ide/trace-events | 2 +- hw/input/trace-events | 2 +- hw/intc/trace-events | 2 +- hw/isa/trace-events | 2 +- hw/mem/trace-events | 2 +- hw/misc/macio/trace-events | 2 +- hw/misc/trace-events | 2 +- hw/net/trace-events | 2 +- hw/nvram/trace-events | 2 +- hw/pci-host/trace-events | 2 +- hw/pci/trace-events | 2 +- hw/ppc/trace-events | 2 +- hw/rdma/trace-events | 2 +- hw/rdma/vmw/trace-events | 2 +- hw/rtc/trace-events | 2 +- hw/s390x/trace-events | 2 +- hw/scsi/trace-events | 2 +- hw/sd/trace-events | 2 +- hw/sparc/trace-events | 2 +- hw/sparc64/trace-events | 2 +- hw/timer/trace-events | 2 +- hw/tpm/trace-events | 2 +- hw/usb/trace-events | 2 +- hw/vfio/trace-events | 2 +- hw/virtio/trace-events | 2 +- hw/watchdog/trace-events | 2 +- hw/xen/trace-events | 2 +- io/trace-events | 2 +- linux-user/trace-events | 2 +- migration/trace-events | 2 +- monitor/trace-events | 2 +- nbd/trace-events | 2 +- net/trace-events | 2 +- qapi/trace-events | 2 +- qom/trace-events | 2 +- scripts/simpletrace.py | 2 +- scsi/trace-events | 2 +- softmmu/trace-events | 2 +- target/arm/trace-events | 2 +- target/hppa/trace-events | 2 +- target/i386/kvm/trace-events | 2 +- target/i386/trace-events | 2 +- target/mips/trace-events | 2 +- target/ppc/trace-events | 2 +- target/s390x/trace-events | 2 +- target/sparc/trace-events | 2 +- trace-events | 2 +- ui/trace-events | 2 +- util/trace-events | 2 +- 75 files changed, 75 insertions(+), 75 deletions(-)
MAINTAINERS +1 -1
@@ -2692,7 +2692,7 @@ F: scripts/tracetool.py F: scripts/tracetool/ F: scripts/qemu-trace-stap* F: docs/tools/qemu-trace-stap.rst -F: docs/devel/tracing.txt +F: docs/devel/tracing.rst T: git https://github.com/stefanha/qemu.git tracing TPM
accel/kvm/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # kvm-all.c kvm_ioctl(int type, void *arg) "type 0x%x, arg %p"
accel/tcg/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # TCG related tracing # cpu-exec.c
audio/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # alsaaudio.c alsa_revents(int revents) "revents = %d"
authz/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # base.c qauthz_is_allowed(void *authz, const char *identity, bool allowed) "AuthZ %p check identity=%s allowed=%d"
backends/tpm/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # tpm_passthrough.c tpm_passthrough_handle_request(void *cmd) "processing command %p"
backends/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # dbus-vmstate.c dbus_vmstate_pre_save(void)
block/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # ../block.c bdrv_open_common(void *bs, const char *filename, int flags, const char *format_name) "bs %p filename \"%s\" flags 0x%x format_name \"%s\""
chardev/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # wctablet.c wct_init(void) ""
crypto/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # tlscreds.c qcrypto_tls_creds_load_dh(void *creds, const char *filename) "TLS creds load DH creds=%p filename=%s"
hw/9pfs/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # 9p.c v9fs_rcancel(uint16_t tag, uint8_t id) "tag %d id %d"
hw/acpi/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # memory_hotplug.c mhp_acpi_invalid_slot_selected(uint32_t slot) "0x%"PRIx32
hw/adc/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # npcm7xx_adc.c npcm7xx_adc_read(const char *id, uint64_t offset, uint32_t value) " %s offset: 0x%04" PRIx64 " value 0x%04" PRIx32
hw/alpha/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # pci.c alpha_pci_iack_write(void) ""
hw/arm/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # virt-acpi-build.c virt_acpi_setup(void) "No fw cfg or ACPI disabled. Bailing out."
hw/audio/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # cs4231.c cs4231_mem_readl_dreg(uint32_t reg, uint32_t ret) "read dreg %d: 0x%02x"
hw/block/dataplane/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # virtio-blk.c virtio_blk_data_plane_start(void *s) "dataplane %p"
hw/block/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # fdc.c fdc_ioport_read(uint8_t reg, uint8_t value) "read reg 0x%02x val 0x%02x"
hw/char/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # parallel.c parallel_ioport_read(const char *desc, uint16_t addr, uint8_t value) "read [%s] addr 0x%02x val 0x%02x"
hw/display/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # jazz_led.c jazz_led_read(uint64_t addr, uint8_t val) "read addr=0x%"PRIx64": 0x%x"
hw/dma/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # rc4030.c jazzio_read(uint64_t addr, uint32_t ret) "read reg[0x%"PRIx64"] = 0x%x"
hw/gpio/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # npcm7xx_gpio.c npcm7xx_gpio_read(const char *id, uint64_t offset, uint64_t value) " %s offset: 0x%04" PRIx64 " value 0x%08" PRIx64
hw/hppa/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # pci.c hppa_pci_iack_write(void) ""
hw/i2c/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # core.c
hw/i386/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # x86-iommu.c x86_iommu_iec_notify(bool global, uint32_t index, uint32_t mask) "Notify IEC invalidation: global=%d index=%" PRIu32 " mask=%" PRIu32
hw/i386/xen/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # xen_platform.c xen_platform_log(char *s) "xen platform: %s"
hw/ide/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # core.c # portio
hw/input/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # adb-kbd.c adb_device_kbd_no_key(void) "Ignoring NO_KEY"
hw/intc/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # i8259.c pic_update_irq(bool master, uint8_t imr, uint8_t irr, uint8_t padd) "master %d imr %"PRIu8" irr %"PRIu8" padd %"PRIu8
hw/isa/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # isa-superio.c superio_create_parallel(int id, uint16_t base, unsigned int irq) "id=%d, base 0x%03x, irq %u"
hw/mem/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # pc-dimm.c mhp_pc_dimm_assigned_slot(int slot) "%d"
hw/misc/macio/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # cuda.c cuda_delay_set_sr_int(void) ""
hw/misc/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # allwinner-cpucfg.c allwinner_cpucfg_cpu_reset(uint8_t cpu_id, uint32_t reset_addr) "id %u, reset_addr 0x%" PRIu32
hw/net/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # allwinner-sun8i-emac.c allwinner_sun8i_emac_mii_write_reg(uint32_t reg, uint32_t value) "MII write: reg=0x%" PRIx32 " value=0x%" PRIx32
hw/nvram/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # ds1225y.c nvram_read(uint32_t addr, uint32_t ret) "read addr %d: 0x%02x"
hw/pci-host/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # grackle.c grackle_set_irq(int irq_num, int level) "set_irq num %d level %d"
hw/pci/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # pci.c pci_update_mappings_del(void *d, uint32_t bus, uint32_t slot, uint32_t func, int bar, uint64_t addr, uint64_t size) "d=%p %02x:%02x.%x %d,0x%"PRIx64"+0x%"PRIx64
hw/ppc/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # spapr_pci.c spapr_pci_msi(const char *msg, uint32_t ca) "%s (cfg=0x%x)"
hw/rdma/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # rdma_backend.c rdma_check_dev_attr(const char *name, int max_bk, int max_fe) "%s: be=%d, fe=%d"
hw/rdma/vmw/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # pvrdma_main.c pvrdma_regs_read(uint64_t addr, uint64_t val) "pvrdma.regs[0x%"PRIx64"]=0x%"PRIx64
hw/rtc/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # allwinner-rtc.c allwinner_rtc_read(uint64_t addr, uint64_t value) "addr 0x%" PRIx64 " value 0x%" PRIx64
hw/s390x/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # css.c css_enable_facility(const char *facility) "CSS: enable %s"
hw/scsi/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # scsi-bus.c scsi_req_alloc(int target, int lun, int tag) "target %d lun %d tag %d"
hw/sd/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # allwinner-sdhost.c allwinner_sdhost_set_inserted(bool inserted) "inserted %u"
hw/sparc/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # sun4m.c sun4m_cpu_set_irq_raise(int level) "Raise CPU IRQ %d"
hw/sparc64/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # sun4u.c ebus_isa_irq_handler(int n, int level) "Set ISA IRQ %d level %d"
hw/timer/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # slavio_timer.c slavio_timer_get_out(uint64_t limit, uint32_t counthigh, uint32_t count) "limit 0x%"PRIx64" count 0x%x0x%08x"
hw/tpm/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # tpm_crb.c tpm_crb_mmio_read(uint64_t addr, unsigned size, uint32_t val) "CRB read 0x%016" PRIx64 " len:%u val: 0x%" PRIx32
hw/usb/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # core.c usb_packet_state_change(int bus, const char *port, int ep, void *p, const char *o, const char *n) "bus %d, port %s, ep %d, packet %p, state %s -> %s"
hw/vfio/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # pci.c vfio_intx_interrupt(const char *name, char line) " (%s) Pin %c"
hw/virtio/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # vhost.c vhost_commit(bool started, bool changed) "Started: %d Changed: %d"
hw/watchdog/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # cmsdk-apb-watchdog.c cmsdk_apb_watchdog_read(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB watchdog read: offset 0x%" PRIx64 " data 0x%" PRIx64 " size %u"
hw/xen/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # ../../include/hw/xen/xen_common.h xen_default_ioreq_server(void) ""
io/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # task.c qio_task_new(void *task, void *source, void *func, void *opaque) "Task new task=%p source=%p func=%p opaque=%p"
linux-user/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # signal.c signal_table_init(int i) "number of unavailable signals: %d"
migration/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # savevm.c qemu_loadvm_state_section(unsigned int section_type) "%d"
monitor/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # hmp.c handle_hmp_command(void *mon, const char *cmdline) "mon %p cmdline: %s"
nbd/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # client.c nbd_send_option_request(uint32_t opt, const char *name, uint32_t len) "Sending option request %" PRIu32" (%s), len %" PRIu32
net/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # announce.c qemu_announce_self_iter(const char *id, const char *name, const char *mac, int skip) "%s:%s:%s skip: %d"
qapi/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # qapi-visit-core.c visit_free(void *v) "v=%p"
qom/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # object.c object_dynamic_cast_assert(const char *type, const char *target, const char *file, int line, const char *func) "%s->%s (%s:%d:%s)"
scripts/simpletrace.py +1 -1
@@ -7,7 +7,7 @@ # This work is licensed under the terms of the GNU GPL, version 2. See # the COPYING file in the top-level directory. # -# For help see docs/devel/tracing.txt +# For help see docs/devel/tracing.rst import struct import inspect
scsi/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # pr-manager.c pr_manager_execute(int fd, int cmd, int sa) "fd=%d cmd=0x%02x service action=0x%02x"
softmmu/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # balloon.c # Since requests are raised via monitor, not many tracepoints are needed.
target/arm/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # helper.c arm_gt_recalc(int timer, int irqstate, uint64_t nexttick) "gt recalc: timer %d irqstate %d next tick 0x%" PRIx64
target/hppa/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # mem_helper.c disable hppa_tlb_flush_ent(void *env, void *ent, uint64_t va_b, uint64_t va_e, uint64_t pa) "env=%p ent=%p va_b=0x%lx va_e=0x%lx pa=0x%lx"
target/i386/kvm/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # kvm.c kvm_x86_fixup_msi_error(uint32_t gsi) "VT-d failed to remap interrupt for GSI %" PRIu32
target/i386/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # sev.c kvm_sev_init(void) ""
target/mips/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # translate.c mips_translate_c0(const char *instr, const char *rn, int reg, int sel) "%s %s (reg %d sel %d)"
target/ppc/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # kvm.c kvm_failed_spr_set(int spr, const char *msg) "Warning: Unable to set SPR %d to KVM: %s"
target/s390x/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # mmu_helper.c get_skeys_nonzero(int rc) "SKEY: Call to get_skeys unexpectedly returned %d"
target/sparc/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # mmu_helper.c mmu_helper_dfault(uint64_t address, uint64_t context, int mmu_idx, uint32_t tl) "DFAULT at 0x%"PRIx64" context 0x%"PRIx64" mmu_idx=%d tl=%d"
trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # # This file is processed by the tracetool script during the build. #
ui/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # console.c console_gfx_new(void) ""
util/trace-events +1 -1
@@ -1,4 +1,4 @@ -# See docs/devel/tracing.txt for syntax documentation. +# See docs/devel/tracing.rst for syntax documentation. # aio-posix.c run_poll_handlers_begin(void *ctx, int64_t max_ns, int64_t timeout) "ctx %p max_ns %"PRId64 " timeout %"PRId64
Signature · 1 line
2.27.0
[PULL 07/17] patchew: move quick build job from CentOS 7 to CentOS 8 container
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
It has been over two years since RHEL-8 was released, and thus per the platform build policy, we no longer need to support RHEL-7 as a build target.
Message-Id: <[email protected]>
--- .patchew.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
.patchew.yml +3 -3
@@ -88,7 +88,7 @@ email: more information: {{ logtext }} - {% elif test == "docker-mingw@fedora" or test == "docker-quick@centos7" or test == "asan" %} + {% elif test == "docker-mingw@fedora" or test == "docker-quick@centos8" or test == "asan" %} Hi, This series failed the {{ test }} build test. Please find the testing commands and
@@ -124,13 +124,13 @@ testing: script: | #!/bin/bash time make docker-test-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1 - docker-quick@centos7: + docker-quick@centos8: enabled: false requirements: docker,x86_64 timeout: 3600 script: | #!/bin/bash - time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1 + time make docker-test-quick@centos8 SHOW_ENV=1 J=14 NETWORK=1 checkpatch: enabled: true requirements: ''
Signature · 1 line
2.27.0
[PULL 05/17] docs: fix references to docs/devel/s390-dasd-ipl.rst
In reply to Thomas HuthFrom: Stefano Garzarella <[email protected]>
Commit cc3d15a5ea ("docs: rstfy s390 dasd ipl documentation") converted docs/devel/s390-dasd-ipl.txt to docs/devel/s390-dasd-ipl.rst.
We still have several references to the old file, so let's fix them with the following command:
sed -i s/s390-dasd-ipl.txt/s390-dasd-ipl.rst/ \
$(git grep -l docs/devel/s390-dasd-ipl.txt)Message-Id: <[email protected]>
--- pc-bios/s390-ccw/dasd-ipl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
pc-bios/s390-ccw/dasd-ipl.c +1 -1
@@ -205,7 +205,7 @@ static void run_ipl2(SubChannelId schid, uint16_t cutype, uint32_t addr)/* * Limitations in vfio-ccw support complicate the IPL process. Details can -* be found in docs/devel/s390-dasd-ipl.txt +* be found in docs/devel/s390-dasd-ipl.rst */ void dasd_ipl (SubChannelId schid,uint16_t cutype) {
Signature · 1 line
2.27.0
[PULL 03/17] docs: fix references to docs/devel/build-system.rst
In reply to Thomas HuthFrom: Stefano Garzarella <[email protected]>
Commit a14f0bf165 ("docs: convert build system documentation to rST") converted docs/devel/build-system.txt to docs/devel/build-system.rst.
We still have several references to the old file, so let's fix them with the following command:
sed -i s/build-system.txt/build-system.rst/ \
$(git grep -l docs/devel/build-system.txt)Message-Id: <[email protected]>
--- MAINTAINERS | 2 +- tests/qapi-schema/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +1 -1
@@ -3361,7 +3361,7 @@ Documentation Build system architecture M: Daniel P. Berrange <[email protected]> S: Odd Fixes -F: docs/devel/build-system.txt +F: docs/devel/build-system.rst GIT Data Mining Config M: Alex Bennée <[email protected]>
tests/qapi-schema/meson.build +1 -1
@@ -208,7 +208,7 @@ schemas += [meson.current_source_dir() / 'missing-schema.json'] # Because people may want to use test-qapi.py from the command line, we # are not using the "#! /usr/bin/env python3" trick here. See -# docs/devel/build-system.txt +# docs/devel/build-system.rst test('QAPI schema regression tests', python, args: files('test-qapi.py') + schemas, env: test_env, suite: ['qapi-schema', 'qapi-frontend'])
Signature · 1 line
2.27.0
[PULL 04/17] docs: fix references to docs/specs/tpm.rst
In reply to Thomas HuthFrom: Stefano Garzarella <[email protected]>
Commit 6e8a3ff6ed ("docs/specs/tpm: reST-ify TPM documentation") converted docs/specs/tpm.txt to docs/specs/tpm.rst.
We still have several references to the old file, so let's fix them with the following command:
sed -i s/tpm.txt/tpm.rst/ $(git grep -l docs/specs/tpm.txt)
Message-Id: <[email protected]>
--- hw/acpi/tpm.c | 2 +- hw/tpm/tpm_ppi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/acpi/tpm.c +1 -1
@@ -57,7 +57,7 @@ void tpm_build_ppi_acpi(TPMIf *tpm, Aml *dev)aml_operation_region ("TPP3" ,AML_SYSTEM_MEMORY ,aml_int (TPM_PPI_ADDR_BASE + -0x15a /* movv, docs/specs/tpm.txt */ ), +0x15a /* movv, docs/specs/tpm.rst */ ), 0x1)); field =aml_field ("TPP3" ,AML_BYTE_ACC ,AML_NOLOCK ,AML_PRESERVE );aml_append (field,aml_named_field ("MOVV" ,8 ));
hw/tpm/tpm_ppi.c +1 -1
@@ -23,7 +23,7 @@void tpm_ppi_reset (TPMPPI *tpmppi) { -if (tpmppi->buf[0x15a /* movv, docs/specs/tpm.txt */ ] &0x1 ) { +if (tpmppi->buf[0x15a /* movv, docs/specs/tpm.rst */ ] &0x1 ) {GuestPhysBlockList guest_phys_blocks;GuestPhysBlock *block;
Signature · 1 line
2.27.0
[PULL 12/17] crypto: drop used conditional check
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
The condition being tested has never been set since the day the code was first introduced.
Message-Id: <[email protected]>
--- crypto/tlscredsx509.c | 2 -- 1 file changed, 2 deletions(-)
crypto/tlscredsx509.c +0 -2
@@ -354,11 +354,9 @@ qcrypto_tls_creds_check_cert_pair(gnutls_x509_crt_t cert, reason ="The certificate has been revoked" ; } -#ifndef GNUTLS_1_0_COMPAT if (status &GNUTLS_CERT_INSECURE_ALGORITHM ) { reason ="The certificate uses an insecure algorithm" ; } -#endif error_setg(errp, "Our own certificate %s failed validation against %s: %s",
Signature · 1 line
2.27.0
[PULL 06/17] block/ssh: Bump minimum libssh version to 0.8.7
In reply to Thomas HuthIt has been over two years since RHEL-8 was released, and thus per the platform build policy, we no longer need to support RHEL-7 as a build target. So from the RHEL-7 perspective, we do not have to support libssh v0.7 anymore now.
Let's look at the versions from other distributions and operating systems - according to repology.org, current shipping versions are:
RHEL-8: 0.9.4
Debian Buster: 0.8.7
openSUSE Leap 15.2: 0.8.7
Ubuntu LTS 18.04: 0.8.0 *
Ubuntu LTS 20.04: 0.9.3
FreeBSD: 0.9.5
Fedora 33: 0.9.5
Fedora 34: 0.9.5
OpenBSD: 0.9.5
macOS HomeBrew: 0.9.5
HaikuPorts: 0.9.5* The version of libssh in Ubuntu 18.04 claims to be 0.8.0 from the name of the package, but in reality it is a 0.7 patched up as a Frankenstein monster with patches from the 0.8 development branch. This gave us some headaches in the past already and so it never worked with QEMU. All attempts to get it supported have failed in the past, patches for QEMU have never been merged and a request to Ubuntu to fix it in their 18.04 distro has been ignored:
https://bugs.launchpad.net/ubuntu/+source/libssh/+bug/1847514
Thus we really should ignore the libssh in Ubuntu 18.04 in QEMU, too.
Fix it by bumping the minimum libssh version to something that is greater than 0.8.0 now. Debian Buster and openSUSE Leap have the oldest version and so 0.8.7 is the new minimum.
Message-Id: <[email protected]>
--- block/ssh.c | 59 ----------------------------------------------------- configure | 19 +---------------- 2 files changed, 1 insertion(+), 77 deletions(-)
block/ssh.c +0 -59
@@ -277,7 +277,6 @@ static void ssh_parse_filename(const char *filename, QDict *options,static int check_host_key_knownhosts (BDRVSSHState *s,Error **errp) {int ret; -#ifdef HAVE_LIBSSH_0_8 enum ssh_known_hosts_e state;int r;ssh_key pubkey;
@@ -343,46 +342,6 @@ static int check_host_key_knownhosts(BDRVSSHState *s, Error **errp)error_setg (errp,"error while checking for known server (%d)" , state); goto out; } -#else /* !HAVE_LIBSSH_0_8 */ -int state; - - state =ssh_is_server_known (s->session); -trace_ssh_server_status (state); - -switch (state) { -case SSH_SERVER_KNOWN_OK : -/* OK */ -trace_ssh_check_host_key_knownhosts (); -break ; -case SSH_SERVER_KNOWN_CHANGED : - ret = -EINVAL ; -error_setg (errp, -"host key does not match the one in known_hosts; this " -"may be a possible attack" ); - goto out; -case SSH_SERVER_FOUND_OTHER : - ret = -EINVAL ; -error_setg (errp, -"host key for this server not found, another type exists" ); - goto out; -case SSH_SERVER_FILE_NOT_FOUND : - ret = -ENOENT ; -error_setg (errp,"known_hosts file not found" ); - goto out; -case SSH_SERVER_NOT_KNOWN : - ret = -EINVAL ; -error_setg (errp,"no host key was found in known_hosts" ); - goto out; -case SSH_SERVER_ERROR : - ret = -EINVAL ; -error_setg (errp,"server error" ); - goto out; -default : - ret = -EINVAL ; -error_setg (errp,"error while checking for known server (%d)" , state); - goto out; - } -#endif /* !HAVE_LIBSSH_0_8 */ /* known_hosts checking successful. */ ret =0 ;
@@ -438,11 +397,7 @@ check_host_key_hash(BDRVSSHState *s, const char *hash,unsigned char *server_hash;size_t server_hash_len; -#ifdef HAVE_LIBSSH_0_8 r =ssh_get_server_publickey (s->session, &pubkey); -#else - r =ssh_get_publickey (s->session, &pubkey); -#endif if (r !=SSH_OK ) {session_error_setg (errp, s,"failed to read remote host key" );return -EINVAL ;
@@ -1233,8 +1188,6 @@ static void unsafe_flush_warning(BDRVSSHState *s, const char *what) } } -#ifdef HAVE_LIBSSH_0_8 - static coroutine_fn int ssh_flush(BDRVSSHState *s, BlockDriverState *bs) {int r;
@@ -1271,18 +1224,6 @@ static coroutine_fn int ssh_co_flush(BlockDriverState *bs)return ret; } -#else /* !HAVE_LIBSSH_0_8 */ - -static coroutine_fn int ssh_co_flush(BlockDriverState *bs) -{ -BDRVSSHState *s = bs->opaque; - -unsafe_flush_warning (s,"libssh >= 0.8.0" ); -return 0 ; -} - -#endif /* !HAVE_LIBSSH_0_8 */ -static int64_t ssh_getlength (BlockDriverState *bs) {BDRVSSHState *s = bs->opaque;
configure +1 -18
@@ -3529,7 +3529,7 @@ fi ########################################## # libssh probe if test "$libssh" != "no" ; then - if $pkg_config --exists libssh; then + if $pkg_config --exists "libssh >= 0.8.7"; then libssh_cflags=$($pkg_config libssh --cflags) libssh_libs=$($pkg_config libssh --libs) libssh=yes
@@ -3541,23 +3541,6 @@ if test "$libssh" != "no" ; then fi fi -########################################## -# Check for libssh 0.8 -# This is done like this instead of using the LIBSSH_VERSION_* and -# SSH_VERSION_* macros because some distributions in the past shipped -# snapshots of the future 0.8 from Git, and those snapshots did not -# have updated version numbers (still referring to 0.7.0). - -if test "$libssh" = "yes"; then - cat > $TMPC <<EOF -#include <libssh/libssh.h> -int main(void) { return ssh_get_server_publickey(NULL, NULL); } -EOF - if compile_prog "$libssh_cflags" "$libssh_libs"; then - libssh_cflags="-DHAVE_LIBSSH_0_8 $libssh_cflags" - fi -fi - ########################################## # linux-aio probe
Signature · 1 line
2.27.0
[PULL 09/17] crypto: drop back compatibility typedefs for nettle
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
Now that we only support modern nettle, we don't need to have local typedefs to mask the real nettle types.
Message-Id: <[email protected]>
--- crypto/cipher-nettle.c.inc | 60 ++++++++++++++++---------------------- crypto/hash-nettle.c | 6 ++-- crypto/hmac-nettle.c | 8 ++--- 3 files changed, 30 insertions(+), 44 deletions(-)
crypto/cipher-nettle.c.inc +25 -35
@@ -34,16 +34,6 @@ #include <nettle/xts.h> #endif -typedef void (*QCryptoCipherNettleFuncWrapper)(const void *ctx, - size_t length, - uint8_t *dst, - const uint8_t *src); - -typedef nettle_cipher_func * QCryptoCipherNettleFuncNative; -typedef const void * cipher_ctx_t; -typedef size_t cipher_length_t; -#define CONST_CTX const - static inline bool qcrypto_length_check(size_t len, size_t blocksize, Error **errp) {
@@ -166,12 +156,12 @@ static const struct QCryptoCipherDriver NAME##_driver_ctr = { \ static void NAME##_xts_wrape(const void *ctx, size_t length, \ uint8_t *dst, const uint8_t *src) \ { \ - ENCRYPT((cipher_ctx_t)ctx, length, dst, src); \ + ENCRYPT((const void *)ctx, length, dst, src); \ } \ static void NAME##_xts_wrapd(const void *ctx, size_t length, \ uint8_t *dst, const uint8_t *src) \ { \ - DECRYPT((cipher_ctx_t)ctx, length, dst, src); \ + DECRYPT((const void *)ctx, length, dst, src); \ } \ static int NAME##_encrypt_xts(QCryptoCipher *cipher, const void *in, \ void *out, size_t len, Error **errp) \
@@ -251,13 +241,13 @@ typedef struct QCryptoNettleDESRFB { uint8_t iv[DES_BLOCK_SIZE]; } QCryptoNettleDESRFB; -static void des_encrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void des_encrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { des_encrypt(ctx, length, dst, src); } -static void des_decrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void des_decrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { des_decrypt(ctx, length, dst, src);
@@ -273,13 +263,13 @@ typedef struct QCryptoNettleDES3 { uint8_t iv[DES3_BLOCK_SIZE]; } QCryptoNettleDES3; -static void des3_encrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void des3_encrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { des3_encrypt(ctx, length, dst, src); } -static void des3_decrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void des3_decrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { des3_decrypt(ctx, length, dst, src);
@@ -296,17 +286,17 @@ typedef struct QCryptoNettleAES128 { struct aes128_ctx key[2], key_xts[2]; } QCryptoNettleAES128; -static void aes128_encrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void aes128_encrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { - CONST_CTX struct aes128_ctx *keys = ctx; + const struct aes128_ctx *keys = ctx; aes128_encrypt(&keys[0], length, dst, src); } -static void aes128_decrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void aes128_decrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { - CONST_CTX struct aes128_ctx *keys = ctx; + const struct aes128_ctx *keys = ctx; aes128_decrypt(&keys[1], length, dst, src); }
@@ -322,17 +312,17 @@ typedef struct QCryptoNettleAES192 { struct aes192_ctx key[2], key_xts[2]; } QCryptoNettleAES192; -static void aes192_encrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void aes192_encrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { - CONST_CTX struct aes192_ctx *keys = ctx; + const struct aes192_ctx *keys = ctx; aes192_encrypt(&keys[0], length, dst, src); } -static void aes192_decrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void aes192_decrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { - CONST_CTX struct aes192_ctx *keys = ctx; + const struct aes192_ctx *keys = ctx; aes192_decrypt(&keys[1], length, dst, src); }
@@ -348,17 +338,17 @@ typedef struct QCryptoNettleAES256 { struct aes256_ctx key[2], key_xts[2]; } QCryptoNettleAES256; -static void aes256_encrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void aes256_encrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { - CONST_CTX struct aes256_ctx *keys = ctx; + const struct aes256_ctx *keys = ctx; aes256_encrypt(&keys[0], length, dst, src); } -static void aes256_decrypt_native(cipher_ctx_t ctx, cipher_length_t length, - uint8_t *dst, const uint8_t *src) +static void aes256_decrypt_native(const void *ctx, size_t length, + uint8_t *dst, const uint8_t *src) { - CONST_CTX struct aes256_ctx *keys = ctx; + const struct aes256_ctx *keys = ctx; aes256_decrypt(&keys[1], length, dst, src); }
@@ -373,13 +363,13 @@ typedef struct QCryptoNettleCAST128 { struct cast128_ctx key, key_xts; } QCryptoNettleCAST128; -static void cast128_encrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void cast128_encrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { cast128_encrypt(ctx, length, dst, src); } -static void cast128_decrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void cast128_decrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { cast128_decrypt(ctx, length, dst, src);
@@ -397,13 +387,13 @@ typedef struct QCryptoNettleSerpent { } QCryptoNettleSerpent; -static void serpent_encrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void serpent_encrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { serpent_encrypt(ctx, length, dst, src); } -static void serpent_decrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void serpent_decrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { serpent_decrypt(ctx, length, dst, src);
@@ -420,13 +410,13 @@ typedef struct QCryptoNettleTwofish { struct twofish_ctx key, key_xts; } QCryptoNettleTwofish; -static void twofish_encrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void twofish_encrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { twofish_encrypt(ctx, length, dst, src); } -static void twofish_decrypt_native(cipher_ctx_t ctx, cipher_length_t length, +static void twofish_decrypt_native(const void *ctx, size_t length, uint8_t *dst, const uint8_t *src) { twofish_decrypt(ctx, length, dst, src);
crypto/hash-nettle.c +2 -4
@@ -26,14 +26,12 @@#include <nettle/sha.h> #include <nettle/ripemd160.h> -typedef size_t hash_length_t ; -typedef void (*qcrypto_nettle_init )(void *ctx);typedef void (*qcrypto_nettle_write )(void *ctx, -hash_length_t len, +size_t len,const uint8_t *buf);typedef void (*qcrypto_nettle_result )(void *ctx, -hash_length_t len, +size_t len,uint8_t *buf);union qcrypto_hash_ctx {
crypto/hmac-nettle.c +3 -5
@@ -18,18 +18,16 @@#include "hmacpriv.h" #include <nettle/hmac.h> -typedef size_t hmac_length_t ; -typedef void (*qcrypto_nettle_hmac_setkey )(void *ctx, -hmac_length_t key_length, +size_t key_length,const uint8_t *key);typedef void (*qcrypto_nettle_hmac_update )(void *ctx, -hmac_length_t length, +size_t length,const uint8_t *data);typedef void (*qcrypto_nettle_hmac_digest )(void *ctx, -hmac_length_t length, +size_t length,uint8_t *digest);typedef struct QCryptoHmacNettle QCryptoHmacNettle ;
Signature · 1 line
2.27.0
[PULL 11/17] crypto: bump min gnutls to 3.5.18, dropping RHEL-7 support
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
It has been over two years since RHEL-8 was released, and thus per the platform build policy, we no longer need to support RHEL-7 as a build target. This lets us increment the minimum required gnutls version
Per repology, current shipping versions are:
RHEL-8: 3.6.14
Debian Buster: 3.6.7
openSUSE Leap 15.2: 3.6.7
Ubuntu LTS 18.04: 3.5.18
Ubuntu LTS 20.04: 3.6.13
FreeBSD: 3.6.15
Fedora 33: 3.6.16
Fedora 34: 3.7.1
OpenBSD: 3.6.15
macOS HomeBrew: 3.6.15Ubuntu LTS 18.04 has the oldest version and so 3.5.18 is the new minimum.
Message-Id: <[email protected]>
--- .gitlab-ci.d/buildtest.yml | 15 --------------- configure | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-)
.gitlab-ci.d/buildtest.yml +0 -15
@@ -626,21 +626,6 @@ build-coroutine-sigaltstack: --enable-trace-backends=ftrace MAKE_CHECK_ARGS: check-unit -# Most jobs test latest gcrypt or nettle builds -# -# These jobs test old gcrypt and nettle from RHEL7 -# which had some API differences. -crypto-only-gnutls: - extends: .native_build_job_template - needs: - job: amd64-centos7-container - variables: - IMAGE: centos7 - TARGETS: x86_64-softmmu x86_64-linux-user - CONFIGURE_ARGS: --disable-nettle --disable-gcrypt --enable-gnutls - MAKE_CHECK_ARGS: check - - # Check our reduced build configurations build-without-default-devices: extends: .native_build_job_template
configure +1 -1
@@ -2801,7 +2801,7 @@ fi if test "$gnutls" != "no"; then pass="no" - if $pkg_config --exists "gnutls >= 3.1.18"; then + if $pkg_config --exists "gnutls >= 3.5.18"; then gnutls_cflags=$($pkg_config --cflags gnutls) gnutls_libs=$($pkg_config --libs gnutls) # Packaging for the static libraries is not always correct.
Signature · 1 line
2.27.0
[PULL 15/17] configure: bump min required glib version to 2.56
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
The glib version was not previously constrained by RHEL-7 since it rebases fairly often. Instead SLES 12 and Ubuntu 16.04 were the constraints in 00f2cfbbec63fb6f5a7789797a62ccedd22466ea. Both of these are old enough that they are outside our platform support matrix now.
Per repology, current shipping versions are:
RHEL-8: 2.56.4
Debian Buster: 2.58.3
openSUSE Leap 15.2: 2.62.6
Ubuntu LTS 18.04: 2.56.4
Ubuntu LTS 20.04: 2.64.6
FreeBSD: 2.66.7
Fedora 33: 2.66.8
Fedora 34: 2.68.1
OpenBSD: 2.68.1
macOS HomeBrew: 2.68.1Thus Ubuntu LTS 18.04 / RHEL-8 are the constraint for GLib version at 2.56
Message-Id: <[email protected]>
--- configure | 2 +- include/glib-compat.h | 13 +-- util/oslib-win32.c | 204 ------------------------------------------ 3 files changed, 3 insertions(+), 216 deletions(-)
configure +1 -1
@@ -3307,7 +3307,7 @@ done ########################################## # glib support probe -glib_req_ver=2.48 +glib_req_ver=2.56 glib_modules=gthread-2.0 if test "$modules" = yes; then glib_modules="$glib_modules gmodule-export-2.0"
include/glib-compat.h +2 -11
@@ -19,12 +19,12 @@/* Ask for warnings for anything that was marked deprecated in * the defined version, or before. It is a candidate for rewrite. */ -#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_48 +#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_56/* Ask for warnings if code tries to use function that did not * exist in the defined version. These risk breaking builds */ -#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_48 +#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_56#pragma GCC diagnostic push#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
@@ -68,15 +68,6 @@* without generating warnings. */ -#if defined(_WIN32) && !GLIB_CHECK_VERSION (2 ,50 ,0 ) -/* -* g_poll has a problem on Windows when using -* timeouts < 10ms, so use wrapper. -*/ -#define g_poll (fds, nfds, timeout) g_poll_fixed(fds, nfds, timeout) -gint g_poll_fixed (GPollFD *fds,guint nfds,gint timeout); -#endif -#if defined(G_OS_UNIX )/* * Note: The fallback implementation is not MT-safe, and it returns a copy of
util/oslib-win32.c +0 -204
210 lines not on this page · raw message
Signature · 1 line
2.27.0
[PULL 10/17] crypto: bump min gcrypt to 1.8.0, dropping RHEL-7 support
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
It has been over two years since RHEL-8 was released, and thus per the platform build policy, we no longer need to support RHEL-7 as a build target. This lets us increment the minimum required gcrypt version and assume that HMAC is always supported
Per repology, current shipping versions are:
RHEL-8: 1.8.5
Debian Buster: 1.8.4
openSUSE Leap 15.2: 1.8.2
Ubuntu LTS 18.04: 1.8.1
Ubuntu LTS 20.04: 1.8.5
FreeBSD: 1.9.2
Fedora 33: 1.8.6
Fedora 34: 1.9.3
OpenBSD: 1.9.3
macOS HomeBrew: 1.9.3Ubuntu LTS 18.04 has the oldest version and so 1.8.0 is the new minimum.
Message-Id: <[email protected]>
--- .gitlab-ci.d/buildtest.yml | 10 ---------- configure | 18 +----------------- crypto/meson.build | 6 +----- 3 files changed, 2 insertions(+), 32 deletions(-)
.gitlab-ci.d/buildtest.yml +0 -10
@@ -630,16 +630,6 @@ build-coroutine-sigaltstack: # # These jobs test old gcrypt and nettle from RHEL7 # which had some API differences. -crypto-old-gcrypt: - extends: .native_build_job_template - needs: - job: amd64-centos7-container - variables: - IMAGE: centos7 - TARGETS: x86_64-softmmu x86_64-linux-user - CONFIGURE_ARGS: --disable-nettle --enable-gcrypt - MAKE_CHECK_ARGS: check - crypto-only-gnutls: extends: .native_build_job_template needs:
configure +1 -17
@@ -407,7 +407,6 @@ gnutls="$default_feature" nettle="$default_feature" nettle_xts="no" gcrypt="$default_feature" -gcrypt_hmac="no" gcrypt_xts="no" qemu_private_xts="yes" auth_pam="$default_feature"
@@ -2860,7 +2859,7 @@ has_libgcrypt() { maj=`libgcrypt-config --version | awk -F . '{print $1}'` min=`libgcrypt-config --version | awk -F . '{print $2}'` - if test $maj != 1 || test $min -lt 5 + if test $maj != 1 || test $min -lt 8 then return 1 fi
@@ -2926,18 +2925,6 @@ if test "$gcrypt" != "no"; then gcrypt="yes" cat > $TMPC << EOF #include <gcrypt.h> -int main(void) { - gcry_mac_hd_t handle; - gcry_mac_open(&handle, GCRY_MAC_HMAC_MD5, - GCRY_MAC_FLAG_SECURE, NULL); - return 0; -} -EOF - if compile_prog "$gcrypt_cflags" "$gcrypt_libs" ; then - gcrypt_hmac=yes - fi - cat > $TMPC << EOF -#include <gcrypt.h> int main(void) { gcry_cipher_hd_t handle; gcry_cipher_open(&handle, GCRY_CIPHER_AES, GCRY_CIPHER_MODE_XTS, 0);
@@ -5721,9 +5708,6 @@ if test "$gnutls" = "yes" ; then fi if test "$gcrypt" = "yes" ; then echo "CONFIG_GCRYPT=y" >> $config_host_mak - if test "$gcrypt_hmac" = "yes" ; then - echo "CONFIG_GCRYPT_HMAC=y" >> $config_host_mak - fi echo "GCRYPT_CFLAGS=$gcrypt_cflags" >> $config_host_mak echo "GCRYPT_LIBS=$gcrypt_libs" >> $config_host_mak fi
crypto/meson.build +1 -5
@@ -26,11 +26,7 @@ if 'CONFIG_NETTLE' in config_host crypto_ss.add(files('hash-nettle.c', 'hmac-nettle.c', 'pbkdf-nettle.c')) elif 'CONFIG_GCRYPT' in config_host crypto_ss.add(files('hash-gcrypt.c', 'pbkdf-gcrypt.c')) - if 'CONFIG_GCRYPT_HMAC' in config_host - crypto_ss.add(files('hmac-gcrypt.c')) - else - crypto_ss.add(files('hmac-glib.c')) - endif + crypto_ss.add(files('hmac-gcrypt.c')) else crypto_ss.add(files('hash-glib.c', 'hmac-glib.c', 'pbkdf-stub.c')) endif
Signature · 1 line
2.27.0
[PULL 08/17] crypto: bump min nettle to 3.4, dropping RHEL-7 support
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
It has been over two years since RHEL-8 was released, and thus per the platform build policy, we no longer need to support RHEL-7 as a build target. This lets us increment the minimum required nettle version and drop a lot of backwards compatibility code for 2.x series of nettle.
Per repology, current shipping versions are:
RHEL-8: 3.4.1
Debian Buster: 3.4.1
openSUSE Leap 15.2: 3.4.1
Ubuntu LTS 18.04: 3.4
Ubuntu LTS 20.04: 3.5.1
FreeBSD: 3.7.2
Fedora 33: 3.5.1
Fedora 34: 3.7.2
OpenBSD: 3.7.2
macOS HomeBrew: 3.7.2Ubuntu LTS 18.04 has the oldest version and so 3.4 is the new minimum.
Message-Id: <[email protected]>
--- .gitlab-ci.d/buildtest.yml | 10 ---------- configure | 4 +--- crypto/cipher-nettle.c.inc | 31 ------------------------------- crypto/hash-nettle.c | 4 ---- crypto/hmac-nettle.c | 4 ---- 5 files changed, 1 insertion(+), 52 deletions(-)
.gitlab-ci.d/buildtest.yml +0 -10
@@ -630,16 +630,6 @@ build-coroutine-sigaltstack: # # These jobs test old gcrypt and nettle from RHEL7 # which had some API differences. -crypto-old-nettle: - extends: .native_build_job_template - needs: - job: amd64-centos7-container - variables: - IMAGE: centos7 - TARGETS: x86_64-softmmu x86_64-linux-user - CONFIGURE_ARGS: --disable-gcrypt --enable-nettle - MAKE_CHECK_ARGS: check - crypto-old-gcrypt: extends: .native_build_job_template needs:
configure +1 -3
@@ -2871,10 +2871,9 @@ has_libgcrypt() { if test "$nettle" != "no"; then pass="no" - if $pkg_config --exists "nettle >= 2.7.1"; then + if $pkg_config --exists "nettle >= 3.4"; then nettle_cflags=$($pkg_config --cflags nettle) nettle_libs=$($pkg_config --libs nettle) - nettle_version=$($pkg_config --modversion nettle) # Link test to make sure the given libraries work (e.g for static). write_c_skeleton if compile_prog "" "$nettle_libs" ; then
@@ -5730,7 +5729,6 @@ if test "$gcrypt" = "yes" ; then fi if test "$nettle" = "yes" ; then echo "CONFIG_NETTLE=y" >> $config_host_mak - echo "CONFIG_NETTLE_VERSION_MAJOR=${nettle_version%%.*}" >> $config_host_mak echo "NETTLE_CFLAGS=$nettle_cflags" >> $config_host_mak echo "NETTLE_LIBS=$nettle_libs" >> $config_host_mak fi
crypto/cipher-nettle.c.inc +0 -31
@@ -39,41 +39,10 @@ typedef void (*QCryptoCipherNettleFuncWrapper)(const void *ctx, uint8_t *dst, const uint8_t *src); -#if CONFIG_NETTLE_VERSION_MAJOR < 3 -typedef nettle_crypt_func * QCryptoCipherNettleFuncNative; -typedef void * cipher_ctx_t; -typedef unsigned cipher_length_t; -#define CONST_CTX - -#define cast5_set_key cast128_set_key - -#define aes128_ctx aes_ctx -#define aes192_ctx aes_ctx -#define aes256_ctx aes_ctx -#define aes128_set_encrypt_key(c, k) \ - aes_set_encrypt_key(c, 16, k) -#define aes192_set_encrypt_key(c, k) \ - aes_set_encrypt_key(c, 24, k) -#define aes256_set_encrypt_key(c, k) \ - aes_set_encrypt_key(c, 32, k) -#define aes128_set_decrypt_key(c, k) \ - aes_set_decrypt_key(c, 16, k) -#define aes192_set_decrypt_key(c, k) \ - aes_set_decrypt_key(c, 24, k) -#define aes256_set_decrypt_key(c, k) \ - aes_set_decrypt_key(c, 32, k) -#define aes128_encrypt aes_encrypt -#define aes192_encrypt aes_encrypt -#define aes256_encrypt aes_encrypt -#define aes128_decrypt aes_decrypt -#define aes192_decrypt aes_decrypt -#define aes256_decrypt aes_decrypt -#else typedef nettle_cipher_func * QCryptoCipherNettleFuncNative; typedef const void * cipher_ctx_t; typedef size_t cipher_length_t; #define CONST_CTX const -#endif static inline bool qcrypto_length_check(size_t len, size_t blocksize, Error **errp)
crypto/hash-nettle.c +0 -4
@@ -26,11 +26,7 @@#include <nettle/sha.h> #include <nettle/ripemd160.h> -#if CONFIG_NETTLE_VERSION_MAJOR <3 -typedef unsigned int hash_length_t ; -#else typedef size_t hash_length_t ; -#endif typedef void (*qcrypto_nettle_init )(void *ctx); typedef void (*qcrypto_nettle_write)(void *ctx,
crypto/hmac-nettle.c +0 -4
@@ -18,11 +18,7 @@#include "hmacpriv.h" #include <nettle/hmac.h> -#if CONFIG_NETTLE_VERSION_MAJOR <3 -typedef unsigned int hmac_length_t ; -#else typedef size_t hmac_length_t ; -#endif typedef void (*qcrypto_nettle_hmac_setkey)(void *ctx, hmac_length_t key_length,
Signature · 1 line
2.27.0
[PULL 17/17] configure: bump min required CLang to 6.0 / XCode 10.0
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
Several distros have been dropped since the last time we bumped the minimum required CLang version.
Per repology, currently shipping versions are:
RHEL-8: 10.0.1
Debian Buster: 7.0.1
openSUSE Leap 15.2: 9.0.1
Ubuntu LTS 18.04: 6.0.0
Ubuntu LTS 20.04: 10.0.0
FreeBSD 12: 8.0.1
Fedora 33: 11.0.0
Fedora 34: 11.1.0With this list Ubuntu LTS 18.04 is the constraint at 6.0.0
An LLVM version of 6.0.0 corresponds to macOS XCode version of 10.0 which dates from Sept 2018.
Message-Id: <[email protected]>
--- configure | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
configure +5 -5
@@ -2056,12 +2056,12 @@ fi cat > $TMPC << EOF #if defined(__clang_major__) && defined(__clang_minor__) # ifdef __apple_build_version__ -# if __clang_major__ < 5 || (__clang_major__ == 5 && __clang_minor__ < 1) -# error You need at least XCode Clang v5.1 to compile QEMU +# if __clang_major__ < 10 || (__clang_major__ == 10 && __clang_minor__ < 0) +# error You need at least XCode Clang v10.0 to compile QEMU # endif # else -# if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 4) -# error You need at least Clang v3.4 to compile QEMU +# if __clang_major__ < 6 || (__clang_major__ == 6 && __clang_minor__ < 0) +# error You need at least Clang v6.0 to compile QEMU # endif # endif #elif defined(__GNUC__) && defined(__GNUC_MINOR__)
@@ -2074,7 +2074,7 @@ cat > $TMPC << EOF int main (void) { return 0; } EOF if ! compile_prog "" "" ; then - error_exit "You need at least GCC v7.5 or Clang v3.4 (or XCode Clang v5.1)" + error_exit "You need at least GCC v7.5 or Clang v6.0 (or XCode Clang v10.0)" fi # Accumulate -Wfoo and -Wno-bar separately.
Signature · 1 line
2.27.0
[PULL 14/17] tests/docker: drop CentOS 7 container
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
It has been over two years since RHEL-8 was released, and thus per the platform build policy, we no longer need to support RHEL-7 as a build target.
Message-Id: <[email protected]>
--- .gitlab-ci.d/containers.yml | 5 --- tests/docker/dockerfiles/centos7.docker | 43 ------------------------- 2 files changed, 48 deletions(-) delete mode 100644 tests/docker/dockerfiles/centos7.docker
.gitlab-ci.d/containers.yml +0 -5
@@ -7,11 +7,6 @@ amd64-alpine-container: variables: NAME: alpine -amd64-centos7-container: - extends: .container_job_template - variables: - NAME: centos7 - amd64-debian11-container: extends: .container_job_template variables:
tests/docker/dockerfiles/centos7.docker deleted +0 -43
43 lines not on this page · raw message
Signature · 1 line
2.27.0
[PULL 16/17] configure: bump min required GCC to 7.5.0
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
Several distros have been dropped since the last time we bumped the minimum required GCC version.
Per repology, currently shipping versions are:
RHEL-8: 8.3.1
Debian Buster: 8.3.0
openSUSE Leap 15.2: 7.5.0
Ubuntu LTS 18.04: 7.5.0
Ubuntu LTS 20.04: 9.3.0
FreeBSD: 10.3.0
Fedora 33: 9.2.0
Fedora 34: 11.0.1
OpenBSD: 8.4.0
macOS HomeBrew: 11.1.0With this list Ubuntu LTS 18.04 / openSUSE Leap 15.2 are the constraint at 7.5.0
Message-Id: <[email protected]>
--- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
configure +3 -3
@@ -2065,8 +2065,8 @@ cat > $TMPC << EOF # endif # endif #elif defined(__GNUC__) && defined(__GNUC_MINOR__) -# if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8) -# error You need at least GCC v4.8 to compile QEMU +# if __GNUC__ < 7 || (__GNUC__ == 7 && __GNUC_MINOR__ < 5) +# error You need at least GCC v7.5.0 to compile QEMU # endif #else # error You either need GCC or Clang to compiler QEMU
@@ -2074,7 +2074,7 @@ cat > $TMPC << EOF int main (void) { return 0; } EOF if ! compile_prog "" "" ; then - error_exit "You need at least GCC v4.8 or Clang v3.4 (or XCode Clang v5.1)" + error_exit "You need at least GCC v7.5 or Clang v3.4 (or XCode Clang v5.1)" fi # Accumulate -Wfoo and -Wno-bar separately.
Signature · 1 line
2.27.0
[PULL 13/17] tests/vm: convert centos VM recipe to CentOS 8
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
Message-Id: <[email protected]>
--- tests/vm/centos | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-)
tests/vm/centos +8 -9
@@ -26,24 +26,23 @@ class CentosVM(basevm.BaseVM): export SRC_ARCHIVE=/dev/vdb; sudo chmod a+r $SRC_ARCHIVE; tar -xf $SRC_ARCHIVE; - make docker-test-block@centos7 {verbose} J={jobs} NETWORK=1; - make docker-test-quick@centos7 {verbose} J={jobs} NETWORK=1; + make docker-test-block@centos8 {verbose} J={jobs} NETWORK=1; + make docker-test-quick@centos8 {verbose} J={jobs} NETWORK=1; make docker-test-mingw@fedora {verbose} J={jobs} NETWORK=1; """ def build_image(self, img): - cimg = self._download_with_cache("https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1802.qcow2.xz") + cimg = self._download_with_cache("https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.3.2011-20201204.2.x86_64.qcow2") img_tmp = img + ".tmp" - sys.stderr.write("Extracting the image...\n") - subprocess.check_call(["ln", "-f", cimg, img_tmp + ".xz"]) - subprocess.check_call(["xz", "--keep", "-dvf", img_tmp + ".xz"]) + subprocess.check_call(["ln", "-f", cimg, img_tmp]) self.exec_qemu_img("resize", img_tmp, "50G") self.boot(img_tmp, extra_args = ["-cdrom", self.gen_cloud_init_iso()]) self.wait_ssh() self.ssh_root_check("touch /etc/cloud/cloud-init.disabled") - self.ssh_root_check("yum update -y") - self.ssh_root_check("yum install -y docker make ninja-build git python3") - self.ssh_root_check("systemctl enable docker") + self.ssh_root_check("dnf update -y") + self.ssh_root_check("dnf install -y dnf-plugins-core") + self.ssh_root_check("dnf config-manager --set-enabled powertools") + self.ssh_root_check("dnf install -y podman make ninja-build git python3") self.ssh_root("poweroff") self.wait() os.rename(img_tmp, img)
Signature · 1 line
2.27.0
Peter Maydell
AppliedQuoted 11 lines · Thomas Huth
Hi Peter!
The following changes since commit
52848929b70dcf92a68aedcfd90207be81ba3274:Merge remote-tracking branch 'remotes/kraxel/tags/usb-20210528-pull-request' into staging (2021-05-30 20:10:30 +0100)
are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2021-06-02
Quoted 8 lines
for you to fetch changes up to
2a85a08c998e418a46a308095893f223642f6fc9:configure: bump min required CLang to 6.0 / XCode 10.0 (2021-06-02 09:11:32 +0200)
----------------------------------------------------------------
* Update the references to some doc files (use *.rst instead of *.txt)
* Bump minimum versions of some requirements after removing CentOS 7 support
----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/6.1
for any user-visible changes.
-- PMM