config_tools: update loading msr driver logic

load msr driver if not found cpu number.

Tracked-On: #6689
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
This commit is contained in:
Kunhui-Li 2022-07-08 22:39:00 +08:00 committed by acrnsi-robot
parent 95c4d18423
commit aeab5a29ae
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def check_env():
# check cpu msr file
cpu_dirs = "/dev/cpu"
if check_msr_files(cpu_dirs):
if not check_msr_files(cpu_dirs):
res = subprocess.Popen("modprobe msr",
shell=True, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, close_fds=True)