]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: extract common PCI handling functions
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 13 May 2014 16:10:40 +0000 (20:10 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 13 May 2014 16:17:54 +0000 (20:17 +0400)
commit353cf3707a1d0c99217531aae2f8d2c562a91620
treeca0b3eeab878d8c0ddcf64925fc18e15f5233040
parentc453f2d076506d460adcdcd215450ade211f1cd3
qemu: extract common PCI handling functions

Move sharable PCI handling functions to domain_addr.[ch], and
change theirs prefix from 'qemu' to 'vir':

 - virDomainPCIAddressAsString;
 - virDomainPCIAddressBusSetModel;
 - virDomainPCIAddressEnsureAddr;
 - virDomainPCIAddressFlagsCompatible;
 - virDomainPCIAddressGetNextSlot;
 - virDomainPCIAddressReleaseSlot;
 - virDomainPCIAddressReserveAddr;
 - virDomainPCIAddressReserveNextSlot;
 - virDomainPCIAddressReserveSlot;
 - virDomainPCIAddressSetFree;
 - virDomainPCIAddressSetGrow;
 - virDomainPCIAddressSlotInUse;
 - virDomainPCIAddressValidate;

The only change here is function names, the implementation itself
stays untouched.

Extract common allocation code from DomainPCIAddressSetCreate
into virDomainPCIAddressSetAlloc.
po/POTFILES.in
src/Makefile.am
src/conf/domain_addr.c [new file with mode: 0644]
src/conf/domain_addr.h
src/libvirt_private.syms
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_domain.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_process.c