diff --git a/0005-disable_ram_block_discard_for_pci_passthrough_on_AMD_SEV_SNP.patch b/0005-disable_ram_block_discard_for_pci_passthrough_on_AMD_SEV_SNP.patch index 0e89ad5..7166e29 100644 --- a/0005-disable_ram_block_discard_for_pci_passthrough_on_AMD_SEV_SNP.patch +++ b/0005-disable_ram_block_discard_for_pci_passthrough_on_AMD_SEV_SNP.patch @@ -9,13 +9,13 @@ index 75d11a07b2..4da3b75af9 100644 } - ret = ram_block_discard_range(rb, offset, size); + ret = ram_block_discard_is_disabled() -+ ? ram_block_discard_range(rb, offset, size) -+ : 0; ++ ? 0 ++ : ram_block_discard_range(rb, offset, size); } else { - ret = ram_block_discard_guest_memfd_range(rb, offset, size); + ret = ram_block_discard_is_disabled() -+ ? ram_block_discard_guest_memfd_range(rb, offset, size) -+ : 0; ++ ? 0 ++ : ram_block_discard_guest_memfd_range(rb, offset, size); } out_unref: diff --git a/qemu.spec b/qemu.spec index af77a68..b3042f2 100644 --- a/qemu.spec +++ b/qemu.spec @@ -382,7 +382,7 @@ Obsoletes: sgabios-bin <= 1:0.20180715git-10.fc38 %global baserelease 1 # Hyperscale release -%global hsrel .1 +%global hsrel .2 Summary: QEMU is a FAST! processor emulator Name: qemu @@ -3189,6 +3189,9 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \ %changelog +* Tue Jan 28 2025 Roberto Campesato - 2:9.2.0-2.2 +- Fix fb-only patch to support pci passthrough on AMD SEV SNP + * Fri Dec 20 2024 Roberto Campesato - 2:9.2.0-2.1 - Merge latest changes from Fedora - Remove fb-only patch already included upstream