Bug 1804227
Summary: | qemu should prompt warning/error messages when using sev + virtio devices without specify iommu_platform=on | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Guo, Zhiyi <zhguo> |
Component: | qemu-kvm | Assignee: | Virtualization Maintenance <virt-maint> |
qemu-kvm sub component: | QMP Monitor and CLI | QA Contact: | zixchen |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | ailan, brijesh.singh, coli, ctatman, ddepaula, dgilbert, dyuan, ehadley, hhan, juzhang, lmen, virt-maint, xuzhang, yafu, zhguo |
Version: | 8.2 | Keywords: | TestOnly, Triaged |
Target Milestone: | rc | ||
Target Release: | 8.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-6.0.0-17.module+el8.5.0+11173+c9fce0bb | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-16 07:49:57 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: | 1818024, 1935445 |
Description
Guo, Zhiyi
2020-02-18 13:53:44 UTC
Upstream feature already present in qemu-6.0. Marked as TestOnly and moved directly to ON_QA The issue is no longger exits, set status to verified. Version: kernel-4.18.0-310.el8.x86_64 qemu-kvm-6.0.0-17.module+el8.5.0+11173+c9fce0bb.x86_64 Steps: 1.boot a SEV guest without adding iommu_platform=on, /usr/libexec/qemu-kvm \ -enable-kvm \ -cpu EPYC \ -smp 4 \ -m 4096 \ -overcommit mem-lock=on \ -object sev-guest,id=sev0,cbitpos=47,reduced-phys-bits=1,policy=0x3 \ -machine q35,confidential-guest-support=sev0,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \ -blockdev '{"driver":"file","filename":"/usr/share/edk2/ovmf/OVMF_CODE.cc.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \ -blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \ -blockdev '{"driver":"file","filename":"/usr/share/edk2/ovmf/OVMF_VARS.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \ -blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \ -device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x3 \ -device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x4 \ -device virtio-scsi-pci,id=scsi0,bus=pci.1,addr=0x0 \ -drive file=/home/rhel83_sev.qcow2,format=raw,if=none,id=drive-scsi0-0-0-0 \ -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scssi0-0-0-0 \ -device pcie-root-port,id=pcie-root-port-4,port=0x01,bus=pcie.0,chassis=4 \ -device virtio-net-pci,mac=52:56:00:00:00:11,id=net0,netdev=hostnet0,bus=pcie-root-port-4,addr=0x0,romfile="" \ -netdev tap,id=hostnet0 \ -device virtio-vga,id=video0,max_outputs=1,bus=pcie.0,addr=0x5 \ -vnc :0 \ -monitor stdio \ -qmp tcp:0:6666,server,nowait \ Result: guesy boots normally, without iommu_platform=on, network, hard disk and vga devices works well. #lspci -k 00:05.0 VGA compatible controller: Red Hat, Inc. Virtio GPU (rev 01) Subsystem: Red Hat, Inc. Device 1100 Kernel driver in use: virtio-pci 01:00.0 Ethernet controller: Red Hat, Inc. Virtio network device (rev 01) Subsystem: Red Hat, Inc. Device 1100 Kernel driver in use: virtio-pci 02:00.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI (rev 01) Subsystem: Red Hat, Inc. Device 1100 Kernel driver in use: virtio-pci 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 (virt:av bug fix and enhancement update), 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-2021:4684 |