Skip to content

Instantly share code, notes, and snippets.

View pfactum's full-sized avatar

Oleksandr Natalenko pfactum

View GitHub Profile
[ 92.328648] BUG: soft lockup - CPU#2 stuck for 22s! [qemu-system-x86:3434]
[ 92.328653] Modules linked in: tun ctr ccm fuse rfcomm bnep uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media
sch_fq_codel xt_conntrack iptable_filter xt_TCPMSS xt_tcpudp iptable_mangle ipt_MASQUERADE bridge iptable_nat stp nf_conntrack_ipv4 llc
nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables nls_cp437 vfat fat x86_pkg_temp_thermal intel_powerclamp crct10dif_pclmul
crct10dif_common crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 rts5139(C) lrw gf128mul dell_wmi ath3k btusb
sparse_keymap glue_helper alx bluetooth arc4 ath9k ath9k_common ath9k_hw ath mac80211 cfg80211 ablk_helper wmi cryptd iTCO_wdt
iTCO_vendor_support dell_laptop psmouse(O) serio_raw rfkill dcdbas microcode mdio evdev snd_hda_codec_hdmi i2c_i801 lpc_ich mfd_core
snd_hda_codec_cirrus
[ 92.328717] snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_timer snd soundcore tcp_yeah tcp_v
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.13.1-pf Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
// ==UserScript==
// @name LORLocalDate
// @description Converts Moscow time to local time
// @namespace http://www.linux.org.ru/*
// @namespace https://www.linux.org.ru/*
// @include http://www.linux.org.ru/*
// @include https://www.linux.org.ru/*
// @author Oleksandr Natalenko aka post-factum
// @license Creative Commons Attribution 3.0 Unported
// @version 0.0.4
From 65caaf18dbf2374adc7cb6c78043c704961704d5 Mon Sep 17 00:00:00 2001
From: Oleksandr Natalenko <oleksandr@natalenko.name>
Date: Thu, 12 Dec 2013 16:58:39 +0200
Subject: [PATCH 1/3] ck-3.12: fix BFS compiling with CONFIG_SMP=n
---
kernel/sched/bfs.c | 5 -----
kernel/sched/bfs_sched.h | 8 ++++++++
2 files changed, 8 insertions(+), 5 deletions(-)
From e4ae645b04e0371de3f7a4a3c6adc3f65b9bd76c Mon Sep 17 00:00:00 2001
From: Oleksandr Natalenko <oleksandr@natalenko.name>
Date: Sun, 24 Nov 2013 11:31:46 +0200
Subject: [PATCH 2/3] ck-3.12: force disabling BOOTPARAM_HOTPLUG_CPU0 with BFS
enabled
---
arch/x86/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From 7ea760628522b0c37703c2ea9aab65b6514de065 Mon Sep 17 00:00:00 2001
From: Oleksandr Natalenko <oleksandr@natalenko.name>
Date: Sat, 8 Mar 2014 01:36:22 +0200
Subject: [PATCH 3/3] kvm: replace cond_resched() with schedule()
This commit tries to fix qemu CPU soft-lock while using
>=2 vCPU per guest with BFS enabled. The trick is stolen
from here:
https://bugzilla.redhat.com/show_bug.cgi?id=1038929#c5
---
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Power Button
/dev/input/event1: Sleep Button
/dev/input/event2: Lid Switch
/dev/input/event3: Power Button
/dev/input/event4: Video Bus
/dev/input/event5: AT Translated Set 2 keyboard
/dev/input/event6: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event7: HDA Intel PCH Headphone
DSDT @ 0xbaff1000
0000: 44 53 44 54 86 a2 00 00 02 21 44 45 4c 4c 20 20 DSDT.....!DELL
0010: 49 56 42 2d 43 50 54 00 00 00 00 00 49 4e 54 4c IVB-CPT.....INTL
0020: 09 11 06 20 08 53 53 31 5f 00 08 53 53 32 5f 00 ... .SS1_..SS2_.
0030: 08 53 53 33 5f 01 08 53 53 34 5f 01 08 49 4f 53 .SS3_..SS4_..IOS
0040: 54 0b ff ff 08 53 50 32 4f 0a 4e 08 53 50 31 4f T....SP2O.N.SP1O
0050: 0b 4e 16 08 49 4f 31 42 0b 00 06 08 49 4f 31 4c .N..IO1B....IO1L
0060: 0a 70 08 49 4f 32 42 0b 80 06 08 49 4f 32 4c 0a .p.IO2B....IO2L.
0070: 20 08 49 4f 33 42 0b 90 02 08 49 4f 33 4c 0a 10 .IO3B....IO3L..
0080: 08 53 50 33 4f 0a 2e 08 49 4f 34 42 0b 20 0a 08 .SP3O...IO4B. ..
// ==UserScript==
// @name LORLocalDate
// @description Converts Moscow time to local time
// @namespace http://www.linux.org.ru/*
// @namespace https://www.linux.org.ru/*
// @include http://www.linux.org.ru/*
// @include https://www.linux.org.ru/*
// @author Oleksandr Natalenko aka post-factum
// @license Creative Commons Attribution 3.0 Unported
// @version 0.0.4
/*
libpfrng — CPU jitter based random number generator
© 2013–2014, Oleksandr Natalenko aka post-factum <oleksandr@natalenko.name>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of