Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support avx-vnni #8710

Open
haiwei-li opened this issue Aug 28, 2024 · 0 comments
Open

support avx-vnni #8710

haiwei-li opened this issue Aug 28, 2024 · 0 comments

Comments

@haiwei-li
Copy link
Contributor

ACRN hypervisor shall expose AVX-VNNI to any VM.

CPUID.(EAX=7H, ECX=1H):EAX.AVX-VNNI[4] = 1

execute instructiong VPDPBUSD, VPDPBUSDS, VPDPWSSD, VPDPWSSDS pass.

haiwei-li added a commit to haiwei-li/acrn-hypervisor that referenced this issue Sep 5, 2024
Per SDM, VPDPBUSD/VPDPBUSDS/VPDPWSSD/VPDPWSSDS instructions depend on
CPUID Feature Flag 'AVX-VNNI, AVX512_VNNI, AVX512VL'. 'AVX512_VNNI' and
'AVX512VL' are already exposed to any VM.

'AVX-VNNI' is in CPUID.(EAX=07H,ECX=1):EAX.AVX-VNNI[bit 4]. This patch
is to expose all the CPUID.EAX=07H features to VMs.

Mask corresponding bits if want to disable some features in the future.

Tracked-On: projectacrn#8710
Signed-off-by: Haiwei Li <[email protected]>
haiwei-li added a commit to haiwei-li/acrn-hypervisor that referenced this issue Sep 5, 2024
Per SDM, VPDPBUSD/VPDPBUSDS/VPDPWSSD/VPDPWSSDS instructions depend on
CPUID Feature Flag 'AVX-VNNI, AVX512_VNNI, AVX512VL'. 'AVX512_VNNI' and
'AVX512VL' are already exposed to any VM.

'AVX-VNNI' is in CPUID.(EAX=07H,ECX=1):EAX.AVX-VNNI[bit 4]. This patch
is to expose all the CPUID.EAX=07H features to VMs.

Mask corresponding bits if want to disable some features in the future.

Tracked-On: projectacrn#8710
Reviewed-by: Fei Li <[email protected]>
Signed-off-by: Haiwei Li <[email protected]>
haiwei-li added a commit to haiwei-li/acrn-hypervisor that referenced this issue Sep 9, 2024
Per SDM, VPDPBUSD/VPDPBUSDS/VPDPWSSD/VPDPWSSDS instructions depend on
CPUID Feature Flag 'AVX-VNNI, AVX512_VNNI, AVX512VL'. 'AVX512_VNNI' and
'AVX512VL' are already exposed to any VM.

'AVX-VNNI' is in CPUID.(EAX=07H,ECX=1):EAX.AVX-VNNI[bit 4]. This patch
is to expose all the CPUID.EAX=07H subleaf features to VMs.

Mask corresponding bits if want to disable some features in the future.

Tracked-On: projectacrn#8710
Reviewed-by: Fei Li <[email protected]>
Signed-off-by: Haiwei Li <[email protected]>
acrnsi-robot pushed a commit that referenced this issue Sep 9, 2024
Per SDM, VPDPBUSD/VPDPBUSDS/VPDPWSSD/VPDPWSSDS instructions depend on
CPUID Feature Flag 'AVX-VNNI, AVX512_VNNI, AVX512VL'. 'AVX512_VNNI' and
'AVX512VL' are already exposed to any VM.

'AVX-VNNI' is in CPUID.(EAX=07H,ECX=1):EAX.AVX-VNNI[bit 4]. This patch
is to expose all the CPUID.EAX=07H subleaf features to VMs.

Mask corresponding bits if want to disable some features in the future.

Tracked-On: #8710
Reviewed-by: Fei Li <[email protected]>
Signed-off-by: Haiwei Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant