Bug 1501936

Summary: Qemu-2.10.0-4.fc27 reports: qemu-system-ppc64: Unable to set CPU compatibility mode in KVM: Invalid argument
Product: [Fedora] Fedora Reporter: Menanteau Guy <menantea>
Component: qemuAssignee: Fedora Virtualization Maintainers <virt-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: amit, berrange, cfergeau, crobinso, dwmw2, itamar, normand, pbonzini, rjones, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-18 23:11:08 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:    
Bug Blocks: 1071880    
Attachments:
Description Flags
qemu patch none

Description Menanteau Guy 2017-10-13 14:02:02 UTC
On f27 release (Fedora-Server-dvd-ppc64le-27-20171011.n.0.iso) if I run a qemu VM in a qemu VM, I got the error message:
qemu-system-ppc64: Unable to set CPU compatibility mode in KVM: Invalid argument

qemu seems working but the CAS (negotiation with the host for different architecture points) have not been done correctly and that could affect qemu in some ways.

A patch have already been done upstream, https://git.qemu.org/?p=qemu.git;a=commit;h=cc7b35b169e96600c09947a31c610c84a3eda3ff

I ported this patch on the qemu-2.10.0-4.fc27 
https://koji.fedoraproject.org/koji/taskinfo?taskID=22403366

This solve the problem and the patched qemu works fine.
I tried it on ppc64 and ppc64le only.

Comment 1 Menanteau Guy 2017-10-13 14:02:48 UTC
Created attachment 1338238 [details]
qemu patch

Comment 2 Cole Robinson 2017-10-19 15:21:52 UTC
Thanks for pointing out the commit, I'll push it shortly

Comment 3 Fedora Update System 2017-10-19 21:38:45 UTC
qemu-2.10.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8db9c497f9

Comment 4 Fedora Update System 2017-10-21 19:26:56 UTC
qemu-2.10.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8db9c497f9

Comment 5 Fedora Update System 2017-11-11 02:57:43 UTC
qemu-2.10.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.