audk/OvmfPkg/XenPvBlkDxe
Anthony PERARD 8c1e786e50 OvmfPkg/XenPvBlkDxe: Update disk size calculation
The specification wasn't clear and even contradict itself regarding
the calculation of the disk size. This have been clarified by Xen
commit 221f2748e8da ("blkif: reconcile protocol specification with
in-use implementations").

https://xenbits.xenproject.org/gitweb/?p=xen.git;a=commit;h=221f2748e8dabe8361b8cdfcffbeab9102c4c899

The value from the xenstore node "sectors" must be multiplied by 512
to have the size of the disk.

Calculation of LastBlock is now the same for both CD-ROM case and
generic case.

Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
2025-01-27 14:37:53 +00:00
..
BlockFront.c OvmfPkg/XenPvBlkDxe: Update disk size calculation 2025-01-27 14:37:53 +00:00
BlockFront.h OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BlockIo.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BlockIo.h OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ComponentName.c OvmfPkg: Remove duplicated words 2022-09-05 13:52:51 +00:00
ComponentName.h OvmfPkg: Remove duplicated words 2022-09-05 13:52:51 +00:00
DriverBinding.h OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
XenPvBlkDxe.c OvmfPkg/XenPvBlkDxe: Update disk size calculation 2025-01-27 14:37:53 +00:00
XenPvBlkDxe.h OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
XenPvBlkDxe.inf OvmfPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:19 -07:00