]> git.proxmox.com Git - mirror_qemu.git/commit
xen: Avoid VLA
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 18 Jun 2019 11:23:41 +0000 (12:23 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 24 Jun 2019 09:42:30 +0000 (10:42 +0100)
commit34fbbc164fded65341f9fc299b118c90925d5b1f
tree23b6c39bb6dc9174f0ccd49f95d405e6173433a3
parent345f42b4be9f9975ff3f7f3e95acae4f67c74f89
xen: Avoid VLA

Avoid using a variable length array.

We allocate the `dirty_bitmap' buffer only once when we start tracking
for dirty bits.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190618112341.513-5-anthony.perard@citrix.com>
hw/i386/xen/xen-hvm.c