Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1744415

Summary: Backport support for count cache flush Spectre v2 mitigation [slow train]
Product: Red Hat Enterprise Linux 8 Reporter: Sam Bobroff (IBM) <sbobroff>
Component: qemu-kvmAssignee: Sam Bobroff (IBM) <sbobroff>
Status: CLOSED ERRATA QA Contact: Yihuang Yu <yihyu>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.1CC: bugproxy, chayang, coli, dgibson, fnovak, hannsj_uhl, jinzhao, juzhang, knoel, lvivier, ngu, qzhang, rbalakri, virt-maint, wchadwic, yihyu
Target Milestone: rcKeywords: Patch
Target Release: 8.1Flags: pm-rhel: mirror+
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-2.12.0-86.module+el8.1.0+4146+4ed2d185 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:51:11 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: 1624641    

Description Sam Bobroff (IBM) 2019-08-22 06:49:03 UTC
Backport support for the QEMU machine option 'cap-ibs=workaround'.

Comment 6 Laurent Vivier 2019-08-29 07:42:59 UTC
QE,

when you will verify this BZ, please check the migration of pseries-rhel7.6.0 machine type between RHEL-7.6.0 and RHEL-8.1.0 works well.

Comment 11 Yihuang Yu 2019-09-05 02:55:26 UTC
migration test:
RHEL8.1 host:
kernel version: 4.18.0-141.el8.ppc64le
qemu version: qemu-kvm-2.12.0-86.module+el8.1.0+4146+4ed2d185.ppc64le

RHEL7.6 host:
kernel version: 3.10.0-957.27.2.el7.ppc64le
qemu version: qemu-kvm-rhev-2.12.0-18.el7_6.7.ppc64le

guest: RHEL7.7 kernel-3.10.0-1062.1.1.el7.ppc64le

src qemu command:
/usr/libexec/qemu-kvm     -name 'avocado-vt-vm1'     -machine pseries-rhel7.6.0      -nodefaults     -device VGA,bus=pci.0,addr=0x2      -chardev socket,id=qmp_id_qmpmonitor1,path=/var/tmp/monitor-qmpmonitor1,server,nowait     -mon chardev=qmp_id_qmpmonitor1,mode=control      -chardev socket,id=qmp_id_catch_monitor,path=/var/tmp/monitor-catch_monitor,server,nowait     -mon chardev=qmp_id_catch_monitor,mode=control      -chardev socket,id=serial_id_serial0,path=/var/tmp/serial-serial0,server,nowait     -device spapr-vty,reg=0x30000000,chardev=serial_id_serial0     -device qemu-xhci,id=usb1,bus=pci.0,addr=0x3     -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=0x4     -drive id=drive_image1,if=none,snapshot=off,aio=threads,cache=none,format=qcow2,file=/home/share/rhel77-ppc64le-virtio-scsi.qcow2     -device scsi-hd,id=image1,drive=drive_image1     -device virtio-net-pci,mac=9a:a1:a2:a3:a4:a5,id=idz44VEg,vectors=4,netdev=idjHoD0w,bus=pci.0,addr=0x5      -netdev tap,id=idjHoD0w,vhost=on     -m 8192      -smp 4,maxcpus=4,cores=2,threads=1,sockets=2     -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1      -vnc :0      -rtc base=utc,clock=host      -boot order=cdn,once=c,menu=off,strict=off     -enable-kvm     -monitor stdio

dst qemu command:
/usr/libexec/qemu-kvm     -name 'avocado-vt-vm1'     -machine pseries-rhel7.6.0      -nodefaults     -device VGA,bus=pci.0,addr=0x2      -chardev socket,id=qmp_id_qmpmonitor1,path=/var/tmp/monitor-qmpmonitor1,server,nowait     -mon chardev=qmp_id_qmpmonitor1,mode=control      -chardev socket,id=qmp_id_catch_monitor,path=/var/tmp/monitor-catch_monitor,server,nowait     -mon chardev=qmp_id_catch_monitor,mode=control      -chardev socket,id=serial_id_serial0,path=/var/tmp/serial-serial0,server,nowait     -device spapr-vty,reg=0x30000000,chardev=serial_id_serial0     -device qemu-xhci,id=usb1,bus=pci.0,addr=0x3     -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=0x4     -drive id=drive_image1,if=none,snapshot=off,aio=threads,cache=none,format=qcow2,file=/home/share/rhel77-ppc64le-virtio-scsi.qcow2     -device scsi-hd,id=image1,drive=drive_image1     -device virtio-net-pci,mac=9a:a1:a2:a3:a4:a5,id=idz44VEg,vectors=4,netdev=idjHoD0w,bus=pci.0,addr=0x5      -netdev tap,id=idjHoD0w,vhost=on     -m 8192      -smp 4,maxcpus=4,cores=2,threads=1,sockets=2     -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1      -vnc :0      -rtc base=utc,clock=host      -boot order=cdn,once=c,menu=off,strict=off     -enable-kvm     -monitor stdio -incoming tcp:0:5200

I tested the migration between RHEL8.1 and RHEL7.6 (RHEL8.1 <-> RHEL7.6), can migrate successfully.

Comment 12 Yihuang Yu 2019-09-05 03:01:58 UTC
Part 1:
Acceptance Testing for qemu-kvm-2.12.0-86.module+el8.1.0+4146+4ed2d185:
Result: PASS as no Critical Regression or TestBlocker found

Test Environment:
Host Distro: RHEL-8.1.0-20190903.1 BaseOS ppc64le
Host Kernel: kernel-4.18.0-141.el8.ppc64le
Qemu-kvm: qemu-kvm-2.12.0-86.module+el8.1.0+4146+4ed2d185.ppc64le
SLOF: SLOF-20171214-6.gitfa98132.module+el8.1.0+4066+0f1aadab.noarch

Results Analysis:
From 108 tests executed, 103 passed and 0 warned - success rate of 95.37% (excluding SKIP and CANCEL)
5 cases failed by the automated script issue

New bugs(0):
Existing bugs(0):

Result link:
http://10.0.136.47/3764259/results.html

Part 2:
pseries-rhel7.6.0.cap-sbbc=string (Speculation Barrier Bounds Checking (broken, workaround, fixed))
pseries-rhel7.6.0.cap-ibs=string (Indirect Branch Speculation (broken, workaround, fixed-ibs,fixed-ccd, fixed-na))
pseries-rhel7.6.0.cap-cfpc=string (Cache Flush on Privilege Change (broken, workaround, fixed))

# /usr/libexec/qemu-kvm -M pseries-rhel7.6.0
VNC server running on ::1:5900

# /usr/libexec/qemu-kvm -M pseries-rhel7.6.0,cap-sbbc=workaround,cap-ibs=workaround,cap-cfpc=workaround
VNC server running on ::1:5900

# /usr/libexec/qemu-kvm -M pseries-rhel7.6.0,cap-ibs=fixed-ccd
VNC server running on ::1:5900

Comment 13 Yihuang Yu 2019-09-05 03:07:52 UTC
According to comment 11 and comment 12, change bug status to 'VERIFIED'

Comment 15 errata-xmlrpc 2019-11-05 20:51:11 UTC
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/RHSA-2019:3345