All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Bellard <fabrice@bellard.org>
To: daimon55@free.fr, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: Re: 2.6.10-mm3: swsusp: out of memory on resume
Date: Mon, 17 Jan 2005 22:54:52 +0100	[thread overview]
Message-ID: <41EC342C.9010401@bellard.org> (raw)
In-Reply-To: <pan.2005.01.17.18.02.11.377964@reply.to>

Hi,

My plan is to add a more generic option to select a given cpu model and 
to be able to disable or enable some specific features (for example 
'-cpu p6+pae+sse3', any other suggestions ?), so I prefer not to include 
this patch now.

Fabrice.

Ronald wrote:
> Le Sat, 15 Jan 2005 12:48:54 +0100, Fabrice Bellard a écrit :
> 
>  
> 
>>Now that SSE and MMX are implemented, no feature is lacking in the QEMU
>>x86_64 emulation... "just" a problem of debugging now :-)
>>
>>I did not enable SSE and MMX for x86 because I fear there are still bugs
>>which may cause regressions. Interested people can enable the line:
>>
>>--
>>      env->cpuid_features |= CPUID_FXSR | CPUID_MMX | CPUID_SSE |
>>CPUID_SSE2 | CPUID_PAE;
> 
> 
> What about doing this with qemu options?
> 
> Perhaps I'am wrong, but something like that:
> 
> --- vl.c.old    2005-01-15 23:49:25.124123925 +0100
> +++ vl.c        2005-01-17 17:19:18.528256753 +0100
> @@ -134,6 +134,8 @@
>  int graphic_height = 600;
>  int graphic_depth = 15;
>  int full_screen = 0;
> +int use_mmx = 0;
> +int use_sse = 0;
>  TextConsole *vga_console;
>  CharDriverState *serial_hds[MAX_SERIAL_PORTS];
>  CharDriverState *parallel_hds[MAX_PARALLEL_PORTS];
> @@ -2848,6 +2850,8 @@
>      QEMU_OPTION_loadvm,
>      QEMU_OPTION_full_screen,
>      QEMU_OPTION_pidfile,
> +       QEMU_OPTION_use_mmx,
> +       QEMU_OPTION_use_sse,
>  };
> 
>  typedef struct QEMUOption {
> @@ -2911,7 +2915,10 @@
>      { "loadvm", HAS_ARG, QEMU_OPTION_loadvm },
>      { "full-screen", 0, QEMU_OPTION_full_screen },
>      { "pidfile", HAS_ARG, QEMU_OPTION_pidfile },
> -
> +#ifdef TARGET_I386
> +    { "mmx", 0, QEMU_OPTION_use_mmx },
> +    { "sse", 0, QEMU_OPTION_use_sse },
> +#endif
>      /* temporary options */
>      { "pci", 0, QEMU_OPTION_pci },
>      { "cirrusvga", 0, QEMU_OPTION_cirrusvga },
> @@ -3358,6 +3365,12 @@
>              case QEMU_OPTION_pidfile:
>                  create_pidfile(optarg);
>                  break;
> +                       case QEMU_OPTION_use_mmx:
> +                           use_mmx = 1;
> +                               break;
> +                       case QEMU_OPTION_use_sse:
> +                               use_sse = 1;
> +                               break;
>              }
>          }
>      }
> --- vl.h.old    2005-01-17 17:28:37.491471386 +0100
> +++ vl.h        2005-01-17 17:19:13.723332164 +0100
> @@ -123,6 +123,8 @@
>  extern int graphic_width;
>  extern int graphic_height;
>  extern int graphic_depth;
> +extern int use_mmx;
> +extern int use_sse;
>  extern const char *keyboard_layout;
> 
>  /* XXX: make it dynamic */
> --- target-i386/helper2.c.old   2005-01-17 17:37:57.199481651 +0100
> +++ target-i386/helper2.c       2005-01-17 17:46:18.834424698 +0100
> @@ -25,6 +25,7 @@
>  #include <signal.h>
>  #include <assert.h>
> 
> +#include "vl.h"
>  #include "cpu.h"
>  #include "exec-all.h"
> 
> @@ -106,6 +107,13 @@
>          env->cpuid_features = (CPUID_FP87 | CPUID_DE | CPUID_PSE |
>                                 CPUID_TSC | CPUID_MSR | CPUID_MCE |
>                                 CPUID_CX8 | CPUID_PGE | CPUID_CMOV);
> +#ifdef TARGET_I386
> +               if(use_mmx == 1)
> +                       env->cpuid_features |= CPUID_MMX;
> +               if(use_sse == 1)
> +                       env->cpuid_features |= CPUID_FXSR | CPUID_SSE;
> +#endif
> +
>  #ifdef TARGET_X86_64
>          /* currently not enabled for std i386 because not fully tested */
>          env->cpuid_features |= CPUID_FXSR | CPUID_MMX | CPUID_SSE |
>          CPUID_SSE2;
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
> 
> 
> 

  reply	other threads:[~2005-01-17 22:20 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-24 22:39 Ho ho ho - Linux v2.6.10 Linus Torvalds
2004-12-25 11:11 ` Andrew Walrond
2004-12-25 12:19 ` Alan Cox
2004-12-26 11:30   ` Wichert Akkerman
2004-12-26 13:45     ` R. J. Wysocki
2004-12-26 19:37       ` Pavel Machek
2004-12-26 19:39       ` Pavel Machek
2004-12-26 20:27         ` R. J. Wysocki
2004-12-26 22:10           ` Pavel Machek
2005-01-13 18:09             ` 2.6.10-mm3: swsusp: out of memory on resume (was: Re: Ho ho ho - Linux v2.6.10) Rafael J. Wysocki
2005-01-13 19:59               ` Pavel Machek
2005-01-13 21:22                 ` Rafael J. Wysocki
2005-01-14 14:34               ` hugang
2005-01-14 17:25                 ` Rafael J. Wysocki
2005-01-15 21:43                   ` Rafael J. Wysocki
2005-01-16 21:51                     ` Pavel Machek
2005-01-17 14:53                       ` Rafael J. Wysocki
2005-01-17 15:22                         ` Pavel Machek
2005-01-18  1:44                         ` hugang
     [not found]                 ` <200501150042.35377.rjw@sisk.pl>
2005-01-15  1:21                   ` hugang
2005-01-15  1:21                     ` [Qemu-devel] " hugang
2005-01-15 11:48                     ` [Qemu-devel] Re: 2.6.10-mm3: swsusp: out of memory on resume Fabrice Bellard
2005-01-15 16:40                       ` hugang
2005-01-16  4:38                         ` hugang
2005-01-15 18:02                       ` [Qemu-devel] W2K SP0 Status (was: Re: 2.6.10-mm3: swsusp: out of memory on resume) Tim
2005-01-17 18:02                       ` [Qemu-devel] Re: Re: 2.6.10-mm3: swsusp: out of memory on resume Ronald
2005-01-17 21:54                         ` Fabrice Bellard [this message]
2005-01-22  4:17                           ` [Qemu-devel] " Anand Kumria
2005-01-22 12:42                             ` Johannes Schindelin
     [not found]                     ` <200501151147.32919.rjw@sisk.pl>
     [not found]                       ` <200501152220.42129.rjw@sisk.pl>
2005-01-16  5:54                         ` 2.6.10-mm3: swsusp: out of memory on resume (was: Re: Ho ho ho - Linux v2.6.10) hugang
2005-01-16  5:54                           ` [Qemu-devel] " hugang
2005-01-16 10:07                           ` Rafael J. Wysocki
2005-01-16 10:07                             ` [Qemu-devel] " Rafael J. Wysocki
2005-01-16 14:46                             ` hugang
2005-01-17 15:48                               ` Rafael J. Wysocki
2005-01-17 16:49                               ` Rafael J. Wysocki
2004-12-30  9:58         ` Ho ho ho - Linux v2.6.10 Rafael J. Wysocki
2004-12-26 15:45   ` Alan Cox
2004-12-29 12:44   ` Paolo Ciarrocchi
2004-12-26  2:55 ` Bill Davidsen
2004-12-26  3:36   ` Linus Torvalds
     [not found]   ` <1104171962.18174.28.camel@d845pe>
2004-12-28 16:38     ` Ho ho ho - Linux v2.6.10 (irq18) Bill Davidsen
2004-12-26  4:19 ` Ho ho ho - Linux v2.6.10 Alexander E. Patrakov
2004-12-26  5:12   ` [PATCH] parport_pc: don't mix module parameter styles Randy.Dunlap
2004-12-26 20:35 ` Ho ho ho - Linux v2.6.10 Greg Norris
2004-12-27  1:31   ` Dmitry Torokhov
2004-12-28  2:36     ` Greg Norris
2004-12-27 16:10 ` Ho ho ho - Linux v2.6.10 (compile stats) John Cherry
2004-12-28  1:04 ` Ho ho ho - Linux v2.6.10 Håkan Lindqvist

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41EC342C.9010401@bellard.org \
    --to=fabrice@bellard.org \
    --cc=daimon55@free.fr \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.