qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5026] i386: fix isapc machine
@ 2008-08-19 12:55 Aurelien Jarno
  2008-08-20 14:28 ` [Qemu-devel] " Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Aurelien Jarno @ 2008-08-19 12:55 UTC (permalink / raw)
  To: qemu-devel

Revision: 5026
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5026
Author:   aurel32
Date:     2008-08-19 12:55:20 +0000 (Tue, 19 Aug 2008)

Log Message:
-----------
i386: fix isapc machine

- cirrus vga: enable graphic console
- pc: don't use apic for interrupts on ISA machine

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Modified Paths:
--------------
    trunk/hw/cirrus_vga.c
    trunk/hw/pc.c

Modified: trunk/hw/cirrus_vga.c
===================================================================
--- trunk/hw/cirrus_vga.c	2008-08-18 18:00:31 UTC (rev 5025)
+++ trunk/hw/cirrus_vga.c	2008-08-19 12:55:20 UTC (rev 5026)
@@ -3228,6 +3228,8 @@
     vga_common_init((VGAState *)s,
                     ds, vga_ram_base, vga_ram_offset, vga_ram_size);
     cirrus_init_common(s, CIRRUS_ID_CLGD5430, 0);
+    s->console = graphic_console_init(s->ds, s->update, s->invalidate,
+                                      s->screen_dump, s->text_update, s);
     /* XXX ISA-LFB support */
 }
 

Modified: trunk/hw/pc.c
===================================================================
--- trunk/hw/pc.c	2008-08-18 18:00:31 UTC (rev 5025)
+++ trunk/hw/pc.c	2008-08-19 12:55:20 UTC (rev 5026)
@@ -121,10 +121,14 @@
     if (!level)
         return;
 
-    while (env) {
-        if (apic_accept_pic_intr(env))
-            apic_local_deliver(env, APIC_LINT0);
-        env = env->next_cpu;
+    if (env->apic_state) {
+        while (env) {
+            if (apic_accept_pic_intr(env))
+                apic_local_deliver(env, APIC_LINT0);
+            env = env->next_cpu;
+        }
+    } else {
+        cpu_interrupt(env, CPU_INTERRUPT_HARD);
     }
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Qemu-devel] Re: [5026] i386: fix isapc machine
  2008-08-19 12:55 [Qemu-devel] [5026] i386: fix isapc machine Aurelien Jarno
@ 2008-08-20 14:28 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2008-08-20 14:28 UTC (permalink / raw)
  To: qemu-devel

Aurelien Jarno wrote:
> Revision: 5026
>           http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5026
> Author:   aurel32
> Date:     2008-08-19 12:55:20 +0000 (Tue, 19 Aug 2008)
> 
> Log Message:
> -----------
> i386: fix isapc machine
> 
> - cirrus vga: enable graphic console
> - pc: don't use apic for interrupts on ISA machine
> 

...

> Modified: trunk/hw/pc.c
> ===================================================================
> --- trunk/hw/pc.c	2008-08-18 18:00:31 UTC (rev 5025)
> +++ trunk/hw/pc.c	2008-08-19 12:55:20 UTC (rev 5026)
> @@ -121,10 +121,14 @@
>      if (!level)
>          return;
>  
> -    while (env) {
> -        if (apic_accept_pic_intr(env))
> -            apic_local_deliver(env, APIC_LINT0);
> -        env = env->next_cpu;
> +    if (env->apic_state) {
> +        while (env) {
> +            if (apic_accept_pic_intr(env))
> +                apic_local_deliver(env, APIC_LINT0);
> +            env = env->next_cpu;
> +        }
> +    } else {
> +        cpu_interrupt(env, CPU_INTERRUPT_HARD);
>      }
>  }

Considering our recent experience with the APIC path, and also when
looking at old qemu versions, just asserting CPU_INTERRUPT_HARD won't be
enough. We also need cpu_reset_interrupt in the (!level) case. Will post
a patch, along with a rebased version for the APIC fix.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-20 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 12:55 [Qemu-devel] [5026] i386: fix isapc machine Aurelien Jarno
2008-08-20 14:28 ` [Qemu-devel] " 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).