Skip to content

Commit afc7972

Browse files
committed
feat: Support Intel AMX
Intel AMX was introduced in Intel Sapphire Rapids and stands for Advanced Matrix Extensions that accelerates deep learning and artificial intelligence workloads. Since it requires larger area to save its state, the TILEDATA feature is disabled by default. We enable it by default because it can be disabled via CPU template. Otherwise, kernels prior to v6.4 have a bug where KVM_GET_SUPPORTED_CPUID returns an inconsistent state of TILECFG enabled but TILEDATA disabled by default, causing guest's #GP fault on xsetbv instruction. Signed-off-by: Takahiro Itazuri <[email protected]>
1 parent fabe706 commit afc7972

File tree

3 files changed

+345
-1
lines changed

3 files changed

+345
-1
lines changed

Cargo.lock

Lines changed: 217 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vmm/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "Apache-2.0"
99
bench = false
1010

1111
[dependencies]
12-
acpi_tables = { path = "../acpi-tables" }
12+
acpi_tables = { path = "../acpi-tables" }
1313
aes-gcm = { version = "0.10.1", default-features = false, features = ["aes"] }
1414
arrayvec = { version = "0.7.6", optional = true }
1515
aws-lc-rs = { version = "1.12.4", features = ["bindgen"] }
@@ -53,6 +53,7 @@ vm-fdt = "0.3.0"
5353
criterion = { version = "0.5.0", default-features = false }
5454
device_tree = "1.1.0"
5555
itertools = "0.14.0"
56+
procfs = "0.17.0"
5657
proptest = { version = "1.6.0", default-features = false, features = ["std"] }
5758

5859
[features]

0 commit comments

Comments
 (0)