mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 23:10:08 +00:00
libxl: support enabling the HPET
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.
This commit is contained in:
parent
0fd3fac537
commit
761a742a8d
@ -406,7 +406,7 @@ libxlMakeDomBuildInfo(virDomainDefPtr def, libxl_domain_config *d_config)
|
|||||||
for (i = 0; i < def->clock.ntimers; i++) {
|
for (i = 0; i < def->clock.ntimers; i++) {
|
||||||
if (def->clock.timers[i]->name == VIR_DOMAIN_TIMER_NAME_HPET &&
|
if (def->clock.timers[i]->name == VIR_DOMAIN_TIMER_NAME_HPET &&
|
||||||
def->clock.timers[i]->present == 1) {
|
def->clock.timers[i]->present == 1) {
|
||||||
b_info->u.hvm.acpi.hpet = 1;
|
b_info->u.hvm.hpet = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user