# Whether to support Ceph rbd storage backend %bcond_without rbd Name: qemu Version: 8.2.0 Release: 26 Epoch: 11 Summary: QEMU is a generic and open source machine emulator and virtualizer License: GPLv2 and BSD and MIT and CC-BY-SA-4.0 URL: http://www.qemu.org Source0: https://download.qemu.org/%{name}-%{version}%{?rcstr}.tar.xz Source1: 80-kvm.rules Source2: 99-qemu-guest-agent.rules Source3: bridge.conf Source4: BinDir.tar.gz Patch0001: tests-qemu-iotests-resolved-the-problem-that-the-108.patch Patch0002: hw-usb-Style-cleanup.patch Patch0003: virtio-gpu-Correct-virgl_renderer_resource_get_info-.patch Patch0004: blkio-Respect-memory-alignment-for-bounce-buffer-all.patch Patch0005: i386-cpu-Clear-FEAT_XSAVE_XSS_LO-HI-leafs-when-CPUID.patch Patch0006: i386-cpu-Mask-with-XCR0-XSS-mask-for-FEAT_XSAVE_XCR0.patch Patch0007: i386-cpuid-Decrease-cpuid_i-when-skipping-CPUID-leaf.patch Patch0008: i386-cpuid-Move-leaf-7-to-correct-group.patch Patch0009: chardev-char-socket-Fix-TLS-io-channels-sending-too-.patch Patch0010: vfio-pci-Ascend310-need-4Bytes-quirk-in-bar4.patch Patch0011: vfio-pci-Ascend710-need-4Bytes-quirk-in-bar0.patch Patch0012: vfio-pci-Ascend910-need-4Bytes-quirk-in-bar0.patch Patch0013: vfio-pci-Ascend710-change-to-bar2-quirk.patch Patch0014: hw-i2c-smbus_slave-Add-object-path-on-error-prints.patch Patch0015: virtio-gpu-remove-needless-condition.patch Patch0016: target-i386-sev-Fix-missing-ERRP_GUARD-for-error_pre.patch Patch0017: hw-acpi-cpu-Use-CPUState-typedef.patch Patch0018: hw-nvme-Use-pcie_sriov_num_vfs-CVE-2024-26328.patch Patch0019: pcie_sriov-Validate-NumVFs-CVE-2024-26327.patch Patch0020: Revert-file-posix-Remove-unused-s-discard_zeroes.patch Patch0021: qemu-img-block-set-zero-flags-only-when-discard_zero.patch Patch0022: qemu-img-add-qemu-img-direct-create.patch Patch0023: qemu-img-create-cache-paramter-only-use-for-reg-file.patch Patch0024: hw-cxl-cxl-host-Fix-missing-ERRP_GUARD-in-cxl_fixed_.patch Patch0025: hw-display-macfb-Fix-missing-ERRP_GUARD-in-macfb_nub.patch Patch0026: bugfix-fix-eventfds-may-double-free-when-vm_id-reuse.patch Patch0027: log-Add-some-logs-on-VM-runtime-path.patch Patch0028: util-log-add-CONFIG_DISABLE_QEMU_LOG-macro.patch Patch0029: bugfix-fix-some-illegal-memory-access-and-memory-lea.patch Patch0030: bugfix-fix-possible-memory-leak.patch Patch0031: scsi-disk-define-props-in-scsi_block_disk-to-avoid-m.patch Patch0032: qemu-pr-fixed-ioctl-failed-for-multipath-disk.patch Patch0033: scsi-cdrom-Fix-crash-after-remote-cdrom-detached.patch Patch0034: scsi-bugfix-fix-division-by-zero.patch Patch0035: qapi-block-core-Add-retry-option-for-error-action.patch Patch0036: block-backend-Introduce-retry-timer.patch Patch0037: block-backend-Add-device-specific-retry-callback.patch Patch0038: block-backend-Enable-retry-action-on-errors.patch Patch0039: block-backend-Add-timeout-support-for-retry.patch Patch0040: block-Add-error-retry-param-setting.patch Patch0041: virtio_blk-Add-support-for-retry-on-errors.patch Patch0042: scsi-bus-Refactor-the-code-that-retries-requests.patch Patch0043: scsi-disk-Add-support-for-retry-on-errors.patch Patch0044: block-backend-Stop-retrying-when-draining.patch Patch0045: block-Add-sanity-check-when-setting-retry-parameters.patch Patch0046: scsi-bus-fix-unmatched-object_unref.patch Patch0047: scsi-bus-fix-incorrect-call-for-blk_error_retry_rese.patch Patch0048: block-mirror-fix-file-system-went-to-read-only-after.patch Patch0049: block-enable-cache-mode-of-empty-cdrom.patch Patch0050: block-bugfix-Don-t-pause-vm-when-NOSPACE-EIO-happene.patch Patch0051: hw-loongarch-virt-Align-high-memory-base-address-wit.patch Patch0052: target-loongarch-Add-timer-information-dump-support.patch Patch0053: target-loongarch-meson-move-gdbstub.c-to-loongarch.s.patch Patch0054: target-loongarch-move-translate-modules-to-tcg.patch Patch0055: linux-headers-Update-to-Linux-v6.7-rc5.patch Patch0056: linux-headers-Synchronize-linux-headers-from-linux-v.patch Patch0057: target-loongarch-Define-some-kvm_arch-interfaces.patch Patch0058: target-loongarch-Supplement-vcpu-env-initial-when-vc.patch Patch0059: target-loongarch-Implement-kvm-get-set-registers.patch Patch0060: target-loongarch-Implement-kvm_arch_init-function.patch Patch0061: target-loongarch-Implement-kvm_arch_init_vcpu.patch Patch0062: target-loongarch-Implement-kvm_arch_handle_exit.patch Patch0063: target-loongarch-Restrict-TCG-specific-code.patch Patch0064: target-loongarch-Implement-set-vcpu-intr-for-kvm.patch Patch0065: target-loongarch-Add-loongarch-kvm-into-meson-build.patch Patch0066: hw-intc-loongarch_ipi-Use-MemTxAttrs-interface-for-i.patch Patch0067: hw-loongarch-virt-Set-iocsr-address-space-per-board-.patch Patch0068: hw-intc-loongarch_extioi-Add-dynamic-cpu-number-supp.patch Patch0069: hw-intc-loongarch_extioi-Add-vmstate-post_load-suppo.patch Patch0070: configure-Add-linux-header-compile-support-for-Loong.patch Patch0071: target-loongarch-Set-cpuid-CSR-register-only-once-wi.patch Patch0072: target-loongarch-kvm-Enable-LSX-LASX-extension.patch Patch0073: target-loongarch-Fix-qtest-test-hmp-error-when-KVM-o.patch Patch0074: loongarch-Change-the-UEFI-loading-mode-to-loongarch.patch Patch0075: disable-keyring-option.patch Patch0076: virtio-net-correctly-copy-vnet-header-when-flushing-.patch Patch0077: ui-clipboard-mark-type-as-not-available-when-there-i.patch Patch0078: memory-backup-Modify-the-VM-s-physical-bits-value-se.patch Patch0079: backup-memory-bakcup-hugepages-hugepages-files-maybe.patch Patch0080: block-disallow-block-jobs-when-there-is-a-BDRV_O_INA.patch Patch0081: travis-ci-Rename-SOFTMMU-SYSTEM.patch Patch0082: iotests-adapt-to-output-change-for-recently-introduc.patch Patch0083: migration-Skip-only-empty-block-devicesi.patch Patch0084: vhost-cancel-migration-when-vhost-user-restarted-dur.patch Patch0085: Currently-while-kvm-and-qemu-can-not-handle-some-kvm.patch Patch0086: ps2-fix-oob-in-ps2-kbd.patch Patch0087: monitor-qmp-drop-inflight-rsp-if-qmp-client-broken.patch Patch0088: oslib-posix-optimise-vm-startup-time-for-1G-hugepage.patch Patch0089: migration-skip-cache_drop-for-bios-bootloader-and-nv.patch Patch0090: migration-Add-multi-thread-compress-method.patch Patch0091: migration-Refactoring-multi-thread-compress-migratio.patch Patch0092: migration-Add-multi-thread-compress-ops.patch Patch0093: migration-Add-zstd-support-in-multi-thread-compressi.patch Patch0094: migration-Add-compress_level-sanity-check.patch Patch0095: doc-Update-multi-thread-compression-doc.patch Patch0096: cpu-features-fix-bug-for-memory-leakage.patch Patch0097: migration-report-migration-related-thread-pid-to-lib.patch Patch0098: migration-report-multiFd-related-thread-pid-to-libvi.patch Patch0099: virtio-check-descriptor-numbers.patch Patch0100: virtio-bugfix-add-rcu_read_lock-when-vring_avail_idx.patch Patch0101: virtio-print-the-guest-virtio_net-features-that-host.patch Patch0102: virtio-bugfix-check-the-value-of-caches-before-acces.patch Patch0103: virtio-scsi-bugfix-fix-qemu-crash-for-hotplug-scsi-d.patch Patch0104: nbd-server.c-fix-invalid-read-after-client-was-alrea.patch Patch0105: qemu-nbd-make-native-as-the-default-aio-mode.patch Patch0106: qemu-nbd-set-timeout-to-qemu-nbd-socket.patch Patch0107: qdev-monitors-Fix-reundant-error_setg-of-qdev_add_de.patch Patch0108: pcie-Compat-with-devices-which-do-not-support-Link-W.patch Patch0109: pcie-Add-pcie-root-port-fast-plug-unplug-feature.patch Patch0110: net-dump.c-Suppress-spurious-compiler-warning.patch Patch0111: hw-net-rocker_of_dpa-fix-double-free-bug-of-rocker-d.patch Patch0112: i6300esb-watchdog-bugfix-Add-a-runstate-transition.patch Patch0113: vhost-user-Set-the-acked_features-to-vm-s-featrue.patch Patch0114: vhost-user-Add-support-reconnect-vhost-user-socket.patch Patch0115: fix-qemu-core-when-vhost-user-net-config-with-server.patch Patch0116: vhost-user-quit-infinite-loop-while-used-memslots-is.patch Patch0117: vhost-user-add-vhost_set_mem_table-when-vm-load_setu.patch Patch0118: vhost-user-add-unregister_savevm-when-vhost-user-cle.patch Patch0119: monitor-Discard-BLOCK_IO_ERROR-event-when-VM-reboote.patch Patch0120: virtio-net-bugfix-do-not-delete-netdev-before-virtio.patch Patch0121: virtio-net-fix-max-vring-buf-size-when-set-ring-num.patch Patch0122: virtio-net-set-the-max-of-queue-size-to-4096.patch Patch0123: virtio-net-update-the-default-and-max-of-rx-tx_queue.patch Patch0124: hw-usb-reduce-the-vpcu-cost-of-UHCI-when-VNC-disconn.patch Patch0125: vhost-vdpa-add-VHOST_BACKEND_F_BYTEMAPLOG.patch Patch0126: vhost-vdpa-add-migration-log-ops-for-VhostOps.patch Patch0127: vhost-introduce-bytemap-for-vhost-backend-logging.patch Patch0128: vhost-add-vhost_dev_suspend-resume_op.patch Patch0129: vhost-implement-vhost-vdpa-suspend-resume.patch Patch0130: vhost-implement-vhost_vdpa_device_suspend-resume.patch Patch0131: vhost-implement-savevm_handler-for-vdpa-device.patch Patch0132: vhost-implement-post-resume-bh.patch Patch0133: vhost-implement-migration-state-notifier-for-vdpa-de.patch Patch0134: vdpa-implement-vdpa-device-migration.patch Patch0135: vdpa-move-memory-listener-to-the-realize-stage.patch Patch0136: vdpa-support-vdpa-device-suspend-resume.patch Patch0137: vdpa-suspend-function-return-0-when-the-vdpa-device-.patch Patch0138: vdpa-correct-param-passed-in-when-unregister-save.patch Patch0139: vdpa-don-t-suspend-resume-device-when-vdpa-device-no.patch Patch0140: docs-Add-generic-vhost-vdpa-device-documentation.patch Patch0141: vdpa-set-vring-enable-only-if-the-vring-address-has-.patch Patch0142: ide-ahci-add-check-to-avoid-null-dereference-CVE-201.patch Patch0143: net-eepro100-validate-various-address-valuesi-CVE-20.patch Patch0144: cpu-add-Kunpeng-920-cpu-support.patch Patch0145: cpu-add-Cortex-A72-processor-kvm-target-support.patch Patch0146: tests-virt-Allow-changes-to-PPTT-test-table.patch Patch0147: hw-arm64-add-vcpu-cache-info-support.patch Patch0148: arm64-Add-the-cpufreq-device-to-show-cpufreq-info-to.patch Patch0149: tests-virt-Update-expected-ACPI-tables-for-virt-test.patch Patch0150: pl011-reset-read-FIFO-when-UARTTIMSC-0-UARTICR-0xfff.patch Patch0151: shadow_dev-introduce-shadow-dev-for-virtio-net-devic.patch Patch0152: tests-Disable-filemonitor-testcase.patch Patch0153: freeclock-add-qmp-command-to-get-time-offset-of-vm-i.patch Patch0154: freeclock-set-rtc_date_diff-for-arm.patch Patch0155: freeclock-set-rtc_date_diff-for-X86.patch Patch0156: i386-cache-passthrough-Update-AMD-8000_001D.EAX-25-1.patch Patch0157: bugfix-irq-Avoid-covering-object-refcount-of-qemu_ir.patch Patch0158: log-Add-log-at-boot-cpu-init-for-aarch64.patch Patch0159: feature-Add-log-for-each-modules.patch Patch0160: feature-Add-logs-for-vm-start-and-destroy.patch Patch0161: pl031-support-rtc-timer-property-for-pl031.patch Patch0162: arm-acpi-Fix-when-make-qemu-system-aarch64-at-x86_64.patch Patch0163: linux-headers-update-against-5.10-and-manual-clear-v.patch Patch0164: vfio-Maintain-DMA-mapping-range-for-the-container.patch Patch0165: vfio-migration-Add-support-for-manual-clear-vfio-dir.patch Patch0166: arm-virt-target-arm-Add-new-ARMCPU-socket-cluster-co.patch Patch0167: cpus-common-Add-common-CPU-utility-for-possible-vCPU.patch Patch0168: hw-arm-virt-Move-setting-of-common-CPU-properties-in.patch Patch0169: arm-virt-target-arm-Machine-init-time-change-common-.patch Patch0170: accel-kvm-Extract-common-KVM-vCPU-creation-parking-c.patch Patch0171: arm-virt-kvm-Pre-create-disabled-possible-vCPUs-mach.patch Patch0172: arm-virt-gicv3-Changes-to-pre-size-GIC-with-possible.patch Patch0173: arm-virt-Init-PMU-at-host-for-all-possible-vcpus.patch Patch0174: hw-acpi-Move-CPU-ctrl-dev-MMIO-region-len-macro-to-c.patch Patch0175: arm-acpi-Enable-ACPI-support-for-vcpu-hotplug.patch Patch0176: hw-acpi-Add-ACPI-CPU-hotplug-init-stub.patch Patch0177: hw-acpi-Use-qemu_present_cpu-API-in-ACPI-CPU-hotplug.patch Patch0178: hw-acpi-Init-GED-framework-with-cpu-hotplug-events.patch Patch0179: arm-virt-Add-cpu-hotplug-events-to-GED-during-creati.patch Patch0180: arm-virt-Create-GED-dev-before-disabled-CPU-Objs-are.patch Patch0181: hw-acpi-Update-CPUs-AML-with-cpu-ctrl-dev-change.patch Patch0182: arm-virt-acpi-Factor-out-CPPC-building-from-DSDT-CPU.patch Patch0183: acpi-cpu-Add-cpu_cppc-building-support.patch Patch0184: tests-acpi-bios-tables-test-Allow-changes-to-virt-DS.patch Patch0185: arm-virt-acpi-Build-CPUs-AML-with-CPU-Hotplug-suppor.patch Patch0186: arm-virt-Make-ARM-vCPU-present-status-ACPI-persisten.patch Patch0187: hw-acpi-ACPI-AML-Changes-to-reflect-the-correct-_STA.patch Patch0188: hw-acpi-Update-GED-_EVT-method-AML-with-cpu-scan.patch Patch0189: hw-arm-MADT-Tbl-change-to-size-the-guest-with-possib.patch Patch0190: hw-acpi-Make-_MAT-method-optional.patch Patch0191: arm-virt-Release-objects-for-disabled-possible-vCPUs.patch Patch0192: hw-acpi-Update-ACPI-GED-framework-to-support-vCPU-Ho.patch Patch0193: arm-virt-Add-update-basic-hot-un-plug-framework.patch Patch0194: arm-virt-Changes-to-un-wire-GICC-vCPU-IRQs-during-ho.patch Patch0195: hw-arm-gicv3-Changes-to-update-GIC-with-vCPU-hot-plu.patch Patch0196: hw-intc-arm-gicv3-Changes-required-to-re-init-the-vC.patch Patch0197: arm-virt-Update-the-guest-via-GED-about-CPU-hot-un-p.patch Patch0198: hw-arm-Changes-required-for-reset-and-to-support-nex.patch Patch0199: physmem-gdbstub-Common-helping-funcs-changes-to-unre.patch Patch0200: target-arm-Add-support-of-unrealize-ARMCPU-during-vC.patch Patch0201: target-arm-kvm-Write-CPU-state-back-to-KVM-on-reset.patch Patch0202: target-arm-kvm-tcg-Register-Handle-SMCCC-hypercall-e.patch Patch0203: hw-arm-Support-hotplug-capability-check-using-_OSC-m.patch Patch0204: tcg-mttcg-enable-threads-to-unregister-in-tcg_ctxs.patch Patch0205: hw-arm-virt-Expose-cold-booted-CPUs-as-MADT-GICC-Ena.patch Patch0206: system-physmem-Fix-possible-double-free-when-destroy.patch Patch0207: arm-cpu-Some-fixes-for-arm_cpu_unrealizefn.patch Patch0208: acpi-cpu-Fix-cpu_hotplug_hw_init.patch Patch0209: system-cpus-Fix-pause_all_vcpus-under-concurrent-env.patch Patch0210: system-cpus-Fix-resume_all_vcpus-under-vCPU-hotplug-.patch Patch0211: arm-virt.c-Convey-local_err-when-set-psci-conduit.patch Patch0212: arm-virt-Fix-adjudgement-of-core_id-for-vcpu-hotplug.patch Patch0213: accel-kvm-Use-correct-id-for-parked-vcpu.patch Patch0214: arm-kvm-Set-psci-smccc-filter-only-with-vcpu-hotplug.patch Patch0215: intc-gicv3-Fixes-for-vcpu-hotplug.patch Patch0216: acpi-ged-Init-cpu-hotplug-only-when-machine-support-.patch Patch0217: acpi-ged-Remove-cpuhp-field-of-ged.patch Patch0218: arm-virt-acpi-Require-possible_cpu_arch_ids-for-buil.patch Patch0219: arm-virt-Consider-has_ged-when-set-mc-has_hotpluggab.patch Patch0220: arm-virt-Require-mc-has_hotpluggable_cpus-for-cold-p.patch Patch0221: tests-acpi-Update-expected-ACPI-tables-for-vcpu-hotp.patch Patch0222: coro-support-live-patch-for-libcare.patch Patch0223: arm-virt-Use-separate-filed-to-identify-cpu-hotplug-.patch Patch0224: arm-virt-Use-max_cpus-to-calculate-redist1_count.patch Patch0225: include-ui-rect.h-fix-qemu_rect_init-mis-assignment.patch Patch0226: tests-bios-tables-test-Rename-smbios-type-4-related-.patch Patch0227: hw-scsi-scsi-generic-Fix-io_timeout-property-not-app.patch Patch0228: hw-net-virtio-net-fix-qemu-set-used-ring-flag-even-v.patch Patch0229: block-virtio-blk-Fix-memory-leak-from-virtio_blk_zon.patch Patch0230: hw-nvme-fix-Werror-maybe-uninitialized.patch Patch0231: hw-net-net_tx_pkt-Fix-overrun-in-update_sctp_checksu.patch Patch0232: hw-virtio-Introduce-virtio_bh_new_guarded-helper.patch Patch0233: hw-display-virtio-gpu-Protect-from-DMA-re-entrancy-b.patch Patch0234: hw-char-virtio-serial-bus-Protect-from-DMA-re-entran.patch Patch0235: hw-virtio-virtio-crypto-Protect-from-DMA-re-entrancy.patch Patch0236: hw-sd-sdhci-Do-not-update-TRNMOD-when-Command-Inhibi.patch Patch0237: acpi-cpu-Fix-detection-of-present-cpu.patch Patch0238: arm-virt-Don-t-modify-smp.max_cpus-when-vcpu-hotplug.patch Patch0239: kvm-arm-Fix-SVE-related-logic-for-vcpu-hotplug-featu.patch Patch0240: arm-virt-acpi-Extend-cpufreq-to-support-max_cpus.patch Patch0241: kvm-arm-Fix-compatibility-of-cold-plug-CPU-with-SVE.patch Patch0242: hw-isa-vt82c686-Keep-track-of-PIRQ-PINT-pins-separat.patch Patch0243: target-i386-Introduce-Icelake-Server-v7-to-enable-TS.patch Patch0244: target-i386-Add-new-CPU-model-SierraForest.patch Patch0245: target-i386-Export-RFDS-bit-to-guests.patch Patch0246: target-loongarch-Fix-qemu-system-loongarch64-assert-.patch Patch0247: target-loongarch-Fix-qemu-loongarch64-hang-when-exec.patch Patch0248: target-loongarch-Fix-tlb-huge-page-loading-issue.patch Patch0249: target-loongarch-kvm-Add-software-breakpoint-support.patch Patch0250: target-loongarch-kvm-sync-kernel-header-files.patch Patch0251: hw-intc-loongarch_extioi-Add-virt-extension-support.patch Patch0252: target-loongarch-kvm-Add-pmu-support.patch Patch0253: target-loongarch-kvm-Fix-vm-restore-failed.patch Patch0254: target-loongarch-kvm-Add-pv-steal-time-support.patch Patch0255: target-loongarch-kvm-fpu-save-the-vreg-registers-hig.patch Patch0256: ppc-pnv-I2C-controller-is-not-user-creatablei.patch Patch0257: arm-virt-Set-vcpus_count-of-CPU-as-1-to-compatible-w.patch Patch0258: hw-ufs-Fix-buffer-overflow-bug.patch Patch0259: ui-gtk-Fix-mouse-motion-event-scaling-issue-with-GTK.patch Patch0260: target-i386-Add-Hygon-Dhyana-v3-CPU-model.patch Patch0261: target-i386-Add-new-Hygon-Dharma-CPU-model.patch Patch0262: target-riscv-cpu.c-fix-Zvkb-extension-config.patch Patch0263: target-hexagon-idef-parser-fix-leak-of-init_list.patch Patch0264: migration-dirtyrate-Fix-segmentation-fault.patch Patch0265: qcow2-Don-t-open-data_file-with-BDRV_O_NO_IO-CVE-202.patch Patch0266: iotests-244-Don-t-store-data-file-with-protocol-in-i.patch Patch0267: iotests-270-Don-t-store-data-file-with-json-prefix-i.patch Patch0268: block-Parse-filenames-only-when-explicitly-requested.patch Patch0269: nbd-Minor-style-and-typo-fixes.patch Patch0270: nbd-server-Plumb-in-new-args-to-nbd_client_add.patch Patch0271: nbd-server-CVE-2024-7409-Cap-default-max-connections.patch Patch0272: nbd-server-CVE-2024-7409-Drop-non-negotiating-client.patch Patch0273: nbd-server-CVE-2024-7409-Close-stray-clients-at-serv.patch Patch0274: physmem-Bail-out-qemu_ram_block_from_host-for-invali.patch Patch0275: hvf-arm-Do-not-advance-PC-when-raising-an-exception.patch Patch0276: hw-nvme-fix-memory-leak-in-nvme_dsm.patch Patch0277: hw-nvme-fix-number-of-PIDs-for-FDP-RUH-update.patch Patch0278: aspeed-smc-Fix-possible-integer-overflow.patch Patch0279: hw-display-bcm2835_fb-fix-fb_use_offsets-condition.patch Patch0280: vl-fix-type-is-NULL-in-vga-help.patch Patch0281: ppc-vof-Fix-unaligned-FDT-property-access.patch Patch0282: crypto-Introduce-SM4-symmetric-cipher-algorithm.patch Patch0283: target-sparc-use-signed-denominator-in-sdiv-helper.patch Patch0284: Add-support-for-the-virtcca-cvm-feature.patch Patch0285: target-i386-add-support-for-LAM-in-CPUID-enumeration.patch Patch0286: target-i386-add-control-bits-support-for-LAM.patch Patch0287: cvm-bug-fix-for-incorrect-device-name-check-for-vhos.patch Patch0288: cvm-bug-fix-for-undefined-reference-to-virtcca_cvm_a.patch Patch0289: hw-misc-support-vpsp.patch Patch0290: hw-core-ptimer-fix-timer-zero-period-condition-for-f.patch Patch0291: vvfat-Fix-bug-in-writing-to-middle-of-file.patch Patch0292: virtio-net-Use-virtual-time-for-RSC-timers.patch Patch0293: crypto-Introduce-SM3-hash-hmac-pbkdf-algorithm.patch Patch0294: cvm-Implement-command-blacklist-for-cvm-security-enh.patch Patch0295: hw-display-vhost-user-gpu.c-fix-vhost_user_gpu_chr_r.patch Patch0296: hw-nvme-fix-leak-of-uninitialized-memory-in-io_mgmt_.patch Patch0297: crypto-tlscredspsk-Free-username-on-finalize.patch Patch0298: doc-update-AMD-SEV-to-include-Live-migration-flow.patch Patch0299: migration.json-add-AMD-SEV-specific-migration-parame.patch Patch0300: confidential-guest-support-introduce-ConfidentialGue.patch Patch0301: target-i386-sev-provide-callback-to-setup-outgoing-c.patch Patch0302: target-i386-sev-do-not-create-launch-context-for-an-.patch Patch0303: target-i386-sev-add-support-to-encrypt-the-outgoing-.patch Patch0304: target-i386-sev-add-support-to-load-incoming-encrypt.patch Patch0305: kvm-Add-support-for-SEV-shared-regions-list-and-KVM_.patch Patch0306: migration-add-support-to-migrate-shared-regions-list.patch Patch0307: migration-ram-add-support-to-send-encrypted-pages.patch Patch0308: migration-ram-Force-encrypted-status-for-flash0-flas.patch Patch0309: kvm-Add-support-for-userspace-MSR-filtering-and-hand.patch Patch0310: target-i386-sev-Return-0-if-sev_send_get_packet_len-.patch Patch0311: migration-ram-Force-encrypted-status-for-VGA-vram.patch Patch0312: target-i386-sev-Clear-shared_regions_list-when-reboo.patch Patch0313: migration-ram-Fix-calculation-of-gfn-correpond-to-a-.patch Patch0314: target-i386-Introduce-header-file-csv.h.patch Patch0315: target-i386-csv-Read-cert-chain-from-file-when-prepa.patch Patch0316: target-i386-csv-add-support-to-queue-the-outgoing-pa.patch Patch0317: target-i386-csv-add-support-to-encrypt-the-outgoing-.patch Patch0318: target-i386-csv-add-support-to-queue-the-incoming-pa.patch Patch0319: target-i386-csv-add-support-to-load-incoming-encrypt.patch Patch0320: migration-ram-Accelerate-the-transmission-of-CSV-gue.patch Patch0321: migration-ram-Accelerate-the-loading-of-CSV-guest-s-.patch Patch0322: target-i386-csv-Add-support-for-migrate-VMSA-for-CSV.patch Patch0323: target-i386-get-set-migrate-GHCB-state.patch Patch0324: target-i386-kvm-Fix-the-resettable-info-when-emulate.patch Patch0325: kvm-Add-support-for-CSV2-reboot.patch Patch0326: update-docs-tools-virtfs-proxy-helper.rst.patch Patch0327: update-io-trace-events.patch Patch0328: nbd-server-CVE-2024-7409-Avoid-use-after-free-when-c.patch Patch0329: virtio-net-Ensure-queue-index-fits-with-RSS-CVE-2024.patch Patch0330: target-i386-Introduce-SapphireRapids-v3-to-add-missi.patch Patch0331: hw-misc-bcm2835_property-Fix-handling-of-FRAMEBUFFER.patch Patch0332: target-arm-Disable-SVE-extensions-when-SVE-is-disabl.patch Patch0333: virtio-pci-fix-use-of-a-released-vector.patch Patch0334: target-loongarch-fix-a-wrong-print-in-cpu-dump.patch Patch0335: backends-cryptodev-builtin-Fix-local_error-leaks.patch Patch0336: char-stdio-Restore-blocking-mode-of-stdout-on-exit.patch Patch0337: target-i386-no-single-step-exception-after-MOV-or-PO.patch Patch0338: migration-colo-Fix-bdrv_graph_rdlock_main_loop-Asser.patch Patch0339: load_elf-fix-iterator-s-type-for-elf-file-processing.patch Patch0340: hw-loongarch-Fix-fdt-memory-node-wrong-reg.patch Patch0341: hw-loongarch-virt-Fix-FDT-memory-node-address-width.patch Patch0342: system-physmem-Propagate-AddressSpace-to-MapClient-h.patch Patch0343: system-physmem-Per-AddressSpace-bounce-buffering.patch Patch0344: softmmu-Support-concurrent-bounce-buffers-CVE-2024-8.patch Patch0345: mac_dbdma-Remove-leftover-dma_memory_unmap-calls-CVE.patch Patch0346: crypto-avoid-leak-of-ctx-when-bad-cipher-mode-is-giv.patch Patch0347: hw-ufs-add-basic-info-of-query-response-upiu.patch Patch0348: hw-block-fix-uint32-overflow.patch Patch0349: Added-CoDA-feature-support-in-the-context-of-CVM.-Wh.patch Patch0350: virtio-snd-add-max-size-bounds-check-in-input-cb-CVE.patch Patch0351: target-ppc-Fix-lxvx-stxvx-facility-check.patch Patch0352: target-ppc-Fix-lxv-stxv-MSR-facility-check.patch Patch0353: virtio-net-drop-too-short-packets-early.patch Patch0354: target-i386-fix-size-of-EBP-writeback-in-gen_enter.patch Patch0355: ui-gtk-Draw-guest-frame-at-refresh-cycle.patch Patch0356: stdvga-fix-screen-blanking.patch Patch0357: hw-intc-riscv_aplic-APLICs-should-add-child-earlier-.patch Patch0358: hw-loongarch-virt-Fix-memory-leak.patch Patch0359: hw-remote-vfio-user-Fix-config-space-access-byte-ord.patch Patch0360: block-fix-Werror-maybe-uninitialized-false-positive.patch Patch0361: virtio-remove-virtio_tswap16s-call-in-vring_packed_e.patch Patch0362: target-riscv-kvm-tolerate-KVM-disable-ext-errors.patch Patch0363: ui-sdl2-set-swap-interval-explicitly-when-OpenGL-is-.patch Patch0364: hw-intc-arm_gic-fix-spurious-level-triggered-interru.patch Patch0365: hw-audio-virtio-sound-fix-heap-buffer-overflow.patch Patch0366: crypto-run-qcrypto_pbkdf2_count_iters-in-a-new-threa.patch Patch0367: softmmu-physmem-fix-memory-leak-in-dirty_memory_exte.patch Patch0368: tests-bump-QOS_PATH_MAX_ELEMENT_SIZE-again.patch Patch0369: enable-virtio-device-mmio-access-and-wait-util-virti.patch Patch0370: vdpa-fix-vdpa-device-migrate-rollback-wrong-when-sus.patch Patch0371: vdpa-support-resizing-virtio-blk-capacity-online-for.patch Patch0372: Revert-vdpa-add-vhost_vdpa_suspend.patch Patch0373: Revert-vdpa-add-vhost_vdpa-suspended-parameter.patch Patch0374: Revert-vdpa-block-migration-if-SVQ-does-not-admit-a-.patch Patch0375: vdpa-remove-memory-listener-unregister-in-vhost_vdpa.patch Patch0376: hw-gpio-aspeed_gpio-Avoid-shift-into-sign-bit.patch Patch0377: crypto-use-consistent-error-reporting-pattern-for-un.patch Patch0378: crypto-drop-gnutls-debug-logging-support.patch Patch0379: crypto-factor-out-conversion-of-QAPI-to-gcrypt-const.patch Patch0380: Consider-discard-option-when-writing-zeros.patch Patch0381: util-userfaultfd-Remove-unused-uffd_poll_events.patch Patch0382: tests-avocado-fix-typo-in-replay_linux.patch Patch0383: hw-net-can-sja1000-fix-bug-for-single-acceptance-fil.patch Patch0384: platform-bus-fix-refcount-leak.patch Patch0385: edu-fix-DMA-range-upper-bound-check.patch Patch0386: dma-Fix-function-names-in-documentation.patch Patch0387: audio-pw-Report-more-accurate-error-when-connecting-.patch Patch0388: audio-pw-Report-more-accurate-error-when-connecting--new.patch Patch0389: docs-tools-qemu-img.rst-fix-typo-sumarizes.patch Patch0390: hw-pci-bridge-Add-a-Kconfig-switch-for-the-normal-PC.patch Patch0391: hw-intc-openpic-Improve-errors-for-out-of-bounds-pro.patch Patch0392: acpi-ged-Add-macro-for-acpi-sleep-control-register.patch Patch0393: tests-Wait-for-migration-completion-on-destination-Q.patch Patch0394: hw-loongarch-virt-Remove-unnecessary-cpu.h-inclusion.patch Patch0395: raw-format-Fix-error-message-for-invalid-offset-size.patch Patch0396: linux-user-Clean-up-unused-header.patch Patch0397: target-riscv-csr.c-Fix-an-access-to-VXSAT.patch Patch0398: Fix-calculation-of-minimum-in-colo_compare_tcp.patch Patch0399: virtio-net-Avoid-indirection_table_mask-overflow.patch Patch0400: intel_iommu-Send-IQE-event-when-setting-reserved-bit.patch Patch0401: hw-cxl-Ensure-there-is-enough-data-to-read-the-input.patch Patch0402: virtio-pci-Fix-the-use-of-an-uninitialized-irqfd.patch Patch0403: block-blkio-use-FUA-flag-on-write-zeroes-only-if-sup.patch Patch0404: docs-sphinx-depfile.py-Handle-env.doc2path-returning.patch Patch0405: target-arm-Fix-SVE-SDOT-UDOT-USDOT-4-way-indexed.patch Patch0406: tests-docker-update-debian-i686-and-mipsel-images-to.patch Patch0407: module-Prevent-crash-by-resetting-local_err-in-modul.patch Patch0408: target-arm-Clear-high-SVE-elements-in-handle_vec_sim.patch Patch0409: target-ppc-Fix-migration-of-CPUs-with-TLB_EMB-TLB-ty.patch Patch0410: target-hppa-Fix-PSW-V-bit-packaging-in-cpu_hppa_get-.patch Patch0411: ppc-xive-Fix-ESB-length-overflow-on-32-bit-hosts.patch Patch0412: hw-vfio-add-device-hct-based-on-vfio.patch Patch0413: hw-vfio-hct-update-support-ccp-count-to-48.patch Patch0414: hw-vfio-hct-fix-ccp_index-error-caused-by-uninitiali.patch Patch0415: hw-vfio-hct-qemu-startup-terminate-once-error-happen.patch Patch0416: s390x-sclp-Simplify-get_sclp_device.patch Patch0417: ui-remove-break-after-g_assert_not_reached.patch Patch0418: ui-console-vc-Silence-warning-about-sprintf-on-OpenB.patch Patch0419: meson.build-Remove-ncurses-workaround-for-OpenBSD.patch Patch0420: hw-audio-hda-free-timer-on-exit.patch Patch0421: hw-pci-Add-parenthesis-to-PCI_BUILD_BDF-macro.patch Patch0422: hw-cxl-Ensure-there-is-enough-data-for-the-header-in.patch Patch0423: target-i386-sev-Fix-incompatibility-between-SEV-and-.patch Patch0424: target-i386-sev-Add-support-for-reuse-ASID-for-diffe.patch Patch0425: Add-virtCCA-Coda-annotation.patch Patch0426: cvm-Add-support-for-TEE-based-national-encryption-ac.patch Patch0427: hw-arm-virt-Keep-Guest-L1-cache-type-consistent-with.patch Patch0428: target-i386-add-guest-phys-bits-cpu-property.patch Patch0429: kvm-add-support-for-guest-physical-bits.patch Patch0430: hw-i386-add-mem2-option-for-qemu.patch Patch0431: hw-misc-support-tkm-use-mem2-memory.patch Patch0432: hw-misc-psp-Pin-the-hugepage-memory-specified-by-mem.patch Patch0433: 9pfs-fix-crash-on-Treaddir-request.patch Patch0434: hw-nvme-fix-handling-of-over-committed-queues.patch Patch0435: exec-memop-Remove-unused-memop_big_endian-helper.patch Patch0436: qemu-bswap-Undefine-CPU_CONVERT-once-done.patch Patch0437: next-kbd-convert-to-use-qemu_input_handler_register.patch Patch0438: target-i386-csv-Add-CSV3-context.patch Patch0439: target-i386-csv-Add-command-to-initialize-CSV3-conte.patch Patch0440: target-i386-csv-Add-command-to-load-data-to-CSV3-gue.patch Patch0441: target-i386-csv-Add-command-to-load-vmcb-to-CSV3-gue.patch Patch0442: target-i386-cpu-Populate-CPUID-0x8000_001F-when-CSV3.patch Patch0443: target-i386-csv-Do-not-register-unregister-guest-sec.patch Patch0444: target-i386-csv-Load-initial-image-to-private-memory.patch Patch0445: vga-Force-full-update-for-CSV3-guest.patch Patch0446: vfio-Only-map-shared-region-for-CSV3-virtual-machine.patch Patch0447: linux-headers-update-kernel-headers-to-include-CSV3-.patch Patch0448: target-i386-csv-Add-support-to-migrate-the-outgoing-.patch Patch0449: target-i386-csv-Add-support-to-migrate-the-incoming-.patch Patch0450: target-i386-csv-Add-support-to-migrate-the-outgoing--new.patch Patch0451: target-i386-csv-Add-support-to-migrate-the-incoming--new.patch Patch0452: hw-arm-mps2-tz.c-fix-RX-TX-interrupts-order.patch Patch0453: hw-i386-amd_iommu-Don-t-leak-memory-in-amdvi_update_.patch Patch0454: hw-ppc-e500-Add-missing-device-tree-properties-to-i2.patch Patch0455: hw-ppc-e500-Remove-unused-irqs-parameter.patch Patch0456: sphinx-qapidoc-Fix-to-generate-doc-for-explicit-unbo.patch Patch0457: hw-ppc-e500-Prefer-QOM-cast.patch Patch0458: target-arm-Fix-FJCVTZS-vs-flush-to-zero.patch Patch0459: ui-vnc-don-t-return-an-empty-SASL-mechlist-to-the-cl.patch Patch0460: migration-Fix-file-migration-with-fdset.patch Patch0461: tcg-loongarch64-Fix-tcg_out_movi-vs-some-pcrel-point.patch Patch0462: accel-tcg-Fix-typo-causing-tb-page_addr-1-to-not-be-.patch Patch0463: target-riscv-Fix-the-element-agnostic-function-probl.patch Patch0464: qio-Inherit-follow_coroutine_ctx-across-TLS.patch Patch0465: hw-intc-arm_gic-Fix-handling-of-NS-view-of-GICC_APR-.patch Patch0466: hvf-arm-Fix-encodings-for-ID_AA64PFR1_EL1-and-debug-.patch Patch0467: qemu-options-Fix-CXL-Fixed-Memory-Window-interleave-.patch Patch0468: target-m68k-Map-FPU-exceptions-to-FPSR-register.patch Patch0469: migration-fix-possible-int-overflow.patch Patch0470: tcg-Allow-top-bit-of-SIMD_DATA_BITS-to-be-set-in-sim.patch Patch0471: vdpa-dev-Fix-initialisation-order-to-restore-VDUSE-c.patch BuildRequires: flex BuildRequires: gcc BuildRequires: make BuildRequires: bison BuildRequires: texinfo BuildRequires: perl-podlators BuildRequires: chrpath BuildRequires: gettext BuildRequires: python-sphinx BuildRequires: ninja-build BuildRequires: zlib-devel BuildRequires: zstd-devel BuildRequires: gtk3-devel BuildRequires: gnutls-devel BuildRequires: numactl-devel BuildRequires: device-mapper-multipath-devel BuildRequires: rdma-core-devel BuildRequires: libcap-devel BuildRequires: libcap-ng-devel BuildRequires: cyrus-sasl-devel BuildRequires: libaio-devel BuildRequires: usbredir-devel >= 0.5.2 BuildRequires: libseccomp-devel >= 2.3.0 BuildRequires: systemd-devel BuildRequires: libiscsi-devel BuildRequires: snappy-devel BuildRequires: lzo-devel BuildRequires: ncurses-devel BuildRequires: libattr-devel BuildRequires: libcurl-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: pixman-devel BuildRequires: libusbx-devel BuildRequires: bzip2-devel BuildRequires: libepoxy-devel BuildRequires: libtasn1-devel BuildRequires: libxml2-devel BuildRequires: libudev-devel BuildRequires: pam-devel BuildRequires: perl-Test-Harness BuildRequires: python3-devel %if %{with rbd} BuildRequires: librbd-devel %endif BuildRequires: krb5-devel BuildRequires: libssh-devel BuildRequires: glib2 BuildRequires: libfdt-devel BuildRequires: virglrenderer-devel BuildRequires: libslirp-devel BuildRequires: liburing-devel %ifarch loongarch64 BuildRequires: spice-server-devel %endif # for upgrade from qemu-kvm Provides: qemu-kvm Obsoletes: qemu-kvm < 11:8.2.0 Requires(post): /usr/bin/getent Requires(post): /usr/sbin/groupadd Requires(post): /usr/sbin/useradd Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units Requires(postun): qemu-block-iscsi Requires(postun): qemu-block-curl Requires(postun): qemu-hw-usb-host Requires: libgcc Requires: liburing %description QEMU is a FAST! processor emulator using dynamic translation to achieve good emulation speed. QEMU has two operating modes: Full system emulation. In this mode, QEMU emulates a full system (for example a PC), including one or several processors and various peripherals. It can be used to launch different Operating Systems without rebooting the PC or to debug system code. User mode emulation. In this mode, QEMU can launch processes compiled for one CPU on another CPU. It can be used to launch the Wine Windows API emulator (https://www.winehq.org) or to ease cross-compilation and cross-debugging. You can refer to https://www.qemu.org for more infortmation. %package guest-agent Summary: QEMU guest agent Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units %description guest-agent This package provides an agent to run inside guests, which communicates with the host over a virtio-serial channel named "org.qemu.guest_agent.0" Please refer to https://wiki.qemu.org/Features/GuestAgent for more information. %package help Summary: Documents for qemu Buildarch: noarch %description help This package provides documents for qemu related man help and information. %package img Summary: QEMU command line tool for manipulating disk images %description img This package provides a command line tool for manipulating disk images %if %{with rbd} %package block-rbd Summary: Qemu-block-rbd %description block-rbd This package provides RBD support for Qemu %endif %package block-ssh Summary: Qemu-block-ssh %description block-ssh This package provides block-ssh support for Qemu %package block-iscsi Summary: Qemu-block-iscsi %description block-iscsi This package provides block-iscsi support for Qemu %package block-curl Summary: Qemu-block-curl %description block-curl This package provides block-curl support for Qemu %package hw-usb-host Summary: Qemu-hw-usb-host %description hw-usb-host This package provides hw-usb-host support for Qemu %ifarch %{ix86} x86_64 %package seabios Summary: QEMU seabios %description seabios This package include bios-256k.bin and bios.bin of seabios %endif %package system-aarch64 Summary: Qemu-system-aarch64 Requires: qemu %description system-aarch64 This package provides the QEMU system emulator for AArch64. %package system-arm Summary: Qemu-system-arm Requires: qemu %description system-arm This package provides the QEMU system emulator for ARM. %package system-x86_64 Summary: Qemu-system-x86_64 Requires: qemu %description system-x86_64 This package provides the QEMU system emulator for x86_64. %package system-ppc64 Summary: Qemu-system-ppc64 Requires: qemu %description system-ppc64 This package provides the QEMU system emulator for ppc64le. %package system-riscv Summary: Qemu-system-riscv32, Qemu-system-riscv64 Requires: qemu %description system-riscv This package provides the QEMU system emulator for riscv. %package system-loongarch64 Summary: Qemu-system-loongarch64 Requires: qemu %description system-loongarch64 This package provides the QEMU system emulator for loongarch64. %prep %setup -q -n qemu-%{version}%{?rcstr} %autopatch -p1 %build %ifarch x86_64 buildarch="x86_64-softmmu" targetarch="aarch64-softmmu arm-softmmu riscv32-softmmu riscv64-softmmu" %endif %ifarch aarch64 buildarch="aarch64-softmmu" targetarch="x86_64-softmmu arm-softmmu riscv32-softmmu riscv64-softmmu" %endif %ifarch ppc64le buildarch="ppc64-softmmu" targetarch="x86_64-softmmu aarch64-softmmu arm-softmmu riscv32-softmmu riscv64-softmmu" %endif %ifarch loongarch64 buildarch="loongarch64-softmmu" targetarch="x86_64-softmmu aarch64-softmmu arm-softmmu riscv32-softmmu riscv64-softmmu" %endif %ifarch riscv64 buildarch="riscv64-softmmu" targetarch="x86_64-softmmu aarch64-softmmu arm-softmmu riscv32-softmmu" %endif buildldflags="VL_LDFLAGS=-Wl,--build-id" qemubuilddir="build" tar xf %{SOURCE4} cd BinDir/ \cp -r -a * ../ cd ../ ./configure \ --prefix=%{_prefix} \ --target-list="${buildarch} ${targetarch}" \ --extra-cflags="%{optflags} -fPIE -DPIE -fPIC -ftls-model=initial-exec" \ --extra-ldflags="-Wl,--build-id -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack" \ --datadir=%{_datadir} \ --docdir=%{_docdir}/ \ --libdir=%{_libdir} \ --libexecdir=%{_libexecdir} \ --localstatedir=%{_localstatedir} \ --sysconfdir=%{_sysconfdir} \ --interp-prefix=%{_prefix}/qemu-%%M \ --firmwarepath=%{_datadir}/%{name} \ --with-pkgversion=%{name}-%{version}-%{release} \ --python=/usr/bin/python3 \ --enable-slirp \ --enable-slirp-smbd \ --enable-gtk \ --enable-docs \ --enable-guest-agent \ --enable-pie \ --enable-numa \ --enable-mpath \ --disable-libnfs \ --disable-bzip2 \ --enable-kvm \ --enable-tcg \ --enable-rdma \ --enable-linux-aio \ --enable-linux-io-uring \ --enable-cap-ng \ --enable-vhost-user \ --enable-vhost-net \ --enable-vhost-kernel \ --enable-vhost-user-blk-server \ --enable-vhost-vdpa \ --enable-tpm \ --enable-modules \ --enable-libssh \ --enable-fdt \ --enable-virglrenderer \ --enable-cap-ng \ --enable-libusb \ %if %{with rbd} --enable-rbd \ %else --disable-rbd \ %endif --disable-dmg \ --disable-qcow1 \ --disable-vdi \ --disable-vvfat \ --disable-qed \ --disable-parallels \ --disable-capstone \ --disable-smartcard \ --enable-zstd \ --disable-brlapi \ --disable-plugins \ --enable-debug make %{?_smp_mflags} $buildldflags V=1 cp ${qemubuilddir}/${buildarch}/qemu-system-* qemu-kvm %install make %{?_smp_mflags} DESTDIR=%{buildroot} \ install %find_lang %{name} install -m 0755 qemu-kvm %{buildroot}%{_libexecdir}/ ln -s %{_libexecdir}/qemu-kvm %{buildroot}/%{_bindir}/qemu-kvm install -D -p -m 0644 contrib/systemd/qemu-pr-helper.service %{buildroot}%{_unitdir}/qemu-pr-helper.service install -D -p -m 0644 contrib/systemd/qemu-pr-helper.socket %{buildroot}%{_unitdir}/qemu-pr-helper.socket install -D -p -m 0644 qemu.sasl %{buildroot}%{_sysconfdir}/sasl2/qemu.conf install -D -m 0644 %{_sourcedir}/bridge.conf %{buildroot}%{_sysconfdir}/qemu/bridge.conf install -D -m 0644 %{_sourcedir}/80-kvm.rules %{buildroot}/usr/lib/udev/rules.d/80-kvm.rules # For qemu-guest-agent package %global _udevdir /lib/udev/rules.d install -D -p -m 0644 contrib/systemd/qemu-guest-agent.service %{buildroot}%{_unitdir}/qemu-guest-agent.service install -D -m 0644 %{_sourcedir}/99-qemu-guest-agent.rules %{buildroot}%{_udevdir}/99-qemu-guest-agent.rules mkdir -p %{buildroot}%{_localstatedir}/log touch %{buildroot}%{_localstatedir}/log/qga-fsfreeze-hook.log # For qemu docs package %global qemudocdir %{_docdir}/%{name} rm -rf %{buildroot}%{qemudocdir}/specs rm -rf %{buildroot}%{qemudocdir}/.buildinfo rm -rf %{buildroot}%{qemudocdir}/objects.inv rm -rf %{buildroot}%{qemudocdir}/genindex.html rm -rf %{buildroot}%{qemudocdir}/index.html install -D -p -m 0644 -t %{buildroot}%{qemudocdir} README.rst COPYING COPYING.LIB LICENSE chmod -x %{buildroot}%{_mandir}/man1/* rm -rf %{buildroot}%{_datadir}/%{name}/vgabios-ati.bin rm -rf %{buildroot}%{_datadir}/%{name}/bios-microvm.bin rm -rf %{buildroot}%{_datadir}/%{name}/openbios-* rm -rf %{buildroot}%{_datadir}/%{name}/QEMU,*.bin rm -rf %{buildroot}%{_datadir}/%{name}/bamboo.dtb rm -rf %{buildroot}%{_datadir}/%{name}/canyonlands.dtb rm -rf %{buildroot}%{_datadir}/%{name}/hppa-firmware.img rm -rf %{buildroot}%{_datadir}/%{name}/palcode-clipper rm -rf %{buildroot}%{_datadir}/%{name}/petalogix-* rm -rf %{buildroot}%{_datadir}/%{name}/qemu_vga.ndrv rm -rf %{buildroot}%{_datadir}/%{name}/s390-* %ifnarch ppc64le rm -rf %{buildroot}%{_datadir}/%{name}/slof.bin rm -rf %{buildroot}%{_datadir}/%{name}/skiboot.lid rm -rf %{buildroot}%{_datadir}/%{name}/spapr-* rm -rf %{buildroot}%{_datadir}/%{name}/ppc_* %endif rm -rf %{buildroot}%{_datadir}/%{name}/u-boot* rm -rf %{buildroot}%{_datadir}/%{name}/core3-hmcode rm -rf %{buildroot}%{_datadir}/%{name}/core3-reset rm -rf %{buildroot}%{_datadir}/%{name}/uefi-bios-sw rm -rf %{buildroot}%{_bindir}/ivshmem* rm -f %{buildroot}%{_datadir}/%{name}/edk2* rm -rf %{buildroot}%{_datadir}/%{name}/firmware rm -rf %{buildroot}%{_datadir}/%{name}/qemu-nsis.bmp rm -rf %{buildroot}%{_libdir}/%{name}/audio-pa.so rm -rf %{buildroot}%{_libdir}/%{name}/block-gluster.so rm -rf %{buildroot}%{_libdir}/%{name}/ui-sdl.so rm -rf %{buildroot}%{_libdir}/%{name}/chardev-baum.so %ifnarch loongarch64 rm -rf %{buildroot}%{_libdir}/%{name}/audio-oss.so rm -rf %{buildroot}%{_libdir}/%{name}/audio-spice.so rm -rf %{buildroot}%{_libdir}/%{name}/ui-curses.so rm -rf %{buildroot}%{_libdir}/%{name}/ui-gtk.so rm -rf %{buildroot}%{_libdir}/%{name}/chardev-spice.so rm -rf %{buildroot}%{_libdir}/%{name}/hw-display-qxl.so rm -rf %{buildroot}%{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so rm -rf %{buildroot}%{_libdir}/%{name}/hw-usb-redirect.so rm -rf %{buildroot}%{_libdir}/%{name}/ui-opengl.so rm -rf %{buildroot}%{_libdir}/%{name}/ui-spice-app.so rm -rf %{buildroot}%{_libdir}/%{name}/ui-spice-core.so %endif rm -rf %{buildroot}%{_libexecdir}/vhost-user-gpu rm -rf %{buildroot}%{_datadir}/%{name}/vhost-user/50-qemu-gpu.json %ifarch ppc64le %endif %if %{with rbd} strip %{buildroot}%{_libdir}/%{name}/block-rbd.so %endif strip %{buildroot}%{_libdir}/%{name}/block-iscsi.so strip %{buildroot}%{_libdir}/%{name}/block-curl.so strip %{buildroot}%{_libdir}/%{name}/block-ssh.so strip %{buildroot}%{_libdir}/%{name}/hw-usb-host.so for f in %{buildroot}%{_bindir}/* %{buildroot}%{_libdir}/* \ %{buildroot}%{_libexecdir}/*; do if file $f | grep ELF | grep -q -i shared || readelf -d $f | grep -q -i rpath; then chrpath --delete $f; fi done %check echo "#define CONFIG_DISABLE_QEMU_LOG" >> build/config-host.h make %{?_smp_mflags} $buildldflags V=1 make check V=1 %{?_smp_mflags} %pre getent group kvm >/dev/null || groupadd -g 36 -r kvm getent group qemu >/dev/null || groupadd -g 107 -r qemu getent passwd qemu >/dev/null || \ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \ -c "qemu user" qemu %post guest-agent %systemd_post qemu-guest-agent.service %preun guest-agent %systemd_preun qemu-guest-agent.service %postun guest-agent %systemd_postun_with_restart qemu-guest-agent.service %files -f %{name}.lang %dir %{_datadir}/%{name}/ %{_libexecdir}/qemu-kvm %{_bindir}/qemu-kvm %{_libdir}/%{name}/accel-qtest-*.so %ifarch x86_64 %{_libdir}/%{name}/accel-tcg-*.so %{_libdir}/%{name}/hw-display-virtio-vga-gl.so %{_libdir}/%{name}/hw-display-virtio-vga.so %endif %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so %{_libdir}/%{name}/hw-display-virtio-gpu.so %{_libdir}/%{name}/audio-dbus.so %{_libdir}/%{name}/ui-dbus.so %{_libdir}/%{name}/ui-egl-headless.so %{_docdir}/%{name}/dbus-dbusindex.html %{_datadir}/%{name}/vof-nvram.bin %{_datadir}/%{name}/vof.bin %{_datadir}/%{name}/efi-virtio.rom %{_datadir}/%{name}/efi-e1000.rom %{_datadir}/%{name}/efi-e1000e.rom %{_datadir}/%{name}/efi-rtl8139.rom %{_datadir}/%{name}/efi-pcnet.rom %{_datadir}/%{name}/efi-ne2k_pci.rom %{_datadir}/%{name}/efi-eepro100.rom %{_datadir}/%{name}/efi-vmxnet3.rom %{_datadir}/%{name}/pxe-virtio.rom %{_datadir}/%{name}/pxe-e1000.rom %{_datadir}/%{name}/pxe-ne2k_pci.rom %{_datadir}/%{name}/pxe-pcnet.rom %{_datadir}/%{name}/pxe-rtl8139.rom %{_datadir}/%{name}/pxe-eepro100.rom %{_datadir}/%{name}/qboot.rom %{_datadir}/%{name}/trace-events-all %{_datadir}/applications/qemu.desktop %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/%{name}/keymaps/ %{_bindir}/elf2dmp %{_bindir}/qemu-edid %{_bindir}/qemu-keymap %{_bindir}/qemu-pr-helper %{_libexecdir}/virtfs-proxy-helper %{_unitdir}/qemu-pr-helper.service %{_unitdir}/qemu-pr-helper.socket %attr(4755, root, root) %{_libexecdir}/qemu-bridge-helper %config(noreplace) %{_sysconfdir}/sasl2/qemu.conf %dir %{_sysconfdir}/qemu %config(noreplace) %{_sysconfdir}/qemu/bridge.conf /usr/lib/udev/rules.d/80-kvm.rules %doc %{qemudocdir}/COPYING %doc %{qemudocdir}/COPYING.LIB %doc %{qemudocdir}/LICENSE %ifarch x86_64 %{_datadir}/%{name}/bios.bin %{_datadir}/%{name}/bios-256k.bin %{_datadir}/%{name}/vgabios.bin %{_datadir}/%{name}/vgabios-cirrus.bin %{_datadir}/%{name}/vgabios-qxl.bin %{_datadir}/%{name}/vgabios-stdvga.bin %{_datadir}/%{name}/vgabios-vmware.bin %{_datadir}/%{name}/vgabios-virtio.bin %{_datadir}/%{name}/vgabios-ramfb.bin %{_datadir}/%{name}/vgabios-bochs-display.bin %{_datadir}/%{name}/linuxboot.bin %{_datadir}/%{name}/linuxboot_dma.bin %{_datadir}/%{name}/pvh.bin %{_datadir}/%{name}/multiboot.bin %{_datadir}/%{name}/multiboot_dma.bin %{_datadir}/%{name}/kvmvapic.bin %endif %files system-aarch64 %{_bindir}/qemu-system-aarch64 %files system-arm %{_bindir}/qemu-system-arm %{_datadir}/%{name}/npcm7xx_bootrom.bin %files system-x86_64 %{_bindir}/qemu-system-x86_64 %ifnarch x86_64 %{_libdir}/%{name}/accel-tcg-*.so %{_libdir}/%{name}/hw-display-virtio-vga-gl.so %{_libdir}/%{name}/hw-display-virtio-vga.so %{_datadir}/%{name}/bios.bin %{_datadir}/%{name}/bios-256k.bin %{_datadir}/%{name}/vgabios.bin %{_datadir}/%{name}/vgabios-cirrus.bin %{_datadir}/%{name}/vgabios-qxl.bin %{_datadir}/%{name}/vgabios-stdvga.bin %{_datadir}/%{name}/vgabios-vmware.bin %{_datadir}/%{name}/vgabios-virtio.bin %{_datadir}/%{name}/vgabios-ramfb.bin %{_datadir}/%{name}/vgabios-bochs-display.bin %{_datadir}/%{name}/linuxboot.bin %{_datadir}/%{name}/linuxboot_dma.bin %{_datadir}/%{name}/pvh.bin %{_datadir}/%{name}/multiboot.bin %{_datadir}/%{name}/multiboot_dma.bin %{_datadir}/%{name}/kvmvapic.bin %endif %ifarch ppc64le %files system-ppc64 %{_bindir}/qemu-system-ppc64 %{_datadir}/%{name}/slof.bin %{_datadir}/%{name}/skiboot.lid %endif %files system-riscv %{_bindir}/qemu-system-riscv32 %{_bindir}/qemu-system-riscv64 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.* %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.* %ifnarch ppc64le %endif %ifarch loongarch64 %files system-loongarch64 %{_bindir}/qemu-system-loongarch64 %{_libdir}/%{name}/audio-oss.so %{_libdir}/%{name}/ui-curses.so %{_libdir}/%{name}/ui-gtk.so %{_libdir}/%{name}/audio-spice.so %{_libdir}/%{name}/chardev-spice.so %{_libdir}/%{name}/hw-display-qxl.so %{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so %{_libdir}/%{name}/hw-usb-redirect.so %{_libdir}/%{name}/ui-opengl.so %{_libdir}/%{name}/ui-spice-app.so %{_libdir}/%{name}/ui-spice-core.so %endif %ifnarch loongarch64 %endif %files help %dir %{qemudocdir} %doc %{qemudocdir}/about %doc %{qemudocdir}/devel %doc %{qemudocdir}/interop %doc %{qemudocdir}/search* %doc %{qemudocdir}/_static %doc %{qemudocdir}/system %doc %{qemudocdir}/tools %doc %{qemudocdir}/user %doc %{qemudocdir}/README.rst %{_mandir}/man1/qemu.1* %{_mandir}/man1/qemu-img.1* %{_mandir}/man1/qemu-storage-daemon.1* %{_mandir}/man1/virtfs-proxy-helper.1* %{_mandir}/man7/qemu-block-drivers.7* %{_mandir}/man7/qemu-cpu-models.7* %{_mandir}/man7/qemu-ga-ref.7* %{_mandir}/man7/qemu-qmp-ref.7* %{_mandir}/man7/qemu-storage-daemon-qmp-ref.7* %{_mandir}/man8/qemu-ga.8* %{_mandir}/man8/qemu-nbd.8* %{_mandir}/man8/qemu-pr-helper.8* %files guest-agent %defattr(-,root,root,-) %{_bindir}/qemu-ga %{_unitdir}/qemu-guest-agent.service %{_udevdir}/99-qemu-guest-agent.rules %ghost %{_localstatedir}/log/qga-fsfreeze-hook.log %files img %{_bindir}/qemu-img %{_bindir}/qemu-io %{_bindir}/qemu-nbd %{_bindir}/qemu-storage-daemon %if %{with rbd} %files block-rbd %{_libdir}/%{name}/block-rbd.so %endif %files block-ssh %{_libdir}/%{name}/block-ssh.so %files block-iscsi %{_libdir}/%{name}/block-iscsi.so %files block-curl %{_libdir}/%{name}/block-curl.so %files hw-usb-host %{_libdir}/%{name}/hw-usb-host.so %ifarch %{ix86} x86_64 %files seabios %{_datadir}/%{name}/bios-256k.bin %{_datadir}/%{name}/bios.bin %endif %changelog * Thu Dec 12 2024 Jiabo Feng - 11:8.2.0-26 - vdpa-dev: Fix initialisation order to restore VDUSE compatibility - tcg: Allow top bit of SIMD_DATA_BITS to be set in simd_desc() - migration: fix-possible-int-overflow - target/m68k: Map FPU exceptions to FPSR register - qemu-options: Fix CXL Fixed Memory Window interleave-granularity typo - hvf: arm: Fix encodings for ID_AA64PFR1_EL1 and debug System registers - hw/intc/arm_gic: Fix handling of NS view of GICC_APR - qio: Inherit follow_coroutine_ctx across TLS - target/riscv: Fix the element agnostic function problem - accel/tcg: Fix typo causing tb->page_addr[1] to not be recorded - tcg/loongarch64: Fix tcg_out_movi vs some pcrel pointers - migration: Fix file migration with fdset - ui/vnc: don't return an empty SASL mechlist to the client - target/arm: Fix FJCVTZS vs flush-to-zero - hw/ppc/e500: Prefer QOM cast - sphinx/qapidoc: Fix to generate doc for explicit, unboxed arguments - hw/ppc/e500: Remove unused "irqs" parameter - hw/ppc/e500: Add missing device tree properties to i2c controller node - hw/i386/amd_iommu: Don't leak memory in amdvi_update_iotlb() - hw/arm/mps2-tz.c: fix RX/TX interrupts order - target/i386: csv: Add support to migrate the incoming context for CSV3 guest - target/i386: csv: Add support to migrate the outgoing context for CSV3 guest - target/i386: csv: Add support to migrate the incoming page for CSV3 guest - target/i386: csv: Add support to migrate the outgoing page for CSV3 guest - linux-headers: update kernel headers to include CSV3 migration cmds - vfio: Only map shared region for CSV3 virtual machine - vga: Force full update for CSV3 guest - target/i386: csv: Load initial image to private memory for CSV3 guest - target/i386: csv: Do not register/unregister guest secure memory for CSV3 guest - target/i386: cpu: Populate CPUID 0x8000_001F when CSV3 is active - target/i386: csv: Add command to load vmcb to CSV3 guest memory - target/i386: csv: Add command to load data to CSV3 guest memory - target/i386: csv: Add command to initialize CSV3 context - target/i386: csv: Add CSV3 context - next-kbd: convert to use qemu_input_handler_register() - qemu/bswap: Undefine CPU_CONVERT() once done - exec/memop: Remove unused memop_big_endian() helper - hw/nvme: fix handling of over-committed queues - 9pfs: fix crash on 'Treaddir' request - hw/misc/psp: Pin the hugepage memory specified by mem2 during use for psp - hw/misc: support tkm use mem2 memory - hw/i386: add mem2 option for qemu - kvm: add support for guest physical bits - target/i386: add guest-phys-bits cpu property * Sat Nov 30 2024 Jiabo Feng - 11:8.2.0-25 - hw/arm/virt:Keep Guest L1 cache type consistent with KVM - cvm : Add support for TEE-based national encryption acceleration. - Add virtCCA Coda annotation Adjust the position of the security device - target/i386: sev: Add support for reuse ASID for different CSV guests - target/i386: sev: Fix incompatibility between SEV and CSV on the GET_ID API - hw/cxl: Ensure there is enough data for the header in cmd_ccls_set_lsa() - hw/pci: Add parenthesis to PCI_BUILD_BDF macro - hw/audio/hda: free timer on exit - meson.build: Remove ncurses workaround for OpenBSD - ui/console-vc: Silence warning about sprintf() on OpenBSD - ui: remove break after g_assert_not_reached() - s390x/sclp: Simplify get_sclp_device() - hw/vfio/hct: qemu startup terminate once error happened in hct - hw/vfio/hct: fix ccp_index error caused by uninitialized buf - hw/vfio/hct: update support ccp count to 48. - hw/vfio: add device hct based on vfio. * Sat Nov 30 2024 Jiabo Feng - 11:8.2.0-24 - ppc/xive: Fix ESB length overflow on 32-bit hosts - target/hppa: Fix PSW V-bit packaging in cpu_hppa_get for hppa64 - target/ppc: Fix migration of CPUs with TLB_EMB TLB type - target/arm: Clear high SVE elements in handle_vec_simd_wshli - module: Prevent crash by resetting local_err in module_load_qom_all() - tests/docker: update debian i686 and mipsel images to bookworm - target/arm: Fix SVE SDOT/UDOT/USDOT (4-way, indexed) - docs/sphinx/depfile.py: Handle env.doc2path() returning a Path not a str - block/blkio: use FUA flag on write zeroes only if supported - virtio-pci: Fix the use of an uninitialized irqfd - hw/cxl: Ensure there is enough data to read the input header in cmd_get_physical_port_state() - intel_iommu: Send IQE event when setting reserved bit in IQT_TAIL - virtio-net: Avoid indirection_table_mask overflow - Fix calculation of minimum in colo_compare_tcp - target/riscv/csr.c: Fix an access to VXSAT - linux-user: Clean up unused header - raw-format: Fix error message for invalid offset/size - hw/loongarch/virt: Remove unnecessary 'cpu.h' inclusion - tests: Wait for migration completion on destination QEMU to avoid failures - acpi: ged: Add macro for acpi sleep control register - hw/intc/openpic: Improve errors for out of bounds property values - hw/pci-bridge: Add a Kconfig switch for the normal PCI bridge - docs/tools/qemu-img.rst: fix typo (sumarizes) - audio/pw: Report more accurate error when connecting to PipeWire fails - audio/pw: Report more accurate error when connecting to PipeWire fails - dma: Fix function names in documentation Ensure the function names match. - edu: fix DMA range upper bound check - platform-bus: fix refcount leak - hw/net/can/sja1000: fix bug for single acceptance filter and standard frame - tests/avocado: fix typo in replay_linux - util/userfaultfd: Remove unused uffd_poll_events - Consider discard option when writing zeros - crypto: factor out conversion of QAPI to gcrypt constants - crypto: drop gnutls debug logging support - crypto: use consistent error reporting pattern for unsupported cipher modes - hw/gpio/aspeed_gpio: Avoid shift into sign bit * Thu Nov 28 2024 fangyi - 11:8.2.0-23 - vdpa: fix vdpa device migrate rollback wrong when suspend device failed. - vdpa: support resizing virtio-blk capacity online for kernel vdpa - Revert "vdpa: add vhost_vdpa_suspend" - Revert "vdpa: add vhost_vdpa->suspended parameter" - Revert "vdpa: block migration if SVQ does not admit a feature" - vdpa: remove memory listener unregister in vhost_vdpa_reset_status * Wed Nov 27 2024 fangyi - 11:8.2.0-22 - seabios: enable virtio device mmio access and wait util virtio device reset done * Thu Nov 7 2024 Jiabo Feng - 11:8.2.0-21 - tests: bump QOS_PATH_MAX_ELEMENT_SIZE again - softmmu/physmem: fix memory leak in dirty_memory_extend() - crypto: run qcrypto_pbkdf2_count_iters in a new thread - hw/audio/virtio-sound: fix heap buffer overflow - hw/intc/arm_gic: fix spurious level triggered interrupts - ui/sdl2: set swap interval explicitly when OpenGL is enabled - target/riscv/kvm: tolerate KVM disable ext errors - virtio: remove virtio_tswap16s() call in vring_packed_event_read() - block: fix -Werror=maybe-uninitialized false-positive - hw/remote/vfio-user: Fix config space access byte order - hw/loongarch/virt: Fix memory leak - hw/intc/riscv_aplic: APLICs should add child earlier than realize - stdvga: fix screen blanking - ui/gtk: Draw guest frame at refresh cycle - target/i386: fix size of EBP writeback in gen_enter() - virtio-net: drop too short packets early - target/ppc: Fix lxv/stxv MSR facility check - target/ppc: Fix lxvx/stxvx facility check - virtio-snd: add max size bounds check in input cb(CVE-2024-7730) * Mon Oct 21 2024 Jiabo Feng - 11:8.2.0-20 - Added CoDA feature support in the context of CVM. When virtcca cvm is enabled, the iommu is tagged as secure. - hw/block: fix uint32 overflow - hw/ufs: add basic info of query response upiu - crypto: avoid leak of ctx when bad cipher mode is given Fixes: Coverity CID 1546884 * Mon Oct 14 2024 Jiabo Feng - 11:8.2.0-19 - mac_dbdma: Remove leftover `dma_memory_unmap` calls(CVE-2024-8612) - softmmu: Support concurrent bounce buffers(CVE-2024-8612) - system/physmem: Per-AddressSpace bounce buffering - system/physmem: Propagate AddressSpace to MapClient helpers * Wed Sep 18 2024 Jiabo Feng - 11:8.2.0-18 - hw/loongarch/virt: Fix FDT memory node address width - hw/loongarch: Fix fdt memory node wrong 'reg' - load_elf: fix iterator's type for elf file processing - migration/colo: Fix bdrv_graph_rdlock_main_loop: Assertion `!qemu_in_… - target/i386: no single-step exception after MOV or POP SS - char-stdio: Restore blocking mode of stdout on exit - backends/cryptodev-builtin: Fix local_error leaks - target/loongarch: fix a wrong print in cpu dump - virtio-pci: fix use of a released vector - target/arm: Disable SVE extensions when SVE is disabled - hw/misc/bcm2835_property: Fix handling of FRAMEBUFFER_SET_PALETTE - target/i386: Introduce SapphireRapids-v3 to add missing features - virtio-net: Ensure queue index fits with RSS (CVE-2024-6505) - nbd/server: CVE-2024-7409: Avoid use-after-free when closing server - update io/trace-events. Parameters should remain consistent. - update docs/tools/virtfs-proxy-helper.rst. This place is spelled wrong. - kvm: Add support for CSV2 reboot - target/i386/kvm: Fix the resettable info when emulate Hygon CSV2 guest - target/i386: get/set/migrate GHCB state - target/i386: csv: Add support for migrate VMSA for CSV2 guest - migration/ram: Accelerate the loading of CSV guest's encrypted pages - migration/ram: Accelerate the transmission of CSV guest's encrypted pages - target/i386: csv: add support to load incoming encrypted pages queued in the CMD list - target/i386: csv: add support to queue the incoming page into a list - target/i386: csv: add support to encrypt the outgoing pages in the list queued before. - target/i386: csv: add support to queue the outgoing page into a list - target/i386: csv: Read cert chain from file when prepared for CSV live migration - target/i386: Introduce header file csv.h - migration/ram: Fix calculation of gfn correpond to a page in ramblock - target/i386: sev: Clear shared_regions_list when reboot CSV Guest - migration/ram: Force encrypted status for VGA vram - target/i386: sev: Return 0 if sev_send_get_packet_len() fails - kvm: Add support for userspace MSR filtering and handling of MSR_KVM_MIGRATION_CONTROL. - migration/ram: Force encrypted status for flash0 & flash1 devices. - migration/ram: add support to send encrypted pages - migration: add support to migrate shared regions list - kvm: Add support for SEV shared regions list and KVM_EXIT_HYPERCALL. - target/i386: sev: add support to load incoming encrypted page - target/i386: sev: add support to encrypt the outgoing page - target/i386: sev: do not create launch context for an incoming guest - target/i386: sev: provide callback to setup outgoing context - confidential guest support: introduce ConfidentialGuestMemoryEncryptionOps for encrypted VMs - migration.json: add AMD SEV specific migration parameters - doc: update AMD SEV to include Live migration flow - crypto/tlscredspsk: Free username on finalize - hw/nvme: fix leak of uninitialized memory in io_mgmt_recv - hw/display/vhost-user-gpu.c: fix vhost_user_gpu_chr_read() - cvm : Implement command blacklist for cvm security enhancement - crypto: Introduce SM3 hash hmac pbkdf algorithm - virtio-net: Use virtual time for RSC timers - vvfat: Fix bug in writing to middle of file - hw/core/ptimer: fix timer zero period condition for freq > 1GHz - hw/misc: support vpsp * Thu Sep 5 2024 Jiabo Feng - 11:8.2.0-17 - cvm : bug fix for undefined reference to 'virtcca_cvm_allowed' while compiling - cvm : bug-fix for incorrect device name check for vhost-user-fs - target/i386: add control bits support for LAM - target/i386: add support for LAM in CPUID enumeration - Add support for the virtcca cvm feature. - target/sparc: use signed denominator in sdiv helper - crypto: Introduce SM4 symmetric cipher algorithm - ppc/vof: Fix unaligned FDT property access - vl: fix "type is NULL" in -vga help - hw/display/bcm2835_fb: fix fb_use_offsets condition - aspeed/smc: Fix possible integer overflow - hw/nvme: fix number of PIDs for FDP RUH update - hw/nvme: fix memory leak in nvme_dsm - hvf: arm: Do not advance PC when raising an exception - physmem: Bail out qemu_ram_block_from_host() for invalid ram addrs * Tue Aug 13 2024 Jiabo Feng - 11:8.2.0-16 - nbd/server: CVE-2024-7409: Close stray clients at server-stop - nbd/server: CVE-2024-7409: Drop non-negotiating clients - nbd/server: CVE-2024-7409: Cap default max-connections to 100 - nbd/server: Plumb in new args to nbd_client_add() - nbd: Minor style and typo fixes * Thu Jul 11 2024 Jiabo Feng - 11:8.2.0-15 - block: Parse filenames only when explicitly requested (CVE-2024-4467) - iotests/270: Don't store data-file with json: prefix in image (CVE-2024-4467) - iotests/244: Don't store data-file with protocol in image (CVE-2024-4467) - qcow2: Don't open data_file with BDRV_O_NO_IO (CVE-2024-4467) - migration/dirtyrate: Fix segmentation fault - target/hexagon: idef-parser fix leak of init_list * Sat Jun 15 2024 Jiabo Feng - 11:8.2.0-14 - target/riscv/cpu.c: fix Zvkb extension config - target/i386: Add new Hygon 'Dharma' CPU model - target/i386: Add Hygon Dhyana-v3 CPU model - ui/gtk: Fix mouse/motion event scaling issue with GTK display backend - hw/ufs: Fix buffer overflow bug - arm/virt: Set vcpus_count of CPU as 1 to compatible with libvirt - ppc/pnv: I2C controller is not user creatablei * Mon May 20 2024 Song Gao - 11:8.2.0-13 - target/loongarch: Fix qemu-system-loongarch64 assert - target/loongarch: Fix qemu-loongarch64 hang when executing 'll.d $t0, $t0, 0' - target/loongarch: Fix tlb huge page loading issue - target/loongarch/kvm: Add software breakpoint support - target/loongarch/kvm: sync kernel header files - hw/intc/loongarch_extioi: Add virt extension support - target/loongarch/kvm: Add pmu support - target/loongarch/kvm: Fix vm restore failed - target/loongarch/kvm: Add pv steal time support - target/loongarch/kvm: fpu save the vreg registers high * Fri May 10 2024 zhangxianting - 11:8.2.0-12 - target/i386: Export RFDS bit to guests - target/i386: Add new CPU model SierraForest - target/i386: Introduce Icelake-Server-v7 to enable TSX - hw/isa/vt82c686: Keep track of PIRQ/PINT pins separately - kvm/arm: Fix compatibility of cold-plug CPU with SVE - arm/virt/acpi: Extend cpufreq to support max_cpus - kvm/arm: Fix SVE related logic for vcpu hotplug feature - arm/virt: Don't modify smp.max_cpus when vcpu hotplug disabled - acpi/cpu: Fix detection of present cpu * Mon Apr 22 2024 Jiabo Feng - 11:8.2.0-11 - hw/sd/sdhci: Do not update TRNMOD when Command Inhibit (DAT) is set(CVE-2024-3447) - hw/virtio/virtio-crypto: Protect from DMA re-entrancy bugs(CVE-2024-3446) - hw/char/virtio-serial-bus: Protect from DMA re-entrancy bugs(CVE-2024-3446) - hw/display/virtio-gpu: Protect from DMA re-entrancy bugs(CVE-2024-3446) - hw/virtio: Introduce virtio_bh_new_guarded() helper - hw/net/net_tx_pkt: Fix overrun in update_sctp_checksum() - hw/nvme: fix -Werror=maybe-uninitialized - block/virtio-blk: Fix memory leak from virtio_blk_zone_report - hw/net/virtio-net: fix qemu set used ring flag even vhost started - hw/scsi/scsi-generic: Fix io_timeout property not applying - tests: bios-tables-test: Rename smbios type 4 related test functions * Thu Apr 18 2024 Tao Yang - 11:8.2.0-10 - add '--enable-slirp' compilation options * Wed Apr 17 2024 zhangxianting - 11:8.2.0-9 - remove chrpath * Wed Apr 17 2024 Jiabo Feng - 11:8.2.0-8 - include/ui/rect.h: fix qemu_rect_init() mis-assignment * Tue Apr 16 2024 Keqian Zhu - 11:8.2.0-7 - arm/virt: Use max_cpus to calculate redist1_count - arm/virt: Use separate filed to identify cpu-hotplug enable * Wed Apr 10 2024 Jiabo Feng - 11:8.2.0-6 - coro: support live patch for libcare - tests/acpi: Update expected ACPI tables for vcpu hotplug(Update BinDir) - arm/virt: Require mc->has_hotpluggable_cpus for cold-plugged vcpu - arm/virt: Consider has_ged when set mc->has_hotpluggable_cpus - arm/virt-acpi: Require possible_cpu_arch_ids for build_cpus_aml() - acpi/ged: Remove cpuhp field of ged - acpi/ged: Init cpu hotplug only when machine support it - intc/gicv3: Fixes for vcpu hotplug - arm/kvm: Set psci smccc filter only with vcpu hotplug - accel/kvm: Use correct id for parked vcpu - arm/virt: Fix adjudgement of core_id for vcpu hotplugged - arm/virt.c: Convey local_err when set psci-conduit - system/cpus: Fix resume_all_vcpus() under vCPU hotplug condition - system/cpus: Fix pause_all_vcpus() under concurrent environment - acpi/cpu: Fix cpu_hotplug_hw_init() - arm/cpu: Some fixes for arm_cpu_unrealizefn() - system/physmem: Fix possible double free when destroy cpu as - hw/arm/virt: Expose cold-booted CPUs as MADT GICC Enabled - tcg/mttcg: enable threads to unregister in tcg_ctxs[] - hw/arm: Support hotplug capability check using _OSC method - target/arm/kvm,tcg: Register/Handle SMCCC hypercall exits to VMM/Qemu - target/arm/kvm: Write CPU state back to KVM on reset - target/arm: Add support of *unrealize* ARMCPU during vCPU Hot-unplug - physmem,gdbstub: Common helping funcs/changes to *unrealize* vCPU - hw/arm: Changes required for reset and to support next boot - arm/virt: Update the guest(via GED) about CPU hot-(un)plug events - hw/intc/arm-gicv3*: Changes required to (re)init the vCPU register info - hw/arm,gicv3: Changes to update GIC with vCPU hot-plug notification - arm/virt: Changes to (un)wire GICC<->vCPU IRQs during hot-(un)plug - arm/virt: Add/update basic hot-(un)plug framework - hw/acpi: Update ACPI GED framework to support vCPU Hotplug - arm/virt: Release objects for *disabled* possible vCPUs after init - hw/acpi: Make _MAT method optional - hw/arm: MADT Tbl change to size the guest with possible vCPUs - hw/acpi: Update GED _EVT method AML with cpu scan - hw/acpi: ACPI/AML Changes to reflect the correct _STA.{PRES,ENA} Bits to Guest - arm/virt: Make ARM vCPU *present* status ACPI *persistent* - arm/virt/acpi: Build CPUs AML with CPU Hotplug support - tests/acpi/bios-tables-test: Allow changes to virt/DSDT file - acpi/cpu: Add cpu_cppc building support - arm/virt/acpi: Factor out CPPC building from DSDT CPU aml - hw/acpi: Update CPUs AML with cpu-(ctrl)dev change - arm/virt: Create GED dev before *disabled* CPU Objs are destroyed - arm/virt: Add cpu hotplug events to GED during creation - hw/acpi: Init GED framework with cpu hotplug events - hw/acpi: Use qemu_present_cpu() API in ACPI CPU hotplug init - hw/acpi: Add ACPI CPU hotplug init stub - arm/acpi: Enable ACPI support for vcpu hotplug - hw/acpi: Move CPU ctrl-dev MMIO region len macro to common header file - arm/virt: Init PMU at host for all possible vcpus - arm/virt,gicv3: Changes to pre-size GIC with possible vcpus @machine init - arm/virt,kvm: Pre-create disabled possible vCPUs @machine init - accel/kvm: Extract common KVM vCPU {creation,parking} code - arm/virt,target/arm: Machine init time change common to vCPU {cold|hot}-plug - hw/arm/virt: Move setting of common CPU properties in a function - cpus-common: Add common CPU utility for possible vCPUs - arm/virt,target/arm: Add new ARMCPU {socket,cluster,core,thread}-id property * Sun Apr 7 2024 Jiabo Feng - 11:8.2.0-5 - vfio/migration: Add support for manual clear vfio dirty log - vfio: Maintain DMA mapping range for the container - linux-headers: update against 5.10 and manual clear vfio dirty log series - arm/acpi: Fix when make qemu-system-aarch64 at x86_64 host bios_tables_test fail reason: __aarch64__ macro let build_pptt at x86_64 and aarch64 host build different function that let bios_tables_test fail. - pl031: support rtc-timer property for pl031 - feature: Add logs for vm start and destroy - feature: Add log for each modules - log: Add log at boot & cpu init for aarch64 - bugfix: irq: Avoid covering object refcount of qemu_irq - i386: cache passthrough: Update AMD 8000_001D.EAX[25:14] based on vCPU topo - freeclock: set rtc_date_diff for X86 - freeclock: set rtc_date_diff for arm - freeclock: add qmp command to get time offset of vm in seconds - tests: Disable filemonitor testcase - shadow_dev: introduce shadow dev for virtio-net device - pl011: reset read FIFO when UARTTIMSC=0 & UARTICR=0xffff - tests: virt: Update expected ACPI tables for virt test(Update BinDir) - arm64: Add the cpufreq device to show cpufreq info to guest - hw/arm64: add vcpu cache info support - tests: virt: Allow changes to PPTT test table - cpu: add Cortex-A72 processor kvm target support - cpu: add Kunpeng-920 cpu support - net: eepro100: validate various address valuesi(CVE-2021-20255) - ide: ahci: add check to avoid null dereference (CVE-2019-12067) - vdpa: set vring enable only if the vring address has already been set - docs: Add generic vhost-vdpa device documentation - vdpa: don't suspend/resume device when vdpa device not started - vdpa: correct param passed in when unregister save - vdpa: suspend function return 0 when the vdpa device is stopped - vdpa: support vdpa device suspend/resume - vdpa: move memory listener to the realize stage - vdpa: implement vdpa device migration - vhost: implement migration state notifier for vdpa device - vhost: implement post resume bh - vhost: implement savevm_handler for vdpa device - vhost: implement vhost_vdpa_device_suspend/resume - vhost: implement vhost-vdpa suspend/resume - vhost: add vhost_dev_suspend/resume_op - vhost: introduce bytemap for vhost backend logging - vhost-vdpa: add migration log ops for VhostOps - vhost-vdpa: add VHOST_BACKEND_F_BYTEMAPLOG - hw/usb: reduce the vpcu cost of UHCI when VNC disconnect - virtio-net: update the default and max of rx/tx_queue_size - virtio-net: set the max of queue size to 4096 - virtio-net: fix max vring buf size when set ring num - virtio-net: bugfix: do not delete netdev before virtio net - monitor: Discard BLOCK_IO_ERROR event when VM rebooted - vhost-user: add unregister_savevm when vhost-user cleanup - vhost-user: add vhost_set_mem_table when vm load_setup at destination - vhost-user: quit infinite loop while used memslots is more than the backend limit - fix qemu-core when vhost-user-net config with server mode - vhost-user: Add support reconnect vhost-user socket - vhost-user: Set the acked_features to vm's featrue - i6300esb watchdog: bugfix: Add a runstate transition - hw/net/rocker_of_dpa: fix double free bug of rocker device - net/dump.c: Suppress spurious compiler warning - pcie: Add pcie-root-port fast plug/unplug feature - pcie: Compat with devices which do not support Link Width, such as ioh3420 - qdev/monitors: Fix reundant error_setg of qdev_add_device - qemu-nbd: set timeout to qemu-nbd socket - qemu-nbd: make native as the default aio mode - nbd/server.c: fix invalid read after client was already free - virtio-scsi: bugfix: fix qemu crash for hotplug scsi disk with dataplane - virtio: bugfix: check the value of caches before accessing it - virtio: print the guest virtio_net features that host does not support - virtio: bugfix: add rcu_read_lock when vring_avail_idx is called - virtio: check descriptor numbers - migration: report multiFd related thread pid to libvirt - migration: report migration related thread pid to libvirt - cpu/features: fix bug for memory leakage - doc: Update multi-thread compression doc - migration: Add compress_level sanity check - migration: Add zstd support in multi-thread compression - migration: Add multi-thread compress ops - migration: Refactoring multi-thread compress migration - migration: Add multi-thread compress method - migration: skip cache_drop for bios bootloader and nvram template - oslib-posix: optimise vm startup time for 1G hugepage - monitor/qmp: drop inflight rsp if qmp client broken - ps2: fix oob in ps2 kbd - Currently, while kvm and qemu can not handle some kvm exit, qemu will do vm_stop, which will make vm in pause state. This action make vm unrecoverable, so send guest panic to libvirt instead. - vhost: cancel migration when vhost-user restarted during migraiton * Mon Apr 1 2024 Jiabo Feng - 11:8.2.0-4 - migration: Skip only empty block devicesi - iotests: adapt to output change for recently introduced 'detached hea… - travis-ci: Rename SOFTMMU -> SYSTEM - block: disallow block jobs when there is a BDRV_O_INACTIVE flag - [backup] memory: bakcup hugepages: hugepages files maybe leftover - memory: [backup] Modify the VM's physical bits value set policy. - ui/clipboard: mark type as not available when there is no data (CVE-2023-6683) - virtio-net: correctly copy vnet header when flushing TX (CVE-2023-6693) * Wed Mar 27 2024 Jiabo Feng - 11:8.2.0-3 - disable keyring option - loongarch: Change the UEFI loading mode to loongarch - target/loongarch: Fix qtest test-hmp error when KVM-only build - target/loongarch/kvm: Enable LSX/LASX extension - target/loongarch: Set cpuid CSR register only once with kvm mode - configure: Add linux header compile support for LoongArch - hw/intc/loongarch_extioi: Add vmstate post_load support - hw/intc/loongarch_extioi: Add dynamic cpu number support - hw/loongarch/virt: Set iocsr address space per-board rather than percpu - hw/intc/loongarch_ipi: Use MemTxAttrs interface for ipi ops - target/loongarch: Add loongarch kvm into meson build - target/loongarch: Implement set vcpu intr for kvm - target/loongarch: Restrict TCG-specific code - target/loongarch: Implement kvm_arch_handle_exit - target/loongarch: Implement kvm_arch_init_vcpu - target/loongarch: Implement kvm_arch_init function - target/loongarch: Implement kvm get/set registers - target/loongarch: Supplement vcpu env initial when vcpu reset - target/loongarch: Define some kvm_arch interfaces - linux-headers: Synchronize linux headers from linux v6.7.0-rc8 - linux-headers: Update to Linux v6.7-rc5 - target/loongarch: move translate modules to tcg/ - target/loongarch/meson: move gdbstub.c to loongarch.ss - target/loongarch: Add timer information dump support - hw/loongarch/virt: Align high memory base address with super page size * Sat Mar 23 2024 Jiabo Feng - 11:8.2.0-2 - block: bugfix: Don't pause vm when NOSPACE EIO happened - block: enable cache mode of empty cdrom - block/mirror: fix file-system went to read-only after block-mirror - scsi-bus: fix incorrect call for blk_error_retry_reset_timeout() - scsi-bus: fix unmatched object_unref() - block: Add sanity check when setting retry parameters - block-backend: Stop retrying when draining - scsi-disk: Add support for retry on errors - scsi-bus: Refactor the code that retries requests - virtio_blk: Add support for retry on errors - block: Add error retry param setting - block-backend: Add timeout support for retry - block-backend: Enable retry action on errors - block-backend: Add device specific retry callback - block-backend: Introduce retry timer - qapi/block-core: Add retry option for error action - scsi: bugfix: fix division by zero - scsi: cdrom: Fix crash after remote cdrom detached - qemu-pr: fixed ioctl failed for multipath disk - scsi-disk: define props in scsi_block_disk to avoid memleaks - bugfix: fix possible memory leak - bugfix: fix some illegal memory access and memory leak - util/log: add CONFIG_DISABLE_QEMU_LOG macro - log: Add some logs on VM runtime path - bugfix: fix eventfds may double free when vm_id reused in ivshmem - hw/display/macfb: Fix missing ERRP_GUARD() in macfb_nubus_realize() - hw/cxl/cxl-host: Fix missing ERRP_GUARD() in cxl_fixed_memory_window_config() - qemu-img create: 'cache' paramter only use for reg file image - qemu-img: add qemu-img direct create - qemu-img block: set zero flags only when discard_zeros of the block supported - Revert "file-posix: Remove unused s->discard_zeroes" - pcie_sriov: Validate NumVFs (CVE-2024-26327) - hw/nvme: Use pcie_sriov_num_vfs() (CVE-2024-26328) - hw/acpi/cpu: Use CPUState typedef - target/i386/sev: Fix missing ERRP_GUARD() for error_prepend() - virtio-gpu: remove needless condition - hw/i2c/smbus_slave: Add object path on error prints - vfio/pci: Ascend710 change to bar2 quirk - vfio/pci: Ascend910 need 4Bytes quirk in bar0 - vfio/pci: Ascend710 need 4Bytes quirk in bar0 - vfio/pci: Ascend310 need 4Bytes quirk in bar4 - chardev/char-socket: Fix TLS io channels sending too much data to the backend - i386/cpuid: Move leaf 7 to correct group - i386/cpuid: Decrease cpuid_i when skipping CPUID leaf 1F - i386/cpu: Mask with XCR0/XSS mask for FEAT_XSAVE_XCR0_HI and FEAT_XSAVE_XSS_HI leafs - i386/cpu: Clear FEAT_XSAVE_XSS_LO/HI leafs when CPUID_EXT_XSAVE is not available - blkio: Respect memory-alignment for bounce buffer allocations - virtio-gpu: Correct virgl_renderer_resource_get_info() error check - hw/usb: Style cleanup - tests/qemu-iotests: resolved the problem that the 108 test cases in the container fail * Thu Feb 29 2024 Tao Yang - 11:8.2.0-1 - Package init