]> xenbits.xensource.com Git - libvirt.git/commitdiff
libxl: support enabling the HPET
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 May 2011 11:24:15 +0000 (13:24 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 10 May 2011 22:38:30 +0000 (16:38 -0600)
libxl accepts hpet configuration in its domain info struct.  Parse the
domain definition's <clock> element in order to set the value.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Apologies from Eric Blake, for mistakenly committing the broken
intermediate version.

src/libxl/libxl_conf.c

index ae527f38877ac8cc90acf14b5bf067f071b34cc3..3cebf41118e796ac92080d79c7065ad420e6ac4c 100644 (file)
@@ -406,7 +406,7 @@ libxlMakeDomBuildInfo(virDomainDefPtr def, libxl_domain_config *d_config)
         for (i = 0; i < def->clock.ntimers; i++) {
             if (def->clock.timers[i]->name == VIR_DOMAIN_TIMER_NAME_HPET &&
                 def->clock.timers[i]->present == 1) {
-                b_info->u.hvm.acpi.hpet = 1;
+                b_info->u.hvm.hpet = 1;
             }
         }