Bug 1326928 - Back-port patches of smaller features for RHELSA 7.3
Summary: Back-port patches of smaller features for RHELSA 7.3
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel-aarch64
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Wei Huang (AMD)
QA Contact: Erico Nunes
URL:
Whiteboard:
Depends On:
Blocks: 1174832 1330684
TreeView+ depends on / blocked
 
Reported: 2016-04-13 19:06 UTC by Wei Huang (AMD)
Modified: 2016-11-03 22:38 UTC (History)
9 users (show)

Fixed In Version: kernel-aarch64-4.5.0-0.38.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1330684 (view as bug list)
Environment:
Last Closed: 2016-11-03 22:38:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2145 0 normal SHIPPED_LIVE kernel-aarch64 bug fix and enhancement update 2016-11-03 13:11:35 UTC

Description Wei Huang (AMD) 2016-04-13 19:06:02 UTC
RHELSA 7.3 will be based on Linux 4.5. We are asked to backport KVM patches from Linux 4.6 and 4.7 (whichever versions applicable). So far we have divided the target patches based on sub-components (e.g. PMU, VHE, VGIC optimization, etc) and we have created BZs for each sub-component. There are still smaller patches that are required for RHELSA 7.3. This BZ is created to capture all of them.

Related:
BZ1260100, BZ1290593, BZ1326893, BZ1326920

Comment 2 Andrew Jones 2016-04-18 17:32:54 UTC
More fixes to take

 57c841f131ef2 arm/arm64: KVM: Handle out-of-RAM cache maintenance as a NOP
 1c5631c73fc22 KVM: arm/arm64: Handle forward time correction gracefully
 b2740d3533a3f KVM: ensure __gfn_to_pfn_memslot initializes *writable

Patches I think we should take for context

 13720a56edbd8 arm64: KVM: Move kvm/hyp/hyp.h to include/asm/kvm_hyp.h
 6d50d54cd80cb arm64: KVM: Move vgic-v2 and timer save/restore to virt/kvm/arm/hyp
 21a4179ce0a12 arm64: KVM: Move __cpu_init_stage2 after kvm_call_hyp
 22b39ca3f22ac arm64: KVM: Move kvm_call_hyp back to its original localtion

A patch that isn't a fix, but looks like a good idea

 6b6de68c63eda KVM: halt_polling: improve grow/shrink setting

Comment 4 Mark Langsdorf 2016-05-19 19:28:20 UTC
Moving this bug back to ON_QA and hopefully we're done with it.

Comment 5 Andrew Jones 2016-07-28 13:48:58 UTC
Note, we changed our minds about backporting b2740d3533a3f, 22b39ca3f22ac, and 6b6de68c63eda from the list in comment 2, so they are not in the patch series posted for this BZ.

Comment 6 Erico Nunes 2016-08-02 14:18:24 UTC
Verified this by running some basic tests with libvirt/kvm on hp-moonshot-02-c11.khw.lab.eng.bos.redhat.com, kernel 4.5.0-0.48.el7.aarch64.

(In reply to Andrew Jones from comment #2)
>  57c841f131ef2 arm/arm64: KVM: Handle out-of-RAM cache maintenance as a NOP
>  1c5631c73fc22 KVM: arm/arm64: Handle forward time correction gracefully

These were ported as the following new commits to rhelsa7:
ebc5d8e arm/arm64: KVM: Handle out-of-RAM cache maintenance as a NOP
a14c9b6 KVM: arm/arm64: Handle forward time correction gracefully

These have been sanity tested by installing and running RHEL on a guest system created with virt-install on the moonshot. To test 1c5631c73fc22, time adjustments were forced in the host with "date -s". The guest was observed to keep running, no warnings or unexpected behaviour was observed.

[root@hp-moonshot-02-c11 ~]# uname -r
4.5.0-0.48.el7.aarch64
[root@hp-moonshot-02-c11 ~]# systemctl stop chronyd
[root@hp-moonshot-02-c11 ~]# date
Tue Aug  2 10:11:02 EDT 2016
[root@hp-moonshot-02-c11 ~]# date -s 08:00
Tue Aug  2 08:00:00 EDT 2016
[root@hp-moonshot-02-c11 ~]# date -s 12:00
Tue Aug  2 12:00:00 EDT 2016
[root@hp-moonshot-02-c11 ~]# systemctl restart chronyd
[root@hp-moonshot-02-c11 ~]# virsh list
 Id    Name                           State
----------------------------------------------------
 5     rhel-7.3                       running

[root@hp-moonshot-02-c11 ~]# date
Tue Aug  2 10:13:59 EDT 2016
[root@hp-moonshot-02-c11 ~]# virsh console rhel-7.3
Connected to domain rhel-7.3
Escape character is ^]

[root@localhost ~]# uname -r
4.5.0-0.48.el7.aarch64


>  b2740d3533a3f KVM: ensure __gfn_to_pfn_memslot initializes *writable

This patch was dropped per comment #5.


>  13720a56edbd8 arm64: KVM: Move kvm/hyp/hyp.h to include/asm/kvm_hyp.h
>  6d50d54cd80cb arm64: KVM: Move vgic-v2 and timer save/restore to
> virt/kvm/arm/hyp
>  21a4179ce0a12 arm64: KVM: Move __cpu_init_stage2 after kvm_call_hyp

These were ported as the following new commits to rhelsa7:
70777c0 arm64: KVM: Move kvm/hyp/hyp.h to include/asm/kvm_hyp.h
2268d32 arm64: KVM: Move vgic-v2 and timer save/restore to virt/kvm/arm/hyp
c111c3c arm64: perf: Move PMU register related defines to asm/perf_event.h

As they are only moving code around, they were only verified to be present in our rhelsa7 tree.


>  22b39ca3f22ac arm64: KVM: Move kvm_call_hyp back to its original localtion
>  6b6de68c63eda KVM: halt_polling: improve grow/shrink setting

These were also dropped per comment #5.

Comment 8 errata-xmlrpc 2016-11-03 22:38:59 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://rhn.redhat.com/errata/RHBA-2016-2145.html


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