blob: f1abe1c139000d018b6cd3c1df6d9db7484100a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
hvf: RDTSCP capability not passed to guests
Description of problem:
Steps to reproduce:
1. Run:
wget https://dl-cdn.alpinelinux.org/alpine/v3.15/releases/x86/alpine-standard-3.15.4-x86.iso
./qemu-system-x86_64 -cpu host,+rdtscp -machine q35,accel=hvf -m 512 -cdrom ./alpine-standard-3.15.4-x86.iso
2. login as "root"
3. type
cat /etc/cpuinfo | grep rdtscp
Expected result: cpu flag lines including rdtscp
Actual result: empty, with:
warning: host doesn't support requested feature: CPUID.80000001H:EDX.rdtscp [bit 27]
Additional information:
This patch apparently resolves the issue according to my tests:
https://lore.kernel.org/qemu-devel/20211101054836.21471-1-dirty@apple.com/
|