Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37729109
en ru br
ALT Linux repos
S:3.18.0-alt7

Group :: Emulators
RPM: kvmtool

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: terminal_late_fix.patch
Download


diff --git a/term.c b/term.c
index 9763211..dec0d79 100644
--- a/term.c
+++ b/term.c
@@ -202,10 +202,16 @@ static int term_init(struct kvm *kvm)
 
 	return 0;
 }
-dev_init(term_init);
+// temporary fix to delay term_init to prevent races between term-poll 
+// and threadpool console RX workers
+// TODO: refactor to synchronize these threads with global cdev.poll_cond/mutex/vq_ready
+// with poll_cond properly initialized earlier
+//dev_init(term_init);
+firmware_init(term_init);
 
 static int term_exit(struct kvm *kvm)
 {
 	return 0;
 }
-dev_exit(term_exit);
+//dev_exit(term_exit);
+firmware_exit(term_exit);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin