cloud-hypervisor/vmm/src
William Douglas 6b0df31e5d vmm: Add support for enabling AMX in vm guests
AMX is an x86 extension adding hardware units for matrix
operations (int and float dot products). The goal of the extension is
to provide performance enhancements for these common operations.

On Linux, AMX requires requesting the permission from the kernel prior
to use. Guests wanting to make use of the feature need to have the
request made prior to starting the vm.

This change then adds the first --cpus features option amx that when
passed will enable AMX usage for guests (needs a 5.17+ kernel) or
exits with failure.

The activation is done in the CpuManager of the VMM thread as it
allows migration and snapshot/restore to work fairly painlessly for
AMX enabled workloads.

Signed-off-by: William Douglas <william.douglas@intel.com>
2022-03-25 14:11:54 -07:00
..
api vmm: Add support for enabling AMX in vm guests 2022-03-25 14:11:54 -07:00
acpi.rs vmm: acpi: Print total size of ACPI tables 2022-03-21 14:41:46 +00:00
clone3.rs vmm: notify virtio-console of pty resizes 2021-09-14 15:43:25 +01:00
config.rs vmm: Add support for enabling AMX in vm guests 2022-03-25 14:11:54 -07:00
cpu.rs vmm: Add support for enabling AMX in vm guests 2022-03-25 14:11:54 -07:00
device_manager.rs virtio-fs: Deprecate the DAX feature 2022-03-24 10:39:11 -07:00
device_tree.rs pci, vmm: Update DeviceNode to store PciBdf instead of u32 2022-02-16 11:57:23 +00:00
gdb.rs vmm: Implement GDB event handler to enable --gdb flag 2022-02-23 11:16:09 +00:00
interrupt.rs vmm: interrupt: fix msi mask irq causing kernel panic on AMD 2022-03-10 09:27:50 +01:00
lib.rs vmm: Add support for enabling AMX in vm guests 2022-03-25 14:11:54 -07:00
memory_manager.rs vmm: Don't expose MemoryManager ACPI functionality unless required 2022-03-24 13:17:51 +00:00
migration.rs vmm: Split VM config and VM state for snapshot/restore 2022-02-08 15:06:49 +00:00
pci_segment.rs vmm: Rename PCI_MMIO_CONFIG_SIZE and move it to arch 2021-12-06 09:29:49 +00:00
seccomp_filters.rs vmm: Enable vDPA support 2022-03-18 12:28:40 +01:00
serial_buffer.rs vmm: Refactor serial buffer to allow flush on PTY when writable 2021-09-27 14:18:21 +01:00
serial_manager.rs vmm: Refactor serial buffer to allow flush on PTY when writable 2021-09-27 14:18:21 +01:00
sigwinch_listener.rs vmm: Fix panic in SIGWINCH listener thread when no seccomp filter set 2021-11-16 14:28:02 +00:00
vm.rs vmm: Add support for hotplugging a vDPA device 2022-03-18 12:28:40 +01:00