Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 753860 - Fix kvm userspace compilation on RHEL-5 to match the kernel changes
Fix kvm userspace compilation on RHEL-5 to match the kernel changes
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm (Show other bugs)
5.8
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Michal Novotny
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-14 12:33 EST by Michal Novotny
Modified: 2014-02-02 17:38 EST (History)
11 users (show)

See Also:
Fixed In Version: kvm-83-245.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-20 22:15:18 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed patch (1.81 KB, patch)
2011-11-14 12:34 EST, Michal Novotny
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0149 normal SHIPPED_LIVE Moderate: kvm security and bug fix update 2012-02-21 02:24:43 EST

  None (edit)
Comment 4 FuXiangChun 2011-12-22 05:08:01 EST
1.reproduce with kvm-243

steps to reproduce 

1.1) review kvm-243 source code(kvm-userspace-rhel5/kernel/external-module-compat.c)

 > ts.tv_sec = div_long_long_rem_signed(nsec, NSEC_PER_SEC, &ts.tv_nsec); 
 > if (unlikely(nsec < 0))
 > kvm_set_normalized_timespec(&ts, ts.tv_sec, ts.tv_nsec);

1.2) compile kvm-243
   /root/kvm-userspace-rhel5/kernel/x86/../external-module-compat.c:284: warning: ‘kvm_set_normalized_timespec’ defined but not used

actual result:
  broke the compilation of the KVM userspac

2. verify with kvm-246
  
 steps to verify:
2.1)review kvm-246 source code
  <     s32 rem;
  <     ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem);
  <     if (unlikely(rem < 0)) {
  <           ts.tv_sec--;
  <           rem += NSEC_PER_SEC;
  <      }
  <     ts.tv_nsec = rem;

2.2)compile kvm-246
 
actual result:
   compile successfully,and make install successfully too.

base on above testing result, I think this bug is fixed.
Comment 6 errata-xmlrpc 2012-02-20 22:15:18 EST
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.

http://rhn.redhat.com/errata/RHSA-2012-0149.html

Note You need to log in before you can comment on or make changes to this bug.