Bochs/bochs/iodev/hdimage
Benjamin David Lunt 74ed550334
Allow large VHD files (#79)
This PR allows larger VHD image files. The size in question doesn't
necessarily mean the size of the VHD file on disk. The size is the total
size of the image emulated. This total size is in question.

Without this patch, the total size allowed is 65535 * 16 * 255, or
roughly 32gig.
With this patch, the total size is calculated by who the creator of the
image is, what the CHS values are, and possibly a total size of up to a
limit of 2TB.

Since the original code was ported from QEMU, I ported an updated QEMU
code snippet.

https://gitlab.com/qemu-project/qemu/-/blob/master/block/vpc.c?ref_type=heads#L305

This PR now allows VHD image files with a total size emulated less than
or equal to 2TB.
2023-09-19 08:04:32 +03:00
..
cdrom_amigaos.cc Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
cdrom_amigaos.h Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
cdrom_misc.cc Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
cdrom_misc.h Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
cdrom_osx.cc Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
cdrom_osx.h Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
cdrom_win32.cc remove trailing whitespace from source files 2022-08-23 21:46:04 +03:00
cdrom_win32.h Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
cdrom.cc Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
cdrom.h Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
hdimage.cc Fixed some issues reported by valgrind. 2021-04-18 17:20:41 +00:00
hdimage.h Disk image and sound driver modules don't need to include iodev.h. 2021-03-11 21:46:25 +00:00
Makefile.in Applied two patches from Debian. 2021-09-10 15:33:22 +00:00
scsi_commands.h Add SCSI_CD_EVENT_STATUS 2023-02-01 16:51:16 -07:00
vbox.cc Disk image and sound driver modules don't need to include iodev.h. 2021-03-11 21:46:25 +00:00
vbox.h remove trailing whitespace from source files 2022-08-23 21:46:04 +03:00
vmware3.cc Disk image and sound driver modules don't need to include iodev.h. 2021-03-11 21:46:25 +00:00
vmware3.h Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
vmware4.cc Disk image and sound driver modules don't need to include iodev.h. 2021-03-11 21:46:25 +00:00
vmware4.h Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00
vpc.cc Allow large VHD files (#79) 2023-09-19 08:04:32 +03:00
vpc.h Allow large VHD files (#79) 2023-09-19 08:04:32 +03:00
vvfat.cc remove trailing whitespace from source files 2022-08-23 21:46:04 +03:00
vvfat.h Changed bx_bool to bool type in the harddrv, cdrom, hdimage and sound code. 2021-01-31 15:44:39 +00:00