Bug 814426
Summary: | "rdtscp" flag defined on SandyBridge and Opteron models, but not supported by the kernel | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Eduardo Habkost <ehabkost> | |
Component: | qemu-kvm | Assignee: | Eduardo Habkost <ehabkost> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 6.3 | CC: | acathrow, areis, bsarathy, chayang, dyasny, flang, juzhang, michen, minovotn, mkenneth, qzhang, shu, sluo, virt-maint, xfu | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-0.12.1.2-2.310.el6 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 813132 | |||
: | 1004299 (view as bug list) | Environment: | ||
Last Closed: | 2013-02-21 07:34:06 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 833152 | |||
Bug Blocks: | 692374, 833129, 841379, 1004299 |
Description
Eduardo Habkost
2012-04-19 20:36:16 UTC
verify this issue with qemu-kvm-0.12.1.2-2.329.el6.x86_64 and kernel 2.6.32-335.el6.x86_64(host and guest) rdtscp flag is located 0x80000001 EDX[27] Testing result via x86info tool 1.Haswell host: Boot guest with -M rhel6.4.0 -cpu Haswell guest: eax in: 0x80000001, eax = 000306c1 ebx = 00000000 ecx = 00000001 edx = 20100800 host: eax in: 0x80000001, eax = 00000000 ebx = 00000000 ecx = 00000021 edx = 2c100800 2.SandyBridge host Boot guest with -M rhel6.4.0 -cpu SandyBridge guest: eax in: 0x80000001, eax = 000206a1 ebx = 00000000 ecx = 00000001 edx = 20100800 host: eax in: 0x80000001, eax = 00000000 ebx = 00000000 ecx = 00000001 edx = 28100800 Base on testing result above, I think this bug is not fixed. This is the expected result. We have followed the first approach mentioned on comment #0 -- the rdtscp flag was removed from all CPU models to reflect reality because it is not supported by the RHEL-6 kernel. (In reply to comment #3) > This is the expected result. We have followed the first approach mentioned > on comment #0 -- the rdtscp flag was removed from all CPU models to reflect > reality because it is not supported by the RHEL-6 kernel. I had a little confused. 1. expected result "rdtscp should expose to guest" in comment #0 2. can find "rdtscp" from cpuinfo on host, indicate rhel6 kernel support this flag(this is my understand). 3. If remove this flag from all CPU models, It should be removed from dump,right? (In reply to comment #4) > (In reply to comment #3) > > This is the expected result. We have followed the first approach mentioned > > on comment #0 -- the rdtscp flag was removed from all CPU models to reflect > > reality because it is not supported by the RHEL-6 kernel. > > I had a little confused. > > 1. expected result "rdtscp should expose to guest" in comment #0 It should be exposed if it's set on the CPU models. There were two possible solutions: add rdtscp support to the kernel, or remove the flag from the CPU models to reflect what's actually being exposed to guests when using RHEL-6.3 qemu-kvm. We chose the second approach. > 2. can find "rdtscp" from cpuinfo on host, indicate rhel6 kernel support > this flag(this is my understand). No, the KVM kernel code has to support it too, and the RHEL-6 KVM kernel code doesn't support exposing rdtscp to guests. That's what makes the rdtscp flag not appear to the guest (as the flags are filtered according to the host CPU + host kernel capabilities[1]). [1] The filtering should be reported by -cpu check/enforce, and the existing bug on -cpu check/enforce is being tracked at bug 692374. > 3. If remove this flag from all CPU models, It should be removed from > dump,right? It should have been removed from the CPU model dump ("-cpu ?dump"), but -cpu ?dump doesn't exist anymore. The flag removal is only visible by looking at the CPU model definitions in the C code at qemu-kvm/target-i386/cpuid.c. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0527.html |