[KVM][CLX] CPUID_7_0_EDX_ARCH_CAPABILITIES is not enabled in VM.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Description of problem:
[KVM][CLX] CPUID_7_
How reproducible:
Upstream always, Ubuntu unknown.
Steps to Reproduce:
1. Boot up guest using: -cpu Cascadelake-Server
[root@clx-2s2 yexin]# qemu-system-x86_64 -accel kvm -drive if=virtio,
char device redirected to /dev/pts/3 (label serial0)
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:ECX [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:ECX [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:ECX [bit 4]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:ECX [bit 4]
2. To check CPU ID related to features[
Actual results:
Host's cpuid: 0x00000007 0x00: eax=0x00000000 ebx=0xd39ffffb ecx=0x00000818 edx=0xbc000000 (EDX bit 29=1)
Guest's cpuid : 0x00000007 0x00: eax=0x00000000 ebx=0xd19f0fb9 ecx=0x00000818 edx=0x84000000 (EDX bit 29=0)
Expected results:
Both host and guest's CPUID.07H EDX bit 29 should be 1.
Additional info:
Upstream 5.0 fixed, commit:
2bdb76c015df712
Kernel:
commit 2bdb76c015df712
Author: Xiaoyao Li <email address hidden>
Date: Fri Mar 8 15:57:20 2019 +0800
kvm/x86: Move MSR_IA32_
commit 0cf9135b773bf32
Author: Sean Christopherson <email address hidden>
Date: Thu Mar 7 15:43:02 2019 -0800
KVM: x86: Emulate MSR_IA32_
QEMU:
commit 014018e19b3c54d
Author: Eduardo Habkost <email address hidden>
Date: Fri Jan 25 20:06:06 2019 -0200
i386: Make arch_capabilities migratable
commit 485b1d256bcb087
Author: Eduardo Habkost <email address hidden>
Date: Fri Jan 25 20:06:05 2019 -0200
i386: kvm: Disable arch_capabilities if MSR can't be set
commit b0a1980384fc265
Author: Tao Xu <email address hidden>
Date: Thu Dec 27 10:43:03 2018 +0800
i386: Update stepping of Cascadelake-Server
commit aec5e9c3a94cf8b
Author: Bandan Das <email address hidden>
Date: Sun Nov 25 23:17:28 2018 -0500
kvm: Use KVM_GET_
commit 07585923485952b
Author: Robert Hoo <email address hidden>
Date: Mon Oct 15 12:47:24 2018 +0800
x86: Data structure changes to support MSR based features
commit f57bceb6ab5163d
Author: Robert Hoo <email address hidden>
Date: Mon Oct 15 12:47:23 2018 +0800
kvm: Add support to KVM_GET_
commit d86f963694df27f
Author: Robert Hoo <email address hidden>
Date: Mon Oct 15 12:47:25 2018 +0800
x86: define a new MSR based feature word – FEATURE_
commit c7a88b52f62b30c
Author: Tao Xu <email address hidden>
Date: Wed Sep 19 11:11:22 2018 +0800
i386: Add new model of Cascadelake-Server
commit 3fc7c73139d2d38
Author: Robert Hoo <email address hidden>
Date: Thu Jul 5 17:09:55 2018 +0800
i386: Add CPUID bit and feature words for IA32_ARCH_
commit 8a11c62da9146dd
Author: Robert Hoo <email address hidden>
Date: Thu Jul 5 17:09:58 2018 +0800
i386: Add new CPU model Icelake-
commit 8c80c99fcceabd0
Author: Robert Hoo <email address hidden>
Date: Thu Jul 5 17:09:54 2018 +0800
i386: Add new MSR indices for IA32_PRED_CMD and IA32_ARCH_
Isn't this qemu/kvm, instead of xen?