Skip to contentSkip to conversation

-no-user-config option, move CPU models to /usr/share

PATCH In review Eduardo Habkost 5 participants 15 messages May 2, 2012 – May 28, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

v3 cover -no-user-config option, move CPU models to /usr/share

Changes v2 -> v3:
- Actually change 'defconfig' type declaration to bool
- Rebase against latest qemu.git (commit 563987d0a799f90b58a575b190a57546c335191b)

Changes v1 -> v2:
- Move qemu_read_default_config_files() prototype to qemu-config.h
- Make defconfig and userconfig variable bool
- Coding style change

Patches 1 to 4 just move some code around, patch 5 just adds the new option without adding any new config file. Patch 6 finally creates a /usr/share/qemu /cpus-x86_64.conf file, with the CPU models we currently have on Qemu.

Reference to previous discussion:
- http://marc.info/?l=qemu-devel&m=133278877315665

Eduardo Habkost (6):
move code to read default config files to a separate function (v2) eliminate arch_config_name variable
move list of default config files to an array
vl.c: change 'defconfig' variable to bool (v2) implement -no-user-config command-line option (v3)
move CPU definitions to /usr/share/qemu/cpus-x86_64.conf (v2)

 Makefile                             |   12 +++-
 arch_init.c                          |   32 ++++++++-
 arch_init.h                          |    2 -
 qemu-config.h                        |    4 +
 qemu-options.hx                      |   16 ++++-
 sysconfigs/target/cpus-x86_64.conf   |  128 ++++++++++++++++++++++++++++++++++
 sysconfigs/target/target-x86_64.conf |  128 ----------------------------------
 vl.c                                 |   18 ++---
 8 files changed, 193 insertions(+), 147 deletions(-)
 create mode 100644 sysconfigs/target/cpus-x86_64.conf
Signature · 1 line
1.7.3.2
#1 lore raw

PATCH v3 1/6 move code to read default config files to a separate function (v2)

Function added to arch_init.c because it depends on arch-specific settings.

Changes v1 -> v2:
- Move qemu_read_default_config_file() prototype to qemu-config.h

---
 arch_init.c   |   18 ++++++++++++++++++
 qemu-config.h |    4 ++++
 vl.c          |   10 ++--------
 3 files changed, 24 insertions(+), 8 deletions(-)
arch_init.c +18 -0
index 9a35aee..4008115 100644
@@ -112,6 +112,24 @@ const uint32_t arch_type = QEMU_ARCH;
 #define ALL_EQ(v1, v2) ((v1) == (v2))
 #endif
 
+
+int qemu_read_default_config_files(void)
+{
+    int ret;
+    
+    ret = qemu_read_config_file(CONFIG_QEMU_CONFDIR "/qemu.conf");
+    if (ret < 0 && ret != -ENOENT) {
+        return ret;
+    }
+
+    ret = qemu_read_config_file(arch_config_name);
+    if (ret < 0 && ret != -ENOENT) {
+        return ret;
+    }
+
+    return 0;
+}
+
 static int is_dup_page(uint8_t *page)
 {
     VECTYPE *p = (VECTYPE *)page;
qemu-config.h +4 -0
index 20d707f..ff934a1 100644
@@ -16,4 +16,8 @@ int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname);
 
 int qemu_read_config_file(const char *filename);
 
+/* Read default Qemu config files
+ */
+int qemu_read_default_config_files(void);
+
 #endif /* QEMU_CONFIG_H */
vl.c +2 -8
index ae91a8a..1e5e593 100644
@@ -2354,14 +2354,8 @@ int main(int argc, char **argv, char **envp)
 
     if (defconfig) {
         int ret;
-
-        ret = qemu_read_config_file(CONFIG_QEMU_CONFDIR "/qemu.conf");
-        if (ret < 0 && ret != -ENOENT) {
-            exit(1);
-        }
-
-        ret = qemu_read_config_file(arch_config_name);
-        if (ret < 0 && ret != -ENOENT) {
+        ret = qemu_read_default_config_files();
+        if (ret < 0) {
             exit(1);
         }
     }
Signature · 1 line
1.7.3.2
#2 lore raw

PATCH v3 2/6 eliminate arch_config_name variable

In reply to Eduardo Habkost

Not needed anymore, as the code that uses the variable is already inside arch_init.c.

---
 arch_init.c |    3 +--
 arch_init.h |    2 --
 2 files changed, 1 insertions(+), 4 deletions(-)
arch_init.c +1 -2
index 4008115..152cbbb 100644
@@ -54,7 +54,6 @@ int graphic_height = 600;
 int graphic_depth = 15;
 #endif
 
-const char arch_config_name[] = CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf";
 
 #if defined(TARGET_ALPHA)
 #define QEMU_ARCH QEMU_ARCH_ALPHA
@@ -122,7 +121,7 @@ int qemu_read_default_config_files(void)
         return ret;
     }
 
-    ret = qemu_read_config_file(arch_config_name);
+    ret = qemu_read_config_file(CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf");
     if (ret < 0 && ret != -ENOENT) {
         return ret;
     }
arch_init.h +0 -2
index 828256c..c7cb94a 100644
@@ -1,8 +1,6 @@
 #ifndef QEMU_ARCH_INIT_H
 #define QEMU_ARCH_INIT_H
 
-extern const char arch_config_name[];
-
 enum {
     QEMU_ARCH_ALL = -1,
     QEMU_ARCH_ALPHA = 1,
Signature · 1 line
1.7.3.2
#3 lore raw

PATCH v3 3/6 move list of default config files to an array

In reply to Eduardo Habkost

More files will be added to the list, with additional attributes, later.

---
 arch_init.c |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)
arch_init.c +16 -9
index 152cbbb..62332e9 100644
@@ -112,20 +112,27 @@ const uint32_t arch_type = QEMU_ARCH;
 #endif
 
 
+static struct defconfig_file {
+    const char *filename;
+} default_config_files[] = {
+    { CONFIG_QEMU_CONFDIR "/qemu.conf" },
+    { CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf" },
+    { NULL }, /* end of list */
+};
+
+
 int qemu_read_default_config_files(void)
 {
     int ret;
-    
-    ret = qemu_read_config_file(CONFIG_QEMU_CONFDIR "/qemu.conf");
-    if (ret < 0 && ret != -ENOENT) {
-        return ret;
-    }
+    struct defconfig_file *f;
 
-    ret = qemu_read_config_file(CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf");
-    if (ret < 0 && ret != -ENOENT) {
-        return ret;
+    for (f = default_config_files; f->filename; f++) {
+        ret = qemu_read_config_file(f->filename);
+        if (ret < 0 && ret != -ENOENT) {
+            return ret;
+        }
     }
-
+    
     return 0;
 }
 
Signature · 1 line
1.7.3.2
#4 lore raw

PATCH v3 4/6 vl.c: change 'defconfig' variable to bool (v2)

In reply to Eduardo Habkost

Changes v1 -> v2:
- Actually change the variable type declaration to 'bool'

---
 vl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
vl.c +2 -2
index 1e5e593..eb3e088 100644
@@ -2279,7 +2279,7 @@ int main(int argc, char **argv, char **envp)
 #ifdef CONFIG_VNC
     int show_vnc_port = 0;
 #endif
-    int defconfig = 1;
+    bool defconfig = true;
     const char *log_mask = NULL;
     const char *log_file = NULL;
     GMemVTable mem_trace = {
@@ -2346,7 +2346,7 @@ int main(int argc, char **argv, char **envp)
             popt = lookup_opt(argc, argv, &optarg, &optind);
             switch (popt->index) {
             case QEMU_OPTION_nodefconfig:
-                defconfig=0;
+                defconfig = false;
                 break;
             }
         }
Signature · 1 line
1.7.3.2
#5 lore raw

PATCH v3 5/6 implement -no-user-config command-line option (v3)

In reply to Eduardo Habkost

Changes v2 -> v3:
- Rebase against latest qemu.git

Changes v1 -> v2:
- Change 'userconfig' field/variables to bool instead of int
- Coding style change

---
 arch_init.c     |   11 ++++++++---
 qemu-config.h   |    2 +-
 qemu-options.hx |   16 +++++++++++++---
 vl.c            |    6 +++++-
 4 files changed, 27 insertions(+), 8 deletions(-)
arch_init.c +8 -3
index 62332e9..996baba 100644
@@ -114,19 +114,24 @@ const uint32_t arch_type = QEMU_ARCH;
 
 static struct defconfig_file {
     const char *filename;
+    /* Indicates it is an user config file (disabled by -no-user-config) */
+    bool userconfig;
 } default_config_files[] = {
-    { CONFIG_QEMU_CONFDIR "/qemu.conf" },
-    { CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf" },
+    { CONFIG_QEMU_CONFDIR "/qemu.conf",                   true },
+    { CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf", true },
     { NULL }, /* end of list */
 };
 
 
-int qemu_read_default_config_files(void)
+int qemu_read_default_config_files(bool userconfig)
 {
     int ret;
     struct defconfig_file *f;
 
     for (f = default_config_files; f->filename; f++) {
+        if (!userconfig && f->userconfig) {
+            continue;
+        }
         ret = qemu_read_config_file(f->filename);
         if (ret < 0 && ret != -ENOENT) {
             return ret;
qemu-config.h +1 -1
index ff934a1..6d7365d 100644
@@ -18,6 +18,6 @@ int qemu_read_config_file(const char *filename);
 
 /* Read default Qemu config files
  */
-int qemu_read_default_config_files(void);
+int qemu_read_default_config_files(bool userconfig);
 
 #endif /* QEMU_CONFIG_H */
qemu-options.hx +13 -3
index a169792..7d0b054 100644
@@ -2685,9 +2685,19 @@ DEF("nodefconfig", 0, QEMU_OPTION_nodefconfig,
 STEXI
 @item -nodefconfig
 @findex -nodefconfig
-Normally QEMU loads a configuration file from @var{sysconfdir}/qemu.conf and
-@var{sysconfdir}/target-@var{ARCH}.conf on startup.  The @code{-nodefconfig}
-option will prevent QEMU from loading these configuration files at startup.
+Normally QEMU loads configuration files from @var{sysconfdir} and @var{datadir} at startup.
+The @code{-nodefconfig} option will prevent QEMU from loading any of those config files.
+ETEXI
+DEF("no-user-config", 0, QEMU_OPTION_nouserconfig,
+    "-no-user-config\n"
+    "                do not load user-provided config files at startup\n",
+    QEMU_ARCH_ALL)
+STEXI
+@item -no-user-config
+@findex -no-user-config
+The @code{-no-user-config} option makes QEMU not load any of the user-provided
+config files on @var{sysconfdir}, but won't make it skip the QEMU-provided config
+files from @var{datadir}.
 ETEXI
 DEF("trace", HAS_ARG, QEMU_OPTION_trace,
     "-trace [events=<file>][,file=<file>]\n"
vl.c +5 -1
index eb3e088..87db855 100644
@@ -2280,6 +2280,7 @@ int main(int argc, char **argv, char **envp)
     int show_vnc_port = 0;
 #endif
     bool defconfig = true;
+    bool userconfig = true;
     const char *log_mask = NULL;
     const char *log_file = NULL;
     GMemVTable mem_trace = {
@@ -2348,13 +2349,16 @@ int main(int argc, char **argv, char **envp)
             case QEMU_OPTION_nodefconfig:
                 defconfig = false;
                 break;
+            case QEMU_OPTION_nouserconfig:
+                userconfig = false;
+                break;
             }
         }
     }
 
     if (defconfig) {
         int ret;
-        ret = qemu_read_default_config_files();
+        ret = qemu_read_default_config_files(userconfig);
         if (ret < 0) {
             exit(1);
         }
Signature · 1 line
1.7.3.2
#6 lore raw

Re: [Qemu-devel] [PATCH qemu 5/6] implement -no-user-config command-line option (v3)

Am 02.05.2012 18:07, schrieb Eduardo Habkost:

Quoted 26 lines

Changes v2 -> v3:
- Rebase against latest qemu.git

Changes v1 -> v2:
- Change 'userconfig' field/variables to bool instead of int
- Coding style change

---
 arch_init.c     |   11 ++++++++---
 qemu-config.h   |    2 +-
 qemu-options.hx |   16 +++++++++++++---
 vl.c            |    6 +++++-
 4 files changed, 27 insertions(+), 8 deletions(-)
arch_init.c +2 -0
index 62332e9..996baba 100644
@@ -114,19 +114,24 @@ const uint32_t arch_type = QEMU_ARCH;
 
 static struct defconfig_file {
     const char *filename;
+    /* Indicates it is an user config file (disabled by -no-user-config) */
+    bool userconfig;
 } default_config_files[] = {

arch_init.c const uint32_t arch_type = QEMU_ARCH; · line 126

Quoted 10 lines
arch_init.c +3 -3
-    { CONFIG_QEMU_CONFDIR "/qemu.conf" },
-    { CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf" },
+    { CONFIG_QEMU_CONFDIR "/qemu.conf",                   true },
+    { CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf", true },
     { NULL }, /* end of list */
 };
 
 
-int qemu_read_default_config_files(void)
+int qemu_read_default_config_files(bool userconfig)

These changes broke the build on Darwin/ppc(64).

Just before this block there's an inclusion of altivec.h, which does #define bool __bool
for powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493).

CC i386-softmmu/arch_init.o
/Users/andreas/QEMU/qemu/arch_init.c:120: error: incompatible types in initialization
/Users/andreas/QEMU/qemu/arch_init.c:121: error: incompatible types in initialization
/Users/andreas/QEMU/qemu/arch_init.c:122: error: incompatible types in initialization
/Users/andreas/QEMU/qemu/arch_init.c:128: error: conflicting types for 'qemu_read_default_config_files' /Users/andreas/QEMU/qemu/qemu-config.h:21: error: previous declaration of 'qemu_read_default_config_files' was here /Users/andreas/QEMU/qemu/arch_init.c: In function 'qemu_read_default_config_files':
/Users/andreas/QEMU/qemu/arch_init.c:133: error: wrong type argument to unary exclamation mark /Users/andreas/QEMU/qemu/arch_init.c:133: error: invalid operands to binary && (have 'int' and '__vector __bool int')
make[1]: *** [arch_init.o] Error 1
make: *** [subdir-i386-softmmu] Error 2

Any suggestion how to fix?

Andreas

#7 lore raw

Re: [Qemu-devel] [PATCH qemu 5/6] implement -no-user-config command-line option (v3)

Il 27/05/2012 16:02, Andreas Färber ha scritto:

Quoted 1 line

Any suggestion how to fix?

Does it work to "typedef _Bool __bool" before including altivec.h (and in the same #ifdef)?

Paolo

#8 lore raw

Re: [Qemu-devel] [PATCH qemu 5/6] implement -no-user-config command-line option (v3)

Am 28.05.2012 08:35, schrieb Paolo Bonzini:

Quoted 2 lines

Il 27/05/2012 16:02, Andreas Färber ha scritto:

Quoted 1 line

Any suggestion how to fix?

Sorry, I forgot to reply here that I've sent a patch.

Quoted 2 lines

Does it work to "typedef _Bool __bool" before including altivec.h (and in the same #ifdef)?

Haven't tried but I'm afraid of what side effects that may have... I feel more comfortable sticking to the POSIX #define bool _Bool rule.

Andreas

#9 lore raw

PATCH v3 6/6 move CPU definitions to /usr/share/qemu/cpus-x86_64.conf (v2)

In reply to Eduardo Habkost

Changes v1 -> v2:
- userconfig variable is now bool, not int

---
 Makefile                             |   12 +++-
 arch_init.c                          |    1 +
 sysconfigs/target/cpus-x86_64.conf   |  128 ++++++++++++++++++++++++++++++++++
 sysconfigs/target/target-x86_64.conf |  128 ----------------------------------
 4 files changed, 138 insertions(+), 131 deletions(-)
 create mode 100644 sysconfigs/target/cpus-x86_64.conf
Makefile +9 -3
index 08ec758..9b7a85e 100644
@@ -281,11 +281,18 @@ ifdef CONFIG_VIRTFS
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
 	$(INSTALL_DATA) fsdev/virtfs-proxy-helper.1 "$(DESTDIR)$(mandir)/man1"
 endif
-install-sysconfig:
+
+install-datadir:
+	$(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)"
+
+install-confdir:
 	$(INSTALL_DIR) "$(DESTDIR)$(qemu_confdir)"
+
+install-sysconfig: install-datadir install-confdir
 	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(qemu_confdir)"
+	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/cpus-x86_64.conf "$(DESTDIR)$(qemu_datadir)"
 
-install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
+install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig install-datadir
 	$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
 ifneq ($(TOOLS),)
 	$(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
@@ -295,7 +302,6 @@ ifneq ($(HELPERS-y),)
 	$(INSTALL_PROG) $(STRIP_OPT) $(HELPERS-y) "$(DESTDIR)$(libexecdir)"
 endif
 ifneq ($(BLOBS),)
-	$(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)"
 	set -e; for x in $(BLOBS); do \
 		$(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(qemu_datadir)"; \
 	done
arch_init.c +1 -0
index 996baba..988adca 100644
@@ -117,6 +117,7 @@ static struct defconfig_file {
     /* Indicates it is an user config file (disabled by -no-user-config) */
     bool userconfig;
 } default_config_files[] = {
+    { CONFIG_QEMU_DATADIR "/cpus-" TARGET_ARCH ".conf",  false },
     { CONFIG_QEMU_CONFDIR "/qemu.conf",                   true },
     { CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf", true },
     { NULL }, /* end of list */
sysconfigs/target/cpus-x86_64.conf new file +128 -0

128 lines not on this page · raw message

sysconfigs/target/target-x86_64.conf +0 -128

128 lines not on this page · raw message

Signature · 1 line
1.7.3.2
#10 lore raw
In reply to Eduardo Habkost

I just noticed it didn't get into -rc1 either. So, this is definitely not going to be in qemu-1.1, I guess?

Quoted 39 lines · Eduardo Habkost

Changes v2 -> v3:
- Actually change 'defconfig' type declaration to bool
- Rebase against latest qemu.git (commit 563987d0a799f90b58a575b190a57546c335191b)

Changes v1 -> v2:
- Move qemu_read_default_config_files() prototype to qemu-config.h
- Make defconfig and userconfig variable bool
- Coding style change

Patches 1 to 4 just move some code around, patch 5 just adds the new option without adding any new config file. Patch 6 finally creates a /usr/share/qemu /cpus-x86_64.conf file, with the CPU models we currently have on Qemu.

Reference to previous discussion:
- http://marc.info/?l=qemu-devel&m=133278877315665

Eduardo Habkost (6):
move code to read default config files to a separate function (v2) eliminate arch_config_name variable
move list of default config files to an array
vl.c: change 'defconfig' variable to bool (v2) implement -no-user-config command-line option (v3)
move CPU definitions to /usr/share/qemu/cpus-x86_64.conf (v2)

 Makefile                             |   12 +++-
 arch_init.c                          |   32 ++++++++-
 arch_init.h                          |    2 -
 qemu-config.h                        |    4 +
 qemu-options.hx                      |   16 ++++-
 sysconfigs/target/cpus-x86_64.conf   |  128 ++++++++++++++++++++++++++++++++++
 sysconfigs/target/target-x86_64.conf |  128 ----------------------------------
 vl.c                                 |   18 ++---
 8 files changed, 193 insertions(+), 147 deletions(-)
 create mode 100644 sysconfigs/target/cpus-x86_64.conf
Signature · 1 line
1.7.3.2
Signature · 1 line
Eduardo
#11 lore raw
Quoted 3 lines · Eduardo Habkost

I just noticed it didn't get into -rc1 either. So, this is definitely not going to be in qemu-1.1, I guess?

I've got this applied and am testing it right now for -rc2.

Regards,

Anthony Liguori

Quoted 43 lines · Eduardo Habkost
Quoted 39 lines

Changes v2 -> v3:
- Actually change 'defconfig' type declaration to bool
- Rebase against latest qemu.git (commit 563987d0a799f90b58a575b190a57546c335191b)

Changes v1 -> v2:
- Move qemu_read_default_config_files() prototype to qemu-config.h
- Make defconfig and userconfig variable bool
- Coding style change

Patches 1 to 4 just move some code around, patch 5 just adds the new option without adding any new config file. Patch 6 finally creates a /usr/share/qemu /cpus-x86_64.conf file, with the CPU models we currently have on Qemu.

Reference to previous discussion:
- http://marc.info/?l=qemu-devel&m=133278877315665

Eduardo Habkost (6):
move code to read default config files to a separate function (v2) eliminate arch_config_name variable
move list of default config files to an array
vl.c: change 'defconfig' variable to bool (v2) implement -no-user-config command-line option (v3)
move CPU definitions to /usr/share/qemu/cpus-x86_64.conf (v2)

  Makefile                             |   12 +++-
  arch_init.c                          |   32 ++++++++-
  arch_init.h                          |    2 -
  qemu-config.h                        |    4 +
  qemu-options.hx                      |   16 ++++-
  sysconfigs/target/cpus-x86_64.conf   |  128 ++++++++++++++++++++++++++++++++++
  sysconfigs/target/target-x86_64.conf |  128 ----------------------------------
  vl.c                                 |   18 ++---
  8 files changed, 193 insertions(+), 147 deletions(-)

create mode 100644 sysconfigs/target/cpus-x86_64.conf

--
1.7.3.2

#12 lore raw
Quoted 6 lines · Anthony Liguori
Quoted 3 lines · Eduardo Habkost

I just noticed it didn't get into -rc1 either. So, this is definitely not going to be in qemu-1.1, I guess?

I've got this applied and am testing it right now for -rc2.

Awesome. Thanks! :-)

Signature · 1 line
Eduardo
Quoted 49 lines

Regards,

Anthony Liguori

Quoted 43 lines · Eduardo Habkost
Quoted 39 lines

Changes v2 -> v3:
- Actually change 'defconfig' type declaration to bool
- Rebase against latest qemu.git (commit 563987d0a799f90b58a575b190a57546c335191b)

Changes v1 -> v2:
- Move qemu_read_default_config_files() prototype to qemu-config.h
- Make defconfig and userconfig variable bool
- Coding style change

Patches 1 to 4 just move some code around, patch 5 just adds the new option without adding any new config file. Patch 6 finally creates a /usr/share/qemu /cpus-x86_64.conf file, with the CPU models we currently have on Qemu.

Reference to previous discussion:
- http://marc.info/?l=qemu-devel&m=133278877315665

Eduardo Habkost (6):
move code to read default config files to a separate function (v2) eliminate arch_config_name variable
move list of default config files to an array
vl.c: change 'defconfig' variable to bool (v2) implement -no-user-config command-line option (v3)
move CPU definitions to /usr/share/qemu/cpus-x86_64.conf (v2)

 Makefile                             |   12 +++-
 arch_init.c                          |   32 ++++++++-
 arch_init.h                          |    2 -
 qemu-config.h                        |    4 +
 qemu-options.hx                      |   16 ++++-
 sysconfigs/target/cpus-x86_64.conf   |  128 ++++++++++++++++++++++++++++++++++
 sysconfigs/target/target-x86_64.conf |  128 ----------------------------------
 vl.c                                 |   18 ++---
 8 files changed, 193 insertions(+), 147 deletions(-)
 create mode 100644 sysconfigs/target/cpus-x86_64.conf

--
1.7.3.2

Tested-by
#13 lore raw
In reply to Anthony Liguori
Quoted 6 lines · Anthony Liguori
Quoted 3 lines · Eduardo Habkost

I just noticed it didn't get into -rc1 either. So, this is definitely not going to be in qemu-1.1, I guess?

I've got this applied and am testing it right now for -rc2.

Oh, having this in rc2 would be awesome. I already tested this patch set (at the time it was submitted) with my patches for libvirt which make use of it and it all worked very nicely and I was finally able to use all the new fancy CPUs :-) If it helps, you can count this as

Jirka

#14 lore raw
In reply to Eduardo Habkost
Quoted 9 lines · Eduardo Habkost

Changes v2 -> v3:
- Actually change 'defconfig' type declaration to bool
- Rebase against latest qemu.git (commit 563987d0a799f90b58a575b190a57546c335191b)

Changes v1 -> v2:
- Move qemu_read_default_config_files() prototype to qemu-config.h
- Make defconfig and userconfig variable bool
- Coding style change

Quoted 6 lines

Patches 1 to 4 just move some code around, patch 5 just adds the new option without adding any new config file. Patch 6 finally creates a /usr/share/qemu /cpus-x86_64.conf file, with the CPU models we currently have on Qemu.

Reference to previous discussion:
- http://marc.info/?l=qemu-devel&m=133278877315665

Applied (as discussed prior to -rc0). Thanks.

Regards,

Anthony Liguori

Quoted 21 lines

Eduardo Habkost (6):
move code to read default config files to a separate function (v2) eliminate arch_config_name variable
move list of default config files to an array
vl.c: change 'defconfig' variable to bool (v2) implement -no-user-config command-line option (v3)
move CPU definitions to /usr/share/qemu/cpus-x86_64.conf (v2)

  Makefile                             |   12 +++-
  arch_init.c                          |   32 ++++++++-
  arch_init.h                          |    2 -
  qemu-config.h                        |    4 +
  qemu-options.hx                      |   16 ++++-
  sysconfigs/target/cpus-x86_64.conf   |  128 ++++++++++++++++++++++++++++++++++
  sysconfigs/target/target-x86_64.conf |  128 ----------------------------------
  vl.c                                 |   18 ++---
  8 files changed, 193 insertions(+), 147 deletions(-)

create mode 100644 sysconfigs/target/cpus-x86_64.conf