* [Qemu-devel] monitor/qmp no longer working with -enable-kvm
[not found] <mailman.722719.1351782362.854.qemu-devel@nongnu.org>
@ 2012-11-01 15:21 ` Gabriel L. Somlo
2012-11-01 16:25 ` [Qemu-devel] [PATCH] Reorder alarm timer setup again Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: Gabriel L. Somlo @ 2012-11-01 15:21 UTC (permalink / raw)
To: qemu-devel; +Cc: jan.kiszka
Jan,
After my most recent pull from qemu git master, I realized I can no
longer use '-monitor stdio' together with '-enable-kvm'. They each
work separately, but when used together, qemu dies with the following
error:
$ bin/qemu-system-x86_64 -enable-kvm -monitor stdio
failed to initialize KVM: Interrupted system call
No accelerator found!
I did a git bisect and the culprit appears to be
commit ac4119c023c72b15f54238af43e4a178fcf41494
(chardev: Use timer instead of bottom-half to postpone open event)
Thanks,
--Gabriel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH] Reorder alarm timer setup again
2012-11-01 15:21 ` [Qemu-devel] monitor/qmp no longer working with -enable-kvm Gabriel L. Somlo
@ 2012-11-01 16:25 ` Jan Kiszka
2012-11-22 15:07 ` Luiz Capitulino
0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2012-11-01 16:25 UTC (permalink / raw)
To: qemu-devel, Anthony Liguori; +Cc: Paolo Bonzini, Gabriel L. Somlo
From: Jan Kiszka <jan.kiszka@siemens.com>
ac4119c023 moved the alarm timer initialization to an earlier point but
failed to consider that it depends on qemu_init_main_loop. Instead of
moving the wrong things before os_daemonize, better push alarm timer
right after qemu_init_main_loop and move the chardev initialization
after this.
Reported-by: Gabriel L. Somlo <gsomlo@gmail.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
vl.c | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/vl.c b/vl.c
index 5513d15..e27839a 100644
--- a/vl.c
+++ b/vl.c
@@ -3551,15 +3551,8 @@ int main(int argc, char **argv, char **envp)
add_device_config(DEV_VIRTCON, "vc:80Cx24C");
}
- if (init_timer_alarm() < 0) {
- fprintf(stderr, "could not initialize alarm timer\n");
- exit(1);
- }
-
socket_init();
- if (qemu_opts_foreach(qemu_find_opts("chardev"), chardev_init_func, NULL, 1) != 0)
- exit(1);
#ifdef CONFIG_VIRTFS
if (qemu_opts_foreach(qemu_find_opts("fsdev"), fsdev_init_func, NULL, 1) != 0) {
exit(1);
@@ -3591,6 +3584,16 @@ int main(int argc, char **argv, char **envp)
exit(1);
}
+ if (init_timer_alarm() < 0) {
+ fprintf(stderr, "could not initialize alarm timer\n");
+ exit(1);
+ }
+
+ if (qemu_opts_foreach(qemu_find_opts("chardev"), chardev_init_func,
+ NULL, 1) != 0) {
+ exit(1);
+ }
+
machine_opts = qemu_opts_find(qemu_find_opts("machine"), 0);
if (machine_opts) {
kernel_filename = qemu_opt_get(machine_opts, "kernel");
--
1.7.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] Reorder alarm timer setup again
2012-11-01 16:25 ` [Qemu-devel] [PATCH] Reorder alarm timer setup again Jan Kiszka
@ 2012-11-22 15:07 ` Luiz Capitulino
2012-11-22 15:55 ` Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: Luiz Capitulino @ 2012-11-22 15:07 UTC (permalink / raw)
To: Jan Kiszka
Cc: Paolo Bonzini, Anthony Liguori, qemu-devel, Dietmar Maurer,
Gabriel L. Somlo
On Thu, 01 Nov 2012 17:25:24 +0100
Jan Kiszka <jan.kiszka@web.de> wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> ac4119c023 moved the alarm timer initialization to an earlier point but
> failed to consider that it depends on qemu_init_main_loop. Instead of
> moving the wrong things before os_daemonize, better push alarm timer
> right after qemu_init_main_loop and move the chardev initialization
> after this.
Jan, it seems that you have to rebase this patch.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] Reorder alarm timer setup again
2012-11-22 15:07 ` Luiz Capitulino
@ 2012-11-22 15:55 ` Jan Kiszka
0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2012-11-22 15:55 UTC (permalink / raw)
To: Luiz Capitulino
Cc: Paolo Bonzini, Anthony Liguori, qemu-devel, Dietmar Maurer,
Gabriel L. Somlo
On 2012-11-22 16:07, Luiz Capitulino wrote:
> On Thu, 01 Nov 2012 17:25:24 +0100
> Jan Kiszka <jan.kiszka@web.de> wrote:
>
>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>
>> ac4119c023 moved the alarm timer initialization to an earlier point but
>> failed to consider that it depends on qemu_init_main_loop. Instead of
>> moving the wrong things before os_daemonize, better push alarm timer
>> right after qemu_init_main_loop and move the chardev initialization
>> after this.
>
> Jan, it seems that you have to rebase this patch.
This issue was fixed indirectly by an already merged changeset of Paolo
- IIRC now.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-22 15:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.722719.1351782362.854.qemu-devel@nongnu.org>
2012-11-01 15:21 ` [Qemu-devel] monitor/qmp no longer working with -enable-kvm Gabriel L. Somlo
2012-11-01 16:25 ` [Qemu-devel] [PATCH] Reorder alarm timer setup again Jan Kiszka
2012-11-22 15:07 ` Luiz Capitulino
2012-11-22 15:55 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).