Bug 1686898
| Summary: | Enhance detection of host CPU model to avoid guesses based on fea.ture list length | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Jiri Denemark <jdenemar> |
| Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> |
| Status: | CLOSED ERRATA | QA Contact: | jiyan <jiyan> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 8.1 | CC: | dyuan, jdenemar, mvanderw, rbalakri, xuzhang, yafu, yalzhang |
| Target Milestone: | rc | Keywords: | Upstream |
| Target Release: | 8.0 | Flags: | knoel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-5.0.0-10.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1686895 | Environment: | |
| Last Closed: | 2019-08-07 10:41:10 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: | 1558558, 1686895 | ||
| Bug Blocks: | |||
|
Description
Jiri Denemark
2019-03-08 15:54:29 UTC
Verified this bug on libvirt-5.0.0-10.module+el8.0.1+3363+49e420ce.x86_64
Version:
libvirt-5.0.0-10.module+el8.0.1+3363+49e420ce.x86_64
qemu-kvm-3.1.0-27.module+el8.0.1+3253+c5371cb3.x86_64
kernel-4.18.0-80.el8.x86_64
Steps:
1. Check the cpuinfo in the output of "virsh capabilities" and "virsh domcapabilities"
# virsh capabilities
<capabilities>
<host>
<uuid>4f11c612-e27d-11e7-9a7d-0894ef59df54</uuid>
<cpu>
<arch>x86_64</arch>
<model>Broadwell</model>
...
# virsh domcapabilities
<cpu>
<mode name='host-passthrough' supported='yes'/>
<mode name='host-model' supported='yes'>
<model fallback='forbid'>Broadwell</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<feature policy='require' name='ss'/>
<feature policy='require' name='f16c'/>
...
</mode>
<mode name='custom' supported='yes'>
<model usable='yes'>qemu64</model>
...
</mode>
2. Prepare a shutdown VM with the following conf
# virsh domstate test
shut off
# virsh edit test
Domain test XML configuration not changed.
# virsh dumpxml test --inactive |grep "<cpu" -A3
<cpu mode='host-model' check='partial'>
<model fallback='allow'/>
</cpu>
3. Start the VM, check the xml and qemu cmd line.
# virsh start test
Domain test started
# virsh dumpxml test |grep "<cpu" -A20
<cpu mode='custom' match='exact' check='full'>
<model fallback='forbid'>Broadwell</model>
<vendor>Intel</vendor>
<feature policy='require' name='vme'/>
<feature policy='require' name='ss'/>
<feature policy='require' name='f16c'/>
<feature policy='require' name='rdrand'/>
<feature policy='require' name='hypervisor'/>
<feature policy='require' name='arat'/>
<feature policy='require' name='tsc_adjust'/>
<feature policy='require' name='umip'/>
<feature policy='require' name='xsaveopt'/>
<feature policy='require' name='pdpe1gb'/>
<feature policy='require' name='abm'/>
</cpu>
# ps -ef |grep test
qemu 6521 1 99 23:51 ? 00:00:19 /usr/libexec/qemu-kvm -name guest=test,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-2-test/master-key.aes -machine pc-i440fx-rhel7.6.0,accel=kvm,usb=off,vmport=off,dump-guest-core=off
-cpu Broadwell,vme=on,ss=on,f16c=on,rdrand=on,hypervisor=on,arat=on,tsc_adjust=on,umip=on,xsaveopt=on,pdpe1gb=on,abm=on,rtm=on,hle=on
...
The result is as expected, move this bug to be verified.
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. https://access.redhat.com/errata/RHBA-2019:2395 |