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 658891

Summary: [6.0.z FEAT] Port KVM bug fixes for cr_access to RHEL 6 [rhel-6.0.z]
Product: Red Hat Enterprise Linux 6 Reporter: RHEL Program Management <pm-rhel>
Component: kernelAssignee: Karen Noel <knoel>
Status: CLOSED ERRATA QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: aliguori, bcao, bsarathy, bugproxy, dhoward, dshaks, fhrbata, jjarvis, jmalanik, jwest, knoel, lihuang, michen, mwagner, nobody+PNT0273897, pm-eus, qcai, sbest, snagar, tburke, wquan
Target Milestone: rcKeywords: FutureFeature, ZStream
Target Release: ---   
Hardware: other   
OS: All   
Whiteboard:
Fixed In Version: kernel-2.6.32-71.17.1.el6 Doc Type: Enhancement
Doc Text:
Prior to this update, running context-switch intensive workloads on KVM guests resulted in a large number of exits (kvm_exit) due to control register (CR) accesses by the guest, thus, resulting in poor performance. This update includes a number of optimizations which allow the guest not to exit to the hypervisor in the aforementioned case and improve the overall performance.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-22 17:40:14 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: 645898    
Bug Blocks:    

Description RHEL Program Management 2010-12-01 15:05:26 UTC
This bug has been copied from bug #645898 and has been proposed
to be backported to 6.0 z-stream (EUS).

Comment 6 Mike Cao 2011-02-17 09:26:52 UTC
Compared the times kvm_exit entries due to cr_access between 2.6.32-71.15.1.el6.x86_64 and 2.6.32-71.17.1.el6.x86_64.

Test on following steps:
1.on the host 
#mount -t debugfs none /sys/kernel/debug
#echo 1 >/sys/kernel/debug/tracing/events/kvm/enable
2.start a linux guest (also tried start a windows guest with cpu load via vmprime.exe)
3.check how many times kvm_exit entries due to cr_access in 5 mins
#cat /sys/kernel/debug/tracing/trace_pipe|grep kvm_exit|grep cr_access|wc -l
following is the results :

/------------------------------------------------------\
|                          |  win08R2     |    rhel6   |
|--------------------------|--------------|------------|
|2.6.32-71.15.1.el6.x86_64 |    5825      |     6780   |
|--------------------------|--------------|------------|
|2.6.32-71.17.1.el6.x86_64 |    400       |      145   |
\------------------------------------------------------/

bcao---->avi

Is this the right way to verify this issue ?Does this issue has been fixed base on above?

Mike

Comment 7 Avi Kivity 2011-02-17 09:40:38 UTC
(In reply to comment #6)

> Is this the right way to verify this issue ?Does this issue has been fixed base
> on above?

Yes.

Comment 8 Miya Chen 2011-02-17 09:54:45 UTC
Change status to verified based on comment#6 and comment#7, and remove "OtherQA" keyword, thanks.

Comment 9 errata-xmlrpc 2011-02-22 17:40:14 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0283.html

Comment 10 Martin Prpič 2011-02-23 15:04:40 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Prior to this update, running context-switch intensive workloads on KVM guests resulted in a large number of exits (kvm_exit) due to control register (CR) accesses by the guest, thus, resulting in poor performance. This update includes a number of optimizations which allow the guest not to exit to the hypervisor in the aforementioned case and improve the overall performance.

Comment 11 Suzanne Forsberg 2011-04-20 18:26:27 UTC
*** Bug 683788 has been marked as a duplicate of this bug. ***