Displaying 5 results from an estimated 5 matches for "virdomainfindbyuuid".
2012 Aug 16
1
Where does "cmd" initailize in qemu_command.c?
...il.c. Through
virFindFileInPath, one could find a requested executable file in the PATH
env to start specified hypervisors.
So could you please tell me what the value of args[0] is? Or where does
cmd->args initialize?
2.
In qemu_driver.c, there is a function call "vm =
virDomainFindByUUID(&driver->domains, dom->uuid);", whose returned value
"vm" is important in the next functions. Then we could get the "vm"'s value
in hash.c which is the end part to lookup domains saved in hashtable.
May I know where does HashTable initialize? I mean where ca...
2011 Apr 21
7
[PATCHv11 0/6] libvirt/qemu - persistent modification of devices
Here is v11. Fixed comments/bugs and updated against the latest libvirt.git.
Changes v10->v11:
- fixed comments on each patches
- fixed cgroup handling in patch 3.
- fixed MODIFY_CURRENT handling in patch 4.
most of diff comes from refactoring qemu/qemu_driver.c
--
conf/domain_conf.c | 40 ++
conf/domain_conf.h | 5
libvirt_private.syms | 3
qemu/qemu_driver.c | 727
2012 Jun 20
1
update virDomainDef with xml config
...nks!
here is my code in qemu_driver.c:
static int qemudDomainSetCustomOptions(virDomainPtr dom, char *opt)
{
struct qemud_driver *driver = dom->conn->privateData;
virDomainObjPtr vm;
virDomainDefPtr persistentDef = NULL;
int ret = -1;
qemuDriverLock(driver);
vm = virDomainFindByUUID(&driver->domains, dom->uuid);
qemuDriverUnlock(driver);
if (!vm) {
char uuidstr[VIR_UUID_STRING_BUFLEN];
virUUIDFormat(dom->uuid, uuidstr);
qemuReportError(VIR_ERR_NO_DOMAIN,
_("no domain with matching uuid '%s'"), uuidstr);
goto cleanup;
}...
2011 Feb 23
0
[PATCH 1/2] libvirt/qemu : allow persistent modification of disks via A(De)ttachDeviceFlags
...muReportError(VIR_ERR_INVALID_ARG,
+ _("internal error : %s"), __FUNCTION__);
+ return -1;
+ }
+
+ if (dom->conn->flags & VIR_CONNECT_RO)
+ return -1;
+
+ driver = dom->conn->privateData;
+ qemuDriverLock(driver);
+ vm = virDomainFindByUUID(&driver->domains, dom->uuid);
+ if (!vm) {
+ qemuReportError(VIR_ERR_NO_DOMAIN, _("cannot find domain '%s'"),
+ dom->name);
+ goto unlock_out;
+ }
+
+ if (qemuDomainObjBeginJobWithDriver(driver, vm) < 0) {
+ /*
+...
2010 Jul 05
0
Release of libvirt-0.8.2
...auerer)
- build: simplify checks for sched.h (Eric Blake)
- build: use gnulib's sys/wait.h (Eric Blake)
- build: use gnulib's uname (Eric Blake)
- build: rely on gnulib's pthread module (Eric Blake)
- rpmbuild: add ebtables & ip(6)tables dependency for rpm (Stefan Berger)
- lxc: Use virDomainFindByUUID for domain lookup (Jiri Denemark)
- nwfilter: skip some interfaces on filter update (Stefan Berger)
- pass info where request stems from to have rules applied (Stefan Berger)
- dnsmasq.c: Fix OOM error reporting (Matthias Bolte)
- autobuild.sh: provide default prefix (Eric Blake)
Cleanups:
- lxc:...