mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: The TSC tolerance interval should be closed
The kernel refuses to set guest TSC frequency less than a minimum
frequency or greater than maximum frequency (both computed based on the
host TSC frequency). When writing the libvirt code with a reversed logic
(return success when the requested frequency falls within the tolerance
interval) I forgot to include the boundaries.
Fixes: d8e5b45600
https://bugzilla.redhat.com/show_bug.cgi?id=1839095
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
6ac2327060
commit
f7c40b5c71
@ -5403,7 +5403,7 @@ qemuProcessStartValidateTSC(virQEMUDriverPtr driver,
|
||||
tsc->frequency, virTristateBoolTypeToString(tsc->scaling),
|
||||
tolerance);
|
||||
|
||||
if (freq > minFreq && freq < maxFreq) {
|
||||
if (freq >= minFreq && freq <= maxFreq) {
|
||||
VIR_DEBUG("Requested TSC frequency is within tolerance interval");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user