Re: [RFC PATCH 5/6] conf: Parse and format HPT maxpagesize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2018-05-23 at 18:36 +0200, Peter Krempa wrote:
> On Wed, May 23, 2018 at 18:18:01 +0200, Andrea Bolognani wrote:
> > +            def->hpt_maxpagesize = VIR_ROUND_UP(def->hpt_maxpagesize, 1024);
> 
> The code in the patch using it with qemu actually expects so this is a
> power of 2, so you'll need a different rounding function. 

Good point!

Looks like VIR_ROUND_UP_POWER_OF_TWO() will do the trick.

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux