Re: [Qemu-devel] [PATCH v2] i386/acpi: fix gint overflow in crs_range_compare

2019-07-18 Thread Michael S. Tsirkin
On Thu, Jul 18, 2019 at 07:14:23PM +0300, Evgeny Yakovlev wrote: > When very large regions (32GB sized in our case, PCI pass-through of GPUs) > are compared substraction result does not fit into gint. > > As a result crs_replace_with_free_ranges does not get sorted ranges and > incorrectly compute

[Qemu-devel] [PATCH v2] i386/acpi: fix gint overflow in crs_range_compare

2019-07-18 Thread Evgeny Yakovlev
When very large regions (32GB sized in our case, PCI pass-through of GPUs) are compared substraction result does not fit into gint. As a result crs_replace_with_free_ranges does not get sorted ranges and incorrectly computes PCI64 free space regions. Which then makes linux guest complain about dev