Taowei
35cb445a51
vbox: Rewrite vboxDomainSetVcpus
2014-08-15 09:25:11 +02:00
Taowei
da3b862aad
vbox: Rewrite vboxDomainSetVcpusFlags
2014-08-15 09:25:11 +02:00
Taowei
97d8a17bf5
vbox: Rewrite vboxDomainGetState
2014-08-15 09:25:11 +02:00
Taowei
b412975345
vbox: Rewrite vboxDomainGetInfo
2014-08-15 09:25:11 +02:00
Taowei
2cd7a218de
vbox: Rewrite vboxDomainSetMemory
2014-08-15 09:25:11 +02:00
Taowei
0ba1c21471
vbox: Rewrite vboxDomainGetOSType
2014-08-15 09:25:11 +02:00
Taowei
40b733e7e2
vbox: Rewrite vboxDomainDestroy
2014-08-15 09:25:11 +02:00
Taowei
25d807d42a
vbox: Rewrite vboxDomainDestroyFlags
2014-08-15 09:25:11 +02:00
Taowei
14babb4981
vbox: Rewrite vboxDomainReboot
2014-08-15 09:25:11 +02:00
Taowei
502c43ee44
vbox: Rewrite vboxDomainShutdown
2014-08-15 09:25:11 +02:00
Taowei
67533a8148
vbox: Rewrite vboxDomainShutdownFlags
2014-08-15 09:25:11 +02:00
Taowei
395ecc456e
vbox: Rewrite vboxDomainResume
2014-08-15 09:25:11 +02:00
Taowei
8b89505a20
vbox: Rewrite vboxDomainSuspend
2014-08-15 09:25:10 +02:00
Taowei
caba5247fd
vbox: Rewrite vboxDomainIsUpdated
2014-08-15 09:25:10 +02:00
Taowei
c9537d13b0
vbox: Rewrite vboxDomainIsPersistent
2014-08-15 09:25:10 +02:00
Taowei
fa2f9abcc1
vbox: Rewrite vboxDomainIsActive
2014-08-15 09:25:10 +02:00
Taowei
2ba3ccbb88
vbox: Rewrite vboxDomainLookupByName
2014-08-15 09:25:10 +02:00
Taowei
856ceb8cb3
vbox: Rewrite vboxDomainCreateXML
2014-08-15 09:25:10 +02:00
Taowei
e979ad3991
vbox: Rewrite vboxDomainCreate
2014-08-15 09:25:10 +02:00
Taowei
815d17398c
vbox: Rewrite vboxDomainCreateWithFlags
2014-08-15 09:25:10 +02:00
Taowei
34364df3c6
vbox: Rewrite vboxDomainDefineXML
2014-08-15 09:25:10 +02:00
Taowei
e60e8da4cb
vbox: Rewrite vboxDomainUndefineFlags
2014-08-15 09:25:10 +02:00
Taowei
e89a93c071
vbox: Rewrite vboxDomainLookupByUUID
2014-08-15 09:25:10 +02:00
Taowei
9dd4f8eded
vbox: Rewrite vboxDomainLookupById
2014-08-15 09:25:10 +02:00
Taowei
5f15b511e9
vbox: Rewrite vboxConnectNumOfDomains
2014-08-15 09:25:10 +02:00
Taowei
0958334ac0
vbox: Rewrite vboxConnectListDomains
2014-08-15 09:25:10 +02:00
Taowei
30a95f30ef
vbox: Rewrite vboxConnectGetCapabilities
2014-08-15 09:25:10 +02:00
Taowei
82513be8ba
vbox: Rewrite vboxConnectGetMaxVcpus
2014-08-15 09:25:10 +02:00
Taowei
427931ae0c
vbox: Rewrite vboxConnectIsAlive
2014-08-15 09:25:10 +02:00
Taowei
16dcbaf09b
vbox: Rewrite vboxConnectIsEncrypted
2014-08-15 09:25:10 +02:00
Taowei
3a959b36fd
vbox: Rewrite vboxConnectIsSecure
2014-08-15 09:25:10 +02:00
Taowei
86142d8e9a
vbox: Rewrite vboxConnectGetHostname
2014-08-15 09:25:09 +02:00
Taowei
6e906ffa91
vbox: Rewrite vboxConnectGetVersion
2014-08-15 09:25:09 +02:00
Taowei
7e052265c9
vbox: Rewrite vboxDomainSave
...
All vbox objects are child objects from the nsISupports in vbox's
C++ API version. Since the CAPI is generated from the C++ API, I
kept their relationship here, by the definitations below:
typedef struct nsISupports nsISupports;
typedef nsISupports IVirtualBox;
typedef nsISupports ISession;
and so on...
So, when calling the API from nsISupports, we don't need to do
typecasting, and things work still work well.
2014-08-15 09:25:09 +02:00
Taowei
c6084f19d0
vbox: Rewrite vboxConnectClose
2014-08-15 09:25:09 +02:00
Taowei
7f0f415b87
vbox: Begin to rewrite, vboxConnectOpen
...
Introduce vbox_uniformed_api to deal with version conflicts. Use
vbox_install_api to register the currect vboxUniformedAPI with
vbox version.
vboxConnectOpen has been rewritten.
2014-08-15 09:25:09 +02:00
Eric Blake
b50c8603a2
maint: improve syntax check for space around =
...
Laine Stump noted on IRC that syntax check wasn't flagging his
typo of 'i= 0'. This fixes it.
* build-aux/bracket-spacing.pl: Tighten 'space around =' rule.
* src/storage/storage_backend.c
(virStorageBackendCreateExecCommand): Fix offenders.
* src/util/virnuma.c (virNumaGetDistances): Likewise.
* src/vbox/vbox_tmpl.c (vboxDomainSnapshotDeleteMetadataOnly)
(vboxNetworkGetXMLDesc): Likewise.
* src/xenapi/xenapi_driver.c (xenapiDomainLookupByName):
Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-08-12 11:21:17 -06:00
Ján Tomko
3227e17d82
Introduce virTristateSwitch enum
...
For the values "default", "on", "off"
Replaces
virDeviceAddressPCIMulti
virDomainFeatureState
virDomainIoEventFd
virDomainVirtioEventIdx
virDomainDiskCopyOnRead
virDomainMemDump
virDomainPCIRombarMode
virDomainGraphicsSpicePlaybackCompression
2014-07-23 12:59:40 +02:00
Peter Krempa
5df813177c
util: Check return value from virStrToLong* functions
...
We do so in the vast majority of places, so there's no problem of adding
the attribute to enforce it by the complier and fix a few leftover
places.
This was originally pointed out by Coverity as a recent change triggered
it's warning that our code checked the vast majority of returns from
virStrToLong_ui.
2014-07-21 15:20:59 +02:00
Michal Privoznik
5028160523
Kill last strto{l,ll,d} scouts
...
There's no need to use it since we have this shiny functions
that even checks for conversion and overflow errors.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2014-07-18 16:31:47 +02:00
Eric Blake
58156f39ce
capabilities: use bool instead of int
...
While preparing to add a capability for active commit, I noticed
that the existing code was abusing int for boolean values.
* src/conf/capabilities.h (_virCapsGuestFeature, _virCapsHost)
(virCapabilitiesNew, virCapabilitiesAddGuestFeature): Improve
types.
* src/conf/capabilities.c (virCapabilitiesNew)
(virCapabilitiesAddGuestFeature): Adjust signature.
* src/bhyve/bhyve_capabilities.c (virBhyveCapsBuild): Update
clients.
* src/esx/esx_driver.c (esxCapsInit): Likewise.
* src/libxl/libxl_conf.c (libxlMakeCapabilities): Likewise.
* src/lxc/lxc_conf.c (virLXCDriverCapsInit): Likewise.
* src/openvz/openvz_conf.c (openvzCapsInit): Likewise.
* src/parallels/parallels_driver.c (parallelsBuildCapabilities):
Likewise.
* src/phyp/phyp_driver.c (phypCapsInit): Likewise.
* src/qemu/qemu_capabilities.c (virQEMUCapsInit)
(virQEMUCapsInitGuestFromBinary): Likewise.
* src/security/virt-aa-helper.c (get_definition): Likewise.
* src/test/test_driver.c (testBuildCapabilities): Likewise.
* src/uml/uml_conf.c (umlCapsInit): Likewise.
* src/vbox/vbox_tmpl.c (vboxCapsInit): Likewise.
* src/vmware/vmware_conf.c (vmwareCapsInit): Likewise.
* src/xen/xen_hypervisor.c (xenHypervisorBuildCapabilities):
Likewise.
* src/xenapi/xenapi_driver.c (getCapsObject): Likewise.
* tests/qemucaps2xmltest.c (testGetCaps): Likewise.
* tests/testutils.c (virTestGenericCapsInit): Likewise.
* tests/testutilslxc.c (testLXCCapsInit): Likewise.
* tests/testutilsqemu.c (testQemuCapsInit): Likewise.
* tests/testutilsxen.c (testXenCapsInit): Likewise.
* tests/vircaps2xmltest.c (buildVirCapabilities): Likewise.
* tests/vircapstest.c (buildNUMATopology): Likewise.
* tests/vmx2xmltest.c (testCapsInit): Likewise.
* tests/xml2vmxtest.c (testCapsInit): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-07-14 08:00:46 -06:00
Peter Krempa
63834faadb
storage: Move readonly and shared flags to disk source from disk def
...
In the future we might need to track state of individual images. Move
the readonly and shared flags to the virStorageSource struct so that we
can keep them in a per-image basis.
2014-07-08 14:27:19 +02:00
Daniel Veillard
ee8abfbeac
Fix a typo in a localized string
...
As pointed by Yuri Chornoivan in transifex:
https://fedora.transifex.com/projects/p/libvirt/translate/#uk/strings/27026506
2014-06-26 15:47:16 +08:00
Michal Privoznik
38fa03f4b0
nodeinfo: Implement nodeGetFreePages
...
And add stubs to other drivers like: lxc, qemu, uml and vbox.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2014-06-19 15:10:50 +02:00
Michal Privoznik
99a63aed2d
nodeinfo: Rename nodeGetFreeMemory to nodeGetMemory
...
For future work we want to get info for not only the free memory
but overall memory size too. That's why the function must have
new signature too.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2014-06-19 15:10:49 +02:00
Yohan BELLEGUIC
49ce28d668
vbox: fix a segfault when taking a snapshot
...
there is a segfault in the vbox driver when taking a snapshot in the
following functions:
- vboxDomainGetXMLDesc
- vboxSnapshotGetReadWriteDisks
- vboxSnapshotGetReadOnlyDisks
The virStorageSourcePtr in virDomainDiskDef was not correctly allocated.
(The problem stems from the fact that commit 4dc5d8f and commit bc3f5f1
were written in one order but applied in another; so each tested in
isolation passed, but the combination introduces the problem due to
changed semantics).
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-06-17 21:35:44 -06:00
John Ferlan
70bd552e67
vbox_temp: Resolve Coverity warnings
...
Clean up code to resolve Coverity RESOURCE_LEAK's from commit id's
'632b9600' and 'b739f807'.
2014-06-12 05:36:37 -04:00
Yohan BELLEGUIC
b739f80758
vbox_tmpl.c: Add function for undefining snapshot
...
All snapshots information will be deleted from the vbox XML, but
differencing disks will be kept so the user will be able to redefine the
snapshot.
2014-06-10 15:14:15 +01:00
Yohan BELLEGUIC
632b960044
vbox_tmpl.c: Patch for redefining snapshots
...
The machine is unregistered and its vbox XML file is changed in order to
add snapshot information. The machine is then registered with the
snapshot to redefine.
2014-06-10 15:10:20 +01:00
Manuel VIVES
538ee93314
vbox_tmpl.c: Better XML description for snapshots
...
It will be needed for the future patches because we will
redefine snapshots
2014-06-10 14:27:04 +01:00