2009-01-05 14:05:29 +00:00
|
|
|
#
|
2009-11-10 14:53:20 +00:00
|
|
|
# General private symbols. Add symbols here, and see Makefile.am for
|
|
|
|
# more details.
|
2009-01-05 14:05:29 +00:00
|
|
|
#
|
2010-10-20 17:10:45 +00:00
|
|
|
# Keep this file sorted by header name, then by symbols with each header.
|
|
|
|
#
|
2009-01-05 14:05:29 +00:00
|
|
|
|
2012-01-20 18:02:55 +00:00
|
|
|
# access/viraccessmanager.h
|
|
|
|
virAccessManagerCheckConnect;
|
|
|
|
virAccessManagerCheckDomain;
|
|
|
|
virAccessManagerCheckInterface;
|
|
|
|
virAccessManagerCheckNetwork;
|
|
|
|
virAccessManagerCheckNodeDevice;
|
|
|
|
virAccessManagerCheckNWFilter;
|
|
|
|
virAccessManagerCheckSecret;
|
|
|
|
virAccessManagerCheckStoragePool;
|
|
|
|
virAccessManagerCheckStorageVol;
|
|
|
|
virAccessManagerGetDefault;
|
|
|
|
virAccessManagerNew;
|
|
|
|
virAccessManagerNewStack;
|
|
|
|
virAccessManagerSetDefault;
|
|
|
|
|
|
|
|
|
|
|
|
# access/viraccessperm.h
|
|
|
|
virAccessPermConnectTypeFromString;
|
|
|
|
virAccessPermConnectTypeToString;
|
|
|
|
virAccessPermDomainTypeFromString;
|
|
|
|
virAccessPermDomainTypeToString;
|
|
|
|
virAccessPermInterfaceTypeFromString;
|
|
|
|
virAccessPermInterfaceTypeToString;
|
|
|
|
virAccessPermNetworkTypeFromString;
|
|
|
|
virAccessPermNetworkTypeToString;
|
|
|
|
virAccessPermNodeDeviceTypeFromString;
|
|
|
|
virAccessPermNodeDeviceTypeToString;
|
|
|
|
virAccessPermNWFilterTypeFromString;
|
|
|
|
virAccessPermNWFilterTypeToString;
|
|
|
|
virAccessPermSecretTypeFromString;
|
|
|
|
virAccessPermSecretTypeToString;
|
|
|
|
virAccessPermStoragePoolTypeFromString;
|
|
|
|
virAccessPermStoragePoolTypeToString;
|
|
|
|
virAccessPermStorageVolTypeFromString;
|
|
|
|
virAccessPermStorageVolTypeToString;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/capabilities.h
|
2009-01-05 14:05:29 +00:00
|
|
|
virCapabilitiesAddGuest;
|
|
|
|
virCapabilitiesAddGuestDomain;
|
|
|
|
virCapabilitiesAddGuestFeature;
|
2010-10-20 17:10:45 +00:00
|
|
|
virCapabilitiesAddHostFeature;
|
2009-01-05 14:05:29 +00:00
|
|
|
virCapabilitiesAddHostMigrateTransport;
|
|
|
|
virCapabilitiesAddHostNUMACell;
|
2010-10-20 17:10:45 +00:00
|
|
|
virCapabilitiesAllocMachines;
|
2013-01-22 17:42:08 +00:00
|
|
|
virCapabilitiesClearHostNUMACellCPUTopology;
|
2015-04-17 16:38:55 +00:00
|
|
|
virCapabilitiesDomainDataLookup;
|
2009-01-05 14:05:29 +00:00
|
|
|
virCapabilitiesFormatXML;
|
2010-10-20 17:10:45 +00:00
|
|
|
virCapabilitiesFreeMachines;
|
2009-06-29 10:41:56 +00:00
|
|
|
virCapabilitiesFreeNUMAInfo;
|
2013-07-18 09:21:48 +00:00
|
|
|
virCapabilitiesGetCpusForNodemask;
|
2013-10-18 12:13:21 +00:00
|
|
|
virCapabilitiesHostSecModelAddBaseLabel;
|
2010-10-20 17:10:45 +00:00
|
|
|
virCapabilitiesNew;
|
2009-12-18 13:44:55 +00:00
|
|
|
virCapabilitiesSetHostCPU;
|
2009-01-05 14:05:29 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/cpu_conf.h
|
2009-12-18 13:44:55 +00:00
|
|
|
virCPUDefAddFeature;
|
2010-03-23 08:34:04 +00:00
|
|
|
virCPUDefCopy;
|
2011-12-19 14:41:16 +00:00
|
|
|
virCPUDefCopyModel;
|
2010-10-20 17:10:45 +00:00
|
|
|
virCPUDefFormat;
|
|
|
|
virCPUDefFormatBuf;
|
|
|
|
virCPUDefFree;
|
2011-12-19 14:41:16 +00:00
|
|
|
virCPUDefFreeModel;
|
2010-10-20 17:10:45 +00:00
|
|
|
virCPUDefParseXML;
|
2013-07-15 12:36:09 +00:00
|
|
|
virCPUDefUpdateFeature;
|
2011-12-21 12:47:17 +00:00
|
|
|
virCPUModeTypeToString;
|
2009-12-18 13:44:55 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/device_conf.h
|
2012-08-16 15:42:14 +00:00
|
|
|
virDevicePCIAddressEqual;
|
2012-08-16 15:41:06 +00:00
|
|
|
virDevicePCIAddressFormat;
|
|
|
|
virDevicePCIAddressIsValid;
|
|
|
|
virDevicePCIAddressParseXML;
|
2014-05-07 12:21:35 +00:00
|
|
|
virInterfaceLinkFormat;
|
|
|
|
virInterfaceLinkParseXML;
|
|
|
|
virInterfaceStateTypeFromString;
|
|
|
|
virInterfaceStateTypeToString;
|
2012-08-16 15:41:06 +00:00
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
|
2014-05-13 16:10:40 +00:00
|
|
|
# conf/domain_addr.h
|
2014-06-17 14:17:41 +00:00
|
|
|
virDomainCCWAddressAllocate;
|
|
|
|
virDomainCCWAddressAssign;
|
|
|
|
virDomainCCWAddressReleaseAddr;
|
|
|
|
virDomainCCWAddressSetCreate;
|
|
|
|
virDomainCCWAddressSetFree;
|
|
|
|
virDomainCCWAddressValidate;
|
2014-05-13 16:10:40 +00:00
|
|
|
virDomainPCIAddressAsString;
|
|
|
|
virDomainPCIAddressBusSetModel;
|
|
|
|
virDomainPCIAddressEnsureAddr;
|
|
|
|
virDomainPCIAddressFlagsCompatible;
|
|
|
|
virDomainPCIAddressGetNextSlot;
|
|
|
|
virDomainPCIAddressReleaseSlot;
|
|
|
|
virDomainPCIAddressReserveAddr;
|
|
|
|
virDomainPCIAddressReserveNextSlot;
|
|
|
|
virDomainPCIAddressReserveSlot;
|
|
|
|
virDomainPCIAddressSetAlloc;
|
|
|
|
virDomainPCIAddressSetFree;
|
|
|
|
virDomainPCIAddressSetGrow;
|
|
|
|
virDomainPCIAddressSlotInUse;
|
|
|
|
virDomainPCIAddressValidate;
|
2015-03-02 09:57:51 +00:00
|
|
|
virDomainVirtioSerialAddrAssign;
|
|
|
|
virDomainVirtioSerialAddrAutoAssign;
|
|
|
|
virDomainVirtioSerialAddrIsComplete;
|
|
|
|
virDomainVirtioSerialAddrRelease;
|
|
|
|
virDomainVirtioSerialAddrReserve;
|
|
|
|
virDomainVirtioSerialAddrSetAddController;
|
|
|
|
virDomainVirtioSerialAddrSetAddControllers;
|
|
|
|
virDomainVirtioSerialAddrSetCreate;
|
|
|
|
virDomainVirtioSerialAddrSetFree;
|
|
|
|
virDomainVirtioSerialAddrSetRemoveController;
|
2014-05-13 16:10:40 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/domain_audit.h
|
Move qemu_audit.h helpers into shared code
The LXC and UML drivers can both make use of auditing. Move
the qemu_audit.{c,h} files to src/conf/domain_audit.{c,h}
* src/conf/domain_audit.c: Rename from src/qemu/qemu_audit.c
* src/conf/domain_audit.h: Rename from src/qemu/qemu_audit.h
* src/Makefile.am: Remove qemu_audit.{c,h}, add domain_audit.{c,h}
* src/qemu/qemu_audit.h, src/qemu/qemu_cgroup.c,
src/qemu/qemu_command.c, src/qemu/qemu_driver.c,
src/qemu/qemu_hotplug.c, src/qemu/qemu_migration.c,
src/qemu/qemu_process.c: Update for changed audit API names
2011-07-04 10:56:13 +00:00
|
|
|
virDomainAuditCgroup;
|
|
|
|
virDomainAuditCgroupMajor;
|
|
|
|
virDomainAuditCgroupPath;
|
2014-07-03 08:59:58 +00:00
|
|
|
virDomainAuditChardev;
|
Move qemu_audit.h helpers into shared code
The LXC and UML drivers can both make use of auditing. Move
the qemu_audit.{c,h} files to src/conf/domain_audit.{c,h}
* src/conf/domain_audit.c: Rename from src/qemu/qemu_audit.c
* src/conf/domain_audit.h: Rename from src/qemu/qemu_audit.h
* src/Makefile.am: Remove qemu_audit.{c,h}, add domain_audit.{c,h}
* src/qemu/qemu_audit.h, src/qemu/qemu_cgroup.c,
src/qemu/qemu_command.c, src/qemu/qemu_driver.c,
src/qemu/qemu_hotplug.c, src/qemu/qemu_migration.c,
src/qemu/qemu_process.c: Update for changed audit API names
2011-07-04 10:56:13 +00:00
|
|
|
virDomainAuditDisk;
|
2011-07-04 11:00:33 +00:00
|
|
|
virDomainAuditFS;
|
Move qemu_audit.h helpers into shared code
The LXC and UML drivers can both make use of auditing. Move
the qemu_audit.{c,h} files to src/conf/domain_audit.{c,h}
* src/conf/domain_audit.c: Rename from src/qemu/qemu_audit.c
* src/conf/domain_audit.h: Rename from src/qemu/qemu_audit.h
* src/Makefile.am: Remove qemu_audit.{c,h}, add domain_audit.{c,h}
* src/qemu/qemu_audit.h, src/qemu/qemu_cgroup.c,
src/qemu/qemu_command.c, src/qemu/qemu_driver.c,
src/qemu/qemu_hotplug.c, src/qemu/qemu_migration.c,
src/qemu/qemu_process.c: Update for changed audit API names
2011-07-04 10:56:13 +00:00
|
|
|
virDomainAuditHostdev;
|
2012-11-20 17:49:25 +00:00
|
|
|
virDomainAuditInit;
|
2015-03-18 10:51:12 +00:00
|
|
|
virDomainAuditIOThread;
|
Move qemu_audit.h helpers into shared code
The LXC and UML drivers can both make use of auditing. Move
the qemu_audit.{c,h} files to src/conf/domain_audit.{c,h}
* src/conf/domain_audit.c: Rename from src/qemu/qemu_audit.c
* src/conf/domain_audit.h: Rename from src/qemu/qemu_audit.h
* src/Makefile.am: Remove qemu_audit.{c,h}, add domain_audit.{c,h}
* src/qemu/qemu_audit.h, src/qemu/qemu_cgroup.c,
src/qemu/qemu_command.c, src/qemu/qemu_driver.c,
src/qemu/qemu_hotplug.c, src/qemu/qemu_migration.c,
src/qemu/qemu_process.c: Update for changed audit API names
2011-07-04 10:56:13 +00:00
|
|
|
virDomainAuditMemory;
|
|
|
|
virDomainAuditNet;
|
|
|
|
virDomainAuditNetDevice;
|
2011-09-02 15:09:14 +00:00
|
|
|
virDomainAuditRedirdev;
|
2015-01-17 05:09:36 +00:00
|
|
|
virDomainAuditRNG;
|
Move qemu_audit.h helpers into shared code
The LXC and UML drivers can both make use of auditing. Move
the qemu_audit.{c,h} files to src/conf/domain_audit.{c,h}
* src/conf/domain_audit.c: Rename from src/qemu/qemu_audit.c
* src/conf/domain_audit.h: Rename from src/qemu/qemu_audit.h
* src/Makefile.am: Remove qemu_audit.{c,h}, add domain_audit.{c,h}
* src/qemu/qemu_audit.h, src/qemu/qemu_cgroup.c,
src/qemu/qemu_command.c, src/qemu/qemu_driver.c,
src/qemu/qemu_hotplug.c, src/qemu/qemu_migration.c,
src/qemu/qemu_process.c: Update for changed audit API names
2011-07-04 10:56:13 +00:00
|
|
|
virDomainAuditSecurityLabel;
|
|
|
|
virDomainAuditStart;
|
|
|
|
virDomainAuditStop;
|
|
|
|
virDomainAuditVcpu;
|
|
|
|
|
|
|
|
|
2014-06-25 11:24:53 +00:00
|
|
|
# conf/domain_capabilities.h
|
|
|
|
virDomainCapsEnumClear;
|
|
|
|
virDomainCapsEnumSet;
|
|
|
|
virDomainCapsFormat;
|
|
|
|
virDomainCapsNew;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/domain_conf.h
|
2013-12-11 08:29:47 +00:00
|
|
|
virBlkioDeviceArrayClear;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDiskNameToBusDeviceIndex;
|
|
|
|
virDiskNameToIndex;
|
2011-06-26 08:09:00 +00:00
|
|
|
virDomainActualNetDefFree;
|
2011-09-15 13:07:51 +00:00
|
|
|
virDomainBlockedReasonTypeFromString;
|
|
|
|
virDomainBlockedReasonTypeToString;
|
2014-07-18 08:02:29 +00:00
|
|
|
virDomainCapabilitiesPolicyTypeToString;
|
|
|
|
virDomainCapsFeatureTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainChrConsoleTargetTypeFromString;
|
|
|
|
virDomainChrConsoleTargetTypeToString;
|
|
|
|
virDomainChrDefForeach;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainChrDefFree;
|
2011-04-14 16:05:14 +00:00
|
|
|
virDomainChrDefNew;
|
2013-03-12 14:59:25 +00:00
|
|
|
virDomainChrEquals;
|
2013-03-12 14:55:07 +00:00
|
|
|
virDomainChrFind;
|
|
|
|
virDomainChrGetDomainPtrs;
|
2015-01-27 17:30:15 +00:00
|
|
|
virDomainChrInsertPreAlloced;
|
|
|
|
virDomainChrPreAlloc;
|
2013-03-12 14:55:07 +00:00
|
|
|
virDomainChrRemove;
|
2013-01-05 05:25:36 +00:00
|
|
|
virDomainChrSerialTargetTypeFromString;
|
|
|
|
virDomainChrSerialTargetTypeToString;
|
2013-07-22 14:45:32 +00:00
|
|
|
virDomainChrSourceDefClear;
|
2011-11-15 08:01:31 +00:00
|
|
|
virDomainChrSourceDefCopy;
|
domain_conf: split source data out from ChrDef
This opens up the possibility of reusing the smaller ChrSourceDef
for both qemu monitor and a passthrough smartcard device.
* src/conf/domain_conf.h (_virDomainChrDef): Factor host
details...
(_virDomainChrSourceDef): ...into new struct.
(virDomainChrSourceDefFree): New prototype.
* src/conf/domain_conf.c (virDomainChrDefFree)
(virDomainChrDefParseXML, virDomainChrDefFormat): Split...
(virDomainChrSourceDefClear, virDomainChrSourceDefFree)
(virDomainChrSourceDefParseXML, virDomainChrSourceDefFormat):
...into new functions.
(virDomainChrDefParseTargetXML): Update clients to reflect type
split.
* src/vmx/vmx.c (virVMXParseSerial, virVMXParseParallel)
(virVMXFormatSerial, virVMXFormatParallel): Likewise.
* src/xen/xen_driver.c (xenUnifiedDomainOpenConsole): Likewise.
* src/xen/xend_internal.c (xenDaemonParseSxprChar)
(xenDaemonFormatSxprChr): Likewise.
* src/vbox/vbox_tmpl.c (vboxDomainDumpXML, vboxAttachSerial)
(vboxAttachParallel): Likewise.
* src/security/security_dac.c (virSecurityDACSetChardevLabel)
(virSecurityDACSetChardevCallback)
(virSecurityDACRestoreChardevLabel)
(virSecurityDACRestoreChardevCallback): Likewise.
* src/security/security_selinux.c (SELinuxSetSecurityChardevLabel)
(SELinuxSetSecurityChardevCallback)
(SELinuxRestoreSecurityChardevLabel)
(SELinuxSetSecurityChardevCallback): Likewise.
* src/security/virt-aa-helper.c (get_files): Likewise.
* src/lxc/lxc_driver.c (lxcVmStart, lxcDomainOpenConsole):
Likewise.
* src/uml/uml_conf.c (umlBuildCommandLineChr): Likewise.
* src/uml/uml_driver.c (umlIdentifyOneChrPTY, umlIdentifyChrPTY)
(umlDomainOpenConsole): Likewise.
* src/qemu/qemu_command.c (qemuBuildChrChardevStr)
(qemuBuildChrArgStr, qemuBuildCommandLine)
(qemuParseCommandLineChr): Likewise.
* src/qemu/qemu_domain.c (qemuDomainObjPrivateXMLFormat)
(qemuDomainObjPrivateXMLParse): Likewise.
* src/qemu/qemu_cgroup.c (qemuSetupChardevCgroup): Likewise.
* src/qemu/qemu_hotplug.c (qemuDomainAttachNetDevice): Likewise.
* src/qemu/qemu_driver.c (qemudFindCharDevicePTYsMonitor)
(qemudFindCharDevicePTYs, qemuPrepareChardevDevice)
(qemuPrepareMonitorChr, qemudShutdownVMDaemon)
(qemuDomainOpenConsole): Likewise.
* src/qemu/qemu_command.h (qemuBuildChrChardevStr)
(qemuBuildChrArgStr): Delete, now that they are static.
* src/libvirt_private.syms (domain_conf.h): New exports.
* cfg.mk (useless_free_options): Update list.
* tests/qemuxml2argvtest.c (testCompareXMLToArgvFiles): Update
tests.
2011-01-07 22:45:01 +00:00
|
|
|
virDomainChrSourceDefFree;
|
2011-02-04 02:23:31 +00:00
|
|
|
virDomainChrSpicevmcTypeFromString;
|
|
|
|
virDomainChrSpicevmcTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainChrTcpProtocolTypeFromString;
|
|
|
|
virDomainChrTcpProtocolTypeToString;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainChrTypeFromString;
|
|
|
|
virDomainChrTypeToString;
|
2012-02-06 13:59:16 +00:00
|
|
|
virDomainClockBasisTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainClockOffsetTypeFromString;
|
|
|
|
virDomainClockOffsetTypeToString;
|
|
|
|
virDomainConfigFile;
|
2015-04-29 19:37:20 +00:00
|
|
|
virDomainControllerAliasFind;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainControllerDefFree;
|
2012-07-23 08:18:57 +00:00
|
|
|
virDomainControllerFind;
|
2015-03-02 09:58:48 +00:00
|
|
|
virDomainControllerFindByType;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainControllerInsert;
|
|
|
|
virDomainControllerInsertPreAlloced;
|
qemu: set/validate slot/connection type when assigning slots for PCI devices
Since PCI bridges, PCIe bridges, PCIe switches, and PCIe root ports
all share the same namespace, they are all defined as controllers of
type='pci' in libvirt (but with a differing model attribute). Each of
these controllers has a certain connection type upstream, allows
certain connection types downstream, and each can either allow a
single downstream connection at slot 0, or connections from slot 1 -
31.
Right now, we only support the pci-root and pci-bridge devices, both
of which only allow PCI devices to connect, and both which have usable
slots 1 - 31. In preparation for adding other types of controllers
that have different capabilities, this patch 1) adds info to the
qemuDomainPCIAddressBus object to indicate the capabilities, 2) sets
those capabilities appropriately for pci-root and pci-bridge devices,
and 3) validates that the controller being connected to is the proper
type when allocating slots or validating that a user-selected slot is
appropriate for a device..
Having this infrastructure in place will make it much easier to add
support for the other PCI controller types.
While it would be possible to do all the necessary checking by just
storing the controller model in the qemyuDomainPCIAddressBus, it
greatly simplifies all the validation code to also keep a "flags",
"minSlot" and "maxSlot" for each - that way we can just check those
attributes rather than requiring a nearly identical switch statement
everywhere we need to validate compatibility.
You may notice many places where the flags are seemingly hard-coded to
QEMU_PCI_CONNECT_HOTPLUGGABLE | QEMU_PCI_CONNECT_TYPE_PCI
This is currently the correct value for all PCI devices, and in the
future will be the default, with small bits of code added to change to
the flags for the few devices which are the exceptions to this rule.
Finally, there are a few places with "FIXME" comments. Note that these
aren't indicating places that are broken according to the currently
supported devices, they are places that will need fixing when support
for new PCI controller models is added.
To assure that there was no regression in the auto-allocation of PCI
addresses or auto-creation of integrated pci-root, ide, and usb
controllers, a new test case (pci-bridge-many-disks) has been added to
both the qemuxml2argv and qemuxml2xml tests. This new test defines a
domain with several dozen virtio disks but no pci-root or
pci-bridges. The .args file of the new test case was created using
libvirt sources from before this patch, and the test still passes
after this patch has been applied.
2013-07-15 00:09:44 +00:00
|
|
|
virDomainControllerModelPCITypeToString;
|
2011-09-02 13:06:15 +00:00
|
|
|
virDomainControllerModelSCSITypeFromString;
|
|
|
|
virDomainControllerModelSCSITypeToString;
|
2012-01-02 21:35:12 +00:00
|
|
|
virDomainControllerModelUSBTypeFromString;
|
|
|
|
virDomainControllerModelUSBTypeToString;
|
2012-07-23 08:18:57 +00:00
|
|
|
virDomainControllerRemove;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainControllerTypeToString;
|
2012-03-15 11:40:33 +00:00
|
|
|
virDomainCpuPlacementModeTypeFromString;
|
|
|
|
virDomainCpuPlacementModeTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainDefAddImplicitControllers;
|
2011-05-27 09:47:30 +00:00
|
|
|
virDomainDefCheckABIStability;
|
2015-04-07 14:08:32 +00:00
|
|
|
virDomainDefCheckDuplicateDiskWWN;
|
2014-08-11 15:40:32 +00:00
|
|
|
virDomainDefCheckUnsupportedMemoryHotplug;
|
2013-03-05 15:44:20 +00:00
|
|
|
virDomainDefClearCCWAddresses;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainDefClearDeviceAliases;
|
|
|
|
virDomainDefClearPCIAddresses;
|
2012-07-03 13:30:25 +00:00
|
|
|
virDomainDefCompatibleDevice;
|
2012-11-15 20:40:25 +00:00
|
|
|
virDomainDefCopy;
|
2013-07-11 14:54:16 +00:00
|
|
|
virDomainDefFindDevice;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainDefFormat;
|
2014-11-18 16:44:00 +00:00
|
|
|
virDomainDefFormatConvertXMLFlags;
|
2011-09-17 12:57:30 +00:00
|
|
|
virDomainDefFormatInternal;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainDefFree;
|
2013-03-11 11:12:08 +00:00
|
|
|
virDomainDefGetDefaultEmulator;
|
2015-02-17 17:01:09 +00:00
|
|
|
virDomainDefGetMemoryActual;
|
|
|
|
virDomainDefGetMemoryInitial;
|
2012-08-15 22:10:36 +00:00
|
|
|
virDomainDefGetSecurityLabelDef;
|
2015-01-21 14:41:44 +00:00
|
|
|
virDomainDefHasDeviceAddress;
|
2013-04-22 12:16:13 +00:00
|
|
|
virDomainDefMaybeAddController;
|
2014-02-17 10:17:52 +00:00
|
|
|
virDomainDefMaybeAddInput;
|
2014-06-09 13:00:22 +00:00
|
|
|
virDomainDefNeedsPlacementAdvice;
|
2013-05-01 09:31:23 +00:00
|
|
|
virDomainDefNew;
|
2015-02-16 14:58:13 +00:00
|
|
|
virDomainDefNewFull;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainDefParseFile;
|
|
|
|
virDomainDefParseNode;
|
|
|
|
virDomainDefParseString;
|
2013-04-22 11:41:52 +00:00
|
|
|
virDomainDefPostParse;
|
2015-02-17 17:01:09 +00:00
|
|
|
virDomainDefSetMemoryInitial;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainDeleteConfig;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainDeviceAddressIsValid;
|
|
|
|
virDomainDeviceAddressTypeToString;
|
2014-09-29 17:02:04 +00:00
|
|
|
virDomainDeviceDefCheckUnsupportedMemoryDevice;
|
2012-03-01 18:47:34 +00:00
|
|
|
virDomainDeviceDefCopy;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainDeviceDefFree;
|
|
|
|
virDomainDeviceDefParse;
|
2013-04-09 02:32:40 +00:00
|
|
|
virDomainDeviceFindControllerModel;
|
2014-03-20 21:34:00 +00:00
|
|
|
virDomainDeviceGetInfo;
|
2012-10-11 05:09:00 +00:00
|
|
|
virDomainDeviceInfoCopy;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainDeviceInfoIterate;
|
2009-03-02 17:39:43 +00:00
|
|
|
virDomainDeviceTypeToString;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainDiskBusTypeToString;
|
2015-05-21 06:53:40 +00:00
|
|
|
virDomainDiskByAddress;
|
|
|
|
virDomainDiskByName;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainDiskCacheTypeFromString;
|
|
|
|
virDomainDiskCacheTypeToString;
|
|
|
|
virDomainDiskDefAssignAddress;
|
disk: Disallow duplicated target 'dev' values
https://bugzilla.redhat.com/show_bug.cgi?id=1142631
This patch resolves a situation where the same "<target dev='$name'...>"
can be used for multiple disks in the domain.
While the $name is "mostly" advisory regarding the expected order that
the disk is added to the domain and not guaranteed to map to the device
name in the guest OS, it still should be unique enough such that other
domblk* type operations can be performed.
Without the patch, the domblklist will list the same Target twice:
$ virsh domblklist $dom
Target Source
------------------------------------------------
sda /var/lib/libvirt/images/file.qcow2
sda /var/lib/libvirt/images/file.img
Additionally, getting domblkstat, domblkerror, domblkinfo, and other block*
type calls will not be able to reference the second target.
Fortunately, hotplug disallows adding a "third" sda value:
$ qemu-img create -f raw /var/lib/libvirt/images/file2.img 10M
$ virsh attach-disk $dom /var/lib/libvirt/images/file2.img sda
error: Failed to attach disk
error: operation failed: target sda already exists
$
BUT, it since 'sdb' doesn't exist one would get the following on the same
hotplug attempt, but changing to use 'sdb' instead of 'sda'
$ virsh attach-disk $dom /var/lib/libvirt/images/file2.img sdb
error: Failed to attach disk
error: internal error: unable to execute QEMU command 'device_add': Duplicate ID 'scsi0-0-1' for device
$
Since we cannot fix this issue at parsing time, the best that can be done so
as to not "lose" a domain is to make the check prior to starting the guest
with the results as follows:
$ virsh start $dom
error: Failed to start domain $dom
error: XML error: target 'sda' duplicated for disk sources '/var/lib/libvirt/images/file.qcow2' and '/var/lib/libvirt/images/file.img'
$
Running 'make check' found a few more instances in the tests where this
duplicated target dev value was being used. These also exhibited some
duplicated 'id=' values (negating the uniqueness argument of aliases) in
the corresponding .args file and of course the *xmlout version of a few
input XML files.
2015-02-26 17:20:01 +00:00
|
|
|
virDomainDiskDefDstDuplicates;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainDiskDefForeachPath;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainDiskDefFree;
|
2014-05-21 22:50:41 +00:00
|
|
|
virDomainDiskDefNew;
|
2014-08-25 18:58:49 +00:00
|
|
|
virDomainDiskDefSourceParse;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainDiskDeviceTypeToString;
|
2015-07-09 16:28:38 +00:00
|
|
|
virDomainDiskDiffersSourceOnly;
|
2013-05-14 12:44:54 +00:00
|
|
|
virDomainDiskDiscardTypeToString;
|
2010-04-21 14:28:21 +00:00
|
|
|
virDomainDiskErrorPolicyTypeFromString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainDiskErrorPolicyTypeToString;
|
2013-02-19 12:27:45 +00:00
|
|
|
virDomainDiskFindByBusAndDst;
|
2012-08-20 13:58:50 +00:00
|
|
|
virDomainDiskGeometryTransTypeFromString;
|
|
|
|
virDomainDiskGeometryTransTypeToString;
|
conf: accessors for common source information
A future patch will split virDomainDiskDef, in order to track
multiple host resources per guest <disk>. To reduce the size
of that patch, I've factored out the four most common accesses
into functions, so that I can incrementally upgrade the code
base to use the accessors, and so that code that doesn't care
about the distinction of per-file details won't have to be
changed when the struct changes.
* src/conf/domain_conf.h (virDomainDiskGetType)
(virDomainDiskSetType, virDomainDiskGetSource)
(virDomainDiskSetSource, virDomainDiskGetDriver)
(virDomainDiskSetDriver, virDomainDiskGetFormat)
(virDomainDiskSetFormat): New prototypes.
* src/conf/domain_conf.c (virDomainDiskGetType)
(virDomainDiskSetType, virDomainDiskGetSource)
(virDomainDiskSetSource, virDomainDiskGetDriver)
(virDomainDiskSetDriver, virDomainDiskGetFormat)
(virDomainDiskSetFormat): Implement them.
* src/libvirt_private.syms (domain_conf.h): Export them.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-03-17 17:39:57 +00:00
|
|
|
virDomainDiskGetDriver;
|
|
|
|
virDomainDiskGetFormat;
|
|
|
|
virDomainDiskGetSource;
|
|
|
|
virDomainDiskGetType;
|
2014-11-22 01:27:38 +00:00
|
|
|
virDomainDiskIndexByAddress;
|
2011-04-22 03:09:32 +00:00
|
|
|
virDomainDiskIndexByName;
|
2009-08-14 09:31:36 +00:00
|
|
|
virDomainDiskInsert;
|
|
|
|
virDomainDiskInsertPreAlloced;
|
2010-04-21 14:28:21 +00:00
|
|
|
virDomainDiskIoTypeFromString;
|
|
|
|
virDomainDiskIoTypeToString;
|
2015-05-11 12:50:48 +00:00
|
|
|
virDomainDiskMirrorStateTypeFromString;
|
|
|
|
virDomainDiskMirrorStateTypeToString;
|
snapshot: also support disks by path
I got confused when 'virsh domblkinfo dom disk' required the
path to a disk (which can be ambiguous, since a single file
can back multiple disks), rather than the unambiguous target
device name that I was using in disk snapshots. So, in true
developer fashion, I went for the best of both worlds - all
interfaces that operate on a disk (aka block) now accept
either the target name or the unambiguous path to the backing
file used by the disk.
* src/conf/domain_conf.h (virDomainDiskIndexByName): Add
parameter.
(virDomainDiskPathByName): New prototype.
* src/libvirt_private.syms (domain_conf.h): Export it.
* src/conf/domain_conf.c (virDomainDiskIndexByName): Also allow
searching by path, and decide whether ambiguity is okay.
(virDomainDiskPathByName): New function.
(virDomainDiskRemoveByName, virDomainSnapshotAlignDisks): Update
callers.
* src/qemu/qemu_driver.c (qemudDomainBlockPeek)
(qemuDomainAttachDeviceConfig, qemuDomainUpdateDeviceConfig)
(qemuDomainGetBlockInfo, qemuDiskPathToAlias): Likewise.
* src/qemu/qemu_process.c (qemuProcessFindDomainDiskByPath):
Likewise.
* src/libxl/libxl_driver.c (libxlDomainAttachDeviceDiskLive)
(libxlDomainDetachDeviceDiskLive, libxlDomainAttachDeviceConfig)
(libxlDomainUpdateDeviceConfig): Likewise.
* src/uml/uml_driver.c (umlDomainBlockPeek): Likewise.
* src/xen/xend_internal.c (xenDaemonDomainBlockPeek): Likewise.
* docs/formatsnapshot.html.in: Update documentation.
* tools/virsh.pod (domblkstat, domblkinfo): Likewise.
* docs/schemas/domaincommon.rng (diskTarget): Tighten pattern on
disk targets.
* docs/schemas/domainsnapshot.rng (disksnapshot): Update to match.
* tests/domainsnapshotxml2xmlin/disk_snapshot.xml: Update test.
2011-08-20 02:38:36 +00:00
|
|
|
virDomainDiskPathByName;
|
2010-08-23 09:31:26 +00:00
|
|
|
virDomainDiskRemove;
|
2011-04-22 03:09:32 +00:00
|
|
|
virDomainDiskRemoveByName;
|
conf: accessors for common source information
A future patch will split virDomainDiskDef, in order to track
multiple host resources per guest <disk>. To reduce the size
of that patch, I've factored out the four most common accesses
into functions, so that I can incrementally upgrade the code
base to use the accessors, and so that code that doesn't care
about the distinction of per-file details won't have to be
changed when the struct changes.
* src/conf/domain_conf.h (virDomainDiskGetType)
(virDomainDiskSetType, virDomainDiskGetSource)
(virDomainDiskSetSource, virDomainDiskGetDriver)
(virDomainDiskSetDriver, virDomainDiskGetFormat)
(virDomainDiskSetFormat): New prototypes.
* src/conf/domain_conf.c (virDomainDiskGetType)
(virDomainDiskSetType, virDomainDiskGetSource)
(virDomainDiskSetSource, virDomainDiskGetDriver)
(virDomainDiskSetDriver, virDomainDiskGetFormat)
(virDomainDiskSetFormat): Implement them.
* src/libvirt_private.syms (domain_conf.h): Export them.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-03-17 17:39:57 +00:00
|
|
|
virDomainDiskSetDriver;
|
|
|
|
virDomainDiskSetFormat;
|
|
|
|
virDomainDiskSetSource;
|
|
|
|
virDomainDiskSetType;
|
2013-07-18 10:39:55 +00:00
|
|
|
virDomainDiskSourceIsBlockType;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainFSDefFree;
|
2012-05-29 18:46:38 +00:00
|
|
|
virDomainFSIndexByName;
|
2014-02-06 14:30:07 +00:00
|
|
|
virDomainFSInsert;
|
|
|
|
virDomainFSRemove;
|
2011-07-22 11:11:12 +00:00
|
|
|
virDomainFSTypeFromString;
|
|
|
|
virDomainFSTypeToString;
|
2012-01-17 12:44:18 +00:00
|
|
|
virDomainFSWrpolicyTypeFromString;
|
|
|
|
virDomainFSWrpolicyTypeToString;
|
2013-11-12 11:57:56 +00:00
|
|
|
virDomainGetFilesystemForTarget;
|
2011-05-26 14:15:54 +00:00
|
|
|
virDomainGraphicsAuthConnectedTypeFromString;
|
|
|
|
virDomainGraphicsAuthConnectedTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainGraphicsDefFree;
|
conf: add <listen> subelement to domain <graphics> element
Once it's plugged in, the <listen> element will be an optional
replacement for the "listen" attribute that graphics elements already
have. If the <listen> element is type='address', it will have an
attribute called 'address' which will contain an IP address or dns
name that the guest's display server should listen on. If, however,
type='network', the <listen> element should have an attribute called
'network' that will be set to the name of a network configuration to
get the IP address from.
* docs/schemas/domain.rng: updated to allow the <listen> element
* docs/formatdomain.html.in: document the <listen> element and its
attributes.
* src/conf/domain_conf.[hc]:
1) The domain parser, formatter, and data structure are modified to
support 0 or more <listen> subelements to each <graphics>
element. The old style "legacy" listen attribute is also still
accepted, and will be stored internally just as if it were a
separate <listen> element. On output (i.e. format), the address
attribute of the first <listen> element of type 'address' will be
duplicated in the legacy "listen" attribute of the <graphic>
element.
2) The "listenAddr" attribute has been removed from the unions in
virDomainGRaphicsDef for graphics types vnc, rdp, and spice.
This attribute is now in the <listen> subelement (aka
virDomainGraphicsListenDef)
3) Helper functions were written to provide simple access
(both Get and Set) to the listen elements and their attributes.
* src/libvirt_private.syms: export the listen helper functions
* src/qemu/qemu_command.c, src/qemu/qemu_hotplug.c,
src/qemu/qemu_migration.c, src/vbox/vbox_tmpl.c,
src/vmx/vmx.c, src/xenxs/xen_sxpr.c, src/xenxs/xen_xm.c
Modify all these files to use the listen helper functions rather
than directly referencing the (now missing) listenAddr
attribute. There can be multiple <listen> elements to a single
<graphics>, but the drivers all currently only support one, so all
replacements of direct access with a helper function indicate index
"0".
* tests/* - only 3 of these are new files added explicitly to test the
new <listen> element. All the others have been modified to reflect
the fact that any legacy "listen" attributes passed in to the domain
parse will be saved in a <listen> element (i.e. one of the
virDomainGraphicsListenDefs), and during the domain format function,
both the <listen> element as well as the legacy attributes will be
output.
2011-07-07 04:20:28 +00:00
|
|
|
virDomainGraphicsListenGetAddress;
|
|
|
|
virDomainGraphicsListenGetNetwork;
|
|
|
|
virDomainGraphicsListenGetType;
|
|
|
|
virDomainGraphicsListenSetAddress;
|
|
|
|
virDomainGraphicsListenSetNetwork;
|
|
|
|
virDomainGraphicsListenSetType;
|
2010-04-09 16:56:00 +00:00
|
|
|
virDomainGraphicsSpiceChannelModeTypeFromString;
|
|
|
|
virDomainGraphicsSpiceChannelModeTypeToString;
|
|
|
|
virDomainGraphicsSpiceChannelNameTypeFromString;
|
|
|
|
virDomainGraphicsSpiceChannelNameTypeToString;
|
2011-04-14 08:44:20 +00:00
|
|
|
virDomainGraphicsSpiceImageCompressionTypeFromString;
|
2011-06-14 11:35:48 +00:00
|
|
|
virDomainGraphicsSpiceImageCompressionTypeToString;
|
2011-04-14 08:44:20 +00:00
|
|
|
virDomainGraphicsSpiceJpegCompressionTypeFromString;
|
|
|
|
virDomainGraphicsSpiceJpegCompressionTypeToString;
|
2012-03-09 07:26:24 +00:00
|
|
|
virDomainGraphicsSpiceMouseModeTypeFromString;
|
|
|
|
virDomainGraphicsSpiceMouseModeTypeToString;
|
2011-05-23 15:16:42 +00:00
|
|
|
virDomainGraphicsSpiceStreamingModeTypeFromString;
|
|
|
|
virDomainGraphicsSpiceStreamingModeTypeToString;
|
2011-04-14 08:44:20 +00:00
|
|
|
virDomainGraphicsSpiceZlibCompressionTypeFromString;
|
|
|
|
virDomainGraphicsSpiceZlibCompressionTypeToString;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainGraphicsTypeFromString;
|
2010-03-22 18:44:58 +00:00
|
|
|
virDomainGraphicsTypeToString;
|
2013-05-21 14:31:48 +00:00
|
|
|
virDomainGraphicsVNCSharePolicyTypeFromString;
|
|
|
|
virDomainGraphicsVNCSharePolicyTypeToString;
|
2015-03-06 14:36:15 +00:00
|
|
|
virDomainHasNet;
|
2012-11-23 13:50:29 +00:00
|
|
|
virDomainHostdevCapsTypeToString;
|
2012-01-31 09:16:54 +00:00
|
|
|
virDomainHostdevDefAlloc;
|
|
|
|
virDomainHostdevDefClear;
|
2009-04-24 12:19:00 +00:00
|
|
|
virDomainHostdevDefFree;
|
2012-02-27 06:46:47 +00:00
|
|
|
virDomainHostdevFind;
|
|
|
|
virDomainHostdevInsert;
|
2009-08-14 07:31:10 +00:00
|
|
|
virDomainHostdevModeTypeToString;
|
2012-02-27 06:46:47 +00:00
|
|
|
virDomainHostdevRemove;
|
2014-03-13 11:59:32 +00:00
|
|
|
virDomainHostdevSubsysPCIBackendTypeToString;
|
2009-08-14 07:31:10 +00:00
|
|
|
virDomainHostdevSubsysTypeToString;
|
2011-09-02 14:20:40 +00:00
|
|
|
virDomainHubTypeFromString;
|
|
|
|
virDomainHubTypeToString;
|
2012-10-16 16:25:56 +00:00
|
|
|
virDomainHypervTypeFromString;
|
|
|
|
virDomainHypervTypeToString;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainInputDefFree;
|
2015-04-02 23:59:25 +00:00
|
|
|
virDomainIOThreadIDAdd;
|
|
|
|
virDomainIOThreadIDDefFree;
|
|
|
|
virDomainIOThreadIDDel;
|
|
|
|
virDomainIOThreadIDFind;
|
2015-04-23 18:01:48 +00:00
|
|
|
virDomainIOThreadSchedDelId;
|
2015-04-27 21:57:27 +00:00
|
|
|
virDomainKeyWrapCipherNameTypeFromString;
|
|
|
|
virDomainKeyWrapCipherNameTypeToString;
|
2012-03-07 02:06:30 +00:00
|
|
|
virDomainLeaseDefFree;
|
2011-05-18 16:20:53 +00:00
|
|
|
virDomainLeaseIndex;
|
|
|
|
virDomainLeaseInsert;
|
|
|
|
virDomainLeaseInsertPreAlloc;
|
|
|
|
virDomainLeaseInsertPreAlloced;
|
|
|
|
virDomainLeaseRemove;
|
|
|
|
virDomainLeaseRemoveAt;
|
2010-10-12 11:23:18 +00:00
|
|
|
virDomainLifecycleCrashTypeFromString;
|
|
|
|
virDomainLifecycleCrashTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainLifecycleTypeFromString;
|
|
|
|
virDomainLifecycleTypeToString;
|
2011-12-12 05:16:49 +00:00
|
|
|
virDomainLiveConfigHelperMethod;
|
2014-08-06 11:18:53 +00:00
|
|
|
virDomainLoaderDefFree;
|
|
|
|
virDomainLoaderTypeFromString;
|
|
|
|
virDomainLoaderTypeToString;
|
2012-09-06 20:17:01 +00:00
|
|
|
virDomainLockFailureTypeFromString;
|
|
|
|
virDomainLockFailureTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainMemballoonModelTypeFromString;
|
|
|
|
virDomainMemballoonModelTypeToString;
|
2014-09-29 17:02:04 +00:00
|
|
|
virDomainMemoryDefFree;
|
2015-01-21 14:49:44 +00:00
|
|
|
virDomainMemoryFindByDef;
|
|
|
|
virDomainMemoryFindInactiveByDef;
|
|
|
|
virDomainMemoryInsert;
|
|
|
|
virDomainMemoryRemove;
|
2014-07-22 09:09:48 +00:00
|
|
|
virDomainNetAppendIpAddress;
|
2014-02-21 10:01:36 +00:00
|
|
|
virDomainNetDefFormat;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainNetDefFree;
|
2012-01-02 21:35:12 +00:00
|
|
|
virDomainNetFind;
|
qemu: fix attach/detach of netdevs with matching mac addrs
This resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=862515
which describes inconsistencies in dealing with duplicate mac
addresses on network devices in a domain.
(at any rate, it resolves *almost* everything, and prints out an
informative error message for the one problem that isn't solved, but
has a workaround.)
A synopsis of the problems:
1) you can't do a persistent attach-interface of a device with a mac
address that matches an existing device.
2) you *can* do a live attach-interface of such a device.
3) you *can* directly edit a domain and put in two devices with
matching mac addresses.
4) When running virsh detach-device (live or config), only MAC address
is checked when matching the device to remove, so the first device
with the desired mac address will be removed. This isn't always the
one that's wanted.
5) when running virsh detach-interface (live or config), the only two
items that can be specified to match against are mac address and model
type (virtio, etc) - if multiple netdevs match both of those
attributes, it again just finds the first one added and assumes that
is the only match.
Since it is completely valid to have multiple network devices with the
same MAC address (although it can cause problems in many cases, there
*are* valid use cases), what is needed is:
1) remove the restriction that prohibits doing a persistent add of a
netdev with a duplicate mac address.
2) enhance the backend of virDomainDetachDeviceFlags to check for
something that *is* guaranteed unique (but still work with just mac
address, as long as it yields only a single results.
This patch does three things:
1) removes the check for duplicate mac address during a persistent
netdev attach.
2) unifies the searching for both live and config detach of netdevices
in the subordinate functions of qemuDomainModifyDeviceFlags() to use the
new function virDomainNetFindIdx (which matches mac address and PCI
address if available, checking for duplicates if only mac address was
specified). This function returns -2 if multiple matches are found,
allowing the callers to print out an appropriate message.
Steps 1 & 2 are enough to fully fix the problem when using virsh
attach-device and detach-device (which require an XML description of
the device rather than a bunch of commandline args)
3) modifies the virsh detach-interface command to check for multiple
matches of mac address and show an error message suggesting use of the
detach-device command in cases where there are multiple matching mac
addresses.
Later we should decide how we want to input a PCI address on the virsh
commandline, and enhance detach-interface to take a --address option,
eliminating the need to use detach-device
* src/conf/domain_conf.c
* src/conf/domain_conf.h
* src/libvirt_private.syms
* added new virDomainNetFindIdx function
* removed now unused virDomainNetIndexByMac and
virDomainNetRemoveByMac
* src/qemu/qemu_driver.c
* remove check for duplicate max from qemuDomainAttachDeviceConfig
* use virDomainNetFindIdx/virDomainNetRemove instead
of virDomainNetRemoveByMac in qemuDomainDetachDeviceConfig
* use virDomainNetFindIdx instead of virDomainIndexByMac
in qemuDomainUpdateDeviceConfig
* src/qemu/qemu_hotplug.c
* use virDomainNetFindIdx instead of a homespun loop in
qemuDomainDetachNetDevice.
* tools/virsh-domain.c: modified detach-interface command as described
above
2012-10-25 20:03:35 +00:00
|
|
|
virDomainNetFindIdx;
|
2013-03-15 14:44:12 +00:00
|
|
|
virDomainNetGenerateMAC;
|
2011-07-26 12:42:37 +00:00
|
|
|
virDomainNetGetActualBandwidth;
|
network: store network macTableManager setting in NetDef actual object
At the time that the network driver allocates a connection to a
network, the tap device that will be used hasn't yet been created -
that will be done later by qemu (or lxc or whoever) - but if the
network has macTableManager='libvirt', then when we do get around to
creating the tap device, we will need to add an entry for it to the
network bridge's fdb (forwarding database) *and* turn off learning and
unicast_flood for that tap device in the bridge's sysfs settings. This
means that qemu needs to know both the bridge name as well as the
setting of macTableManager, so we either need to create a new API to
retrieve that info, or just pass it back in the ActualNetDef that is
created during networkAllocateActualDevice. We choose the latter
method, since it's already done for the bridge device, and it has the
side effect of making the information available in domain status.
(NB: in the future, I think that the tap device should actually be
created by networkAllocateActualDevice(), as that will solve several
other problems, but that is a battle for another day, and this
information will still be useful outside the network driver)
2014-11-21 17:35:15 +00:00
|
|
|
virDomainNetGetActualBridgeMACTableManager;
|
2011-06-26 08:09:00 +00:00
|
|
|
virDomainNetGetActualBridgeName;
|
|
|
|
virDomainNetGetActualDirectDev;
|
|
|
|
virDomainNetGetActualDirectMode;
|
2012-02-15 17:37:15 +00:00
|
|
|
virDomainNetGetActualHostdev;
|
2014-09-23 18:19:08 +00:00
|
|
|
virDomainNetGetActualTrustGuestRxFilters;
|
2012-01-02 21:35:12 +00:00
|
|
|
virDomainNetGetActualType;
|
2012-02-15 19:19:32 +00:00
|
|
|
virDomainNetGetActualVirtPortProfile;
|
2012-08-12 07:51:30 +00:00
|
|
|
virDomainNetGetActualVlan;
|
2011-05-27 07:01:47 +00:00
|
|
|
virDomainNetInsert;
|
2012-02-27 17:13:41 +00:00
|
|
|
virDomainNetRemove;
|
2013-08-27 17:06:18 +00:00
|
|
|
virDomainNetRemoveHostdev;
|
2015-02-09 15:07:30 +00:00
|
|
|
virDomainNetTypeFromString;
|
2009-07-17 21:08:34 +00:00
|
|
|
virDomainNetTypeToString;
|
2011-09-15 13:07:51 +00:00
|
|
|
virDomainNostateReasonTypeFromString;
|
|
|
|
virDomainNostateReasonTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainObjAssignDef;
|
2015-05-26 14:43:58 +00:00
|
|
|
virDomainObjBroadcast;
|
2011-04-22 03:07:56 +00:00
|
|
|
virDomainObjCopyPersistentDef;
|
2015-04-23 15:27:58 +00:00
|
|
|
virDomainObjEndAPI;
|
2015-03-24 12:25:27 +00:00
|
|
|
virDomainObjFormat;
|
2015-05-29 12:37:20 +00:00
|
|
|
virDomainObjGetDefs;
|
2013-06-11 13:45:05 +00:00
|
|
|
virDomainObjGetMetadata;
|
2015-06-15 17:04:41 +00:00
|
|
|
virDomainObjGetOneDef;
|
2010-11-19 19:51:46 +00:00
|
|
|
virDomainObjGetPersistentDef;
|
2011-05-04 09:07:01 +00:00
|
|
|
virDomainObjGetState;
|
2013-01-11 16:04:47 +00:00
|
|
|
virDomainObjListAdd;
|
2015-04-29 12:11:09 +00:00
|
|
|
virDomainObjListCollect;
|
2015-04-29 14:15:53 +00:00
|
|
|
virDomainObjListConvert;
|
2013-01-11 16:04:47 +00:00
|
|
|
virDomainObjListExport;
|
|
|
|
virDomainObjListFindByID;
|
|
|
|
virDomainObjListFindByName;
|
|
|
|
virDomainObjListFindByUUID;
|
2014-12-02 07:33:33 +00:00
|
|
|
virDomainObjListFindByUUIDRef;
|
2013-01-11 13:54:15 +00:00
|
|
|
virDomainObjListForEach;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainObjListGetActiveIDs;
|
|
|
|
virDomainObjListGetInactiveNames;
|
2013-01-11 16:04:47 +00:00
|
|
|
virDomainObjListLoadAllConfigs;
|
|
|
|
virDomainObjListNew;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainObjListNumOfDomains;
|
2013-01-11 16:04:47 +00:00
|
|
|
virDomainObjListRemove;
|
2013-06-13 01:54:08 +00:00
|
|
|
virDomainObjListRemoveLocked;
|
2012-07-11 13:35:46 +00:00
|
|
|
virDomainObjNew;
|
2015-03-24 12:25:27 +00:00
|
|
|
virDomainObjParseNode;
|
2011-04-22 03:07:56 +00:00
|
|
|
virDomainObjSetDefTransient;
|
2013-06-11 13:45:05 +00:00
|
|
|
virDomainObjSetMetadata;
|
2011-05-04 09:07:01 +00:00
|
|
|
virDomainObjSetState;
|
2011-05-04 10:40:59 +00:00
|
|
|
virDomainObjTaint;
|
2015-05-29 12:37:20 +00:00
|
|
|
virDomainObjUpdateModificationImpact;
|
2015-05-26 14:43:58 +00:00
|
|
|
virDomainObjWait;
|
|
|
|
virDomainObjWaitUntil;
|
2015-04-16 23:18:32 +00:00
|
|
|
virDomainOSTypeFromString;
|
|
|
|
virDomainOSTypeToString;
|
2014-11-10 11:52:05 +00:00
|
|
|
virDomainParseMemory;
|
2011-09-15 13:07:51 +00:00
|
|
|
virDomainPausedReasonTypeFromString;
|
|
|
|
virDomainPausedReasonTypeToString;
|
2015-03-11 20:17:56 +00:00
|
|
|
virDomainPinAdd;
|
2015-03-11 00:19:35 +00:00
|
|
|
virDomainPinDefArrayFree;
|
2015-03-11 00:24:04 +00:00
|
|
|
virDomainPinDefCopy;
|
2015-03-11 00:15:45 +00:00
|
|
|
virDomainPinDefFree;
|
2015-03-11 20:42:44 +00:00
|
|
|
virDomainPinDel;
|
2015-03-11 00:31:44 +00:00
|
|
|
virDomainPinFind;
|
conf: avoid NULL deref for pmsuspended domain state
While working with a pmsuspend vs. snapshot issue, I noticed that
the state file in /var/run/libvirt/qemu/dom.xml contained a rather
suspicious "(null)" string, which does not round-trip well through
a libvirtd restart. Had I been on a platform other than glibc
where printf("%s",NULL) crashes instead of printing (null), we might
have noticed the problem much sooner.
And in fixing that problem, I also noticed that we had several
missing states, because we were #defining several *_LAST names
to a value _different_ than what they were already given as enums
in libvirt.h. Yuck. I got rid of default: labels in the case
statements, because they get in the way of gcc's -Wswitch helping
us ensure we cover all enum values.
* src/conf/domain_conf.c (virDomainStateReasonToString)
(virDomainStateReasonFromString): Fill in missing domain states;
rewrite case statement to let compiler enforce checking.
(VIR_DOMAIN_NOSTATE_LAST, VIR_DOMAIN_RUNNING_LAST)
(VIR_DOMAIN_BLOCKED_LAST, VIR_DOMAIN_PAUSED_LAST)
(VIR_DOMAIN_SHUTDOWN_LAST, VIR_DOMAIN_SHUTOFF_LAST)
(VIR_DOMAIN_CRASHED_LAST): Drop dead defines.
(VIR_DOMAIN_PMSUSPENDED_LAST): Drop dead define.
(virDomainPMSuspendedReason): Add missing enum function.
(virDomainRunningReason, virDomainPausedReason): Add missing enum
value.
* src/conf/domain_conf.h (virDomainPMSuspendedReason): Declare
missing functions.
* src/libvirt_private.syms (domain_conf.h): Export them.
2013-01-24 00:06:06 +00:00
|
|
|
virDomainPMSuspendedReasonTypeFromString;
|
|
|
|
virDomainPMSuspendedReasonTypeToString;
|
2011-09-02 15:09:14 +00:00
|
|
|
virDomainRedirdevBusTypeFromString;
|
|
|
|
virDomainRedirdevBusTypeToString;
|
2013-01-11 16:34:37 +00:00
|
|
|
virDomainRNGBackendTypeToString;
|
2015-02-05 12:46:06 +00:00
|
|
|
virDomainRNGDefFree;
|
2015-01-17 05:09:32 +00:00
|
|
|
virDomainRNGFind;
|
|
|
|
virDomainRNGInsert;
|
2013-01-11 16:34:37 +00:00
|
|
|
virDomainRNGModelTypeToString;
|
2015-01-17 05:09:32 +00:00
|
|
|
virDomainRNGRemove;
|
2011-09-15 13:07:51 +00:00
|
|
|
virDomainRunningReasonTypeFromString;
|
|
|
|
virDomainRunningReasonTypeToString;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainSaveConfig;
|
2009-06-12 11:38:50 +00:00
|
|
|
virDomainSaveStatus;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainSaveXML;
|
2012-04-02 15:45:01 +00:00
|
|
|
virDomainSeclabelTypeFromString;
|
|
|
|
virDomainSeclabelTypeToString;
|
2011-09-15 13:07:51 +00:00
|
|
|
virDomainShutdownReasonTypeFromString;
|
|
|
|
virDomainShutdownReasonTypeToString;
|
|
|
|
virDomainShutoffReasonTypeFromString;
|
|
|
|
virDomainShutoffReasonTypeToString;
|
2011-01-10 16:41:33 +00:00
|
|
|
virDomainSmartcardDefForeach;
|
|
|
|
virDomainSmartcardDefFree;
|
|
|
|
virDomainSmartcardTypeFromString;
|
|
|
|
virDomainSmartcardTypeToString;
|
2012-04-02 15:45:01 +00:00
|
|
|
virDomainSmbiosModeTypeFromString;
|
|
|
|
virDomainSmbiosModeTypeToString;
|
2009-01-05 14:05:29 +00:00
|
|
|
virDomainSoundDefFree;
|
|
|
|
virDomainSoundModelTypeFromString;
|
|
|
|
virDomainSoundModelTypeToString;
|
2011-10-17 14:54:03 +00:00
|
|
|
virDomainStartupPolicyTypeFromString;
|
|
|
|
virDomainStartupPolicyTypeToString;
|
2011-05-04 09:07:01 +00:00
|
|
|
virDomainStateReasonFromString;
|
|
|
|
virDomainStateReasonToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainStateTypeFromString;
|
|
|
|
virDomainStateTypeToString;
|
2011-05-04 10:40:59 +00:00
|
|
|
virDomainTaintTypeFromString;
|
|
|
|
virDomainTaintTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainTimerModeTypeFromString;
|
|
|
|
virDomainTimerModeTypeToString;
|
|
|
|
virDomainTimerNameTypeFromString;
|
|
|
|
virDomainTimerNameTypeToString;
|
|
|
|
virDomainTimerTickpolicyTypeFromString;
|
|
|
|
virDomainTimerTickpolicyTypeToString;
|
|
|
|
virDomainTimerTrackTypeFromString;
|
|
|
|
virDomainTimerTrackTypeToString;
|
2013-04-12 20:55:45 +00:00
|
|
|
virDomainTPMBackendTypeFromString;
|
|
|
|
virDomainTPMBackendTypeToString;
|
|
|
|
virDomainTPMDefFree;
|
|
|
|
virDomainTPMModelTypeFromString;
|
|
|
|
virDomainTPMModelTypeToString;
|
2009-07-06 13:54:44 +00:00
|
|
|
virDomainVideoDefaultRAM;
|
|
|
|
virDomainVideoDefaultType;
|
2012-12-11 22:21:17 +00:00
|
|
|
virDomainVideoDefFree;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainVideoTypeFromString;
|
|
|
|
virDomainVideoTypeToString;
|
2014-06-25 16:39:29 +00:00
|
|
|
virDomainVirtTypeFromString;
|
2012-12-11 22:21:17 +00:00
|
|
|
virDomainVirtTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainWatchdogActionTypeFromString;
|
|
|
|
virDomainWatchdogActionTypeToString;
|
|
|
|
virDomainWatchdogModelTypeFromString;
|
|
|
|
virDomainWatchdogModelTypeToString;
|
2013-03-31 18:03:42 +00:00
|
|
|
virDomainXMLOptionGetNamespace;
|
|
|
|
virDomainXMLOptionNew;
|
2010-03-30 11:44:22 +00:00
|
|
|
|
2009-01-05 14:05:29 +00:00
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/domain_event.h
|
2014-11-19 09:32:20 +00:00
|
|
|
virDomainEventAgentLifecycleNewFromDom;
|
|
|
|
virDomainEventAgentLifecycleNewFromObj;
|
2012-07-13 09:05:17 +00:00
|
|
|
virDomainEventBalloonChangeNewFromDom;
|
|
|
|
virDomainEventBalloonChangeNewFromObj;
|
blockjob: use stable disk string in job event
When the block job event was first added, it was for block pull,
where the active layer of the disk remains the same name. It was
also in a day where we only cared about local files, and so we
always had a canonical absolute file name. But two things have
changed since then: we now have network disks, where determining
a single absolute string does not really make sense; and we have
two-phase jobs (copy and active commit) where the name of the
active layer changes between the first event (ready, on the old
name) and second (complete, on the pivoted name).
Adam Litke reported that having an unstable string between events
makes life harder for clients. Furthermore, all of our API that
operate on a particular disk of a domain accept multiple strings:
not only the absolute name of the active layer, but also the
destination device name (such as 'vda'). As this latter name is
stable, even for network sources, it serves as a better string
to supply in block job events.
But backwards-compatibility demands that we should not change the
name handed to users unless they explicitly request it. Therefore,
this patch adds a new event, BLOCK_JOB_2 (alas, I couldn't think of
any nicer name - but at least Migrate2 and Migrate3 are precedent
for a number suffix). We must double up on emitting both old-style
and new-style events according to what clients have registered for
(see also how IOError and IOErrorReason emits double events, but
there the difference was a larger struct rather than changed
meaning of one of the struct members).
Unfortunately, adding a new event isn't something that can easily
be broken into pieces, so the commit is rather large.
* include/libvirt/libvirt.h.in (virDomainEventID): Add a new id
for VIR_DOMAIN_EVENT_ID_BLOCK_JOB_2.
(virConnectDomainEventBlockJobCallback): Document new semantics.
* src/conf/domain_event.c (_virDomainEventBlockJob): Rename field,
to ensure we catch all clients.
(virDomainEventBlockJobNew): Add parameter.
(virDomainEventBlockJobDispose)
(virDomainEventBlockJobNewFromObj)
(virDomainEventBlockJobNewFromDom)
(virDomainEventDispatchDefaultFunc): Adjust clients.
(virDomainEventBlockJob2NewFromObj)
(virDomainEventBlockJob2NewFromDom): New functions.
* src/conf/domain_event.h: Add new prototypes.
* src/libvirt_private.syms (domain_event.h): Export new functions.
* src/qemu/qemu_driver.c (qemuDomainBlockJobImpl): Generate two
different events.
* src/qemu/qemu_process.c (qemuProcessHandleBlockJob): Likewise.
* src/remote/remote_protocol.x
(remote_domain_event_block_job_2_msg): New struct.
(REMOTE_PROC_DOMAIN_EVENT_BLOCK_JOB_2): New RPC.
* src/remote/remote_driver.c
(remoteDomainBuildEventBlockJob2): New handler.
(remoteEvents): Register new event.
* daemon/remote.c (remoteRelayDomainEventBlockJob2): New handler.
(domainEventCallbacks): Register new event.
* tools/virsh-domain.c (vshEventCallbacks): Likewise.
(vshEventBlockJobPrint): Adjust client.
* src/remote_protocol-structs: Regenerate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-06-14 13:18:04 +00:00
|
|
|
virDomainEventBlockJob2NewFromDom;
|
|
|
|
virDomainEventBlockJob2NewFromObj;
|
2011-07-22 05:57:42 +00:00
|
|
|
virDomainEventBlockJobNewFromDom;
|
2012-12-11 22:21:17 +00:00
|
|
|
virDomainEventBlockJobNewFromObj;
|
2011-05-29 12:21:53 +00:00
|
|
|
virDomainEventControlErrorNewFromDom;
|
|
|
|
virDomainEventControlErrorNewFromObj;
|
2015-03-30 16:46:21 +00:00
|
|
|
virDomainEventDeviceAddedNewFromDom;
|
|
|
|
virDomainEventDeviceAddedNewFromObj;
|
2013-06-19 13:27:29 +00:00
|
|
|
virDomainEventDeviceRemovedNewFromDom;
|
|
|
|
virDomainEventDeviceRemovedNewFromObj;
|
2011-10-18 14:15:42 +00:00
|
|
|
virDomainEventDiskChangeNewFromDom;
|
|
|
|
virDomainEventDiskChangeNewFromObj;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainEventGraphicsNewFromDom;
|
|
|
|
virDomainEventGraphicsNewFromObj;
|
|
|
|
virDomainEventIOErrorNewFromDom;
|
|
|
|
virDomainEventIOErrorNewFromObj;
|
|
|
|
virDomainEventIOErrorReasonNewFromDom;
|
|
|
|
virDomainEventIOErrorReasonNewFromObj;
|
2013-11-21 17:03:26 +00:00
|
|
|
virDomainEventLifecycleNew;
|
|
|
|
virDomainEventLifecycleNewFromDef;
|
|
|
|
virDomainEventLifecycleNewFromDom;
|
|
|
|
virDomainEventLifecycleNewFromObj;
|
2012-12-11 22:21:17 +00:00
|
|
|
virDomainEventPMSuspendDiskNewFromDom;
|
|
|
|
virDomainEventPMSuspendDiskNewFromObj;
|
2012-03-23 14:50:36 +00:00
|
|
|
virDomainEventPMSuspendNewFromDom;
|
|
|
|
virDomainEventPMSuspendNewFromObj;
|
2012-03-23 14:43:14 +00:00
|
|
|
virDomainEventPMWakeupNewFromDom;
|
|
|
|
virDomainEventPMWakeupNewFromObj;
|
2011-04-25 11:35:23 +00:00
|
|
|
virDomainEventRebootNew;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainEventRebootNewFromDom;
|
|
|
|
virDomainEventRebootNewFromObj;
|
2012-12-11 22:21:17 +00:00
|
|
|
virDomainEventRTCChangeNewFromDom;
|
|
|
|
virDomainEventRTCChangeNewFromObj;
|
2011-01-05 22:51:45 +00:00
|
|
|
virDomainEventStateDeregister;
|
2012-12-11 22:21:17 +00:00
|
|
|
virDomainEventStateRegister;
|
|
|
|
virDomainEventStateRegisterID;
|
2012-03-23 13:44:50 +00:00
|
|
|
virDomainEventTrayChangeNewFromDom;
|
|
|
|
virDomainEventTrayChangeNewFromObj;
|
2014-09-10 11:28:24 +00:00
|
|
|
virDomainEventTunableNewFromDom;
|
|
|
|
virDomainEventTunableNewFromObj;
|
Add support for an explicit watchdog event
This introduces a new event type
VIR_DOMAIN_EVENT_ID_WATCHDOG
This event includes the action that is about to be taken
as a result of the watchdog triggering
typedef enum {
VIR_DOMAIN_EVENT_WATCHDOG_NONE = 0,
VIR_DOMAIN_EVENT_WATCHDOG_PAUSE,
VIR_DOMAIN_EVENT_WATCHDOG_RESET,
VIR_DOMAIN_EVENT_WATCHDOG_POWEROFF,
VIR_DOMAIN_EVENT_WATCHDOG_SHUTDOWN,
VIR_DOMAIN_EVENT_WATCHDOG_DEBUG,
} virDomainEventWatchdogAction;
Thus there is a new callback definition for this event type
typedef void (*virConnectDomainEventWatchdogCallback)(virConnectPtr conn,
virDomainPtr dom,
int action,
void *opaque);
* daemon/remote.c: Dispatch watchdog events to client
* examples/domain-events/events-c/event-test.c: Watch for
watchdog events
* include/libvirt/libvirt.h.in: Define new watchdg event ID
and callback signature
* src/conf/domain_event.c, src/conf/domain_event.h,
src/libvirt_private.syms: Extend API to handle watchdog events
* src/qemu/qemu_driver.c: Connect to the QEMU monitor event
for watchdogs and emit a libvirt watchdog event
* src/remote/remote_driver.c: Receive and dispatch watchdog
events to application
* src/remote/remote_protocol.x: Wire protocol definition for
watchdog events
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
src/qemu/qemu_monitor_json.c: Watch for WATCHDOG event
from QEMU monitor
2010-03-18 19:07:48 +00:00
|
|
|
virDomainEventWatchdogNewFromDom;
|
|
|
|
virDomainEventWatchdogNewFromObj;
|
2013-12-31 13:33:42 +00:00
|
|
|
virDomainQemuMonitorEventNew;
|
|
|
|
virDomainQemuMonitorEventStateRegisterID;
|
2010-10-20 17:10:45 +00:00
|
|
|
|
2009-01-05 14:05:29 +00:00
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/domain_nwfilter.h
|
2010-06-21 18:18:31 +00:00
|
|
|
virDomainConfNWFilterInstantiate;
|
2010-10-20 17:10:45 +00:00
|
|
|
virDomainConfNWFilterRegister;
|
2010-06-21 18:18:31 +00:00
|
|
|
virDomainConfNWFilterTeardown;
|
|
|
|
virDomainConfVMNWFilterTeardown;
|
2009-01-05 14:05:29 +00:00
|
|
|
|
2010-10-12 11:23:18 +00:00
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# conf/interface_conf.h
|
|
|
|
virInterfaceAssignDef;
|
|
|
|
virInterfaceDefFormat;
|
|
|
|
virInterfaceDefFree;
|
|
|
|
virInterfaceDefParseFile;
|
|
|
|
virInterfaceDefParseNode;
|
|
|
|
virInterfaceDefParseString;
|
|
|
|
virInterfaceFindByMACString;
|
|
|
|
virInterfaceFindByName;
|
|
|
|
virInterfaceObjListClone;
|
|
|
|
virInterfaceObjListFree;
|
|
|
|
virInterfaceObjLock;
|
|
|
|
virInterfaceObjUnlock;
|
|
|
|
virInterfaceRemove;
|
2009-01-05 14:05:29 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/netdev_bandwidth_conf.h
|
2014-11-18 23:55:48 +00:00
|
|
|
virDomainClearNetBandwidth;
|
Adjust naming of network device bandwidth management APIs
Rename virBandwidth to virNetDevBandwidth, and virRate to
virNetDevBandwidthRate.
* src/util/network.c, src/util/network.h: Rename bandwidth
structs and APIs
* src/conf/domain_conf.c, src/conf/domain_conf.h,
src/conf/network_conf.c, src/conf/network_conf.h,
src/lxc/lxc_driver.c, src/network/bridge_driver.c,
src/qemu/qemu_command.c, src/util/macvtap.c,
src/util/macvtap.h, tools/virsh.c: Update for API changes.
2011-11-02 14:29:05 +00:00
|
|
|
virNetDevBandwidthFormat;
|
|
|
|
virNetDevBandwidthParse;
|
2011-11-18 16:07:48 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/netdev_vlan_conf.h
|
2012-08-12 07:51:30 +00:00
|
|
|
virNetDevVlanFormat;
|
|
|
|
virNetDevVlanParse;
|
|
|
|
|
|
|
|
|
2013-02-20 00:59:20 +00:00
|
|
|
# conf/netdev_vport_profile_conf.h
|
2011-11-02 14:43:16 +00:00
|
|
|
virNetDevVPortProfileFormat;
|
|
|
|
virNetDevVPortProfileParse;
|
2012-03-06 01:12:44 +00:00
|
|
|
virNetDevVPortTypeFromString;
|
|
|
|
virNetDevVPortTypeToString;
|
2009-10-30 15:36:04 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/network_conf.h
|
2009-01-05 14:05:29 +00:00
|
|
|
virNetworkAssignDef;
|
network: move auto-assign of bridge name from XML parser to net driver
We already check that any auto-assigned bridge device name for a
virtual network (e.g. "virbr1") doesn't conflict with the bridge name
for any existing libvirt network (via virNetworkSetBridgeName() in
conf/network_conf.c).
We also want to check that the name doesn't conflict with any bridge
device created on the host system outside the control of libvirt
(history: possibly due to the ploriferation of references to libvirt's
bridge devices in HOWTO documents all around the web, it is not
uncommon for an admin to manually create a bridge in their host's
system network config and name it "virbrX"). To add such a check to
virNetworkBridgeInUse() (which is called by virNetworkSetBridgeName())
we would have to call virNetDevExists() (from util/virnetdev.c); this
function calls ioctl(SIOCGIFFLAGS), which everyone on the mailing list
agreed should not be done from an XML parsing function in the conf
directory.
To remedy that problem, this patch removes virNetworkSetBridgeName()
from conf/network_conf.c and puts an identically functioning
networkBridgeNameValidate() in network/bridge_driver.c (because it's
reasonable for the bridge driver to call virNetDevExists(), although
we don't do that yet because I wanted this patch to have as close to 0
effect on function as possible).
There are a couple of inevitable changes though:
1) We no longer check the bridge name during
virNetworkLoadConfig(). Close examination of the code shows that
this wasn't necessary anyway - the only *correct* way to get XML
into the config files is via networkDefine(), and networkDefine()
will always call networkValidate(), which previously called
virNetworkSetBridgeName() (and now calls
networkBridgeNameValidate()). This means that the only way the
bridge name can be unset during virNetworkLoadConfig() is if
someone edited the config file on disk by hand (which we explicitly
prohibit).
2) Just on the off chance that somebody *has* edited the file by hand,
rather than crashing when they try to start their malformed
network, a check for non-NULL bridge name has been added to
networkStartNetworkVirtual().
(For those wondering why I don't instead call
networkValidateBridgeName() there to set a bridge name if one
wasn't present - the problem is that during
networkStartNetworkVirtual(), the lock for the network being
started has already been acquired, but the lock for the network
list itself *has not* (because we aren't adding/removing a
network). But virNetworkBridgeInuse() iterates through *all*
networks (including this one) and locks each network as it is
checked for a duplicate entry; it is necessary to lock each network
even before checking if it is the designated "skip" network because
otherwise some other thread might acquire the list lock and delete
the very entry we're examining. In the end, permitting a setting of
the bridge name during network start would require that we lock the
entire network list during any networkStartNetwork(), which
eliminates a *lot* of parallelism that we've worked so hard to
achieve (it can make a huge difference during libvirtd startup). So
rather than try to adjust for someone playing against the rules, I
choose to instead give them the error they deserve.)
3) virNetworkAllocateBridge() (now removed) would leak any "template"
string set as the bridge name. Its replacement
networkFindUnusedBridgeName() doesn't leak the template string - it
is properly freed.
2015-04-23 16:49:59 +00:00
|
|
|
virNetworkBridgeInUse;
|
conf: new network bridge device attribute macTableManager
The macTableManager attribute of a network's bridge subelement tells
libvirt how the bridge's MAC address table (used to determine the
egress port for packets) is managed. In the default mode, "kernel",
management is left to the kernel, which usually determines entries in
part by turning on promiscuous mode on all ports of the bridge,
flooding packets to all ports when the correct destination is unknown,
and adding/removing entries to the fdb as it sees incoming traffic
from particular MAC addresses. In "libvirt" mode, libvirt turns off
learning and flooding on all the bridge ports connected to guest
domain interfaces, and adds/removes entries according to the MAC
addresses in the domain interface configurations. A side effect of
turning off learning and unicast_flood on the ports of a bridge is
that (with Linux kernel 3.17 and newer), the kernel can automatically
turn off promiscuous mode on one or more of the bridge's ports
(usually only the one interface that is used to connect the bridge to
the physical network). The result is better performance (because
packets aren't being flooded to all ports, and can be dropped earlier
when they are of no interest) and slightly better security (a guest
can still send out packets with a spoofed source MAC address, but will
only receive traffic intended for the guest interface's configured MAC
address).
The attribute looks like this in the configuration:
<network>
<name>test</name>
<bridge name='br0' macTableManager='libvirt'/>
...
This patch only adds the config knob, documentation, and test
cases. The functionality behind this knob is added in later patches.
2014-11-20 17:40:33 +00:00
|
|
|
virNetworkBridgeMACTableManagerTypeFromString;
|
|
|
|
virNetworkBridgeMACTableManagerTypeToString;
|
2012-09-14 15:35:35 +00:00
|
|
|
virNetworkConfigChangeSetup;
|
2012-12-11 22:21:17 +00:00
|
|
|
virNetworkConfigFile;
|
2012-09-14 15:35:35 +00:00
|
|
|
virNetworkDefCopy;
|
2009-01-05 14:05:29 +00:00
|
|
|
virNetworkDefFormat;
|
2014-02-12 16:36:35 +00:00
|
|
|
virNetworkDefFormatBuf;
|
2009-01-05 14:05:29 +00:00
|
|
|
virNetworkDefFree;
|
2010-11-17 18:36:19 +00:00
|
|
|
virNetworkDefGetIpByIndex;
|
2015-07-09 13:50:41 +00:00
|
|
|
virNetworkDefGetRouteByIndex;
|
2009-01-05 14:05:29 +00:00
|
|
|
virNetworkDefParseFile;
|
|
|
|
virNetworkDefParseNode;
|
|
|
|
virNetworkDefParseString;
|
2013-07-29 15:17:47 +00:00
|
|
|
virNetworkDefUpdateSection;
|
2009-01-05 14:05:29 +00:00
|
|
|
virNetworkDeleteConfig;
|
network: prevent a few invalid configuration combinations
This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=767057
It was possible to define a network with <forward mode='bridge'> that
had both a bridge device and a forward device defined. These two are
mutually exclusive by definition (if you are using a bridge device,
then this is a host bridge, and if you have a forward dev defined,
this is using macvtap). It was also possible to put <ip>, <dns>, and
<domain> elements in this definition, although those aren't supported
by the current driver (although it's conceivable that some other
driver might support that).
The items that are invalid by definition, are now checked in the XML
parser (since they will definitely *always* be wrong), and the others
are checked in networkValidate() in the network driver (since, as
mentioned, it's possible that some other network driver, or even this
one, could some day support setting those).
2012-12-05 19:10:24 +00:00
|
|
|
virNetworkForwardTypeToString;
|
2010-11-17 18:36:19 +00:00
|
|
|
virNetworkIpDefNetmask;
|
|
|
|
virNetworkIpDefPrefix;
|
2009-01-05 14:05:29 +00:00
|
|
|
virNetworkLoadAllConfigs;
|
2013-04-16 16:35:59 +00:00
|
|
|
virNetworkLoadAllState;
|
2012-09-14 15:35:35 +00:00
|
|
|
virNetworkObjAssignDef;
|
2015-02-25 15:49:19 +00:00
|
|
|
virNetworkObjEndAPI;
|
2015-02-23 16:05:52 +00:00
|
|
|
virNetworkObjFindByName;
|
2015-03-04 12:28:07 +00:00
|
|
|
virNetworkObjFindByNameLocked;
|
2015-02-23 15:57:29 +00:00
|
|
|
virNetworkObjFindByUUID;
|
2015-03-04 12:28:07 +00:00
|
|
|
virNetworkObjFindByUUIDLocked;
|
2012-09-14 15:35:35 +00:00
|
|
|
virNetworkObjGetPersistentDef;
|
2013-06-26 15:42:27 +00:00
|
|
|
virNetworkObjListExport;
|
2015-02-23 16:21:46 +00:00
|
|
|
virNetworkObjListForEach;
|
2015-02-23 16:37:17 +00:00
|
|
|
virNetworkObjListGetNames;
|
2015-02-24 12:45:45 +00:00
|
|
|
virNetworkObjListNew;
|
2015-02-23 16:46:01 +00:00
|
|
|
virNetworkObjListNumOfNetworks;
|
2015-03-04 16:38:39 +00:00
|
|
|
virNetworkObjListPrune;
|
2015-02-25 13:08:19 +00:00
|
|
|
virNetworkObjNew;
|
2012-09-14 15:35:35 +00:00
|
|
|
virNetworkObjReplacePersistentDef;
|
|
|
|
virNetworkObjSetDefTransient;
|
2014-02-04 16:36:54 +00:00
|
|
|
virNetworkObjTaint;
|
network: free/null newDef if network fails to start
https://bugzilla.redhat.com/show_bug.cgi?id=866364
pointed out a crash due to virNetworkObjAssignDef free'ing
network->newDef without NULLing it afterward. A fix for this is in
upstream commit b7e9202401ebaa039b8f05acdefda8c24081537a. While the
NULLing of newDef was a legitimate fix, newDef should have already
been empty (NULL) anyway (as indicated in the comment that was deleted
by that commit).
The reason that newDef had a non-NULL value (i.e. the root cause) was
that networkStartNetwork() had failed after populating
network->newDef, but then neglected to free/NULL newDef in the
cleanup.
(A bit of background here: network->newDef should contain the
persistent config of a network when a network is active (and of course
only when it is persisten), and NULL at all other times. There is also
a network->def which should contain the persistent definition of the
network when it is inactive, and the current live state at all other
times. The idea is that you can make changes to network->newDef which
will take effect the next time the network is restarted, but won't
mess with the current state of the network (virDomainObj has a similar
pair of virDomainDefs that behave in the same fashion). Personally I
think there should be a network->live and network->config, and the
location of the persistent config should *always* be in
network->config, but that's for a later cleanup).
Since I love things to be symmetric, I created a new function called
virNetworkObjUnsetDefTransient(), which reverses the effects of
virNetworkObjSetDefTransient(). I don't really like the name of the
new function, but then I also didn't really like the name of the old
one either (it's just named that way to match a similar function in
the domain conf code).
2012-10-19 16:13:49 +00:00
|
|
|
virNetworkObjUnsetDefTransient;
|
2012-09-14 19:14:57 +00:00
|
|
|
virNetworkObjUpdate;
|
2009-01-05 14:05:29 +00:00
|
|
|
virNetworkRemoveInactive;
|
|
|
|
virNetworkSaveConfig;
|
2012-09-14 15:35:35 +00:00
|
|
|
virNetworkSaveStatus;
|
Give each virtual network bridge its own fixed MAC address
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=609463
The problem was that, since a bridge always acquires the MAC address
of the connected interface with the numerically lowest MAC, as guests
are started and stopped, it was possible for the MAC address to change
over time, and this change in the network was being detected by
Windows 7 (it sees the MAC of the default route change), so on each
reboot it would bring up a dialog box asking about this "new network".
The solution is to create a dummy tap interface with a MAC guaranteed
to be lower than any guest interface's MAC, and attach that tap to the
bridge as soon as it's created. Since all guest MAC addresses start
with 0xFE, we can just generate a MAC with the standard "0x52, 0x54,
0" prefix, and it's guaranteed to always win (physical interfaces are
never connected to these bridges, so we don't need to worry about
competing numerically with them).
Note that the dummy tap is never set to IFF_UP state - that's not
necessary in order for the bridge to take its MAC, and not setting it
to UP eliminates the clutter of having an (eg) "virbr0-nic" displayed
in the output of the ifconfig command.
I chose to not auto-generate the MAC address in the network XML
parser, as there are likely to be consumers of that API that don't
need or want to have a MAC address associated with the
bridge.
Instead, in bridge_driver.c when the network is being defined, if
there is no MAC, one is generated. To account for virtual network
configs that already exist when upgrading from an older version of
libvirt, I've added a %post script to the specfile that searches for
all network definitions in both the config directory
(/etc/libvirt/qemu/networks) and the state directory
(/var/lib/libvirt/network) that are missing a mac address, generates a
random address, and adds it to the config (and a matching address to
the state file, if there is one).
docs/formatnetwork.html.in: document <mac address.../>
docs/schemas/network.rng: add nac address to schema
libvirt.spec.in: %post script to update existing networks
src/conf/network_conf.[ch]: parse and format <mac address.../>
src/libvirt_private.syms: export a couple private symbols we need
src/network/bridge_driver.c:
auto-generate mac address when needed,
create dummy interface if mac address is present.
tests/networkxml2xmlin/isolated-network.xml
tests/networkxml2xmlin/routed-network.xml
tests/networkxml2xmlout/isolated-network.xml
tests/networkxml2xmlout/routed-network.xml: add mac address to some tests
2011-02-09 08:28:12 +00:00
|
|
|
virNetworkSetBridgeMacAddr;
|
2014-02-04 16:36:54 +00:00
|
|
|
virNetworkTaintTypeFromString;
|
|
|
|
virNetworkTaintTypeToString;
|
conf: support abstracted interface info in network XML
The network XML is updated in the following ways:
1) The <forward> element can now contain a list of forward interfaces:
<forward .... >
<interface dev='eth10'/>
<interface dev='eth11'/>
<interface dev='eth12'/>
<interface dev='eth13'/>
</forward>
The first of these takes the place of the dev attribute that is
normally in <forward> - when defining a network you can specify
either one, and on output both will be present. If you specify
both on input, they must match.
2) In addition to forward modes of 'nat' and 'route', these new modes
are supported:
private, passthrough, vepa - when this network is referenced by a
domain's interface, it will have the same effect as if the
interface had been defined as type='direct', e.g.:
<interface type='direct'>
<source mode='${mode}' dev='${dev}>
...
</interface>
where ${mode} is one of the three new modes, and ${dev} is an interface
selected from the list given in <forward>.
bridge - if a <forward> dev (or multiple devs) is defined, and
forward mode is 'bridge' this is just like the modes 'private',
'passthrough', and 'vepa' above. If there is no forward dev
specified but a bridge name is given (e.g. "<bridge
name='br0'/>"), then guest interfaces using this network will use
libvirt's "host bridge" mode, equivalent to this:
<interface type='bridge'>
<source bridge='${bridge-name}'/>
...
</interface>
3) A network can have multiple <portgroup> elements, which may be
selected by the guest interface definition (by adding
"portgroup='${name}'" in the <source> element along with the
network name). Currently a portgroup can only contain a
virtportprofile, but the intent is that other configuration items
may be put there int the future (e.g. bandwidth config). When
building a guest's interface, if the <interface> XML itself has no
virtportprofile, and if the requested network has a portgroup with
a name matching the name given in the <interface> (or if one of the
network's portgroups is marked with the "default='yes'" attribute),
the virtportprofile from that portgroup will be used by the
interface.
4) A network can have a virtportprofile defined at the top level,
which will be used by a guest interface when connecting in one of
the 'direct' modes if the guest interface XML itself hasn't
specified any virtportprofile, and if there are also no matching
portgroups on the network.
2011-07-20 03:01:09 +00:00
|
|
|
virPortGroupFindByName;
|
2009-01-05 14:05:29 +00:00
|
|
|
|
|
|
|
|
2014-01-02 14:16:49 +00:00
|
|
|
# conf/network_event.h
|
|
|
|
virNetworkEventLifecycleNew;
|
|
|
|
virNetworkEventStateRegisterID;
|
|
|
|
|
|
|
|
|
2015-01-14 13:21:10 +00:00
|
|
|
# conf/networkcommon_conf.h
|
|
|
|
virNetworkRouteDefCreate;
|
|
|
|
virNetworkRouteDefFormat;
|
|
|
|
virNetworkRouteDefFree;
|
|
|
|
virNetworkRouteDefGetAddress;
|
|
|
|
virNetworkRouteDefGetGateway;
|
|
|
|
virNetworkRouteDefGetMetric;
|
|
|
|
virNetworkRouteDefGetPrefix;
|
|
|
|
virNetworkRouteDefParseXML;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/node_device_conf.h
|
2012-12-11 22:21:17 +00:00
|
|
|
virNodeDevCapsDefFree;
|
2012-09-17 03:32:53 +00:00
|
|
|
virNodeDevCapTypeFromString;
|
2009-01-05 14:05:29 +00:00
|
|
|
virNodeDevCapTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
virNodeDeviceAssignDef;
|
2009-01-05 14:05:29 +00:00
|
|
|
virNodeDeviceDefFormat;
|
2010-10-20 17:10:45 +00:00
|
|
|
virNodeDeviceDefFree;
|
2010-10-12 11:23:18 +00:00
|
|
|
virNodeDeviceDefParseFile;
|
2010-10-20 17:10:45 +00:00
|
|
|
virNodeDeviceDefParseNode;
|
|
|
|
virNodeDeviceDefParseString;
|
|
|
|
virNodeDeviceFindByName;
|
|
|
|
virNodeDeviceFindBySysfsPath;
|
|
|
|
virNodeDeviceGetParentHost;
|
|
|
|
virNodeDeviceGetWWNs;
|
|
|
|
virNodeDeviceHasCap;
|
2013-06-26 16:50:54 +00:00
|
|
|
virNodeDeviceObjListExport;
|
2010-10-20 17:10:45 +00:00
|
|
|
virNodeDeviceObjListFree;
|
2009-01-05 14:05:29 +00:00
|
|
|
virNodeDeviceObjLock;
|
2010-10-20 17:10:45 +00:00
|
|
|
virNodeDeviceObjRemove;
|
2009-01-05 14:05:29 +00:00
|
|
|
virNodeDeviceObjUnlock;
|
2010-10-20 17:10:45 +00:00
|
|
|
|
|
|
|
|
2015-02-11 09:08:35 +00:00
|
|
|
# conf/numa_conf.h
|
2015-02-16 19:34:37 +00:00
|
|
|
virDomainNumaCheckABIStability;
|
2015-02-11 13:54:59 +00:00
|
|
|
virDomainNumaEquals;
|
|
|
|
virDomainNumaFree;
|
2015-02-16 19:15:04 +00:00
|
|
|
virDomainNumaGetMemorySize;
|
2015-02-16 17:11:46 +00:00
|
|
|
virDomainNumaGetNodeCount;
|
2015-02-16 17:38:43 +00:00
|
|
|
virDomainNumaGetNodeCpumask;
|
2015-02-16 17:51:36 +00:00
|
|
|
virDomainNumaGetNodeMemoryAccessMode;
|
2015-02-16 18:14:23 +00:00
|
|
|
virDomainNumaGetNodeMemorySize;
|
2015-02-16 15:42:13 +00:00
|
|
|
virDomainNumaNew;
|
2015-02-16 18:14:23 +00:00
|
|
|
virDomainNumaSetNodeMemorySize;
|
2014-06-09 13:00:22 +00:00
|
|
|
virDomainNumatuneFormatNodeset;
|
|
|
|
virDomainNumatuneFormatXML;
|
|
|
|
virDomainNumatuneGetMode;
|
|
|
|
virDomainNumatuneGetNodeset;
|
2014-06-26 17:46:45 +00:00
|
|
|
virDomainNumatuneHasPerNodeBinding;
|
2014-06-09 13:00:22 +00:00
|
|
|
virDomainNumatuneHasPlacementAuto;
|
|
|
|
virDomainNumatuneMaybeFormatNodeset;
|
2015-01-15 21:40:15 +00:00
|
|
|
virDomainNumatuneMaybeGetNodeset;
|
2014-06-06 14:50:39 +00:00
|
|
|
virDomainNumatuneMemModeTypeFromString;
|
|
|
|
virDomainNumatuneMemModeTypeToString;
|
2014-11-06 11:16:54 +00:00
|
|
|
virDomainNumatuneNodesetIsAvailable;
|
2015-02-12 16:37:46 +00:00
|
|
|
virDomainNumatuneNodeSpecified;
|
2014-06-09 13:00:22 +00:00
|
|
|
virDomainNumatuneParseXML;
|
2014-06-08 17:15:42 +00:00
|
|
|
virDomainNumatunePlacementTypeFromString;
|
|
|
|
virDomainNumatunePlacementTypeToString;
|
2014-06-09 13:00:22 +00:00
|
|
|
virDomainNumatuneSet;
|
2014-11-05 16:58:30 +00:00
|
|
|
virDomainNumatuneSpecifiedMaxNode;
|
2014-06-06 14:50:39 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/nwfilter_conf.h
|
2010-10-20 17:10:45 +00:00
|
|
|
virNWFilterCallbackDriversLock;
|
|
|
|
virNWFilterCallbackDriversUnlock;
|
|
|
|
virNWFilterChainSuffixTypeToString;
|
|
|
|
virNWFilterConfLayerInit;
|
|
|
|
virNWFilterConfLayerShutdown;
|
|
|
|
virNWFilterDefFormat;
|
|
|
|
virNWFilterDefFree;
|
2014-04-01 06:19:38 +00:00
|
|
|
virNWFilterDefParseFile;
|
2010-10-20 17:10:45 +00:00
|
|
|
virNWFilterDefParseString;
|
2012-01-27 13:19:58 +00:00
|
|
|
virNWFilterInstFiltersOnAllVMs;
|
2010-10-20 17:10:45 +00:00
|
|
|
virNWFilterJumpTargetTypeToString;
|
2011-01-15 15:06:52 +00:00
|
|
|
virNWFilterLoadAllConfigs;
|
|
|
|
virNWFilterObjAssignDef;
|
|
|
|
virNWFilterObjDeleteDef;
|
|
|
|
virNWFilterObjFindByName;
|
|
|
|
virNWFilterObjFindByUUID;
|
|
|
|
virNWFilterObjListFree;
|
|
|
|
virNWFilterObjLock;
|
|
|
|
virNWFilterObjRemove;
|
|
|
|
virNWFilterObjSaveDef;
|
|
|
|
virNWFilterObjUnlock;
|
2010-10-20 17:10:45 +00:00
|
|
|
virNWFilterPrintStateMatchFlags;
|
2011-04-08 00:13:38 +00:00
|
|
|
virNWFilterPrintTCPFlags;
|
2014-01-22 17:28:29 +00:00
|
|
|
virNWFilterReadLockFilterUpdates;
|
2010-10-20 17:10:45 +00:00
|
|
|
virNWFilterRegisterCallbackDriver;
|
2010-03-25 17:46:09 +00:00
|
|
|
virNWFilterRuleActionTypeToString;
|
2011-11-22 20:12:03 +00:00
|
|
|
virNWFilterRuleDirectionTypeToString;
|
2014-03-25 11:50:18 +00:00
|
|
|
virNWFilterRuleIsProtocolEthernet;
|
|
|
|
virNWFilterRuleIsProtocolIPv4;
|
|
|
|
virNWFilterRuleIsProtocolIPv6;
|
2010-03-25 17:46:12 +00:00
|
|
|
virNWFilterRuleProtocolTypeToString;
|
2010-03-25 17:46:09 +00:00
|
|
|
virNWFilterTestUnassignDef;
|
nwfilter: Support for learning a VM's IP address
This patch implements support for learning a VM's IP address. It uses
the pcap library to listen on the VM's backend network interface (tap)
or the physical ethernet device (macvtap) and tries to capture packets
with source or destination MAC address of the VM and learn from DHCP
Offers, ARP traffic, or first-sent IPv4 packet what the IP address of
the VM's interface is. This then allows to instantiate the network
traffic filtering rules without the user having to provide the IP
parameter somewhere in the filter description or in the interface
description as a parameter. This only supports to detect the parameter
IP, which is for the assumed single IPv4 address of a VM. There is not
support for interfaces that may have multiple IP addresses (IP
aliasing) or IPv6 that may then require more than one valid IP address
to be detected. A VM can have multiple independent interfaces that each
uses a different IP address and in that case it will be attempted to
detect each one of the address independently.
So, when for example an interface description in the domain XML has
looked like this up to now:
<interface type='bridge'>
<source bridge='mybridge'/>
<model type='virtio'/>
<filterref filter='clean-traffic'>
<parameter name='IP' value='10.2.3.4'/>
</filterref>
</interface>
you may omit the IP parameter:
<interface type='bridge'>
<source bridge='mybridge'/>
<model type='virtio'/>
<filterref filter='clean-traffic'/>
</interface>
Internally I am walking the 'tree' of a VM's referenced network filters
and determine with the given variables which variables are missing. Now,
the above IP parameter may be missing and this causes a libvirt-internal
thread to be started that uses the pcap library's API to listen to the
backend interface (in case of macvtap to the physical interface) in an
attempt to determine the missing IP parameter. If the backend interface
disappears the thread terminates assuming the VM was brought down. In
case of a macvtap device a timeout is being used to wait for packets
from the given VM (filtering by VM's interface MAC address). If the VM's
macvtap device disappeared the thread also terminates. In all other
cases it tries to determine the IP address of the VM and will then apply
the rules late on the given interface, which would have happened
immediately if the IP parameter had been explicitly given. In case an
error happens while the firewall rules are applied, the VM's backend
interface is 'down'ed preventing it to communicate. Reasons for failure
for applying the network firewall rules may that an ebtables/iptables
command failes or OOM errors. Essentially the same failure reasons may
occur as when the firewall rules are applied immediately on VM start,
except that due to the late application of the filtering rules the VM
now is already running and cannot be hindered anymore from starting.
Bringing down the whole VM would probably be considered too drastic.
While a VM's IP address is attempted to be determined only limited
updates to network filters are allowed. In particular it is prevented
that filters are modified in such a way that they would introduce new
variables.
A caveat: The algorithm does not know which one is the appropriate IP
address of a VM. If the VM spoofs an IP address in its first ARP traffic
or IPv4 packets its filtering rules will be instantiated for this IP
address, thus 'locking' it to the found IP address. So, it's still
'safer' to explicitly provide the IP address of a VM's interface in the
filter description if it is known beforehand.
* configure.ac: detect libpcap
* libvirt.spec.in: require libpcap[-devel] if qemu is built
* src/internal.h: add the new ATTRIBUTE_PACKED define
* src/Makefile.am src/libvirt_private.syms: add the new modules and symbols
* src/nwfilter/nwfilter_learnipaddr.[ch]: new module being added
* src/nwfilter/nwfilter_driver.c src/conf/nwfilter_conf.[ch]
src/nwfilter/nwfilter_ebiptables_driver.[ch]
src/nwfilter/nwfilter_gentech_driver.[ch]: plu the new functionality in
* tests/nwfilterxml2xmltest: extend testing
2010-04-07 21:02:18 +00:00
|
|
|
virNWFilterUnlockFilterUpdates;
|
2012-12-11 22:21:17 +00:00
|
|
|
virNWFilterUnRegisterCallbackDriver;
|
2014-01-22 17:28:29 +00:00
|
|
|
virNWFilterWriteLockFilterUpdates;
|
2010-03-25 17:46:09 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/nwfilter_ipaddrmap.h
|
2012-06-01 23:32:06 +00:00
|
|
|
virNWFilterIPAddrMapAddIPAddr;
|
|
|
|
virNWFilterIPAddrMapDelIPAddr;
|
|
|
|
virNWFilterIPAddrMapGetIPAddr;
|
|
|
|
virNWFilterIPAddrMapInit;
|
|
|
|
virNWFilterIPAddrMapShutdown;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/nwfilter_params.h
|
2010-03-25 17:46:09 +00:00
|
|
|
virNWFilterHashTableCreate;
|
2012-11-12 16:21:10 +00:00
|
|
|
virNWFilterHashTableEqual;
|
2010-03-25 17:46:09 +00:00
|
|
|
virNWFilterHashTableFree;
|
|
|
|
virNWFilterHashTablePut;
|
|
|
|
virNWFilterHashTablePutAll;
|
|
|
|
virNWFilterHashTableRemoveEntry;
|
2012-01-11 11:42:37 +00:00
|
|
|
virNWFilterVarAccessGetVarName;
|
2012-01-11 11:42:37 +00:00
|
|
|
virNWFilterVarAccessIsAvailable;
|
|
|
|
virNWFilterVarAccessPrint;
|
2011-11-18 16:58:18 +00:00
|
|
|
virNWFilterVarCombIterCreate;
|
|
|
|
virNWFilterVarCombIterFree;
|
|
|
|
virNWFilterVarCombIterGetVarValue;
|
|
|
|
virNWFilterVarCombIterNext;
|
2011-11-23 00:05:45 +00:00
|
|
|
virNWFilterVarValueAddValue;
|
2014-04-01 06:19:38 +00:00
|
|
|
virNWFilterVarValueAddValueCopy;
|
2011-11-23 00:05:45 +00:00
|
|
|
virNWFilterVarValueCopy;
|
2011-11-18 16:58:18 +00:00
|
|
|
virNWFilterVarValueCreateSimple;
|
|
|
|
virNWFilterVarValueCreateSimpleCopyValue;
|
2011-11-23 00:05:45 +00:00
|
|
|
virNWFilterVarValueDelValue;
|
2012-11-29 17:49:32 +00:00
|
|
|
virNWFilterVarValueEqual;
|
2011-11-23 00:05:45 +00:00
|
|
|
virNWFilterVarValueFree;
|
|
|
|
virNWFilterVarValueGetCardinality;
|
|
|
|
virNWFilterVarValueGetNthValue;
|
2011-11-18 16:58:18 +00:00
|
|
|
virNWFilterVarValueGetSimple;
|
2010-03-25 17:46:09 +00:00
|
|
|
|
|
|
|
|
2013-11-26 14:10:15 +00:00
|
|
|
# conf/object_event.h
|
|
|
|
virObjectEventStateDeregisterID;
|
|
|
|
virObjectEventStateEventID;
|
|
|
|
virObjectEventStateFree;
|
|
|
|
virObjectEventStateNew;
|
|
|
|
virObjectEventStateQueue;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/secret_conf.h
|
2010-10-20 17:10:45 +00:00
|
|
|
virSecretDefFormat;
|
2009-09-01 15:27:46 +00:00
|
|
|
virSecretDefFree;
|
|
|
|
virSecretDefParseFile;
|
2010-10-20 17:10:45 +00:00
|
|
|
virSecretDefParseString;
|
2014-05-14 19:48:15 +00:00
|
|
|
virSecretUsageTypeFromString;
|
|
|
|
virSecretUsageTypeToString;
|
2009-01-05 14:05:29 +00:00
|
|
|
|
2009-08-14 19:48:55 +00:00
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/snapshot_conf.h
|
2012-10-19 09:52:54 +00:00
|
|
|
virDomainListSnapshots;
|
|
|
|
virDomainSnapshotAlignDisks;
|
|
|
|
virDomainSnapshotAssignDef;
|
|
|
|
virDomainSnapshotDefFormat;
|
|
|
|
virDomainSnapshotDefFree;
|
2013-01-03 13:10:39 +00:00
|
|
|
virDomainSnapshotDefIsExternal;
|
2012-10-19 09:52:54 +00:00
|
|
|
virDomainSnapshotDefParseString;
|
|
|
|
virDomainSnapshotDropParent;
|
|
|
|
virDomainSnapshotFindByName;
|
|
|
|
virDomainSnapshotForEach;
|
|
|
|
virDomainSnapshotForEachChild;
|
|
|
|
virDomainSnapshotForEachDescendant;
|
2012-10-19 09:55:36 +00:00
|
|
|
virDomainSnapshotIsExternal;
|
2012-10-19 09:52:54 +00:00
|
|
|
virDomainSnapshotLocationTypeFromString;
|
|
|
|
virDomainSnapshotLocationTypeToString;
|
|
|
|
virDomainSnapshotObjListGetNames;
|
|
|
|
virDomainSnapshotObjListNum;
|
|
|
|
virDomainSnapshotObjListRemove;
|
2013-08-21 20:39:02 +00:00
|
|
|
virDomainSnapshotRedefinePrep;
|
2012-10-19 09:52:54 +00:00
|
|
|
virDomainSnapshotStateTypeFromString;
|
|
|
|
virDomainSnapshotStateTypeToString;
|
|
|
|
virDomainSnapshotUpdateRelations;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# conf/storage_conf.h
|
2014-05-14 19:48:15 +00:00
|
|
|
virStoragePartedFsTypeToString;
|
2009-01-05 14:05:29 +00:00
|
|
|
virStoragePoolDefFormat;
|
|
|
|
virStoragePoolDefFree;
|
2009-06-22 16:41:34 +00:00
|
|
|
virStoragePoolDefParseFile;
|
|
|
|
virStoragePoolDefParseNode;
|
2010-10-20 17:10:45 +00:00
|
|
|
virStoragePoolDefParseSourceString;
|
|
|
|
virStoragePoolDefParseString;
|
|
|
|
virStoragePoolFormatDiskTypeToString;
|
|
|
|
virStoragePoolFormatFileSystemNetTypeToString;
|
|
|
|
virStoragePoolFormatFileSystemTypeToString;
|
2014-11-17 13:40:59 +00:00
|
|
|
virStoragePoolGetVhbaSCSIHostParent;
|
2009-01-05 14:05:29 +00:00
|
|
|
virStoragePoolLoadAllConfigs;
|
2015-03-10 12:59:51 +00:00
|
|
|
virStoragePoolLoadAllState;
|
2009-01-05 14:05:29 +00:00
|
|
|
virStoragePoolObjAssignDef;
|
|
|
|
virStoragePoolObjClearVols;
|
|
|
|
virStoragePoolObjDeleteDef;
|
|
|
|
virStoragePoolObjFindByName;
|
|
|
|
virStoragePoolObjFindByUUID;
|
2010-10-20 17:10:45 +00:00
|
|
|
virStoragePoolObjIsDuplicate;
|
2013-06-26 17:47:48 +00:00
|
|
|
virStoragePoolObjListExport;
|
2009-01-05 14:05:29 +00:00
|
|
|
virStoragePoolObjListFree;
|
2010-10-20 17:10:45 +00:00
|
|
|
virStoragePoolObjLock;
|
2009-01-05 14:05:29 +00:00
|
|
|
virStoragePoolObjRemove;
|
|
|
|
virStoragePoolObjSaveDef;
|
2010-10-20 17:10:45 +00:00
|
|
|
virStoragePoolObjUnlock;
|
2014-11-10 17:23:46 +00:00
|
|
|
virStoragePoolSaveConfig;
|
2015-04-02 14:41:51 +00:00
|
|
|
virStoragePoolSaveState;
|
2014-05-14 19:48:15 +00:00
|
|
|
virStoragePoolSourceAdapterTypeFromString;
|
|
|
|
virStoragePoolSourceAdapterTypeToString;
|
2011-10-21 22:44:52 +00:00
|
|
|
virStoragePoolSourceClear;
|
2014-03-11 07:44:22 +00:00
|
|
|
virStoragePoolSourceDeviceClear;
|
2011-10-21 22:44:52 +00:00
|
|
|
virStoragePoolSourceFindDuplicate;
|
|
|
|
virStoragePoolSourceFindDuplicateDevices;
|
2009-01-05 14:05:29 +00:00
|
|
|
virStoragePoolSourceFree;
|
|
|
|
virStoragePoolSourceListFormat;
|
2010-10-20 17:10:45 +00:00
|
|
|
virStoragePoolSourceListNewSource;
|
|
|
|
virStoragePoolTypeFromString;
|
2013-11-20 09:37:31 +00:00
|
|
|
virStoragePoolTypeToString;
|
2009-01-05 14:05:29 +00:00
|
|
|
virStorageVolDefFindByKey;
|
|
|
|
virStorageVolDefFindByName;
|
|
|
|
virStorageVolDefFindByPath;
|
|
|
|
virStorageVolDefFormat;
|
|
|
|
virStorageVolDefFree;
|
2009-06-22 16:41:34 +00:00
|
|
|
virStorageVolDefParseFile;
|
|
|
|
virStorageVolDefParseNode;
|
2010-10-20 17:10:45 +00:00
|
|
|
virStorageVolDefParseString;
|
2013-11-20 15:02:00 +00:00
|
|
|
virStorageVolTypeFromString;
|
|
|
|
virStorageVolTypeToString;
|
2010-10-20 17:10:45 +00:00
|
|
|
|
2009-01-05 14:05:29 +00:00
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# conf/virchrdev.h
|
|
|
|
virChrdevAlloc;
|
|
|
|
virChrdevFree;
|
|
|
|
virChrdevOpen;
|
2009-01-05 14:05:29 +00:00
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# cpu/cpu.h
|
|
|
|
cpuBaseline;
|
|
|
|
cpuBaselineXML;
|
|
|
|
cpuCompare;
|
|
|
|
cpuCompareXML;
|
2013-07-21 22:18:50 +00:00
|
|
|
cpuDataFormat;
|
2013-02-16 03:34:42 +00:00
|
|
|
cpuDataFree;
|
2013-07-21 22:18:50 +00:00
|
|
|
cpuDataParse;
|
2013-02-16 03:34:42 +00:00
|
|
|
cpuDecode;
|
|
|
|
cpuEncode;
|
2013-09-23 09:45:59 +00:00
|
|
|
cpuGetModels;
|
2013-02-16 03:34:42 +00:00
|
|
|
cpuGuestData;
|
|
|
|
cpuHasFeature;
|
|
|
|
cpuNodeData;
|
|
|
|
cpuUpdate;
|
2010-11-05 14:22:13 +00:00
|
|
|
|
|
|
|
|
2013-07-23 21:54:17 +00:00
|
|
|
# cpu/cpu_x86.h
|
|
|
|
virCPUx86DataAddCPUID;
|
|
|
|
virCPUx86DataFree;
|
|
|
|
virCPUx86MakeData;
|
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# datatypes.h
|
|
|
|
virConnectClass;
|
|
|
|
virDomainClass;
|
|
|
|
virDomainSnapshotClass;
|
|
|
|
virGetConnect;
|
|
|
|
virGetDomain;
|
|
|
|
virGetDomainSnapshot;
|
|
|
|
virGetInterface;
|
|
|
|
virGetNetwork;
|
|
|
|
virGetNodeDevice;
|
|
|
|
virGetNWFilter;
|
|
|
|
virGetSecret;
|
|
|
|
virGetStoragePool;
|
|
|
|
virGetStorageVol;
|
|
|
|
virGetStream;
|
|
|
|
virInterfaceClass;
|
|
|
|
virNetworkClass;
|
|
|
|
virNodeDeviceClass;
|
|
|
|
virNWFilterClass;
|
|
|
|
virSecretClass;
|
|
|
|
virStoragePoolClass;
|
|
|
|
virStorageVolClass;
|
|
|
|
virStreamClass;
|
2010-12-08 06:19:06 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# fdstream.h
|
|
|
|
virFDStreamConnectUNIX;
|
|
|
|
virFDStreamCreateFile;
|
|
|
|
virFDStreamOpen;
|
2014-08-15 08:11:35 +00:00
|
|
|
virFDStreamOpenBlockDevice;
|
2013-02-16 03:34:42 +00:00
|
|
|
virFDStreamOpenFile;
|
2014-03-10 12:32:51 +00:00
|
|
|
virFDStreamOpenPTY;
|
2014-07-28 12:39:09 +00:00
|
|
|
virFDStreamSetInternalCloseCb;
|
2009-01-15 19:56:05 +00:00
|
|
|
|
2010-10-20 17:10:45 +00:00
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# libvirt_internal.h
|
2013-04-22 17:26:01 +00:00
|
|
|
virConnectSupportsFeature;
|
2013-02-16 03:34:42 +00:00
|
|
|
virDomainMigrateBegin3;
|
2013-05-20 14:59:08 +00:00
|
|
|
virDomainMigrateBegin3Params;
|
2013-02-16 03:34:42 +00:00
|
|
|
virDomainMigrateConfirm3;
|
2013-05-20 14:59:08 +00:00
|
|
|
virDomainMigrateConfirm3Params;
|
2013-02-16 03:34:42 +00:00
|
|
|
virDomainMigrateFinish;
|
|
|
|
virDomainMigrateFinish2;
|
|
|
|
virDomainMigrateFinish3;
|
2013-05-20 14:59:08 +00:00
|
|
|
virDomainMigrateFinish3Params;
|
2013-02-16 03:34:42 +00:00
|
|
|
virDomainMigratePerform;
|
|
|
|
virDomainMigratePerform3;
|
2013-05-20 14:59:08 +00:00
|
|
|
virDomainMigratePerform3Params;
|
2013-02-16 03:34:42 +00:00
|
|
|
virDomainMigratePrepare;
|
|
|
|
virDomainMigratePrepare2;
|
|
|
|
virDomainMigratePrepare3;
|
2013-05-20 14:59:08 +00:00
|
|
|
virDomainMigratePrepare3Params;
|
2013-02-16 03:34:42 +00:00
|
|
|
virDomainMigratePrepareTunnel;
|
|
|
|
virDomainMigratePrepareTunnel3;
|
2013-05-20 14:59:08 +00:00
|
|
|
virDomainMigratePrepareTunnel3Params;
|
2015-01-20 16:16:26 +00:00
|
|
|
virRegisterConnectDriver;
|
2015-01-19 16:56:04 +00:00
|
|
|
virRegisterStateDriver;
|
2015-01-20 16:16:26 +00:00
|
|
|
virSetSharedInterfaceDriver;
|
|
|
|
virSetSharedNetworkDriver;
|
|
|
|
virSetSharedNodeDeviceDriver;
|
|
|
|
virSetSharedNWFilterDriver;
|
|
|
|
virSetSharedSecretDriver;
|
|
|
|
virSetSharedStorageDriver;
|
2015-01-19 16:56:04 +00:00
|
|
|
virStateCleanup;
|
|
|
|
virStateInitialize;
|
|
|
|
virStateReload;
|
|
|
|
virStateStop;
|
2010-10-20 17:10:45 +00:00
|
|
|
|
2009-01-15 19:56:05 +00:00
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# locking/domain_lock.h
|
|
|
|
virDomainLockDiskAttach;
|
|
|
|
virDomainLockDiskDetach;
|
2014-06-23 13:16:46 +00:00
|
|
|
virDomainLockImageAttach;
|
|
|
|
virDomainLockImageDetach;
|
2013-02-16 03:34:42 +00:00
|
|
|
virDomainLockLeaseAttach;
|
|
|
|
virDomainLockLeaseDetach;
|
|
|
|
virDomainLockProcessInquire;
|
|
|
|
virDomainLockProcessPause;
|
|
|
|
virDomainLockProcessResume;
|
|
|
|
virDomainLockProcessStart;
|
|
|
|
|
|
|
|
|
|
|
|
# locking/lock_manager.h
|
|
|
|
virLockManagerAcquire;
|
|
|
|
virLockManagerAddResource;
|
|
|
|
virLockManagerFree;
|
|
|
|
virLockManagerInquire;
|
|
|
|
virLockManagerNew;
|
|
|
|
virLockManagerPluginGetName;
|
|
|
|
virLockManagerPluginNew;
|
|
|
|
virLockManagerPluginRef;
|
|
|
|
virLockManagerPluginUnref;
|
|
|
|
virLockManagerPluginUsesState;
|
|
|
|
virLockManagerRelease;
|
|
|
|
|
|
|
|
|
|
|
|
# nodeinfo.h
|
2014-09-18 07:47:07 +00:00
|
|
|
nodeAllocPages;
|
2013-02-16 03:34:42 +00:00
|
|
|
nodeCapsInitNUMA;
|
|
|
|
nodeGetCellsFreeMemory;
|
|
|
|
nodeGetCPUCount;
|
|
|
|
nodeGetCPUMap;
|
|
|
|
nodeGetCPUStats;
|
2014-06-10 14:16:44 +00:00
|
|
|
nodeGetFreePages;
|
2013-02-16 03:34:42 +00:00
|
|
|
nodeGetInfo;
|
2014-06-16 12:02:34 +00:00
|
|
|
nodeGetMemory;
|
2013-02-16 03:34:42 +00:00
|
|
|
nodeGetMemoryParameters;
|
|
|
|
nodeGetMemoryStats;
|
2015-07-20 16:37:26 +00:00
|
|
|
nodeGetOnlineCPUBitmap;
|
2015-07-17 16:12:49 +00:00
|
|
|
nodeGetPresentCPUBitmap;
|
2013-02-16 03:34:42 +00:00
|
|
|
nodeSetMemoryParameters;
|
|
|
|
|
|
|
|
|
|
|
|
# security/security_driver.h
|
|
|
|
virSecurityDriverLookup;
|
|
|
|
|
|
|
|
|
|
|
|
# security/security_manager.h
|
2015-02-12 17:32:40 +00:00
|
|
|
virSecurityManagerCheckAllLabel;
|
2013-02-16 03:34:42 +00:00
|
|
|
virSecurityManagerClearSocketLabel;
|
|
|
|
virSecurityManagerGenLabel;
|
2013-10-18 12:13:20 +00:00
|
|
|
virSecurityManagerGetBaseLabel;
|
2013-02-16 03:34:42 +00:00
|
|
|
virSecurityManagerGetDOI;
|
|
|
|
virSecurityManagerGetModel;
|
|
|
|
virSecurityManagerGetMountOptions;
|
|
|
|
virSecurityManagerGetNested;
|
|
|
|
virSecurityManagerGetProcessLabel;
|
|
|
|
virSecurityManagerNew;
|
|
|
|
virSecurityManagerNewDAC;
|
|
|
|
virSecurityManagerNewStack;
|
|
|
|
virSecurityManagerPostFork;
|
|
|
|
virSecurityManagerPreFork;
|
|
|
|
virSecurityManagerReleaseLabel;
|
|
|
|
virSecurityManagerReserveLabel;
|
|
|
|
virSecurityManagerRestoreAllLabel;
|
2014-06-18 12:46:27 +00:00
|
|
|
virSecurityManagerRestoreDiskLabel;
|
2013-02-16 03:34:42 +00:00
|
|
|
virSecurityManagerRestoreHostdevLabel;
|
2014-06-23 14:35:34 +00:00
|
|
|
virSecurityManagerRestoreImageLabel;
|
2013-02-16 03:34:42 +00:00
|
|
|
virSecurityManagerRestoreSavedStateLabel;
|
|
|
|
virSecurityManagerSetAllLabel;
|
|
|
|
virSecurityManagerSetChildProcessLabel;
|
|
|
|
virSecurityManagerSetDaemonSocketLabel;
|
2014-06-18 12:46:27 +00:00
|
|
|
virSecurityManagerSetDiskLabel;
|
2013-02-16 03:34:42 +00:00
|
|
|
virSecurityManagerSetHostdevLabel;
|
|
|
|
virSecurityManagerSetHugepages;
|
|
|
|
virSecurityManagerSetImageFDLabel;
|
2014-06-23 14:35:34 +00:00
|
|
|
virSecurityManagerSetImageLabel;
|
2013-02-16 03:34:42 +00:00
|
|
|
virSecurityManagerSetProcessLabel;
|
|
|
|
virSecurityManagerSetSavedStateLabel;
|
|
|
|
virSecurityManagerSetSocketLabel;
|
|
|
|
virSecurityManagerSetTapFDLabel;
|
|
|
|
virSecurityManagerStackAddNested;
|
|
|
|
virSecurityManagerVerify;
|
|
|
|
|
|
|
|
|
|
|
|
# util/viralloc.h
|
|
|
|
virAlloc;
|
|
|
|
virAllocN;
|
2013-03-22 09:18:48 +00:00
|
|
|
virAllocTestCount;
|
|
|
|
virAllocTestHook;
|
|
|
|
virAllocTestInit;
|
|
|
|
virAllocTestOOM;
|
2013-02-16 03:34:42 +00:00
|
|
|
virAllocVar;
|
|
|
|
virDeleteElementsN;
|
|
|
|
virExpandN;
|
|
|
|
virFree;
|
|
|
|
virInsertElementsN;
|
|
|
|
virReallocN;
|
|
|
|
virResizeN;
|
|
|
|
virShrinkN;
|
|
|
|
|
|
|
|
|
|
|
|
# util/virarch.h
|
|
|
|
virArchFromHost;
|
|
|
|
virArchFromString;
|
|
|
|
virArchGetEndian;
|
|
|
|
virArchGetWordSize;
|
|
|
|
virArchToString;
|
|
|
|
|
|
|
|
|
|
|
|
# util/viraudit.h
|
|
|
|
virAuditClose;
|
|
|
|
virAuditEncode;
|
|
|
|
virAuditLog;
|
|
|
|
virAuditOpen;
|
|
|
|
virAuditSend;
|
|
|
|
|
|
|
|
|
|
|
|
# util/virauth.h
|
|
|
|
virAuthGetConfigFilePath;
|
2013-07-24 11:49:24 +00:00
|
|
|
virAuthGetConfigFilePathURI;
|
2013-02-16 03:34:42 +00:00
|
|
|
virAuthGetPassword;
|
2013-07-24 11:49:24 +00:00
|
|
|
virAuthGetPasswordPath;
|
2013-02-16 03:34:42 +00:00
|
|
|
virAuthGetUsername;
|
2013-07-24 11:49:24 +00:00
|
|
|
virAuthGetUsernamePath;
|
2013-02-16 03:34:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
# util/virauthconfig.h
|
|
|
|
virAuthConfigFree;
|
|
|
|
virAuthConfigLookup;
|
|
|
|
virAuthConfigNew;
|
|
|
|
virAuthConfigNewData;
|
|
|
|
|
|
|
|
|
|
|
|
# util/virbitmap.h
|
|
|
|
virBitmapClearAll;
|
|
|
|
virBitmapClearBit;
|
|
|
|
virBitmapCopy;
|
|
|
|
virBitmapCountBits;
|
2014-06-05 09:23:28 +00:00
|
|
|
virBitmapDataToString;
|
2013-02-16 03:34:42 +00:00
|
|
|
virBitmapEqual;
|
|
|
|
virBitmapFormat;
|
|
|
|
virBitmapFree;
|
|
|
|
virBitmapGetBit;
|
2013-04-05 18:06:16 +00:00
|
|
|
virBitmapIsAllClear;
|
2013-02-16 03:34:42 +00:00
|
|
|
virBitmapIsAllSet;
|
2015-03-11 15:41:57 +00:00
|
|
|
virBitmapIsBitSet;
|
2014-11-04 02:44:39 +00:00
|
|
|
virBitmapLastSetBit;
|
2013-02-16 03:34:42 +00:00
|
|
|
virBitmapNew;
|
|
|
|
virBitmapNewCopy;
|
|
|
|
virBitmapNewData;
|
2015-01-30 10:19:59 +00:00
|
|
|
virBitmapNewQuiet;
|
2013-02-16 03:34:42 +00:00
|
|
|
virBitmapNextClearBit;
|
|
|
|
virBitmapNextSetBit;
|
2014-07-23 15:37:19 +00:00
|
|
|
virBitmapOverlaps;
|
2013-02-16 03:34:42 +00:00
|
|
|
virBitmapParse;
|
|
|
|
virBitmapSetAll;
|
|
|
|
virBitmapSetBit;
|
|
|
|
virBitmapSize;
|
|
|
|
virBitmapString;
|
|
|
|
virBitmapToData;
|
2015-05-21 16:25:36 +00:00
|
|
|
virBitmapToDataBuf;
|
2013-02-16 03:34:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
# util/virbuffer.h
|
|
|
|
virBufferAdd;
|
2015-02-19 09:56:58 +00:00
|
|
|
virBufferAddBuffer;
|
2013-02-16 03:34:42 +00:00
|
|
|
virBufferAddChar;
|
2015-03-24 09:53:29 +00:00
|
|
|
virBufferAddStr;
|
2013-02-16 03:34:42 +00:00
|
|
|
virBufferAdjustIndent;
|
|
|
|
virBufferAsprintf;
|
2014-06-27 07:23:13 +00:00
|
|
|
virBufferCheckErrorInternal;
|
2013-02-16 03:34:42 +00:00
|
|
|
virBufferContentAndReset;
|
|
|
|
virBufferCurrentContent;
|
|
|
|
virBufferError;
|
|
|
|
virBufferEscape;
|
|
|
|
virBufferEscapeSexpr;
|
|
|
|
virBufferEscapeShell;
|
|
|
|
virBufferEscapeString;
|
|
|
|
virBufferFreeAndReset;
|
|
|
|
virBufferGetIndent;
|
|
|
|
virBufferStrcat;
|
|
|
|
virBufferTrim;
|
|
|
|
virBufferURIEncodeString;
|
|
|
|
virBufferUse;
|
|
|
|
virBufferVasprintf;
|
|
|
|
|
|
|
|
|
|
|
|
# util/vircgroup.h
|
|
|
|
virCgroupAddTask;
|
|
|
|
virCgroupAddTaskController;
|
2014-07-18 08:02:29 +00:00
|
|
|
virCgroupAllowAllDevices;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupAllowDevice;
|
|
|
|
virCgroupAllowDeviceMajor;
|
|
|
|
virCgroupAllowDevicePath;
|
2013-07-04 15:49:24 +00:00
|
|
|
virCgroupAvailable;
|
2015-03-31 09:39:13 +00:00
|
|
|
virCgroupControllerAvailable;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupControllerTypeFromString;
|
|
|
|
virCgroupControllerTypeToString;
|
|
|
|
virCgroupDenyAllDevices;
|
|
|
|
virCgroupDenyDevice;
|
|
|
|
virCgroupDenyDeviceMajor;
|
|
|
|
virCgroupDenyDevicePath;
|
2015-03-16 21:36:52 +00:00
|
|
|
virCgroupDetectMountsFromFile;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupFree;
|
2014-02-14 17:48:59 +00:00
|
|
|
virCgroupGetBlkioIoDeviceServiced;
|
|
|
|
virCgroupGetBlkioIoServiced;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupGetBlkioWeight;
|
|
|
|
virCgroupGetCpuacctPercpuUsage;
|
|
|
|
virCgroupGetCpuacctStat;
|
|
|
|
virCgroupGetCpuacctUsage;
|
|
|
|
virCgroupGetCpuCfsPeriod;
|
|
|
|
virCgroupGetCpuCfsQuota;
|
|
|
|
virCgroupGetCpusetCpus;
|
2015-03-11 10:15:29 +00:00
|
|
|
virCgroupGetCpusetMemoryMigrate;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupGetCpusetMems;
|
|
|
|
virCgroupGetCpuShares;
|
2014-06-20 11:33:16 +00:00
|
|
|
virCgroupGetDevicePermsString;
|
2014-02-14 17:49:01 +00:00
|
|
|
virCgroupGetDomainTotalCpuStats;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupGetFreezerState;
|
|
|
|
virCgroupGetMemoryHardLimit;
|
|
|
|
virCgroupGetMemorySoftLimit;
|
|
|
|
virCgroupGetMemoryUsage;
|
|
|
|
virCgroupGetMemSwapHardLimit;
|
|
|
|
virCgroupGetMemSwapUsage;
|
2014-02-14 17:49:02 +00:00
|
|
|
virCgroupGetPercpuStats;
|
2013-03-21 13:38:31 +00:00
|
|
|
virCgroupHasController;
|
2014-12-13 08:56:00 +00:00
|
|
|
virCgroupHasEmptyTasks;
|
2013-04-05 11:48:47 +00:00
|
|
|
virCgroupIsolateMount;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupKill;
|
|
|
|
virCgroupKillPainfully;
|
|
|
|
virCgroupKillRecursive;
|
|
|
|
virCgroupMoveTask;
|
2013-07-19 10:13:05 +00:00
|
|
|
virCgroupNewDetect;
|
2013-07-24 16:36:42 +00:00
|
|
|
virCgroupNewDetectMachine;
|
2013-03-28 18:08:39 +00:00
|
|
|
virCgroupNewDomainPartition;
|
2013-07-04 15:49:24 +00:00
|
|
|
virCgroupNewIgnoreError;
|
2013-07-18 15:55:37 +00:00
|
|
|
virCgroupNewMachine;
|
2013-03-28 18:08:39 +00:00
|
|
|
virCgroupNewPartition;
|
2013-03-28 16:33:22 +00:00
|
|
|
virCgroupNewSelf;
|
2015-04-07 12:28:05 +00:00
|
|
|
virCgroupNewThread;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupPathOfController;
|
|
|
|
virCgroupRemove;
|
2013-03-20 08:14:23 +00:00
|
|
|
virCgroupRemoveRecursively;
|
2013-12-11 08:29:50 +00:00
|
|
|
virCgroupSetBlkioDeviceReadBps;
|
|
|
|
virCgroupSetBlkioDeviceReadIops;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupSetBlkioDeviceWeight;
|
2013-12-11 08:29:50 +00:00
|
|
|
virCgroupSetBlkioDeviceWriteBps;
|
|
|
|
virCgroupSetBlkioDeviceWriteIops;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupSetBlkioWeight;
|
|
|
|
virCgroupSetCpuCfsPeriod;
|
|
|
|
virCgroupSetCpuCfsQuota;
|
|
|
|
virCgroupSetCpusetCpus;
|
2015-03-11 10:15:29 +00:00
|
|
|
virCgroupSetCpusetMemoryMigrate;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCgroupSetCpusetMems;
|
|
|
|
virCgroupSetCpuShares;
|
|
|
|
virCgroupSetFreezerState;
|
|
|
|
virCgroupSetMemory;
|
|
|
|
virCgroupSetMemoryHardLimit;
|
|
|
|
virCgroupSetMemorySoftLimit;
|
|
|
|
virCgroupSetMemSwapHardLimit;
|
2014-02-24 12:23:33 +00:00
|
|
|
virCgroupSetOwner;
|
2013-09-13 14:03:14 +00:00
|
|
|
virCgroupSupportsCpuBW;
|
2014-09-25 11:32:58 +00:00
|
|
|
virCgroupTerminateMachine;
|
2009-01-05 14:05:29 +00:00
|
|
|
|
|
|
|
|
2013-07-15 14:53:13 +00:00
|
|
|
# util/virclosecallbacks.h
|
|
|
|
virCloseCallbacksGet;
|
2013-07-15 17:08:11 +00:00
|
|
|
virCloseCallbacksGetConn;
|
2013-07-15 14:53:13 +00:00
|
|
|
virCloseCallbacksNew;
|
|
|
|
virCloseCallbacksRun;
|
|
|
|
virCloseCallbacksSet;
|
|
|
|
virCloseCallbacksUnset;
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/vircommand.h
|
|
|
|
virCommandAbort;
|
|
|
|
virCommandAddArg;
|
|
|
|
virCommandAddArgBuffer;
|
|
|
|
virCommandAddArgFormat;
|
|
|
|
virCommandAddArgList;
|
|
|
|
virCommandAddArgPair;
|
|
|
|
virCommandAddArgSet;
|
|
|
|
virCommandAddEnvBuffer;
|
|
|
|
virCommandAddEnvFormat;
|
|
|
|
virCommandAddEnvPair;
|
2013-10-09 10:03:02 +00:00
|
|
|
virCommandAddEnvPassAllowSUID;
|
|
|
|
virCommandAddEnvPassBlockSUID;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCommandAddEnvPassCommon;
|
|
|
|
virCommandAddEnvString;
|
|
|
|
virCommandAllowCap;
|
|
|
|
virCommandClearCaps;
|
|
|
|
virCommandDaemonize;
|
|
|
|
virCommandDoAsyncIO;
|
|
|
|
virCommandExec;
|
|
|
|
virCommandFree;
|
|
|
|
virCommandHandshakeNotify;
|
|
|
|
virCommandHandshakeWait;
|
|
|
|
virCommandNew;
|
|
|
|
virCommandNewArgList;
|
|
|
|
virCommandNewArgs;
|
|
|
|
virCommandNonblockingFDs;
|
2013-07-11 10:31:56 +00:00
|
|
|
virCommandPassFD;
|
2015-03-05 23:57:06 +00:00
|
|
|
virCommandPassFDGetFDIndex;
|
2014-07-15 15:07:02 +00:00
|
|
|
virCommandPassListenFDs;
|
2014-02-20 00:32:19 +00:00
|
|
|
virCommandRawStatus;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCommandRequireHandshake;
|
|
|
|
virCommandRun;
|
|
|
|
virCommandRunAsync;
|
2014-03-18 14:35:01 +00:00
|
|
|
virCommandRunNul;
|
|
|
|
virCommandRunRegex;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCommandSetAppArmorProfile;
|
2014-01-28 18:18:43 +00:00
|
|
|
virCommandSetDryRun;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCommandSetErrorBuffer;
|
|
|
|
virCommandSetErrorFD;
|
|
|
|
virCommandSetGID;
|
|
|
|
virCommandSetInputBuffer;
|
|
|
|
virCommandSetInputFD;
|
2013-04-25 16:10:10 +00:00
|
|
|
virCommandSetMaxFiles;
|
|
|
|
virCommandSetMaxMemLock;
|
|
|
|
virCommandSetMaxProcesses;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCommandSetOutputBuffer;
|
|
|
|
virCommandSetOutputFD;
|
|
|
|
virCommandSetPidFile;
|
|
|
|
virCommandSetPreExecHook;
|
|
|
|
virCommandSetSELinuxLabel;
|
|
|
|
virCommandSetUID;
|
qemu: ensure sane umask for qemu process
Add umask to _virCommand, allow user to set umask to command.
Set umask(002) to qemu process to overwrite the default umask
of 022 set by many distros, so that unix sockets created for
virtio-serial has expected permissions.
Fix problem reported here:
https://sourceware.org/bugzilla/show_bug.cgi?id=13078#c11
https://bugzilla.novell.com/show_bug.cgi?id=888166
To use virtio-serial device, unix socket created for chardev with
default umask(022) has insufficient permissions.
e.g.:
-device virtio-serial \
-chardev socket,path=/tmp/foo,server,nowait,id=foo \
-device virtserialport,chardev=foo,name=org.fedoraproject.port.0
srwxr-xr-x 1 qemu qemu 0 21. Jul 14:19 /tmp/somefile.sock
Other users in the same group (like real user, test engines, etc)
cannot write to this socket.
Signed-off-by: Chunyan Liu <cyliu@suse.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-09-03 06:18:07 +00:00
|
|
|
virCommandSetUmask;
|
2013-02-16 03:34:42 +00:00
|
|
|
virCommandSetWorkingDirectory;
|
|
|
|
virCommandToString;
|
|
|
|
virCommandWait;
|
|
|
|
virCommandWriteArgLog;
|
|
|
|
virFork;
|
|
|
|
virRun;
|
2010-10-20 17:10:45 +00:00
|
|
|
|
2009-01-05 14:05:29 +00:00
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virconf.h
|
|
|
|
virConfFree;
|
|
|
|
virConfFreeValue;
|
|
|
|
virConfGetValue;
|
|
|
|
virConfNew;
|
|
|
|
virConfReadFile;
|
|
|
|
virConfReadMem;
|
|
|
|
virConfSetValue;
|
2014-12-09 13:53:28 +00:00
|
|
|
virConfTypeFromString;
|
|
|
|
virConfTypeToString;
|
2014-02-05 14:09:59 +00:00
|
|
|
virConfWalk;
|
2013-02-16 03:34:42 +00:00
|
|
|
virConfWriteFile;
|
|
|
|
virConfWriteMem;
|
2012-03-20 15:40:05 +00:00
|
|
|
|
|
|
|
|
2014-03-05 12:34:10 +00:00
|
|
|
# util/vircrypto.h
|
|
|
|
virCryptoHashString;
|
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virdbus.h
|
2013-07-12 10:13:04 +00:00
|
|
|
virDBusCallMethod;
|
2013-10-11 14:57:05 +00:00
|
|
|
virDBusCloseSystemBus;
|
2014-03-13 15:47:46 +00:00
|
|
|
virDBusCreateMethod;
|
|
|
|
virDBusCreateMethodV;
|
2014-03-19 10:58:42 +00:00
|
|
|
virDBusCreateReply;
|
|
|
|
virDBusCreateReplyV;
|
2015-01-22 16:50:33 +00:00
|
|
|
virDBusErrorIsUnknownMethod;
|
2013-02-16 03:34:42 +00:00
|
|
|
virDBusGetSessionBus;
|
|
|
|
virDBusGetSystemBus;
|
2013-08-19 09:24:04 +00:00
|
|
|
virDBusHasSystemBus;
|
2013-07-12 10:13:04 +00:00
|
|
|
virDBusMessageDecode;
|
|
|
|
virDBusMessageEncode;
|
|
|
|
virDBusMessageRead;
|
2013-10-11 14:28:39 +00:00
|
|
|
virDBusSetSharedBus;
|
2012-03-19 16:23:47 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virdnsmasq.h
|
|
|
|
dnsmasqAddDhcpHost;
|
|
|
|
dnsmasqAddHost;
|
|
|
|
dnsmasqCapsGet;
|
|
|
|
dnsmasqCapsGetBinaryPath;
|
|
|
|
dnsmasqCapsGetVersion;
|
|
|
|
dnsmasqCapsNewFromBinary;
|
|
|
|
dnsmasqCapsNewFromBuffer;
|
|
|
|
dnsmasqCapsNewFromFile;
|
|
|
|
dnsmasqCapsRefresh;
|
|
|
|
dnsmasqContextFree;
|
|
|
|
dnsmasqContextNew;
|
|
|
|
dnsmasqDelete;
|
|
|
|
dnsmasqReload;
|
|
|
|
dnsmasqSave;
|
2010-10-12 11:23:18 +00:00
|
|
|
|
2009-01-05 14:05:29 +00:00
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virebtables.h
|
|
|
|
ebtablesAddForwardAllowIn;
|
|
|
|
ebtablesAddForwardPolicyReject;
|
|
|
|
ebtablesContextFree;
|
|
|
|
ebtablesContextNew;
|
|
|
|
ebtablesRemoveForwardAllowIn;
|
2012-12-18 19:31:47 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virerror.h
|
|
|
|
virDispatchError;
|
2015-07-10 06:44:41 +00:00
|
|
|
virErrorCopyNew;
|
2013-02-16 03:34:42 +00:00
|
|
|
virErrorInitialize;
|
2013-07-19 10:14:51 +00:00
|
|
|
virErrorSetErrnoFromLastError;
|
|
|
|
virLastErrorIsSystemErrno;
|
2013-02-16 03:34:42 +00:00
|
|
|
virRaiseErrorFull;
|
2015-01-19 12:30:24 +00:00
|
|
|
virRaiseErrorObject;
|
2013-02-16 03:34:42 +00:00
|
|
|
virReportErrorHelper;
|
|
|
|
virReportOOMErrorFull;
|
|
|
|
virReportSystemErrorFull;
|
|
|
|
virSetError;
|
|
|
|
virSetErrorLogPriorityFunc;
|
|
|
|
virStrerror;
|
2011-11-25 15:25:14 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/vireventpoll.h
|
|
|
|
virEventPollAddHandle;
|
|
|
|
virEventPollAddTimeout;
|
|
|
|
virEventPollFromNativeEvents;
|
|
|
|
virEventPollInit;
|
|
|
|
virEventPollRemoveHandle;
|
|
|
|
virEventPollRemoveTimeout;
|
|
|
|
virEventPollRunOnce;
|
|
|
|
virEventPollToNativeEvents;
|
|
|
|
virEventPollUpdateHandle;
|
|
|
|
virEventPollUpdateTimeout;
|
2012-04-19 14:34:35 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virfile.h
|
2013-05-09 18:59:04 +00:00
|
|
|
saferead;
|
|
|
|
safewrite;
|
|
|
|
safezero;
|
|
|
|
virBuildPathInternal;
|
|
|
|
virDirCreate;
|
2014-04-20 11:53:45 +00:00
|
|
|
virDirRead;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileAbsPath;
|
|
|
|
virFileAccessibleAs;
|
2014-04-24 14:05:42 +00:00
|
|
|
virFileActivateDirOverride;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileBuildPath;
|
2011-07-19 18:32:58 +00:00
|
|
|
virFileClose;
|
2013-03-28 14:46:45 +00:00
|
|
|
virFileDeleteTree;
|
2011-07-11 21:26:33 +00:00
|
|
|
virFileDirectFdFlag;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileExists;
|
2011-07-19 18:32:58 +00:00
|
|
|
virFileFclose;
|
|
|
|
virFileFdopen;
|
2014-07-23 15:37:17 +00:00
|
|
|
virFileFindHugeTLBFS;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileFindMountPoint;
|
2014-04-24 14:05:42 +00:00
|
|
|
virFileFindResource;
|
|
|
|
virFileFindResourceFull;
|
2014-07-23 15:37:17 +00:00
|
|
|
virFileGetHugepageSize;
|
2013-11-27 15:19:49 +00:00
|
|
|
virFileGetMountReverseSubtree;
|
|
|
|
virFileGetMountSubtree;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileHasSuffix;
|
|
|
|
virFileIsAbsPath;
|
|
|
|
virFileIsDir;
|
|
|
|
virFileIsExecutable;
|
|
|
|
virFileIsLink;
|
2013-10-07 11:51:58 +00:00
|
|
|
virFileIsMountPoint;
|
2014-03-29 20:15:33 +00:00
|
|
|
virFileIsSharedFS;
|
|
|
|
virFileIsSharedFSType;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileLinkPointsTo;
|
|
|
|
virFileLock;
|
2012-12-11 22:21:17 +00:00
|
|
|
virFileLoopDeviceAssociate;
|
2014-01-30 17:06:39 +00:00
|
|
|
virFileMakeParentPath;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileMakePath;
|
|
|
|
virFileMakePathWithMode;
|
|
|
|
virFileMatchesNameSuffix;
|
2013-04-22 14:06:16 +00:00
|
|
|
virFileNBDDeviceAssociate;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileOpenAs;
|
|
|
|
virFileOpenTty;
|
2013-05-17 14:11:24 +00:00
|
|
|
virFilePrintf;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileReadAll;
|
2014-06-30 12:59:42 +00:00
|
|
|
virFileReadAllQuiet;
|
2013-11-05 17:30:56 +00:00
|
|
|
virFileReadHeaderFD;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileReadLimFD;
|
2014-04-10 23:36:06 +00:00
|
|
|
virFileRelLinkPointsTo;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileResolveAllLinks;
|
|
|
|
virFileResolveLink;
|
2011-10-13 10:17:12 +00:00
|
|
|
virFileRewrite;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileSanitizePath;
|
|
|
|
virFileSkipRoot;
|
|
|
|
virFileStripSuffix;
|
2012-01-11 09:58:59 +00:00
|
|
|
virFileTouch;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileUnlock;
|
2012-04-27 13:50:22 +00:00
|
|
|
virFileUpdatePerm;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileWaitForDevices;
|
2012-12-11 22:21:17 +00:00
|
|
|
virFileWrapperFdClose;
|
|
|
|
virFileWrapperFdFree;
|
|
|
|
virFileWrapperFdNew;
|
2013-05-09 18:59:04 +00:00
|
|
|
virFileWriteStr;
|
|
|
|
virFindFileInPath;
|
2013-03-04 16:30:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# util/virfirewall.h
|
|
|
|
virFirewallAddRule;
|
|
|
|
virFirewallAddRuleFull;
|
|
|
|
virFirewallApply;
|
|
|
|
virFirewallFree;
|
|
|
|
virFirewallNew;
|
|
|
|
virFirewallRemoveRule;
|
|
|
|
virFirewallRuleAddArg;
|
|
|
|
virFirewallRuleAddArgFormat;
|
|
|
|
virFirewallRuleAddArgList;
|
|
|
|
virFirewallRuleAddArgSet;
|
|
|
|
virFirewallRuleGetArgCount;
|
|
|
|
virFirewallSetBackend;
|
2014-12-22 21:57:21 +00:00
|
|
|
virFirewallSetLockOverride;
|
2013-03-04 16:30:40 +00:00
|
|
|
virFirewallStartRollback;
|
|
|
|
virFirewallStartTransaction;
|
2011-07-19 18:32:58 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virhash.h
|
|
|
|
virHashAddEntry;
|
2015-07-02 12:21:27 +00:00
|
|
|
virHashAtomicNew;
|
|
|
|
virHashAtomicSteal;
|
|
|
|
virHashAtomicUpdate;
|
2013-02-16 03:34:42 +00:00
|
|
|
virHashCreate;
|
|
|
|
virHashEqual;
|
|
|
|
virHashForEach;
|
|
|
|
virHashFree;
|
|
|
|
virHashGetItems;
|
|
|
|
virHashLookup;
|
|
|
|
virHashRemoveAll;
|
|
|
|
virHashRemoveEntry;
|
|
|
|
virHashRemoveSet;
|
|
|
|
virHashSearch;
|
|
|
|
virHashSize;
|
|
|
|
virHashSteal;
|
|
|
|
virHashTableSize;
|
|
|
|
virHashUpdateEntry;
|
2014-04-04 23:36:25 +00:00
|
|
|
virHashValueFree;
|
2013-02-16 03:34:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
# util/virhook.h
|
|
|
|
virHookCall;
|
|
|
|
virHookInitialize;
|
|
|
|
virHookPresent;
|
|
|
|
|
|
|
|
|
2014-03-06 07:57:03 +00:00
|
|
|
# util/virhostdev.h
|
2014-03-01 06:28:59 +00:00
|
|
|
virHostdevManagerGetDefault;
|
2014-03-06 07:35:03 +00:00
|
|
|
virHostdevPCINodeDeviceDetach;
|
|
|
|
virHostdevPCINodeDeviceReAttach;
|
|
|
|
virHostdevPCINodeDeviceReset;
|
2014-03-06 07:57:03 +00:00
|
|
|
virHostdevPrepareDomainDevices;
|
2014-03-05 12:14:38 +00:00
|
|
|
virHostdevPreparePCIDevices;
|
2014-03-06 06:19:11 +00:00
|
|
|
virHostdevPrepareSCSIDevices;
|
2014-03-06 05:53:56 +00:00
|
|
|
virHostdevPrepareUSBDevices;
|
2014-03-06 07:57:03 +00:00
|
|
|
virHostdevReAttachDomainDevices;
|
2014-03-05 12:14:38 +00:00
|
|
|
virHostdevReAttachPCIDevices;
|
2014-03-12 16:35:30 +00:00
|
|
|
virHostdevReAttachSCSIDevices;
|
|
|
|
virHostdevReAttachUSBDevices;
|
|
|
|
virHostdevUpdateActivePCIDevices;
|
|
|
|
virHostdevUpdateActiveSCSIDevices;
|
|
|
|
virHostdevUpdateActiveUSBDevices;
|
2014-03-06 07:57:03 +00:00
|
|
|
virHostdevUpdateDomainActiveDevices;
|
|
|
|
|
2014-03-01 06:28:59 +00:00
|
|
|
|
2012-01-20 17:49:32 +00:00
|
|
|
# util/viridentity.h
|
|
|
|
virIdentityGetAttr;
|
2013-04-17 11:01:24 +00:00
|
|
|
virIdentityGetCurrent;
|
2013-08-22 15:43:35 +00:00
|
|
|
virIdentityGetSASLUserName;
|
|
|
|
virIdentityGetSELinuxContext;
|
2013-04-17 11:01:24 +00:00
|
|
|
virIdentityGetSystem;
|
2013-08-22 15:43:35 +00:00
|
|
|
virIdentityGetUNIXGroupID;
|
|
|
|
virIdentityGetUNIXGroupName;
|
|
|
|
virIdentityGetUNIXProcessID;
|
|
|
|
virIdentityGetUNIXProcessTime;
|
|
|
|
virIdentityGetUNIXUserID;
|
|
|
|
virIdentityGetUNIXUserName;
|
|
|
|
virIdentityGetX509DName;
|
2012-01-20 17:49:32 +00:00
|
|
|
virIdentityIsEqual;
|
|
|
|
virIdentityNew;
|
|
|
|
virIdentitySetAttr;
|
2013-04-17 11:01:24 +00:00
|
|
|
virIdentitySetCurrent;
|
2013-08-22 15:43:35 +00:00
|
|
|
virIdentitySetSASLUserName;
|
|
|
|
virIdentitySetSELinuxContext;
|
|
|
|
virIdentitySetUNIXGroupID;
|
|
|
|
virIdentitySetUNIXGroupName;
|
|
|
|
virIdentitySetUNIXProcessID;
|
|
|
|
virIdentitySetUNIXProcessTime;
|
|
|
|
virIdentitySetUNIXUserID;
|
|
|
|
virIdentitySetUNIXUserName;
|
|
|
|
virIdentitySetX509DName;
|
2012-01-20 17:49:32 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virinitctl.h
|
2012-11-28 12:17:31 +00:00
|
|
|
virInitctlSetRunLevel;
|
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/viriptables.h
|
2013-09-25 10:45:25 +00:00
|
|
|
iptablesAddDontMasquerade;
|
2013-02-16 03:34:42 +00:00
|
|
|
iptablesAddForwardAllowCross;
|
|
|
|
iptablesAddForwardAllowIn;
|
|
|
|
iptablesAddForwardAllowOut;
|
|
|
|
iptablesAddForwardAllowRelatedIn;
|
|
|
|
iptablesAddForwardMasquerade;
|
|
|
|
iptablesAddForwardRejectIn;
|
|
|
|
iptablesAddForwardRejectOut;
|
|
|
|
iptablesAddOutputFixUdpChecksum;
|
|
|
|
iptablesAddTcpInput;
|
|
|
|
iptablesAddUdpInput;
|
2013-12-17 17:56:28 +00:00
|
|
|
iptablesAddUdpOutput;
|
2013-09-25 10:45:25 +00:00
|
|
|
iptablesRemoveDontMasquerade;
|
2013-02-16 03:34:42 +00:00
|
|
|
iptablesRemoveForwardAllowCross;
|
|
|
|
iptablesRemoveForwardAllowIn;
|
|
|
|
iptablesRemoveForwardAllowOut;
|
|
|
|
iptablesRemoveForwardAllowRelatedIn;
|
|
|
|
iptablesRemoveForwardMasquerade;
|
|
|
|
iptablesRemoveForwardRejectIn;
|
|
|
|
iptablesRemoveForwardRejectOut;
|
|
|
|
iptablesRemoveOutputFixUdpChecksum;
|
|
|
|
iptablesRemoveTcpInput;
|
|
|
|
iptablesRemoveUdpInput;
|
2013-12-17 17:56:28 +00:00
|
|
|
iptablesRemoveUdpOutput;
|
2013-02-16 03:34:42 +00:00
|
|
|
|
|
|
|
|
2014-03-19 15:03:11 +00:00
|
|
|
# util/viriscsi.h
|
|
|
|
virISCSIConnectionLogin;
|
|
|
|
virISCSIConnectionLogout;
|
|
|
|
virISCSIGetSession;
|
|
|
|
virISCSINodeUpdate;
|
|
|
|
virISCSIRescanLUNs;
|
|
|
|
virISCSIScanTargets;
|
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virjson.h
|
|
|
|
virJSONValueArrayAppend;
|
|
|
|
virJSONValueArrayGet;
|
|
|
|
virJSONValueArraySize;
|
2015-04-13 14:11:03 +00:00
|
|
|
virJSONValueArraySteal;
|
2014-08-21 10:23:41 +00:00
|
|
|
virJSONValueCopy;
|
2013-02-16 03:34:42 +00:00
|
|
|
virJSONValueFree;
|
|
|
|
virJSONValueFromString;
|
2015-01-13 14:06:16 +00:00
|
|
|
virJSONValueGetArrayAsBitmap;
|
2013-02-16 03:34:42 +00:00
|
|
|
virJSONValueGetBoolean;
|
|
|
|
virJSONValueGetNumberDouble;
|
|
|
|
virJSONValueGetNumberInt;
|
|
|
|
virJSONValueGetNumberLong;
|
|
|
|
virJSONValueGetNumberUint;
|
|
|
|
virJSONValueGetNumberUlong;
|
|
|
|
virJSONValueGetString;
|
2015-04-13 14:11:03 +00:00
|
|
|
virJSONValueIsArray;
|
2013-02-16 03:34:42 +00:00
|
|
|
virJSONValueIsNull;
|
|
|
|
virJSONValueNewArray;
|
2015-01-13 14:06:16 +00:00
|
|
|
virJSONValueNewArrayFromBitmap;
|
2013-02-16 03:34:42 +00:00
|
|
|
virJSONValueNewBoolean;
|
|
|
|
virJSONValueNewNull;
|
|
|
|
virJSONValueNewNumberDouble;
|
|
|
|
virJSONValueNewNumberInt;
|
|
|
|
virJSONValueNewNumberLong;
|
|
|
|
virJSONValueNewNumberUint;
|
|
|
|
virJSONValueNewNumberUlong;
|
|
|
|
virJSONValueNewObject;
|
|
|
|
virJSONValueNewString;
|
|
|
|
virJSONValueNewStringLen;
|
2015-01-12 15:35:17 +00:00
|
|
|
virJSONValueObjectAdd;
|
|
|
|
virJSONValueObjectAddVArgs;
|
2013-02-16 03:34:42 +00:00
|
|
|
virJSONValueObjectAppend;
|
|
|
|
virJSONValueObjectAppendBoolean;
|
|
|
|
virJSONValueObjectAppendNull;
|
|
|
|
virJSONValueObjectAppendNumberDouble;
|
|
|
|
virJSONValueObjectAppendNumberInt;
|
|
|
|
virJSONValueObjectAppendNumberLong;
|
|
|
|
virJSONValueObjectAppendNumberUint;
|
|
|
|
virJSONValueObjectAppendNumberUlong;
|
|
|
|
virJSONValueObjectAppendString;
|
2014-09-22 14:35:02 +00:00
|
|
|
virJSONValueObjectCreate;
|
|
|
|
virJSONValueObjectCreateVArgs;
|
2015-01-13 15:43:30 +00:00
|
|
|
virJSONValueObjectForeachKeyValue;
|
2013-02-16 03:34:42 +00:00
|
|
|
virJSONValueObjectGet;
|
2015-06-19 23:13:03 +00:00
|
|
|
virJSONValueObjectGetArray;
|
2013-02-16 03:34:42 +00:00
|
|
|
virJSONValueObjectGetBoolean;
|
2015-06-19 23:13:03 +00:00
|
|
|
virJSONValueObjectGetByType;
|
2013-02-16 03:34:42 +00:00
|
|
|
virJSONValueObjectGetKey;
|
|
|
|
virJSONValueObjectGetNumberDouble;
|
|
|
|
virJSONValueObjectGetNumberInt;
|
|
|
|
virJSONValueObjectGetNumberLong;
|
|
|
|
virJSONValueObjectGetNumberUint;
|
|
|
|
virJSONValueObjectGetNumberUlong;
|
2015-06-19 23:13:03 +00:00
|
|
|
virJSONValueObjectGetObject;
|
2013-02-16 03:34:42 +00:00
|
|
|
virJSONValueObjectGetString;
|
|
|
|
virJSONValueObjectGetValue;
|
|
|
|
virJSONValueObjectHasKey;
|
|
|
|
virJSONValueObjectIsNull;
|
|
|
|
virJSONValueObjectKeysNumber;
|
2013-04-26 14:59:02 +00:00
|
|
|
virJSONValueObjectRemoveKey;
|
2013-02-16 03:34:42 +00:00
|
|
|
virJSONValueToString;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virkeycode.h
|
2012-01-02 22:03:19 +00:00
|
|
|
virKeycodeSetTypeFromString;
|
|
|
|
virKeycodeSetTypeToString;
|
|
|
|
virKeycodeValueFromString;
|
|
|
|
virKeycodeValueTranslate;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virkeyfile.h
|
2012-03-16 16:29:49 +00:00
|
|
|
virKeyFileFree;
|
|
|
|
virKeyFileGetValueString;
|
2012-12-11 22:21:17 +00:00
|
|
|
virKeyFileHasGroup;
|
|
|
|
virKeyFileHasValue;
|
|
|
|
virKeyFileLoadData;
|
|
|
|
virKeyFileLoadFile;
|
|
|
|
virKeyFileNew;
|
2012-03-16 16:29:49 +00:00
|
|
|
|
|
|
|
|
2014-01-29 14:36:26 +00:00
|
|
|
# util/virkmod.h
|
|
|
|
virKModConfig;
|
|
|
|
virKModIsBlacklisted;
|
|
|
|
virKModLoad;
|
|
|
|
virKModUnload;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virlockspace.h
|
Introduce an internal API for handling file based lockspaces
The previously introduced virFile{Lock,Unlock} APIs provide a
way to acquire/release fcntl() locks on individual files. For
unknown reason though, the POSIX spec says that fcntl() locks
are released when *any* file handle referring to the same path
is closed. In the following sequence
threadA: fd1 = open("foo")
threadB: fd2 = open("foo")
threadA: virFileLock(fd1)
threadB: virFileLock(fd2)
threadB: close(fd2)
you'd expect threadA to come out holding a lock on 'foo', and
indeed it does hold a lock for a very short time. Unfortunately
when threadB does close(fd2) this releases the lock associated
with fd1. For the current libvirt use case for virFileLock -
pidfiles - this doesn't matter since the lock is acquired
at startup while single threaded an never released until
exit.
To provide a more generally useful API though, it is necessary
to introduce a slightly higher level abstraction, which is to
be referred to as a "lockspace". This is to be provided by
a virLockSpacePtr object in src/util/virlockspace.{c,h}. The
core idea is that the lockspace keeps track of what files are
already open+locked. This means that when a 2nd thread comes
along and tries to acquire a lock, it doesn't end up opening
and closing a new FD. The lockspace just checks the current
list of held locks and immediately returns VIR_ERR_RESOURCE_BUSY.
NB, the API as it stands is designed on the basis that the
files being locked are not being otherwise opened and used
by the application code. One approach to using this API is to
acquire locks based on a hash of the filepath.
eg to lock /var/lib/libvirt/images/foo.img the application
might do
virLockSpacePtr lockspace = virLockSpaceNew("/var/lib/libvirt/imagelocks");
lockname = md5sum("/var/lib/libvirt/images/foo.img");
virLockSpaceAcquireLock(lockspace, lockname);
NB, in this example, the caller should ensure that the path
is canonicalized before calculating the checksum.
It is also possible to do locks directly on resources by
using a NULL lockspace directory and then using the file
path as the lock name eg
virLockSpacePtr lockspace = virLockSpaceNew(NULL);
virLockSpaceAcquireLock(lockspace, "/var/lib/libvirt/images/foo.img");
This is only safe to do though if no other part of the process
will be opening the files. This will be the case when this
code is used inside the soon-to-be-reposted virlockd daemon
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-08-02 16:02:40 +00:00
|
|
|
virLockSpaceAcquireResource;
|
|
|
|
virLockSpaceCreateResource;
|
|
|
|
virLockSpaceDeleteResource;
|
|
|
|
virLockSpaceFree;
|
|
|
|
virLockSpaceGetDirectory;
|
|
|
|
virLockSpaceNew;
|
2012-08-09 10:54:37 +00:00
|
|
|
virLockSpaceNewPostExecRestart;
|
|
|
|
virLockSpacePreExecRestart;
|
Introduce an internal API for handling file based lockspaces
The previously introduced virFile{Lock,Unlock} APIs provide a
way to acquire/release fcntl() locks on individual files. For
unknown reason though, the POSIX spec says that fcntl() locks
are released when *any* file handle referring to the same path
is closed. In the following sequence
threadA: fd1 = open("foo")
threadB: fd2 = open("foo")
threadA: virFileLock(fd1)
threadB: virFileLock(fd2)
threadB: close(fd2)
you'd expect threadA to come out holding a lock on 'foo', and
indeed it does hold a lock for a very short time. Unfortunately
when threadB does close(fd2) this releases the lock associated
with fd1. For the current libvirt use case for virFileLock -
pidfiles - this doesn't matter since the lock is acquired
at startup while single threaded an never released until
exit.
To provide a more generally useful API though, it is necessary
to introduce a slightly higher level abstraction, which is to
be referred to as a "lockspace". This is to be provided by
a virLockSpacePtr object in src/util/virlockspace.{c,h}. The
core idea is that the lockspace keeps track of what files are
already open+locked. This means that when a 2nd thread comes
along and tries to acquire a lock, it doesn't end up opening
and closing a new FD. The lockspace just checks the current
list of held locks and immediately returns VIR_ERR_RESOURCE_BUSY.
NB, the API as it stands is designed on the basis that the
files being locked are not being otherwise opened and used
by the application code. One approach to using this API is to
acquire locks based on a hash of the filepath.
eg to lock /var/lib/libvirt/images/foo.img the application
might do
virLockSpacePtr lockspace = virLockSpaceNew("/var/lib/libvirt/imagelocks");
lockname = md5sum("/var/lib/libvirt/images/foo.img");
virLockSpaceAcquireLock(lockspace, lockname);
NB, in this example, the caller should ensure that the path
is canonicalized before calculating the checksum.
It is also possible to do locks directly on resources by
using a NULL lockspace directory and then using the file
path as the lock name eg
virLockSpacePtr lockspace = virLockSpaceNew(NULL);
virLockSpaceAcquireLock(lockspace, "/var/lib/libvirt/images/foo.img");
This is only safe to do though if no other part of the process
will be opening the files. This will be the case when this
code is used inside the soon-to-be-reposted virlockd daemon
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-08-02 16:02:40 +00:00
|
|
|
virLockSpaceReleaseResource;
|
|
|
|
virLockSpaceReleaseResourcesForOwner;
|
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virlog.h
|
|
|
|
virLogDefineFilter;
|
|
|
|
virLogDefineOutput;
|
|
|
|
virLogGetDefaultPriority;
|
|
|
|
virLogGetFilters;
|
|
|
|
virLogGetNbFilters;
|
|
|
|
virLogGetNbOutputs;
|
|
|
|
virLogGetOutputs;
|
|
|
|
virLogLock;
|
|
|
|
virLogMessage;
|
|
|
|
virLogParseDefaultPriority;
|
|
|
|
virLogParseFilters;
|
|
|
|
virLogParseOutputs;
|
2013-06-07 09:55:27 +00:00
|
|
|
virLogPriorityFromSyslog;
|
2013-03-04 20:46:32 +00:00
|
|
|
virLogProbablyLogMessage;
|
2013-02-16 03:34:42 +00:00
|
|
|
virLogReset;
|
|
|
|
virLogSetDefaultPriority;
|
|
|
|
virLogSetFromEnv;
|
|
|
|
virLogUnlock;
|
2013-06-07 09:55:27 +00:00
|
|
|
virLogVMessage;
|
2013-02-16 03:34:42 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virmacaddr.h
|
2012-07-17 12:07:59 +00:00
|
|
|
virMacAddrCmp;
|
|
|
|
virMacAddrCmpRaw;
|
2012-01-27 17:23:05 +00:00
|
|
|
virMacAddrCompare;
|
|
|
|
virMacAddrFormat;
|
|
|
|
virMacAddrGenerate;
|
2012-07-17 12:07:59 +00:00
|
|
|
virMacAddrGetRaw;
|
2012-08-30 18:29:49 +00:00
|
|
|
virMacAddrIsBroadcastRaw;
|
2012-03-19 16:49:17 +00:00
|
|
|
virMacAddrIsMulticast;
|
|
|
|
virMacAddrIsUnicast;
|
2012-01-27 17:23:05 +00:00
|
|
|
virMacAddrParse;
|
2014-10-10 17:55:42 +00:00
|
|
|
virMacAddrParseHex;
|
2012-07-17 12:07:59 +00:00
|
|
|
virMacAddrSet;
|
|
|
|
virMacAddrSetRaw;
|
2012-01-27 17:23:05 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virnetdev.h
|
2014-10-10 17:55:42 +00:00
|
|
|
virNetDevAddMulti;
|
Support for static routes on a virtual bridge
network: static route support for <network>
This patch adds the <route> subelement of <network> to define a static
route. the address and prefix (or netmask) attribute identify the
destination network, and the gateway attribute specifies the next hop
address (which must be directly reachable from the containing
<network>) which is to receive the packets destined for
"address/(prefix|netmask)".
These attributes are translated into an "ip route add" command that is
executed when the network is started. The command used is of the
following form:
ip route add <address>/<prefix> via <gateway> \
dev <virbr-bridge> proto static metric <metric>
Tests are done to validate that the input data are correct. For
example, for a static route ip definition, the address must be a
network address and not a host address. Additional checks are added
to ensure that the specified gateway is directly reachable via this
network (i.e. that the gateway IP address is in the same subnet as one
of the IP's defined for the network).
prefix='0' is supported for both family='ipv4' address='0.0.0.0'
netmask='0.0.0.0' or prefix='0', and for family='ipv6' address='::',
prefix=0', although care should be taken to not override a desired
system default route.
Anytime an attempt is made to define a static route which *exactly*
duplicates an existing static route (for example, address=::,
prefix=0, metric=1), the following error message will be sent to
syslog:
RTNETLINK answers: File exists
This can be overridden by decreasing the metric value for the route
that should be preferred, or increasing the metric for the route that
shouldn't be preferred (and is thus in place only in anticipation that
the preferred route may be removed in the future). Caution should be
used when manipulating route metrics, especially for a default route.
Note: The use of the command-line interface should be replaced by
direct use of libnl so that error conditions can be handled better. But,
that is being left as an exercise for another day.
Signed-off-by: Gene Czarcinski <gene@czarc.net>
Signed-off-by: Laine Stump <laine@laine.org>
2013-05-07 17:42:55 +00:00
|
|
|
virNetDevAddRoute;
|
2014-08-06 12:18:31 +00:00
|
|
|
virNetDevClearIPAddress;
|
2014-10-10 17:55:42 +00:00
|
|
|
virNetDevDelMulti;
|
2011-11-11 05:50:46 +00:00
|
|
|
virNetDevExists;
|
2015-02-23 15:38:29 +00:00
|
|
|
virNetDevGetFeatures;
|
2012-01-13 12:08:10 +00:00
|
|
|
virNetDevGetIndex;
|
2015-03-10 00:04:57 +00:00
|
|
|
virNetDevGetIPAddress;
|
2014-06-05 14:14:49 +00:00
|
|
|
virNetDevGetLinkInfo;
|
2011-11-11 05:50:46 +00:00
|
|
|
virNetDevGetMAC;
|
|
|
|
virNetDevGetMTU;
|
2015-01-22 19:47:02 +00:00
|
|
|
virNetDevGetOnline;
|
2011-11-18 16:07:48 +00:00
|
|
|
virNetDevGetPhysicalFunction;
|
2015-01-22 19:47:02 +00:00
|
|
|
virNetDevGetPromiscuous;
|
|
|
|
virNetDevGetRcvAllMulti;
|
|
|
|
virNetDevGetRcvMulti;
|
2014-10-10 17:55:42 +00:00
|
|
|
virNetDevGetRxFilter;
|
2012-01-13 12:08:10 +00:00
|
|
|
virNetDevGetVirtualFunctionIndex;
|
2012-03-06 01:12:34 +00:00
|
|
|
virNetDevGetVirtualFunctionInfo;
|
2012-01-13 12:08:10 +00:00
|
|
|
virNetDevGetVirtualFunctions;
|
2012-12-11 22:21:17 +00:00
|
|
|
virNetDevGetVLanID;
|
2011-11-18 16:07:48 +00:00
|
|
|
virNetDevIsVirtualFunction;
|
2012-03-06 01:12:34 +00:00
|
|
|
virNetDevLinkDump;
|
|
|
|
virNetDevReplaceNetConfig;
|
|
|
|
virNetDevRestoreNetConfig;
|
2014-09-20 18:39:44 +00:00
|
|
|
virNetDevRxFilterFree;
|
|
|
|
virNetDevRxFilterModeTypeFromString;
|
|
|
|
virNetDevRxFilterModeTypeToString;
|
|
|
|
virNetDevRxFilterNew;
|
2014-08-05 17:25:40 +00:00
|
|
|
virNetDevSetIPAddress;
|
2011-11-11 05:50:46 +00:00
|
|
|
virNetDevSetMAC;
|
|
|
|
virNetDevSetMTU;
|
|
|
|
virNetDevSetMTUFromDevice;
|
2011-11-16 02:59:57 +00:00
|
|
|
virNetDevSetName;
|
|
|
|
virNetDevSetNamespace;
|
2011-11-11 05:50:46 +00:00
|
|
|
virNetDevSetOnline;
|
2015-01-22 19:47:02 +00:00
|
|
|
virNetDevSetPromiscuous;
|
|
|
|
virNetDevSetRcvAllMulti;
|
|
|
|
virNetDevSetRcvMulti;
|
2013-06-13 06:26:20 +00:00
|
|
|
virNetDevSetupControl;
|
2014-06-11 13:05:00 +00:00
|
|
|
virNetDevSysfsFile;
|
2011-11-18 16:07:48 +00:00
|
|
|
virNetDevValidateConfig;
|
2011-11-11 05:50:46 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virnetdevbandwidth.h
|
2011-11-16 02:59:57 +00:00
|
|
|
virNetDevBandwidthClear;
|
|
|
|
virNetDevBandwidthCopy;
|
|
|
|
virNetDevBandwidthEqual;
|
|
|
|
virNetDevBandwidthFree;
|
2012-11-16 13:29:01 +00:00
|
|
|
virNetDevBandwidthPlug;
|
2011-11-16 02:59:57 +00:00
|
|
|
virNetDevBandwidthSet;
|
2012-11-16 13:29:01 +00:00
|
|
|
virNetDevBandwidthUnplug;
|
2015-04-14 16:04:30 +00:00
|
|
|
virNetDevBandwidthUpdateFilter;
|
2012-11-16 13:29:01 +00:00
|
|
|
virNetDevBandwidthUpdateRate;
|
2011-11-16 02:59:57 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virnetdevbridge.h
|
2011-11-11 05:50:46 +00:00
|
|
|
virNetDevBridgeAddPort;
|
|
|
|
virNetDevBridgeCreate;
|
|
|
|
virNetDevBridgeDelete;
|
2014-11-20 16:55:50 +00:00
|
|
|
virNetDevBridgeFDBAdd;
|
|
|
|
virNetDevBridgeFDBDel;
|
2011-11-11 05:50:46 +00:00
|
|
|
virNetDevBridgeGetSTP;
|
|
|
|
virNetDevBridgeGetSTPDelay;
|
2014-11-19 18:28:57 +00:00
|
|
|
virNetDevBridgeGetVlanFiltering;
|
|
|
|
virNetDevBridgePortGetLearning;
|
|
|
|
virNetDevBridgePortGetUnicastFlood;
|
|
|
|
virNetDevBridgePortSetLearning;
|
|
|
|
virNetDevBridgePortSetUnicastFlood;
|
2011-11-11 05:50:46 +00:00
|
|
|
virNetDevBridgeRemovePort;
|
|
|
|
virNetDevBridgeSetSTP;
|
|
|
|
virNetDevBridgeSetSTPDelay;
|
2014-11-19 18:28:57 +00:00
|
|
|
virNetDevBridgeSetVlanFiltering;
|
2011-11-11 05:50:46 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virnetdevmacvlan.h
|
2011-11-18 16:07:48 +00:00
|
|
|
virNetDevMacVLanCreate;
|
|
|
|
virNetDevMacVLanCreateWithVPortProfile;
|
2012-12-11 22:21:17 +00:00
|
|
|
virNetDevMacVLanDelete;
|
2011-11-18 16:07:48 +00:00
|
|
|
virNetDevMacVLanDeleteWithVPortProfile;
|
2012-03-29 12:55:04 +00:00
|
|
|
virNetDevMacVLanRestartWithVPortProfile;
|
2012-03-29 11:15:00 +00:00
|
|
|
virNetDevMacVLanVPortProfileRegisterCallback;
|
2011-11-18 16:07:48 +00:00
|
|
|
|
|
|
|
|
2015-02-23 20:54:54 +00:00
|
|
|
# util/virnetdevmidonet.h
|
|
|
|
virNetDevMidonetBindPort;
|
|
|
|
virNetDevMidonetUnbindPort;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virnetdevopenvswitch.h
|
2012-02-10 21:09:00 +00:00
|
|
|
virNetDevOpenvswitchAddPort;
|
2012-10-01 15:18:21 +00:00
|
|
|
virNetDevOpenvswitchGetMigrateData;
|
2012-02-10 21:09:00 +00:00
|
|
|
virNetDevOpenvswitchRemovePort;
|
2012-10-01 15:18:21 +00:00
|
|
|
virNetDevOpenvswitchSetMigrateData;
|
2012-02-10 21:09:00 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virnetdevtap.h
|
2011-11-11 05:50:46 +00:00
|
|
|
virNetDevTapCreate;
|
|
|
|
virNetDevTapCreateInBridgePort;
|
|
|
|
virNetDevTapDelete;
|
2013-04-20 09:11:24 +00:00
|
|
|
virNetDevTapGetName;
|
2014-03-26 16:53:48 +00:00
|
|
|
virNetDevTapGetRealDeviceName;
|
2011-11-11 05:50:46 +00:00
|
|
|
|
2011-10-21 10:48:03 +00:00
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virnetdevveth.h
|
2011-11-16 02:59:57 +00:00
|
|
|
virNetDevVethCreate;
|
|
|
|
virNetDevVethDelete;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virnetdevvlan.h
|
2012-08-11 17:44:27 +00:00
|
|
|
virNetDevVlanClear;
|
|
|
|
virNetDevVlanCopy;
|
|
|
|
virNetDevVlanEqual;
|
|
|
|
virNetDevVlanFree;
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virnetdevvportprofile.h
|
|
|
|
virNetDevVPortProfileAssociate;
|
|
|
|
virNetDevVPortProfileCheckComplete;
|
|
|
|
virNetDevVPortProfileCheckNoExtras;
|
|
|
|
virNetDevVPortProfileDisassociate;
|
|
|
|
virNetDevVPortProfileEqual;
|
|
|
|
virNetDevVPortProfileMerge3;
|
|
|
|
virNetDevVPortProfileOpTypeFromString;
|
|
|
|
virNetDevVPortProfileOpTypeToString;
|
|
|
|
|
|
|
|
|
|
|
|
# util/virnetlink.h
|
|
|
|
virNetlinkCommand;
|
2015-03-17 18:27:21 +00:00
|
|
|
virNetlinkDelLink;
|
2013-02-16 03:34:42 +00:00
|
|
|
virNetlinkEventAddClient;
|
|
|
|
virNetlinkEventRemoveClient;
|
|
|
|
virNetlinkEventServiceIsRunning;
|
|
|
|
virNetlinkEventServiceLocalPid;
|
|
|
|
virNetlinkEventServiceStart;
|
|
|
|
virNetlinkEventServiceStop;
|
|
|
|
virNetlinkEventServiceStopAll;
|
2014-08-05 17:15:11 +00:00
|
|
|
virNetlinkGetErrorCode;
|
2013-02-16 03:34:42 +00:00
|
|
|
virNetlinkShutdown;
|
|
|
|
virNetlinkStartup;
|
2011-09-30 13:38:39 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virnodesuspend.h
|
Implement the core API to suspend/resume the host
Add the core functions that implement the functionality of the API.
Suspend is done by using an asynchronous mechanism so that we can return
the status to the caller before the host gets suspended. This asynchronous
operation is achieved by suspending the host in a separate thread of
execution. However, returning the status to the caller is only best-effort,
but not guaranteed.
To resume the host, an RTC alarm is set up (based on how long we want to
suspend) before suspending the host. When this alarm fires, the host
gets woken up.
Suspend-to-RAM operation on a host running Linux can take upto more than 20
seconds, depending on the load of the system. (Freezing of tasks, an operation
preceding any suspend operation, is given up after a 20 second timeout).
And Suspend-to-Disk can take even more time, considering the time required
for compaction, creating the memory image and writing it to disk etc.
So, we do not allow the user to specify a suspend duration of less than 60
seconds, to be on the safer side, since we don't want to prematurely declare
failure when we only had to wait for some more time.
2011-11-29 09:07:38 +00:00
|
|
|
nodeSuspendForDuration;
|
2011-11-29 14:44:28 +00:00
|
|
|
virNodeSuspendGetTargetMask;
|
Implement the core API to suspend/resume the host
Add the core functions that implement the functionality of the API.
Suspend is done by using an asynchronous mechanism so that we can return
the status to the caller before the host gets suspended. This asynchronous
operation is achieved by suspending the host in a separate thread of
execution. However, returning the status to the caller is only best-effort,
but not guaranteed.
To resume the host, an RTC alarm is set up (based on how long we want to
suspend) before suspending the host. When this alarm fires, the host
gets woken up.
Suspend-to-RAM operation on a host running Linux can take upto more than 20
seconds, depending on the load of the system. (Freezing of tasks, an operation
preceding any suspend operation, is given up after a 20 second timeout).
And Suspend-to-Disk can take even more time, considering the time required
for compaction, creating the memory image and writing it to disk etc.
So, we do not allow the user to specify a suspend duration of less than 60
seconds, to be on the safer side, since we don't want to prematurely declare
failure when we only had to wait for some more time.
2011-11-29 09:07:38 +00:00
|
|
|
|
|
|
|
|
2013-03-18 09:04:01 +00:00
|
|
|
# util/virnuma.h
|
|
|
|
virNumaGetAutoPlacementAdvice;
|
2014-06-02 10:06:56 +00:00
|
|
|
virNumaGetDistances;
|
2014-12-13 08:57:00 +00:00
|
|
|
virNumaGetHostNodeset;
|
2013-10-17 15:42:22 +00:00
|
|
|
virNumaGetMaxNode;
|
2013-10-17 16:30:09 +00:00
|
|
|
virNumaGetNodeMemory;
|
2014-06-06 16:09:01 +00:00
|
|
|
virNumaGetPageInfo;
|
|
|
|
virNumaGetPages;
|
2013-10-17 14:57:29 +00:00
|
|
|
virNumaIsAvailable;
|
2014-06-16 12:29:15 +00:00
|
|
|
virNumaNodeIsAvailable;
|
2014-11-04 02:44:40 +00:00
|
|
|
virNumaNodesetIsAvailable;
|
2014-09-18 07:24:16 +00:00
|
|
|
virNumaSetPagePoolSize;
|
2013-03-20 03:35:08 +00:00
|
|
|
virNumaSetupMemoryPolicy;
|
2014-06-06 14:50:39 +00:00
|
|
|
|
2013-03-18 09:04:01 +00:00
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virobject.h
|
2013-01-09 17:37:27 +00:00
|
|
|
virClassForObject;
|
2013-01-09 17:54:07 +00:00
|
|
|
virClassForObjectLockable;
|
2013-01-09 17:37:27 +00:00
|
|
|
virClassIsDerivedFrom;
|
Add a generic reference counted virObject type
This introduces a fairly basic reference counted virObject type
and an associated virClass type, that use atomic operations for
ref counting.
In a global initializer (recommended to be invoked using the
virOnceInit API), a virClass type must be allocated for each
object type. This requires a class name, a "dispose" callback
which will be invoked to free memory associated with the object's
fields, and the size in bytes of the object struct.
eg,
virClassPtr connclass = virClassNew("virConnect",
sizeof(virConnect),
virConnectDispose);
The struct for the object, must include 'virObject' as its
first member
eg
struct _virConnect {
virObject object;
virURIPtr uri;
};
The 'dispose' callback is only responsible for freeing
fields in the object, not the object itself. eg a suitable
impl for the above struct would be
void virConnectDispose(void *obj) {
virConnectPtr conn = obj;
virURIFree(conn->uri);
}
There is no need to reset fields to 'NULL' or '0' in the
dispose callback, since the entire object will be memset
to 0, and the klass pointer & magic integer fields will
be poisoned with 0xDEADBEEF before being free()d
When creating an instance of an object, one needs simply
pass the virClassPtr eg
virConnectPtr conn = virObjectNew(connclass);
if (!conn)
return NULL;
conn->uri = virURIParse("foo:///bar")
Object references can be manipulated with
virObjectRef(conn)
virObjectUnref(conn)
The latter returns a true value, if the object has been
freed (ie its ref count hit zero)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-07-11 13:35:44 +00:00
|
|
|
virClassName;
|
|
|
|
virClassNew;
|
|
|
|
virObjectFreeCallback;
|
2014-04-04 23:36:25 +00:00
|
|
|
virObjectFreeHashData;
|
Add a generic reference counted virObject type
This introduces a fairly basic reference counted virObject type
and an associated virClass type, that use atomic operations for
ref counting.
In a global initializer (recommended to be invoked using the
virOnceInit API), a virClass type must be allocated for each
object type. This requires a class name, a "dispose" callback
which will be invoked to free memory associated with the object's
fields, and the size in bytes of the object struct.
eg,
virClassPtr connclass = virClassNew("virConnect",
sizeof(virConnect),
virConnectDispose);
The struct for the object, must include 'virObject' as its
first member
eg
struct _virConnect {
virObject object;
virURIPtr uri;
};
The 'dispose' callback is only responsible for freeing
fields in the object, not the object itself. eg a suitable
impl for the above struct would be
void virConnectDispose(void *obj) {
virConnectPtr conn = obj;
virURIFree(conn->uri);
}
There is no need to reset fields to 'NULL' or '0' in the
dispose callback, since the entire object will be memset
to 0, and the klass pointer & magic integer fields will
be poisoned with 0xDEADBEEF before being free()d
When creating an instance of an object, one needs simply
pass the virClassPtr eg
virConnectPtr conn = virObjectNew(connclass);
if (!conn)
return NULL;
conn->uri = virURIParse("foo:///bar")
Object references can be manipulated with
virObjectRef(conn)
virObjectUnref(conn)
The latter returns a true value, if the object has been
freed (ie its ref count hit zero)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-07-11 13:35:44 +00:00
|
|
|
virObjectIsClass;
|
2015-04-29 09:54:58 +00:00
|
|
|
virObjectListFree;
|
|
|
|
virObjectListFreeCount;
|
2013-01-09 17:54:07 +00:00
|
|
|
virObjectLock;
|
|
|
|
virObjectLockableNew;
|
Add a generic reference counted virObject type
This introduces a fairly basic reference counted virObject type
and an associated virClass type, that use atomic operations for
ref counting.
In a global initializer (recommended to be invoked using the
virOnceInit API), a virClass type must be allocated for each
object type. This requires a class name, a "dispose" callback
which will be invoked to free memory associated with the object's
fields, and the size in bytes of the object struct.
eg,
virClassPtr connclass = virClassNew("virConnect",
sizeof(virConnect),
virConnectDispose);
The struct for the object, must include 'virObject' as its
first member
eg
struct _virConnect {
virObject object;
virURIPtr uri;
};
The 'dispose' callback is only responsible for freeing
fields in the object, not the object itself. eg a suitable
impl for the above struct would be
void virConnectDispose(void *obj) {
virConnectPtr conn = obj;
virURIFree(conn->uri);
}
There is no need to reset fields to 'NULL' or '0' in the
dispose callback, since the entire object will be memset
to 0, and the klass pointer & magic integer fields will
be poisoned with 0xDEADBEEF before being free()d
When creating an instance of an object, one needs simply
pass the virClassPtr eg
virConnectPtr conn = virObjectNew(connclass);
if (!conn)
return NULL;
conn->uri = virURIParse("foo:///bar")
Object references can be manipulated with
virObjectRef(conn)
virObjectUnref(conn)
The latter returns a true value, if the object has been
freed (ie its ref count hit zero)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-07-11 13:35:44 +00:00
|
|
|
virObjectNew;
|
|
|
|
virObjectRef;
|
2013-01-09 17:54:07 +00:00
|
|
|
virObjectUnlock;
|
Add a generic reference counted virObject type
This introduces a fairly basic reference counted virObject type
and an associated virClass type, that use atomic operations for
ref counting.
In a global initializer (recommended to be invoked using the
virOnceInit API), a virClass type must be allocated for each
object type. This requires a class name, a "dispose" callback
which will be invoked to free memory associated with the object's
fields, and the size in bytes of the object struct.
eg,
virClassPtr connclass = virClassNew("virConnect",
sizeof(virConnect),
virConnectDispose);
The struct for the object, must include 'virObject' as its
first member
eg
struct _virConnect {
virObject object;
virURIPtr uri;
};
The 'dispose' callback is only responsible for freeing
fields in the object, not the object itself. eg a suitable
impl for the above struct would be
void virConnectDispose(void *obj) {
virConnectPtr conn = obj;
virURIFree(conn->uri);
}
There is no need to reset fields to 'NULL' or '0' in the
dispose callback, since the entire object will be memset
to 0, and the klass pointer & magic integer fields will
be poisoned with 0xDEADBEEF before being free()d
When creating an instance of an object, one needs simply
pass the virClassPtr eg
virConnectPtr conn = virObjectNew(connclass);
if (!conn)
return NULL;
conn->uri = virURIParse("foo:///bar")
Object references can be manipulated with
virObjectRef(conn)
virObjectUnref(conn)
The latter returns a true value, if the object has been
freed (ie its ref count hit zero)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-07-11 13:35:44 +00:00
|
|
|
virObjectUnref;
|
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virpci.h
|
2013-06-23 18:47:57 +00:00
|
|
|
virPCIDeviceAddressGetIOMMUGroupAddresses;
|
|
|
|
virPCIDeviceAddressGetIOMMUGroupNum;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIDeviceAddressGetSysfsFile;
|
2013-06-23 18:47:57 +00:00
|
|
|
virPCIDeviceAddressIOMMUGroupIterate;
|
2013-06-17 15:57:19 +00:00
|
|
|
virPCIDeviceAddressParse;
|
2013-05-31 15:06:32 +00:00
|
|
|
virPCIDeviceCopy;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIDeviceDetach;
|
|
|
|
virPCIDeviceFileIterate;
|
|
|
|
virPCIDeviceFree;
|
2014-01-16 11:27:23 +00:00
|
|
|
virPCIDeviceGetDriverPathAndName;
|
2013-06-14 20:18:44 +00:00
|
|
|
virPCIDeviceGetIOMMUGroupDev;
|
2013-06-23 18:47:57 +00:00
|
|
|
virPCIDeviceGetIOMMUGroupList;
|
2014-05-15 08:04:28 +00:00
|
|
|
virPCIDeviceGetLinkCapSta;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIDeviceGetManaged;
|
|
|
|
virPCIDeviceGetName;
|
|
|
|
virPCIDeviceGetRemoveSlot;
|
|
|
|
virPCIDeviceGetReprobe;
|
2013-04-23 18:50:15 +00:00
|
|
|
virPCIDeviceGetStubDriver;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIDeviceGetUnbindFromStub;
|
|
|
|
virPCIDeviceGetUsedBy;
|
2014-05-15 08:04:28 +00:00
|
|
|
virPCIDeviceHasPCIExpressLink;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIDeviceIsAssignable;
|
2014-05-15 08:04:28 +00:00
|
|
|
virPCIDeviceIsPCIExpress;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIDeviceListAdd;
|
2013-06-25 01:27:52 +00:00
|
|
|
virPCIDeviceListAddCopy;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIDeviceListCount;
|
|
|
|
virPCIDeviceListDel;
|
|
|
|
virPCIDeviceListFind;
|
2013-05-31 15:06:32 +00:00
|
|
|
virPCIDeviceListFindByIDs;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIDeviceListFindIndex;
|
|
|
|
virPCIDeviceListGet;
|
|
|
|
virPCIDeviceListNew;
|
|
|
|
virPCIDeviceListSteal;
|
|
|
|
virPCIDeviceListStealIndex;
|
|
|
|
virPCIDeviceNew;
|
|
|
|
virPCIDeviceReattach;
|
|
|
|
virPCIDeviceReattachInit;
|
|
|
|
virPCIDeviceReset;
|
|
|
|
virPCIDeviceSetManaged;
|
|
|
|
virPCIDeviceSetRemoveSlot;
|
|
|
|
virPCIDeviceSetReprobe;
|
2013-04-23 18:50:15 +00:00
|
|
|
virPCIDeviceSetStubDriver;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIDeviceSetUnbindFromStub;
|
|
|
|
virPCIDeviceSetUsedBy;
|
2014-01-16 11:27:23 +00:00
|
|
|
virPCIDeviceUnbind;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIDeviceWaitForCleanup;
|
2014-07-23 04:38:30 +00:00
|
|
|
virPCIEDeviceInfoFree;
|
2013-02-16 03:34:42 +00:00
|
|
|
virPCIGetNetName;
|
|
|
|
virPCIGetPhysicalFunction;
|
|
|
|
virPCIGetVirtualFunctionIndex;
|
|
|
|
virPCIGetVirtualFunctionInfo;
|
|
|
|
virPCIGetVirtualFunctions;
|
|
|
|
virPCIIsVirtualFunction;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virpidfile.h
|
2011-07-06 16:12:26 +00:00
|
|
|
virPidFileAcquire;
|
|
|
|
virPidFileAcquirePath;
|
2011-08-05 13:13:12 +00:00
|
|
|
virPidFileBuildPath;
|
2014-09-07 17:52:34 +00:00
|
|
|
virPidFileConstructPath;
|
2012-12-11 22:21:17 +00:00
|
|
|
virPidFileDelete;
|
|
|
|
virPidFileDeletePath;
|
2014-10-12 11:40:36 +00:00
|
|
|
virPidFileForceCleanupPath;
|
2011-08-05 13:13:12 +00:00
|
|
|
virPidFileRead;
|
2011-08-05 13:41:25 +00:00
|
|
|
virPidFileReadIfAlive;
|
2011-08-05 13:13:12 +00:00
|
|
|
virPidFileReadPath;
|
2011-08-05 13:41:25 +00:00
|
|
|
virPidFileReadPathIfAlive;
|
2011-07-06 16:12:26 +00:00
|
|
|
virPidFileRelease;
|
|
|
|
virPidFileReleasePath;
|
2011-08-05 13:13:12 +00:00
|
|
|
virPidFileWrite;
|
|
|
|
virPidFileWritePath;
|
|
|
|
|
|
|
|
|
2013-08-22 13:27:19 +00:00
|
|
|
# util/virpolkit.h
|
|
|
|
virPolkitCheckAuth;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virportallocator.h
|
2013-01-09 15:11:50 +00:00
|
|
|
virPortAllocatorAcquire;
|
|
|
|
virPortAllocatorNew;
|
|
|
|
virPortAllocatorRelease;
|
2014-06-24 11:34:17 +00:00
|
|
|
virPortAllocatorSetUsed;
|
2013-01-09 15:11:50 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virprocess.h
|
2012-09-24 17:10:37 +00:00
|
|
|
virProcessAbort;
|
2014-02-20 03:04:40 +00:00
|
|
|
virProcessExitWithStatus;
|
2012-12-13 14:58:41 +00:00
|
|
|
virProcessGetAffinity;
|
2012-12-21 16:50:18 +00:00
|
|
|
virProcessGetNamespaces;
|
2015-06-01 12:31:44 +00:00
|
|
|
virProcessGetPids;
|
2013-06-12 08:13:29 +00:00
|
|
|
virProcessGetStartTime;
|
2012-09-24 16:54:51 +00:00
|
|
|
virProcessKill;
|
2012-09-26 14:42:58 +00:00
|
|
|
virProcessKillPainfully;
|
2014-01-30 13:11:23 +00:00
|
|
|
virProcessRunInMountNamespace;
|
2015-01-08 14:36:54 +00:00
|
|
|
virProcessSchedPolicyTypeFromString;
|
|
|
|
virProcessSchedPolicyTypeToString;
|
2012-12-13 14:58:41 +00:00
|
|
|
virProcessSetAffinity;
|
2013-04-25 16:10:10 +00:00
|
|
|
virProcessSetMaxFiles;
|
|
|
|
virProcessSetMaxMemLock;
|
|
|
|
virProcessSetMaxProcesses;
|
2012-12-21 16:50:18 +00:00
|
|
|
virProcessSetNamespaces;
|
2015-01-08 14:36:54 +00:00
|
|
|
virProcessSetScheduler;
|
2012-09-24 17:10:37 +00:00
|
|
|
virProcessTranslateStatus;
|
|
|
|
virProcessWait;
|
|
|
|
|
2012-09-24 16:54:51 +00:00
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virrandom.h
|
2012-08-10 13:01:23 +00:00
|
|
|
virRandom;
|
2012-01-25 15:17:46 +00:00
|
|
|
virRandomBits;
|
2012-02-10 04:51:47 +00:00
|
|
|
virRandomGenerateWWN;
|
2012-08-10 13:01:23 +00:00
|
|
|
virRandomInt;
|
2012-01-25 15:17:46 +00:00
|
|
|
|
|
|
|
|
2013-05-03 18:07:22 +00:00
|
|
|
# util/virscsi.h
|
|
|
|
virSCSIDeviceFileIterate;
|
|
|
|
virSCSIDeviceFree;
|
|
|
|
virSCSIDeviceGetAdapter;
|
|
|
|
virSCSIDeviceGetBus;
|
2013-05-03 18:07:36 +00:00
|
|
|
virSCSIDeviceGetDevName;
|
2013-05-03 18:07:22 +00:00
|
|
|
virSCSIDeviceGetName;
|
|
|
|
virSCSIDeviceGetReadonly;
|
|
|
|
virSCSIDeviceGetSgName;
|
2014-01-08 14:51:29 +00:00
|
|
|
virSCSIDeviceGetShareable;
|
2013-05-03 18:07:22 +00:00
|
|
|
virSCSIDeviceGetTarget;
|
|
|
|
virSCSIDeviceGetUnit;
|
2014-01-29 17:22:42 +00:00
|
|
|
virSCSIDeviceIsAvailable;
|
2013-05-03 18:07:22 +00:00
|
|
|
virSCSIDeviceListAdd;
|
|
|
|
virSCSIDeviceListCount;
|
|
|
|
virSCSIDeviceListDel;
|
|
|
|
virSCSIDeviceListFind;
|
|
|
|
virSCSIDeviceListGet;
|
|
|
|
virSCSIDeviceListNew;
|
|
|
|
virSCSIDeviceListSteal;
|
|
|
|
virSCSIDeviceNew;
|
|
|
|
virSCSIDeviceSetUsedBy;
|
|
|
|
|
|
|
|
|
2014-03-26 20:09:46 +00:00
|
|
|
# util/virseclabel.h
|
|
|
|
virSecurityDeviceLabelDefFree;
|
|
|
|
virSecurityDeviceLabelDefNew;
|
|
|
|
virSecurityLabelDefFree;
|
|
|
|
virSecurityLabelDefNew;
|
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virsexpr.h
|
|
|
|
sexpr2string;
|
|
|
|
sexpr_append;
|
|
|
|
sexpr_cons;
|
|
|
|
sexpr_float;
|
|
|
|
sexpr_fmt_node;
|
|
|
|
sexpr_free;
|
|
|
|
sexpr_has;
|
|
|
|
sexpr_int;
|
|
|
|
sexpr_lookup;
|
|
|
|
sexpr_nil;
|
|
|
|
sexpr_node;
|
|
|
|
sexpr_node_copy;
|
|
|
|
sexpr_string;
|
|
|
|
sexpr_u64;
|
|
|
|
string2sexpr;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virsocketaddr.h
|
2011-11-18 16:07:48 +00:00
|
|
|
virSocketAddrBroadcast;
|
|
|
|
virSocketAddrBroadcastByPrefix;
|
|
|
|
virSocketAddrCheckNetmask;
|
2012-04-25 13:53:29 +00:00
|
|
|
virSocketAddrEqual;
|
2011-11-18 16:07:48 +00:00
|
|
|
virSocketAddrFormat;
|
|
|
|
virSocketAddrFormatFull;
|
2013-04-20 19:45:46 +00:00
|
|
|
virSocketAddrGetIpPrefix;
|
2011-11-18 16:07:48 +00:00
|
|
|
virSocketAddrGetPort;
|
|
|
|
virSocketAddrGetRange;
|
|
|
|
virSocketAddrIsNetmask;
|
2014-10-07 04:07:31 +00:00
|
|
|
virSocketAddrIsNumericLocalhost;
|
2012-11-22 02:17:30 +00:00
|
|
|
virSocketAddrIsPrivate;
|
2013-06-06 13:50:01 +00:00
|
|
|
virSocketAddrIsWildcard;
|
2011-11-18 16:07:48 +00:00
|
|
|
virSocketAddrMask;
|
|
|
|
virSocketAddrMaskByPrefix;
|
2014-10-07 04:07:30 +00:00
|
|
|
virSocketAddrNumericFamily;
|
2011-11-18 16:07:48 +00:00
|
|
|
virSocketAddrParse;
|
|
|
|
virSocketAddrParseIPv4;
|
|
|
|
virSocketAddrParseIPv6;
|
|
|
|
virSocketAddrPrefixToNetmask;
|
2012-04-25 13:53:29 +00:00
|
|
|
virSocketAddrSetIPv4Addr;
|
2011-11-18 16:07:48 +00:00
|
|
|
virSocketAddrSetPort;
|
|
|
|
|
2014-07-05 15:34:39 +00:00
|
|
|
# util/virstats.h
|
|
|
|
virNetInterfaceStats;
|
2011-11-18 16:07:48 +00:00
|
|
|
|
2014-03-28 03:26:44 +00:00
|
|
|
# util/virstorageencryption.h
|
|
|
|
virStorageEncryptionFormat;
|
|
|
|
virStorageEncryptionFree;
|
|
|
|
virStorageEncryptionParseNode;
|
|
|
|
virStorageGenerateQcowPassphrase;
|
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virstoragefile.h
|
2014-06-23 14:40:49 +00:00
|
|
|
virStorageAuthDefCopy;
|
|
|
|
virStorageAuthDefFormat;
|
|
|
|
virStorageAuthDefFree;
|
|
|
|
virStorageAuthDefParse;
|
2014-05-02 17:22:17 +00:00
|
|
|
virStorageFileCanonicalizePath;
|
2013-07-29 12:51:15 +00:00
|
|
|
virStorageFileChainGetBroken;
|
2013-02-16 03:34:42 +00:00
|
|
|
virStorageFileChainLookup;
|
2013-05-16 10:38:26 +00:00
|
|
|
virStorageFileFeatureTypeFromString;
|
|
|
|
virStorageFileFeatureTypeToString;
|
2013-02-16 03:34:42 +00:00
|
|
|
virStorageFileFormatTypeFromString;
|
|
|
|
virStorageFileFormatTypeToString;
|
|
|
|
virStorageFileGetLVMKey;
|
2013-11-05 20:50:29 +00:00
|
|
|
virStorageFileGetMetadataFromBuf;
|
2013-02-16 03:34:42 +00:00
|
|
|
virStorageFileGetMetadataFromFD;
|
2014-04-25 19:38:40 +00:00
|
|
|
virStorageFileGetMetadataInternal;
|
2014-05-13 08:10:56 +00:00
|
|
|
virStorageFileGetRelativeBackingPath;
|
2013-02-16 03:34:42 +00:00
|
|
|
virStorageFileGetSCSIKey;
|
|
|
|
virStorageFileIsClusterFS;
|
2014-04-18 12:35:33 +00:00
|
|
|
virStorageFileParseChainIndex;
|
2013-02-16 03:34:42 +00:00
|
|
|
virStorageFileProbeFormat;
|
2014-07-07 10:56:23 +00:00
|
|
|
virStorageFileProbeFormatFromBuf;
|
2013-02-16 03:34:42 +00:00
|
|
|
virStorageFileResize;
|
2014-04-09 22:08:42 +00:00
|
|
|
virStorageIsFile;
|
conf: split network host structs to util/
Continuing the refactoring of host-side storage descriptions out
of conf/domain_conf and into util/virstoragefile, this patch
focuses on details about a host name/port/transport as used by
a network storage volume.
* src/conf/domain_conf.h (virDomainDiskProtocolTransport)
(virDomainDiskHostDef, virDomainDiskHostDefClear)
(virDomainDiskHostDefFree, virDomainDiskHostDefCopy): Move...
* src/util/virstoragefile.h (virStorageNetHostTransport)
(virStorageNetHostDef, virStorageNetHostDefClear)
(virStorageNetHostDefFree, virStorageNetHostDefCopy): ...here,
with better names.
* src/util/virstoragefile.c (virStorageNetHostDefClear)
(virStorageNetHostDefFree, virStorageNetHostDefCopy): Moved from...
* src/conf/domain_conf.c (virDomainDiskHostDefClear)
(virDomainDiskHostDefFree, virDomainDiskHostDefCopy): ...here.
(virDomainDiskSourceDefClear, virDomainDiskSourceDefParse)
(virDomainDiskSourceDefFormatInternal): Adjust callers.
* src/conf/snapshot_conf.h (_virDomainSnapshotDiskDef): Likewise.
* src/conf/snapshot_conf.c (virDomainSnapshotDiskDefClear):
Likewise.
* src/qemu/qemu_command.c (qemuAddRBDHost)
(qemuParseDriveURIString, qemuParseNBDString)
(qemuBuildNetworkDriveURI, qemuParseCommandLineDisk)
(qemuParseCommandLine, qemuGetDriveSourceString): Likewise.
* src/qemu/qemu_command.h: Likewise.
* src/qemu/qemu_conf.c (qemuAddISCSIPoolSourceHost)
(qemuTranslateDiskSourcePool): Likewise.
* src/qemu/qemu_driver.c
(qemuDomainSnapshotCreateSingleDiskActive)
(qemuDomainSnapshotUndoSingleDiskActive): Likewise.
* src/storage/storage_backend_gluster.c
(virStorageFileBackendGlusterInit): Likewise.
* src/storage/storage_driver.c (virStorageFileFree)
(virStorageFileInitInternal): Likewise.
* src/storage/storage_driver.h (_virStorageFile): Likewise.
* src/libvirt_private.syms (domain_conf.h): Move symbols...
(virstoragefile.h): ...as appropriate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-03-26 22:33:08 +00:00
|
|
|
virStorageNetHostDefClear;
|
|
|
|
virStorageNetHostDefCopy;
|
|
|
|
virStorageNetHostDefFree;
|
|
|
|
virStorageNetHostTransportTypeFromString;
|
|
|
|
virStorageNetHostTransportTypeToString;
|
2014-03-27 22:47:39 +00:00
|
|
|
virStorageNetProtocolTypeToString;
|
2014-06-20 08:40:45 +00:00
|
|
|
virStorageSourceBackingStoreClear;
|
2014-03-29 18:00:38 +00:00
|
|
|
virStorageSourceClear;
|
2014-06-16 11:10:42 +00:00
|
|
|
virStorageSourceCopy;
|
2014-04-07 15:58:08 +00:00
|
|
|
virStorageSourceFree;
|
2014-04-08 06:51:06 +00:00
|
|
|
virStorageSourceGetActualType;
|
2014-06-18 16:39:47 +00:00
|
|
|
virStorageSourceGetSecurityLabelDef;
|
2014-06-25 16:48:27 +00:00
|
|
|
virStorageSourceInitChainElement;
|
2014-09-11 17:43:53 +00:00
|
|
|
virStorageSourceIsEmpty;
|
2014-06-25 11:47:32 +00:00
|
|
|
virStorageSourceIsLocalStorage;
|
2014-04-25 11:23:50 +00:00
|
|
|
virStorageSourceNewFromBacking;
|
2014-10-31 16:49:56 +00:00
|
|
|
virStorageSourceParseRBDColonString;
|
2014-03-29 18:00:38 +00:00
|
|
|
virStorageSourcePoolDefFree;
|
2014-03-28 04:33:45 +00:00
|
|
|
virStorageSourcePoolModeTypeFromString;
|
|
|
|
virStorageSourcePoolModeTypeToString;
|
conf: move host disk type to util/
A continuation of the migration of disk details to virstoragefile.
This patch moves a single enum, but converting the name has quite
a bit of fallout.
* src/conf/domain_conf.h (virDomainDiskType): Move...
* src/util/virstoragefile.h (virStorageType): ...and rename.
* src/bhyve/bhyve_command.c (bhyveBuildDiskArgStr)
(virBhyveProcessBuildLoadCmd): Update clients.
* src/conf/domain_conf.c (virDomainDiskSourceDefParse)
(virDomainDiskDefParseXML, virDomainDiskSourceDefFormatInternal)
(virDomainDiskDefFormat, virDomainDiskGetActualType)
(virDomainDiskDefForeachPath, virDomainDiskSourceIsBlockType):
Likewise.
* src/conf/snapshot_conf.h (_virDomainSnapshotDiskDef): Likewise.
* src/conf/snapshot_conf.c (virDomainSnapshotDiskDefParseXML)
(virDomainSnapshotAlignDisks, virDomainSnapshotDiskDefFormat):
Likewise.
* src/esx/esx_driver.c (esxAutodetectSCSIControllerModel)
(esxDomainDefineXML): Likewise.
* src/locking/domain_lock.c (virDomainLockManagerAddDisk):
Likewise.
* src/lxc/lxc_controller.c
(virLXCControllerSetupLoopDeviceDisk)
(virLXCControllerSetupNBDDeviceDisk)
(virLXCControllerSetupLoopDevices, virLXCControllerSetupDisk):
Likewise.
* src/parallels/parallels_driver.c (parallelsGetHddInfo):
Likewise.
* src/phyp/phyp_driver.c (phypDiskType): Likewise.
* src/qemu/qemu_command.c (qemuGetDriveSourceString)
(qemuDomainDiskGetSourceString, qemuBuildDriveStr)
(qemuBuildCommandLine, qemuParseCommandLineDisk)
(qemuParseCommandLine): Likewise.
* src/qemu/qemu_conf.c (qemuCheckSharedDevice)
(qemuTranslateDiskSourcePool)
(qemuTranslateSnapshotDiskSourcePool): Likewise.
* src/qemu/qemu_domain.c (qemuDomainDeviceDefPostParse)
(qemuDomainDetermineDiskChain): Likewise.
* src/qemu/qemu_driver.c (qemuDomainGetBlockInfo)
(qemuDomainSnapshotPrepareDiskExternalBackingInactive)
(qemuDomainSnapshotPrepareDiskExternalBackingActive)
(qemuDomainSnapshotPrepareDiskExternalOverlayActive)
(qemuDomainSnapshotPrepareDiskExternalOverlayInactive)
(qemuDomainSnapshotPrepareDiskInternal)
(qemuDomainSnapshotPrepare)
(qemuDomainSnapshotCreateSingleDiskActive): Likewise.
* src/qemu/qemu_hotplug.c (qemuDomainChangeEjectableMedia):
Likewise.
* src/qemu/qemu_migration.c (qemuMigrationIsSafe): Likewise.
* src/security/security_apparmor.c
(AppArmorRestoreSecurityImageLabel)
(AppArmorSetSecurityImageLabel): Likewise.
* src/security/security_dac.c (virSecurityDACSetSecurityImageLabel)
(virSecurityDACRestoreSecurityImageLabelInt)
(virSecurityDACSetSecurityAllLabel): Likewise.
* src/security/security_selinux.c
(virSecuritySELinuxRestoreSecurityImageLabelInt)
(virSecuritySELinuxSetSecurityImageLabel)
(virSecuritySELinuxSetSecurityAllLabel): Likewise.
* src/storage/storage_backend.c (virStorageFileBackendForType):
Likewise.
* src/storage/storage_backend_fs.c (virStorageFileBackendFile)
(virStorageFileBackendBlock): Likewise.
* src/storage/storage_backend_gluster.c
(virStorageFileBackendGluster): Likewise.
* src/vbox/vbox_tmpl.c (vboxDomainGetXMLDesc, vboxAttachDrives)
(vboxDomainAttachDeviceImpl, vboxDomainDetachDevice): Likewise.
* src/vmware/vmware_conf.c (vmwareVmxPath): Likewise.
* src/vmx/vmx.c (virVMXParseDisk, virVMXFormatDisk)
(virVMXFormatFloppy): Likewise.
* src/xenxs/xen_sxpr.c (xenParseSxprDisks, xenParseSxpr)
(xenFormatSxprDisk): Likewise.
* src/xenxs/xen_xm.c (xenParseXM, xenFormatXMDisk): Likewise.
* tests/securityselinuxlabeltest.c (testSELinuxLoadDef):
Likewise.
* src/libvirt_private.syms (domain_conf.h): Move symbols...
(virstoragefile.h): ...as appropriate.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-03-27 21:57:49 +00:00
|
|
|
virStorageTypeFromString;
|
|
|
|
virStorageTypeToString;
|
2009-01-05 14:05:29 +00:00
|
|
|
|
2011-11-29 12:11:01 +00:00
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virstring.h
|
2013-04-03 10:36:23 +00:00
|
|
|
virArgvToString;
|
2013-06-07 15:10:28 +00:00
|
|
|
virAsprintfInternal;
|
2013-04-03 10:36:23 +00:00
|
|
|
virSkipSpaces;
|
|
|
|
virSkipSpacesAndBackslash;
|
|
|
|
virSkipSpacesBackwards;
|
|
|
|
virStrcpy;
|
2013-04-03 12:51:20 +00:00
|
|
|
virStrdup;
|
2013-04-12 20:55:45 +00:00
|
|
|
virStringArrayHasString;
|
2012-11-30 15:21:02 +00:00
|
|
|
virStringFreeList;
|
2014-05-19 12:20:09 +00:00
|
|
|
virStringFreeListCount;
|
2015-04-14 10:30:16 +00:00
|
|
|
virStringHasControlChars;
|
2014-10-22 08:26:42 +00:00
|
|
|
virStringIsEmpty;
|
2012-12-11 22:21:17 +00:00
|
|
|
virStringJoin;
|
2013-04-25 16:05:00 +00:00
|
|
|
virStringListLength;
|
2014-02-19 20:30:46 +00:00
|
|
|
virStringReplace;
|
2014-01-23 09:28:29 +00:00
|
|
|
virStringSearch;
|
2013-11-28 11:14:59 +00:00
|
|
|
virStringSortCompare;
|
|
|
|
virStringSortRevCompare;
|
2012-12-11 22:21:17 +00:00
|
|
|
virStringSplit;
|
2014-05-12 07:46:37 +00:00
|
|
|
virStringSplitCount;
|
2015-04-14 10:30:16 +00:00
|
|
|
virStringStripControlChars;
|
2014-10-07 15:27:40 +00:00
|
|
|
virStringStripIPv6Brackets;
|
2013-04-03 10:36:23 +00:00
|
|
|
virStrncpy;
|
2013-04-03 12:51:20 +00:00
|
|
|
virStrndup;
|
2013-04-03 10:36:23 +00:00
|
|
|
virStrToDouble;
|
|
|
|
virStrToLong_i;
|
|
|
|
virStrToLong_l;
|
|
|
|
virStrToLong_ll;
|
|
|
|
virStrToLong_ui;
|
2014-05-01 02:11:09 +00:00
|
|
|
virStrToLong_uip;
|
2013-04-03 10:36:23 +00:00
|
|
|
virStrToLong_ul;
|
|
|
|
virStrToLong_ull;
|
2014-05-01 02:11:09 +00:00
|
|
|
virStrToLong_ullp;
|
|
|
|
virStrToLong_ulp;
|
2013-04-03 10:36:23 +00:00
|
|
|
virTrimSpaces;
|
2013-06-07 15:10:28 +00:00
|
|
|
virVasprintfInternal;
|
2012-11-30 15:21:02 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virsysinfo.h
|
2015-05-12 14:47:49 +00:00
|
|
|
virSysinfoBaseBoardDefClear;
|
2015-05-12 10:02:29 +00:00
|
|
|
virSysinfoBIOSDefFree;
|
2013-02-16 03:34:42 +00:00
|
|
|
virSysinfoDefFree;
|
|
|
|
virSysinfoFormat;
|
|
|
|
virSysinfoRead;
|
|
|
|
virSysinfoSetup;
|
2015-05-12 12:33:12 +00:00
|
|
|
virSysinfoSystemDefFree;
|
2013-02-16 03:34:42 +00:00
|
|
|
|
|
|
|
|
2013-07-18 09:54:21 +00:00
|
|
|
# util/virsystemd.h
|
2014-04-11 07:20:48 +00:00
|
|
|
virSystemdCanHibernate;
|
|
|
|
virSystemdCanHybridSleep;
|
|
|
|
virSystemdCanSuspend;
|
2013-07-18 09:54:21 +00:00
|
|
|
virSystemdCreateMachine;
|
2013-09-30 14:46:29 +00:00
|
|
|
virSystemdMakeMachineName;
|
2013-07-26 14:18:55 +00:00
|
|
|
virSystemdMakeScopeName;
|
|
|
|
virSystemdMakeSliceName;
|
2014-02-21 12:06:42 +00:00
|
|
|
virSystemdNotifyStartup;
|
2013-09-30 14:46:29 +00:00
|
|
|
virSystemdTerminateMachine;
|
2013-07-18 09:54:21 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virthread.h
|
|
|
|
virCondBroadcast;
|
|
|
|
virCondDestroy;
|
|
|
|
virCondInit;
|
|
|
|
virCondSignal;
|
|
|
|
virCondWait;
|
|
|
|
virCondWaitUntil;
|
|
|
|
virMutexDestroy;
|
|
|
|
virMutexInit;
|
|
|
|
virMutexInitRecursive;
|
|
|
|
virMutexLock;
|
|
|
|
virMutexUnlock;
|
|
|
|
virOnce;
|
2014-01-22 15:26:21 +00:00
|
|
|
virRWLockDestroy;
|
|
|
|
virRWLockInit;
|
|
|
|
virRWLockRead;
|
|
|
|
virRWLockUnlock;
|
|
|
|
virRWLockWrite;
|
2012-01-23 14:58:13 +00:00
|
|
|
virThreadCancel;
|
2015-03-20 16:43:55 +00:00
|
|
|
virThreadCreateFull;
|
2013-02-16 03:34:42 +00:00
|
|
|
virThreadID;
|
|
|
|
virThreadInitialize;
|
|
|
|
virThreadIsSelf;
|
|
|
|
virThreadJoin;
|
|
|
|
virThreadSelf;
|
|
|
|
virThreadSelfID;
|
|
|
|
|
|
|
|
|
2013-07-08 10:27:34 +00:00
|
|
|
# util/virthreadjob.h
|
|
|
|
virThreadJobClear;
|
|
|
|
virThreadJobGet;
|
|
|
|
virThreadJobSet;
|
|
|
|
virThreadJobSetWorker;
|
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virthreadpool.h
|
|
|
|
virThreadPoolFree;
|
|
|
|
virThreadPoolGetMaxWorkers;
|
|
|
|
virThreadPoolGetMinWorkers;
|
|
|
|
virThreadPoolGetPriorityWorkers;
|
2015-03-20 16:44:25 +00:00
|
|
|
virThreadPoolNewFull;
|
2013-02-16 03:34:42 +00:00
|
|
|
virThreadPoolSendJob;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virtime.h
|
2011-11-29 12:11:01 +00:00
|
|
|
virTimeFieldsNow;
|
2011-12-05 14:04:25 +00:00
|
|
|
virTimeFieldsNowRaw;
|
2011-11-29 12:11:01 +00:00
|
|
|
virTimeFieldsThen;
|
util: new function virTimeLocalOffsetFromUTC
Since there isn't a single libc API to get this value, this patch
supplies one which gets the value by grabbing current time, then
converting that into a struct tm with gmtime_r(), then back to a
time_t using mktime.
The returned value is the difference between UTC and localtime in
seconds. If localtime is ahead of UTC (east) the offset will be a
positive number, and if localtime is behind UTC (west) the offset will
be negative.
This function should be POSIX-compliant, and is threadsafe, but not
async signal safe. If it was ever necessary to know this value in a
child process, we could cache it with a one-time init function when
libvirtd starts, then just supply the cached value, but that
complexity isn't needed for current usage; that would also have the
problem that it might not be accurate after a local daylight savings
boundary.
(If it weren't for DST, we could simply replace this entire function
with "-timezone"; timezone contains the offset of the current timezone
(negated from what we want) but doesn't account for DST. And in spite
of being guaranteed by POSIX, it isn't available on older versions of
mingw.)
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-05-24 14:21:26 +00:00
|
|
|
virTimeLocalOffsetFromUTC;
|
2011-12-05 14:04:25 +00:00
|
|
|
virTimeMillisNow;
|
|
|
|
virTimeMillisNowRaw;
|
2011-11-29 12:11:01 +00:00
|
|
|
virTimeStringNow;
|
2011-12-05 14:04:25 +00:00
|
|
|
virTimeStringNowRaw;
|
2011-11-29 12:11:01 +00:00
|
|
|
virTimeStringThen;
|
2011-12-05 14:04:25 +00:00
|
|
|
virTimeStringThenRaw;
|
2011-11-29 12:11:01 +00:00
|
|
|
|
|
|
|
|
2013-04-12 20:55:45 +00:00
|
|
|
# util/virtpm.h
|
|
|
|
virTPMCreateCancelPath;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virtypedparam.h
|
2012-01-02 22:03:19 +00:00
|
|
|
virTypedParameterAssign;
|
2012-09-06 12:47:40 +00:00
|
|
|
virTypedParameterAssignFromStr;
|
2013-06-06 16:54:48 +00:00
|
|
|
virTypedParameterToString;
|
|
|
|
virTypedParameterTypeFromString;
|
|
|
|
virTypedParameterTypeToString;
|
2013-05-06 10:04:06 +00:00
|
|
|
virTypedParamsCheck;
|
2013-06-07 14:34:13 +00:00
|
|
|
virTypedParamsCopy;
|
2015-06-15 22:42:08 +00:00
|
|
|
virTypedParamsFilter;
|
|
|
|
virTypedParamsGetStringList;
|
2013-05-21 13:11:56 +00:00
|
|
|
virTypedParamsReplaceString;
|
2013-05-03 13:34:10 +00:00
|
|
|
virTypedParamsValidate;
|
2012-01-02 22:03:19 +00:00
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/viruri.h
|
2012-02-24 18:48:55 +00:00
|
|
|
virURIFormat;
|
2012-03-20 13:59:32 +00:00
|
|
|
virURIFormatParams;
|
2012-03-20 11:59:42 +00:00
|
|
|
virURIFree;
|
2012-02-24 18:48:55 +00:00
|
|
|
virURIParse;
|
|
|
|
|
|
|
|
|
2013-02-16 03:34:42 +00:00
|
|
|
# util/virusb.h
|
|
|
|
virUSBDeviceFileIterate;
|
|
|
|
virUSBDeviceFind;
|
|
|
|
virUSBDeviceFindByBus;
|
|
|
|
virUSBDeviceFindByVendor;
|
|
|
|
virUSBDeviceFree;
|
|
|
|
virUSBDeviceGetBus;
|
|
|
|
virUSBDeviceGetDevno;
|
|
|
|
virUSBDeviceGetName;
|
|
|
|
virUSBDeviceGetUsedBy;
|
|
|
|
virUSBDeviceListAdd;
|
|
|
|
virUSBDeviceListCount;
|
|
|
|
virUSBDeviceListDel;
|
|
|
|
virUSBDeviceListFind;
|
|
|
|
virUSBDeviceListGet;
|
|
|
|
virUSBDeviceListNew;
|
|
|
|
virUSBDeviceListSteal;
|
|
|
|
virUSBDeviceNew;
|
|
|
|
virUSBDeviceSetUsedBy;
|
|
|
|
|
|
|
|
|
|
|
|
# util/virutil.h
|
|
|
|
virDoubleToStr;
|
|
|
|
virEnumFromString;
|
|
|
|
virEnumToString;
|
2013-03-25 16:43:42 +00:00
|
|
|
virFindFCHostCapableVport;
|
2014-06-10 11:47:12 +00:00
|
|
|
virFindSCSIHostByPCI;
|
2013-02-16 03:34:42 +00:00
|
|
|
virFormatIntDecimal;
|
|
|
|
virGetDeviceID;
|
|
|
|
virGetDeviceUnprivSGIO;
|
2013-10-09 09:52:39 +00:00
|
|
|
virGetEnvAllowSUID;
|
|
|
|
virGetEnvBlockSUID;
|
2013-03-25 16:43:40 +00:00
|
|
|
virGetFCHostNameByWWN;
|
2013-02-16 03:34:42 +00:00
|
|
|
virGetGroupID;
|
2013-05-21 23:47:48 +00:00
|
|
|
virGetGroupList;
|
2013-02-16 03:34:42 +00:00
|
|
|
virGetGroupName;
|
|
|
|
virGetHostname;
|
2014-07-15 12:34:13 +00:00
|
|
|
virGetListenFDs;
|
2014-10-06 20:18:23 +00:00
|
|
|
virGetSCSIHostNameByParentaddr;
|
2014-10-06 18:18:11 +00:00
|
|
|
virGetSCSIHostNumber;
|
2014-03-05 17:20:50 +00:00
|
|
|
virGetSelfLastChanged;
|
2015-02-02 10:26:49 +00:00
|
|
|
virGetSystemPageSize;
|
|
|
|
virGetSystemPageSizeKB;
|
2013-02-16 03:34:42 +00:00
|
|
|
virGetUnprivSGIOSysfsPath;
|
|
|
|
virGetUserCacheDirectory;
|
|
|
|
virGetUserConfigDirectory;
|
|
|
|
virGetUserDirectory;
|
2013-07-30 19:55:44 +00:00
|
|
|
virGetUserDirectoryByUID;
|
2013-02-16 03:34:42 +00:00
|
|
|
virGetUserID;
|
|
|
|
virGetUserName;
|
|
|
|
virGetUserRuntimeDirectory;
|
|
|
|
virHexToBin;
|
|
|
|
virIndexToDiskName;
|
2013-01-07 17:05:31 +00:00
|
|
|
virIsCapableFCHost;
|
|
|
|
virIsCapableVport;
|
2013-02-16 03:34:42 +00:00
|
|
|
virIsDevMapperDevice;
|
2013-10-09 09:52:39 +00:00
|
|
|
virIsSUID;
|
2013-01-07 17:05:34 +00:00
|
|
|
virManageVport;
|
2015-03-04 14:08:09 +00:00
|
|
|
virMemoryLimitIsSet;
|
|
|
|
virMemoryLimitTruncate;
|
2015-05-05 15:58:49 +00:00
|
|
|
virMemoryMaxValue;
|
2013-02-16 03:34:42 +00:00
|
|
|
virParseNumber;
|
2013-05-24 15:35:01 +00:00
|
|
|
virParseOwnershipIds;
|
2013-02-16 03:34:42 +00:00
|
|
|
virParseVersionString;
|
|
|
|
virPipeReadUntilEOF;
|
2013-01-07 17:05:29 +00:00
|
|
|
virReadFCHost;
|
2014-06-10 15:09:20 +00:00
|
|
|
virReadSCSIUniqueId;
|
2013-02-16 03:34:42 +00:00
|
|
|
virScaleInteger;
|
|
|
|
virSetBlocking;
|
|
|
|
virSetCloseExec;
|
|
|
|
virSetDeviceUnprivSGIO;
|
|
|
|
virSetInherit;
|
|
|
|
virSetNonBlock;
|
2014-04-25 16:47:08 +00:00
|
|
|
virSetSockReuseAddr;
|
2013-02-16 03:34:42 +00:00
|
|
|
virSetUIDGID;
|
|
|
|
virSetUIDGIDWithCaps;
|
|
|
|
virStrIsPrint;
|
2014-06-27 15:16:54 +00:00
|
|
|
virTristateBoolTypeFromString;
|
|
|
|
virTristateBoolTypeToString;
|
2014-06-27 15:18:53 +00:00
|
|
|
virTristateSwitchTypeFromString;
|
|
|
|
virTristateSwitchTypeToString;
|
2014-03-05 17:20:50 +00:00
|
|
|
virUpdateSelfLastChanged;
|
2013-02-16 03:34:42 +00:00
|
|
|
virValidateWWN;
|
|
|
|
|
|
|
|
|
|
|
|
# util/viruuid.h
|
|
|
|
virGetHostUUID;
|
|
|
|
virSetHostUUIDStr;
|
|
|
|
virUUIDFormat;
|
|
|
|
virUUIDGenerate;
|
|
|
|
virUUIDIsValid;
|
|
|
|
virUUIDParse;
|
|
|
|
|
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
# util/virxml.h
|
2011-12-07 22:06:18 +00:00
|
|
|
virXMLChildElementCount;
|
2013-09-06 15:34:43 +00:00
|
|
|
virXMLExtractNamespaceXML;
|
2013-09-04 14:49:40 +00:00
|
|
|
virXMLNodeToString;
|
2011-05-26 21:30:21 +00:00
|
|
|
virXMLParseHelper;
|
2012-10-29 12:15:55 +00:00
|
|
|
virXMLPickShellSafeComment;
|
2010-10-20 17:10:45 +00:00
|
|
|
virXMLPropString;
|
2011-10-06 09:57:06 +00:00
|
|
|
virXMLSaveFile;
|
2014-11-18 14:50:05 +00:00
|
|
|
virXMLValidateAgainstSchema;
|
2009-11-26 17:57:00 +00:00
|
|
|
virXPathBoolean;
|
2011-01-13 22:09:18 +00:00
|
|
|
virXPathInt;
|
2009-01-05 14:05:29 +00:00
|
|
|
virXPathLong;
|
2010-10-20 17:10:45 +00:00
|
|
|
virXPathLongHex;
|
|
|
|
virXPathLongLong;
|
2009-01-05 14:05:29 +00:00
|
|
|
virXPathNode;
|
|
|
|
virXPathNodeSet;
|
2010-10-20 17:10:45 +00:00
|
|
|
virXPathNumber;
|
2009-01-05 14:05:29 +00:00
|
|
|
virXPathString;
|
2009-03-03 09:44:41 +00:00
|
|
|
virXPathStringLimit;
|
2011-01-13 22:09:18 +00:00
|
|
|
virXPathUInt;
|
2009-12-04 18:24:25 +00:00
|
|
|
virXPathULong;
|
|
|
|
virXPathULongHex;
|
2010-10-20 17:10:45 +00:00
|
|
|
virXPathULongLong;
|
2013-01-24 01:20:01 +00:00
|
|
|
|
2013-02-16 03:25:09 +00:00
|
|
|
|
2013-01-24 01:20:01 +00:00
|
|
|
# Let emacs know we want case-insensitive sorting
|
|
|
|
# Local Variables:
|
|
|
|
# sort-fold-case: t
|
|
|
|
# End:
|