]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/i386: Replace magic number with field length calculation
authorDov Murik <dovmurik@linux.ibm.com>
Tue, 22 Feb 2022 07:19:06 +0000 (07:19 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 6 Mar 2022 10:08:23 +0000 (05:08 -0500)
commit9919423516ddf0519df965184e236ba74fa236b1
tree74f9054c343629206cdf01faad8820ca1a3a2258
parente5aaeac3554599ad5ca3c8ace38ad5bcd7ae6ff1
hw/i386: Replace magic number with field length calculation

Replce the literal magic number 48 with length calculation (32 bytes at
the end of the firmware after the table footer + 16 bytes of the OVMF
table footer GUID).

No functional change intended.

Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
Message-Id: <20220222071906.2632426-3-dovmurik@linux.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
hw/i386/pc_sysfw_ovmf.c