Bug 1746281

Summary: qemu-kvm-rhev: backport cpuidle-haltpoll support [rhel-7.6.z]
Product: Red Hat Enterprise Linux 7 Reporter: RAD team bot copy to z-stream <autobot-eus-copy>
Component: qemu-kvm-rhevAssignee: Marcelo Tosatti <mtosatti>
Status: CLOSED ERRATA QA Contact: Yumei Huang <yuhuang>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.8CC: chayang, hhuang, jinzhao, juzhang, mtessun, mtosatti, ppandit, virt-maint
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-rhev-2.12.0-18.el7_6.8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1734502 Environment:
Last Closed: 2020-03-05 15:04:52 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: 1734502, 1759283    
Bug Blocks:    

Description RAD team bot copy to z-stream 2019-08-28 07:25:46 UTC
This bug has been copied from bug #1734502 and has been proposed to be backported to 7.6 z-stream (EUS).

Comment 5 Yumei Huang 2020-02-13 09:29:32 UTC
Verify:
qemu-kvm-rhev-2.12.0-18.el7_6.8
kernel-3.10.0-957.46.1.el7.x86_64 (both guest and host)

Steps:

1) Enable tracing on both src and dst host

# cd /sys/kernel/debug/tracing
# echo "kvm_msr" > set_event
# echo "ecx==0x4b564d05" > events/kvm/kvm_msr/filter
# echo > trace


2) Boot guest with "-cpu Haswell-noTSX,+kvm-poll-control" on src host


3) Load cpuidle-haltpoll driver inside guest

# modprobe cpuidle-haltpoll


4) Run "rdmsr 0x4b564d05" inside guest, cat trace on src host

# rdmsr 0x4b564d05
0

# cat trace
...
           <...>-65637 [004] .... 91836.781567: kvm_msr: msr_write 4b564d05 = 0x0
           <...>-65613 [015] .... 91843.430754: kvm_msr: msr_read 4b564d05 = 0x0


5) Migrate guest to dst host


6) Run "rdmsr 0x4b564d05" inside guest, cat trace on dst host

# rdmsr 0x4b564d05
0

# cat trace
...
        qemu-kvm-16538 [003] ....  8611.418674: kvm_msr: msr_read 4b564d05 = 0x0




Repeat above steps without loading cpuidle-haltpoll driver, rdmsr 0x4b564d05 returns 1 inside guest before and after migration.

Comment 7 errata-xmlrpc 2020-03-05 15:04:52 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-2020:0730