Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

RDTSCP instruction triggers "illegal instruction" for Linux container on macOS

オープン
#321 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
c, linux, macos

調査の方向性

まず、macOS Big Sur 上の Linux コンテナで RDTSCP の失敗を再現し、/proc/cpuinfo に報告されるプロセッサ機能とホストプロセッサの仕様を比較します。macOS の仮想化フレームワークで RDTSCP を公開できるか、または別の VM オプションが可能かを判断し、結論とサポートされている workaround を文書化します。

索引モデルが issue の本文から書いたものです。

説明

OS: Big Sur (11.5.2)

We're trying to use RDTSC and RDTSCP on Core i9 chip for ns-scale perf measurement.

RDTSC works fine.
RDTSCP is supported by the processor based on the spec, but inside the container /proc/cpuinfo doesn't have rdtscp flag, and trying to use it will cause illegal instruction error.

My guess is it's an issue/limitation of VM in macOS itself.
But given there's almost no doc about it, we cannot get any meaningful conclusion.

Can moby side help with some investigation, to see if it's fixable within macOS's own virtualization framework API.
And if not, is it possible to introduce other VM options?

主要言語
C
スター
3.7k
フォーク
336
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

moby/hyperkit のほかの issue

moby/hyperkit の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。