Skip to content

Commit 7c4179b

Browse files
committed
test: allow extd_apicid CPU feature on AMD guests
PCI-enabled guest kernels enable the `extd_apicid` CPU feature for AMD CPU families after 16h. Our supported AMD families (Milan & Genoa) are both 19h. This is irrespective of whether PCI is enabled in Firecracker. Do not mark this as host-only when running with PCI enabled kernels, i.e. all kernels that support ACPI. Signed-off-by: Babis Chalios <[email protected]>
1 parent 7233f05 commit 7c4179b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/framework/microvm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def __init__(
198198
assert microvm_id is not None
199199
self._microvm_id = microvm_id
200200

201+
self.pci_enabled = False
201202
self.kernel_file = None
202203
self.rootfs_file = None
203204
self.ssh_key = None
@@ -642,6 +643,7 @@ def spawn(
642643
self.time_api_requests = False
643644

644645
if pci:
646+
self.pci_enabled = True
645647
self.jailer.extra_args["enable-pci"] = None
646648

647649
cmd = [

tests/integration_tests/functional/test_cpu_features_host_vs_guest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
"cqm_occup_llc",
9292
"decodeassists",
9393
"extapic",
94-
"extd_apicid",
9594
"flushbyasid",
9695
"hw_pstate",
9796
"ibs",

0 commit comments

Comments
 (0)