mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
cpu-data.py: Automatically adjust command line for kcpuid
kcpuid does not have a "-1" flag. Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
95a89ed012
commit
d1873e03b4
@ -116,7 +116,7 @@ def gather_cpuid_leaves(args):
|
|||||||
cpuid = args.path_to_cpuid or "cpuid"
|
cpuid = args.path_to_cpuid or "cpuid"
|
||||||
try:
|
try:
|
||||||
output = subprocess.check_output(
|
output = subprocess.check_output(
|
||||||
[cpuid, "-1r"],
|
[cpuid, "-r" if "kcpuid" in cpuid else "-1r"],
|
||||||
universal_newlines=True)
|
universal_newlines=True)
|
||||||
except FileNotFoundError as e:
|
except FileNotFoundError as e:
|
||||||
exit("Error: '{}' not found.\n'cpuid' can be usually found in a "
|
exit("Error: '{}' not found.\n'cpuid' can be usually found in a "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user