Bug 822616
Summary: | -cpu enforce with wrong cpu flags does not cause qemu-kvm process quit | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Eduardo Habkost <ehabkost> | |
Component: | qemu-kvm | Assignee: | Eduardo Habkost <ehabkost> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.0 | CC: | areis, bcao, ehabkost, huding, juzhang, knoel, mkenneth, tburke, virt-maint, xfu | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | upstream qemu-1.4.0 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 692374 | |||
: | 1055532 (view as bug list) | Environment: | ||
Last Closed: | 2014-06-13 09:26:47 UTC | Type: | --- | |
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: | ||||
Bug Blocks: | 822148, 1055532 |
Description
Eduardo Habkost
2012-05-17 15:44:08 UTC
Reproduce this bug using the following version: kernel-3.7.0-0.36.el7.x86_64 qemu-kvm-1.3.0-6.el7.x86_64 On SandyBridge host, add the flags of Haswell to the guest Steps to Reproduce: 1.<commandline> -cpu Penryn,+fma,enforce ( fma is the flag on Haswell cpu model) 2.<commandLine> -cpu Conroe,+hle,enforce ( hle is the flag on Haswell cpu model) 3.<commandLine> -cpu Nehalem,+avx2,enforce ( avx2 is the flag on Haswell cpu model) Actual results: After step1, 2, 3, the guest can boot and qemu-kvm is not quit. Verify this bug using the following version: kernel-3.10.0-67.el7.x86_64 qemu-kvm-1.5.3-38.el7.x86_64 Verification steps: 1.<commandline> -cpu Penryn,+fma,enforce ( fma is the flag on Haswell cpu model) 2.<commandLine> -cpu Conroe,+hle,enforce ( hle is the flag on Haswell cpu model) 3.<commandLine> -cpu Nehalem,+avx2,enforce ( avx2 is the flag on Haswell cpu model) Actual results: After step1, qemu-kvm quits with the info: (qemu) warning: host doesn't support requested feature: CPUID.01H:ECX.fma [bit 12] qemu-kvm: Host's CPU doesn't support requested features After step2, qemu-kv quits with the info: (qemu) warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] qemu-kvm: Host's CPU doesn't support requested features After step3, qemu-kvm quits with the info: (qemu) warning: host doesn't support requested feature: CPUID.07H:EBX.avx2 [bit 5] qemu-kvm: Host's CPU doesn't support requested features Hi, Eduardo, I also test a non-existing flag like "aaa" using qemu-kvm-1.5.3-38.el7.x86_64 The steps is: 1.<commandline> -cpu Penryn,+aaa,enforce The result is that qemu-kvm will not quit, guest can boot and qemu-kvm outputs the following info: (qemu) CPU feature aaa not found I think qemu-kvm should quit. If I'm wrong, please fix me. Thanks a lot. Best regards Huiqing (In reply to huiqingding from comment #3) > Hi, Eduardo, > > I also test a non-existing flag like "aaa" using qemu-kvm-1.5.3-38.el7.x86_64 > > The steps is: > 1.<commandline> -cpu Penryn,+aaa,enforce > > The result is that qemu-kvm will not quit, guest can boot and qemu-kvm > outputs the following info: > (qemu) CPU feature aaa not found > > I think qemu-kvm should quit. If I'm wrong, please fix me. Thanks a lot. qemu-kvm should quit, but this doesn't affect libvirt because libvirt never does that (and we don't support running qemu-kvm directly). So I opened a new bug for that: bug 1055532. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |