[libvirt] [PATCHv2 4/8] cpu: x86: Parse the CPU feature map only once
Daniel P. Berrange
berrange at redhat.com
Wed Oct 30 15:50:50 UTC 2013
On Thu, Oct 17, 2013 at 03:10:18PM +0200, Peter Krempa wrote:
> Until now the map was loaded from the XML definition file every time a
> operation on the flags was requested. With the introduciton of one shot
> initializers we can store the definition forever (as it will never
> change) instead of parsing it over and over again.
> ---
>
> Notes:
> Version 2:
> - kept the map loading function separate so that tests can use it in the future
>
> src/cpu/cpu_x86.c | 67 +++++++++++++++++++++++++++++++++----------------------
> 1 file changed, 40 insertions(+), 27 deletions(-)
ACK
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list