]> git.proxmox.com Git - mirror_qemu.git/commit - block/vpc.c
vpc: Require aligned size in .bdrv_co_create
authorKevin Wolf <kwolf@redhat.com>
Tue, 13 Mar 2018 14:37:40 +0000 (15:37 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 19 Mar 2018 11:01:39 +0000 (12:01 +0100)
commit1cfeaf386e3727df0e057710d61593ca515dd07b
treef8ee76dbbcbfbde56fa50f27bc9fd0d8c7e2e0b5
parent182c8835506eabd8ead4ea140c9d6ef94351afd0
vpc: Require aligned size in .bdrv_co_create

Perform the rounding to match a CHS geometry only in the legacy code
path in .bdrv_co_create_opts. QMP now requires that the user already
passes a CHS aligned image size, unless force-size=true is given.

CHS alignment is required to make the image compatible with Virtual PC,
but not for use with newer Microsoft hypervisors.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/vpc.c