Glauber Costa
c169998802
v3: don't call reset functions on cpu initialization
...
There is absolutely no need to call reset functions when initializing
devices. Since we are already registering them, calling qemu_system_reset()
should suffice. Actually, it is what happens when we reboot the machine,
and using the same process instead of a special case semantics will even
allow us to find bugs easier.
Furthermore, the fact that we initialize things like the cpu quite early,
leads to the need to introduce synchronization stuff like qemu_system_cond.
This patch removes it entirely. All we need to do is call qemu_system_reset()
only when we're already sure the system is up and running
I tested it with qemu (with and without io-thread) and qemu-kvm, and it
seems to be doing okay - although qemu-kvm uses a slightly different patch.
[ v2: user mode still needs cpu_reset, so put it in ifdef. ]
[ v3: leave qemu_system_cond for now. ]
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2009-11-07 08:06:58 +00:00
..
2009-11-07 08:06:58 +00:00
2009-08-27 20:43:28 -05:00
2009-10-27 12:28:41 -05:00
2009-06-29 14:18:08 -05:00
2009-09-11 10:19:52 -05:00
2009-08-27 20:43:28 -05:00
2009-07-16 20:47:01 +00:00
2009-10-01 16:12:16 -05:00
2009-10-13 18:56:27 +00:00
2009-11-07 08:06:58 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-05-08 02:35:15 +01:00
2009-10-07 08:54:54 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-08-27 20:43:28 -05:00
2009-10-07 08:54:54 -05:00
2009-05-12 12:33:04 +01:00
2009-10-12 09:42:31 -05:00
2009-10-30 08:39:31 -05:00
2009-10-30 08:39:31 -05:00
2009-08-27 20:43:28 -05:00
2009-07-27 14:09:21 -05:00
2009-07-16 20:47:01 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-09-09 14:55:17 -05:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-07-16 20:47:01 +00:00
2009-10-01 16:12:16 -05:00
2009-07-16 20:47:01 +00:00
2008-12-13 09:32:43 +00:00
2009-05-08 16:11:38 -05:00
2009-05-08 16:11:38 -05:00
2009-10-30 08:39:29 -05:00
2009-05-18 22:24:22 +02:00
2009-10-24 16:20:32 +00:00
2009-09-10 19:59:00 +04:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:41 -05:00
2009-05-14 22:35:09 +01:00
2009-10-05 09:32:36 -05:00
2009-10-27 12:29:01 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-07-16 20:47:01 +00:00
2009-11-07 08:06:58 +00:00
2009-05-10 01:44:56 +01:00
2009-10-24 15:27:28 +00:00
2009-10-27 12:28:52 -05:00
2009-10-27 12:28:52 -05:00
2009-10-01 16:12:16 -05:00
2009-10-06 14:36:08 -05:00
2009-08-27 20:43:28 -05:00
2009-10-24 16:09:01 +00:00
2009-10-01 16:12:16 -05:00
2009-10-24 16:34:21 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:29:01 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-12 09:42:31 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:49 -05:00
2009-10-05 09:32:49 -05:00
2009-03-28 16:17:50 +00:00
2009-10-01 16:12:16 -05:00
2009-07-16 20:47:01 +00:00
2004-11-07 18:04:02 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-07 08:54:54 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-09-18 14:04:36 +04:00
2008-01-14 22:09:11 +00:00
2008-06-08 01:42:47 +00:00
2009-09-10 19:48:00 +04:00
2008-01-14 22:09:11 +00:00
2009-10-01 16:12:16 -05:00
2009-10-12 09:42:31 -05:00
2009-11-07 08:06:58 +00:00
2009-10-27 12:28:57 -05:00
2009-10-07 08:54:54 -05:00
2009-10-05 09:32:39 -05:00
2009-11-07 08:06:58 +00:00
2009-09-11 11:10:06 -05:00
2009-10-01 16:12:16 -05:00
2009-10-07 08:54:54 -05:00
2009-10-01 16:12:16 -05:00
2009-10-24 19:39:17 +00:00
2009-02-11 15:21:04 +00:00
2009-02-11 15:21:04 +00:00
2009-10-01 16:12:16 -05:00
2009-10-07 08:54:54 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:52 -05:00
2009-10-05 09:32:39 -05:00
2009-10-30 08:39:29 -05:00
2009-10-30 08:39:29 -05:00
2009-10-27 12:28:57 -05:00
2009-10-24 19:22:56 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-05-10 01:44:56 +01:00
2009-10-05 09:32:44 -05:00
2009-08-27 20:43:28 -05:00
2009-10-05 09:32:38 -05:00
2009-10-27 12:28:43 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:29:01 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-05-26 21:10:38 +02:00
2007-11-17 17:14:51 +00:00
2009-10-15 19:49:11 +02:00
2009-10-12 09:42:31 -05:00
2009-10-01 16:12:16 -05:00
2009-10-12 09:42:31 -05:00
2009-09-11 10:19:52 -05:00
2009-05-19 14:52:42 +01:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:29:01 -05:00
2009-10-01 16:12:16 -05:00
2009-10-30 08:39:34 -05:00
2009-10-05 09:32:52 -05:00
2009-09-11 10:19:48 -05:00
2009-09-11 10:19:48 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:41 -05:00
2009-07-27 14:08:23 -05:00
2009-10-27 12:28:53 -05:00
2009-10-27 12:28:53 -05:00
2009-10-27 12:28:53 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-09-21 18:11:34 +00:00
2009-10-04 13:24:45 +02:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-07-27 14:09:21 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:42 -05:00
2009-10-30 09:42:36 -05:00
2009-10-27 12:28:43 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:47 -05:00
2009-10-27 12:28:57 -05:00
2009-10-27 12:28:51 -05:00
2009-10-06 14:36:09 -05:00
2009-10-01 16:12:16 -05:00
2009-09-04 09:37:27 -05:00
2009-10-27 12:28:52 -05:00
2009-10-27 12:28:52 -05:00
2009-05-14 03:20:43 +04:00
2009-10-12 09:42:31 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-11-07 08:06:58 +00:00
2009-11-07 08:06:58 +00:00
2007-06-13 22:36:30 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-07-27 14:09:21 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-05-21 18:54:22 +03:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:53 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-12 09:42:31 -05:00
2009-10-12 09:42:31 -05:00
2009-10-06 14:36:10 -05:00
2009-10-12 09:42:31 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:53 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-06-03 15:16:49 +01:00
2009-10-05 09:32:37 -05:00
2008-12-13 09:32:43 +00:00
2009-10-05 09:32:36 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-09-21 18:11:34 +00:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:38 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:38 -05:00
2009-10-30 08:39:30 -05:00
2009-10-30 08:39:30 -05:00
2009-10-12 09:42:31 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:53 -05:00
2009-11-07 08:06:58 +00:00
2009-09-18 14:04:36 +04:00
2009-10-24 20:08:43 +00:00
2009-10-07 08:54:54 -05:00
2009-10-14 18:31:02 +00:00
2009-10-05 09:32:46 -05:00
2009-10-05 09:32:49 -05:00
2009-10-01 16:12:16 -05:00
2009-11-03 15:28:19 +01:00
2009-10-01 16:12:16 -05:00
2009-11-07 08:06:58 +00:00
2009-10-01 16:12:16 -05:00
2006-04-27 21:32:09 +00:00
2009-02-07 15:18:14 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-05-13 17:53:17 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-24 19:44:37 +00:00
2009-10-24 15:27:23 +00:00
2009-10-24 17:35:13 +00:00
2008-12-13 09:32:43 +00:00
2009-10-01 16:12:16 -05:00
2009-09-20 14:58:02 +00:00
2009-04-17 18:59:56 +00:00
2009-08-27 20:43:28 -05:00
2009-10-05 09:32:37 -05:00
2009-10-05 09:32:37 -05:00
2009-10-27 12:28:40 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-24 19:35:32 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:38 -05:00
2009-08-27 20:43:28 -05:00
2009-08-27 20:43:28 -05:00
2009-10-07 08:54:54 -05:00
2009-08-27 20:43:28 -05:00
2009-10-27 12:28:41 -05:00
2008-12-13 09:32:43 +00:00
2009-10-27 12:28:41 -05:00
2009-10-24 19:49:15 +00:00
2009-10-27 12:28:39 -05:00
2009-10-01 16:12:16 -05:00
2009-10-24 09:15:22 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:40 -05:00
2009-10-27 12:28:40 -05:00
2009-05-14 23:11:09 +01:00
2009-10-07 08:54:54 -05:00
2009-10-01 16:12:16 -05:00
2009-07-16 20:47:01 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-25 15:04:43 +00:00
2009-10-05 09:32:38 -05:00
2009-10-01 16:12:16 -05:00
2009-09-21 18:11:34 +00:00
2009-09-11 10:19:52 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:39 -05:00
2009-10-07 08:54:54 -05:00
2009-10-05 09:32:48 -05:00
2009-10-30 08:39:32 -05:00
2009-10-30 08:39:30 -05:00
2009-10-05 09:32:48 -05:00
2009-10-30 08:39:31 -05:00
2009-10-05 09:32:46 -05:00
2009-10-27 12:29:01 -05:00
2009-11-07 08:06:58 +00:00
2009-10-30 08:39:31 -05:00
2009-11-07 08:06:58 +00:00
2009-10-30 08:39:30 -05:00
2009-09-09 14:55:17 -05:00
2009-10-30 08:39:31 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:53 -05:00
2009-10-30 08:39:29 -05:00
2009-09-09 14:55:14 -05:00
2009-10-27 12:28:55 -05:00
2009-10-30 08:39:29 -05:00
2009-10-30 08:39:29 -05:00
2009-11-07 08:06:58 +00:00
2009-10-01 16:12:16 -05:00
2009-05-14 22:35:08 +01:00
2009-10-05 09:32:49 -05:00
2009-09-11 10:19:46 -05:00
2009-08-27 20:30:22 -05:00
2009-05-14 22:35:08 +01:00
2009-10-30 09:42:35 -05:00
2009-06-09 11:38:50 +01:00
2009-10-27 12:28:40 -05:00
2009-10-30 08:39:34 -05:00
2009-10-27 12:28:40 -05:00
2009-10-05 09:32:36 -05:00
2008-08-19 19:13:06 +00:00
2009-10-27 12:28:57 -05:00
2009-09-12 07:36:22 +00:00
2009-09-20 08:02:28 +00:00
2009-10-27 12:28:47 -05:00
2009-10-27 12:28:48 -05:00
2009-10-05 09:32:38 -05:00
2009-09-12 07:36:22 +00:00
2009-09-12 07:36:22 +00:00
2009-09-25 19:51:45 +00:00
2009-09-12 15:00:28 +00:00
2009-07-16 20:47:01 +00:00
2009-09-12 07:36:22 +00:00
2009-09-12 07:36:22 +00:00
2009-04-23 18:29:47 +00:00
2009-04-22 15:19:44 +00:00
2009-10-01 16:12:16 -05:00
2009-10-30 08:39:26 -05:00
2009-06-13 16:18:31 +03:00
2009-07-16 20:47:01 +00:00
2009-10-27 12:28:41 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:41 -05:00
2009-10-01 16:12:16 -05:00