Stream: git-wasmtime

Topic: wasmtime / PR #7513 mpk: reenable MPK support with vendor...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 17:16):

abrown opened PR #7513 from abrown:pku-intel-check to bytecodealliance:main:

In #7446 I disabled MPK support temporarily due to failures in CI runs. Looking into this further in #7445, I discovered that it is due to how has_cpuid_bit_set works on different x86 machines: Intel's CPUID instruction reports support for MPK in a certain leaf bit, AMD does it some other (unknown?) way. The CI problem boiled down to occasional runs on AMD machines that would fail with SIGILL because the AMD machine reported that it had MPK support when it really did not. This change fixes the issue by first checking if the CPU vendor string is GenuineIntel before inspecting the MPK CPUID leaf bit.

Closes #7445.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 17:16):

abrown requested fitzgen for a review on PR #7513.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 17:16):

abrown requested wasmtime-core-reviewers for a review on PR #7513.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 17:48):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 17:48):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 17:48):

alexcrichton created PR review comment:

If you want to be super fancy this can be replaced with u32::from_le_bytes(*b"Genu")

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 18:26):

abrown submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 18:26):

abrown created PR review comment:

I like it... self-documenting code.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 18:27):

abrown updated PR #7513.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 18:27):

abrown has enabled auto merge for PR #7513.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 09 2023 at 19:42):

abrown merged PR #7513.


Last updated: Nov 22 2024 at 17:03 UTC