mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-05 11:19:29 +00:00
Implement driver for virDomainGetOSType in QEMU guests
This commit is contained in:
parent
b4259bbc37
commit
0de8efe4a0
@ -1,3 +1,8 @@
|
||||
Mon Apr 16 09:09:04 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/qemu_internal.c: Implement virDomainGetOSType driver method
|
||||
for QEMU guests
|
||||
|
||||
Mon Apr 16 08:30:04 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* python/generator.py, python/libvir.py: Ensure that connection
|
||||
|
@ -682,6 +682,17 @@ static int qemuDestroyDomain(virDomainPtr domain) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static char *qemuDomainGetOSType(virDomainPtr domain ATTRIBUTE_UNUSED) {
|
||||
char *type = strdup("hvm");
|
||||
|
||||
if (!type) {
|
||||
qemuError (domain->conn, domain, VIR_ERR_NO_MEMORY, __FUNCTION__);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return type;
|
||||
}
|
||||
|
||||
static int qemuShutdownDomain(virDomainPtr domain) {
|
||||
return qemuDestroyDomain(domain);
|
||||
}
|
||||
@ -1304,7 +1315,7 @@ static virDriver qemuDriver = {
|
||||
qemuShutdownDomain, /* domainShutdown */
|
||||
NULL, /* domainReboot */
|
||||
qemuDestroyDomain, /* domainDestroy */
|
||||
NULL, /* domainGetOSType */
|
||||
qemuDomainGetOSType, /* domainGetOSType */
|
||||
NULL, /* domainGetMaxMemory */
|
||||
NULL, /* domainSetMaxMemory */
|
||||
NULL, /* domainSetMemory */
|
||||
|
Loading…
x
Reference in New Issue
Block a user