Bug 753860 - Fix kvm userspace compilation on RHEL-5 to match the kernel changes
Summary: Fix kvm userspace compilation on RHEL-5 to match the kernel changes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Novotny
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-14 17:33 UTC by Michal Novotny
Modified: 2014-02-02 22:38 UTC (History)
11 users (show)

Fixed In Version: kvm-83-245.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-21 03:15:18 UTC
Target Upstream Version:
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0149 0 normal SHIPPED_LIVE Moderate: kvm security and bug fix update 2012-02-21 07:24:43 UTC

Comment 4 FuXiangChun 2011-12-22 10:08:01 UTC
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-21 03:15:18 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.

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.