mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
xen: fix timer bug found by updated test
Only 'tsc' timer allows set mode and track is valid only for 'rtc' and 'platform' timers. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
91a00424db
commit
5cc2d8f6d5
@ -553,6 +553,8 @@ xenParseCPUFeatures(virConfPtr conf, virDomainDefPtr def)
|
||||
timer->name = VIR_DOMAIN_TIMER_NAME_HPET;
|
||||
timer->present = val;
|
||||
timer->tickpolicy = -1;
|
||||
timer->mode = -1;
|
||||
timer->track = -1;
|
||||
|
||||
def->clock.ntimers = 1;
|
||||
def->clock.timers[0] = timer;
|
||||
|
@ -1262,6 +1262,8 @@ xenParseSxpr(const struct sexpr *root,
|
||||
timer->name = VIR_DOMAIN_TIMER_NAME_HPET;
|
||||
timer->present = sexpr_int(root, "domain/image/hvm/hpet");
|
||||
timer->tickpolicy = -1;
|
||||
timer->mode = -1;
|
||||
timer->track = -1;
|
||||
|
||||
def->clock.ntimers = 1;
|
||||
def->clock.timers[0] = timer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user