mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +00:00
qemu: fix uninitialized variable in qemuParseCommandLine
Newly added if branch for kvm_pv_eoi did not set the ret variable.
This commit is contained in:
parent
6b07dff012
commit
b4418464e1
@ -7655,7 +7655,7 @@ qemuParseCommandLineCPU(virDomainDefPtr dom,
|
|||||||
else if (*p == '+' || *p == '-') {
|
else if (*p == '+' || *p == '-') {
|
||||||
char *feature;
|
char *feature;
|
||||||
int policy;
|
int policy;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
if (*p == '+')
|
if (*p == '+')
|
||||||
policy = VIR_CPU_FEATURE_REQUIRE;
|
policy = VIR_CPU_FEATURE_REQUIRE;
|
||||||
@ -7702,7 +7702,6 @@ qemuParseCommandLineCPU(virDomainDefPtr dom,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
dom->clock.timers[i]->present = present;
|
dom->clock.timers[i]->present = present;
|
||||||
ret = 0;
|
|
||||||
} else if (STREQ(feature, "kvm_pv_eoi")) {
|
} else if (STREQ(feature, "kvm_pv_eoi")) {
|
||||||
if (policy == VIR_CPU_FEATURE_REQUIRE)
|
if (policy == VIR_CPU_FEATURE_REQUIRE)
|
||||||
dom->apic_eoi = VIR_DOMAIN_APIC_EOI_ON;
|
dom->apic_eoi = VIR_DOMAIN_APIC_EOI_ON;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user