commit:     4e1a0667c9be4b76c4eef62be717be4ba288a147
Author:     Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Fri Mar  6 06:40:30 2020 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Fri Mar  6 22:33:09 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e1a0667

app-emulation/xen: warn about credit2 scheduler instability

Bug: https://bugs.gentoo.org/710140
Closes: https://github.com/gentoo/gentoo/pull/14842
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 app-emulation/xen/xen-4.12.2.ebuild    | 9 +++++++++
 app-emulation/xen/xen-4.13.0-r1.ebuild | 9 +++++++++
 2 files changed, 18 insertions(+)

diff --git a/app-emulation/xen/xen-4.12.2.ebuild 
b/app-emulation/xen/xen-4.12.2.ebuild
index ec19a8729db..078c4ede678 100644
--- a/app-emulation/xen/xen-4.12.2.ebuild
+++ b/app-emulation/xen/xen-4.12.2.ebuild
@@ -153,4 +153,13 @@ pkg_postinst() {
        elog "You can optionally block the installation of /boot/xen-syms by an 
entry"
        elog "in folder /etc/portage/env using the portage's feature 
INSTALL_MASK"
        elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
+
+       ewarn
+       ewarn "Xen 4.12+ changed the default scheduler to credit2 which can 
cause"
+       ewarn "domU lockups on multi-cpu systems. The legacy credit scheduler 
seems"
+       ewarn "to work fine."
+       ewarn
+       ewarn "Add sched=credit to xen command line options to use the legacy 
scheduler."
+       ewarn
+       ewarn 
"https://wiki.gentoo.org/wiki/Xen#Xen_domU_hanging_with_Xen_4.12.2B";
 }

diff --git a/app-emulation/xen/xen-4.13.0-r1.ebuild 
b/app-emulation/xen/xen-4.13.0-r1.ebuild
index 2c03982f660..7da3187cee2 100644
--- a/app-emulation/xen/xen-4.13.0-r1.ebuild
+++ b/app-emulation/xen/xen-4.13.0-r1.ebuild
@@ -153,4 +153,13 @@ pkg_postinst() {
        elog "You can optionally block the installation of /boot/xen-syms by an 
entry"
        elog "in folder /etc/portage/env using the portage's feature 
INSTALL_MASK"
        elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
+
+       ewarn
+       ewarn "Xen 4.12+ changed the default scheduler to credit2 which can 
cause"
+       ewarn "domU lockups on multi-cpu systems. The legacy credit scheduler 
seems"
+       ewarn "to work fine."
+       ewarn
+       ewarn "Add sched=credit to xen command line options to use the legacy 
scheduler."
+       ewarn
+       ewarn 
"https://wiki.gentoo.org/wiki/Xen#Xen_domU_hanging_with_Xen_4.12.2B";
 }

Reply via email to