Bug 2019723

Summary: aarch64: Reduce the size of the emulated flash devices
Product: Red Hat Enterprise Linux 9 Reporter: Andrew Jones <drjones>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
qemu-kvm sub component: Devices QA Contact: Zhenyu Zhang <zhenyzha>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: medium CC: coli, eric.auger, jinzhao, juzhang, kraxel, virt-maint
Version: 9.0Keywords: FutureFeature, OtherQA, Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-01 09:08:52 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1924294    

Description Andrew Jones 2021-11-03 08:54:33 UTC
Description of problem:

In order to better support "minivm" use cases, e.g. for kubevirt, we should consider reducing the emulated flash device sizes. The flash devices consume much more memory than necessary as they get fully mapped into the guest memory, whether the space is needed or not. Currently less than 1 MB is needed, but 128 MB (64 MB for edk2 and 64 MB for varstore) are mapped.

Shrinking the size will have machine type compatibility issues and may introduce issues with later expansion, so we need to consider this carefully. Gerd Hoffmann suggested that we shrinking may be OK as long we we maintain the same offsets for the devices in the memory map, but it needs more investigation.

Comment 4 Eric Auger 2023-03-01 08:22:30 UTC
This looks like a duplicate of BZ 2131254 ("Remove the necessity to pad the edk2 images to 64MB"). Gerd, can we close this BZ as dup?

Comment 5 Gerd Hoffmann 2023-03-01 09:08:52 UTC
(In reply to Eric Auger from comment #4)
> This looks like a duplicate of BZ 2131254 ("Remove the necessity to pad the
> edk2 images to 64MB"). Gerd, can we close this BZ as dup?

Yes.

*** This bug has been marked as a duplicate of bug 2131254 ***