mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 06:29:19 +00:00
acrn-config: get PTCT table from native environment
automatically get PTCT table from native environment for the usage of pre-launched VMs. Tracked-On: #5418 Signed-off-by: Shuang Zheng <shuang.zheng@intel.com>
This commit is contained in:
parent
0e9775f4a4
commit
b23374ccc9
@ -6,6 +6,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import shutil
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
import dmar
|
import dmar
|
||||||
import parser_lib
|
import parser_lib
|
||||||
@ -652,3 +653,9 @@ def generate_info(board_file):
|
|||||||
# Generate board info
|
# Generate board info
|
||||||
with open(board_file, 'a+') as config:
|
with open(board_file, 'a+') as config:
|
||||||
gen_acpi_info(config)
|
gen_acpi_info(config)
|
||||||
|
|
||||||
|
# get the PTCT table from native environment
|
||||||
|
out_dir = os.path.dirname(board_file)
|
||||||
|
if os.path.isfile(SYS_PATH[1] + 'PTCT'):
|
||||||
|
shutil.copy(SYS_PATH[1] + 'PTCT', out_dir)
|
||||||
|
print("PTCT table has been saved to {} successfully!".format(os.path.join(out_dir, 'PTCT')))
|
||||||
|
Loading…
Reference in New Issue
Block a user