Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology APIC ID utility functions

2012-07-13 Thread Eduardo Habkost
On Thu, Jul 12, 2012 at 07:37:26PM +, Blue Swirl wrote: On Tue, Jul 10, 2012 at 8:22 PM, Eduardo Habkost ehabk...@redhat.com wrote: [...] +#ifndef __QEMU_X86_TOPOLOGY_H__ +#define __QEMU_X86_TOPOLOGY_H__ Please remove the leading and trailing underscores. The name should match

Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology APIC ID utility functions

2012-07-16 Thread Eduardo Habkost
On Sat, Jul 14, 2012 at 09:14:30AM +, Blue Swirl wrote: [...] diff --git a/tests/Makefile b/tests/Makefile index b605e14..89bd890 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -15,6 +15,7 @@ check-unit-y += tests/test-string-output-visitor$(EXESUF) check-unit-y +=

[Qemu-devel] [RFC seabios PATCH] enumerate APIC IDs directly from CPUs

2012-07-17 Thread Eduardo Habkost
to know what others think about this approach. I think it is a much simpler approach than relying on some APIC ID = CPU ID translation to make Seabios and QEMU agree. This way, Seabios has absolute freedom to choose the ACPI Processor IDs. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- src

Re: [Qemu-devel] [PATCH v4] Fixes related to processing of qemu's -numa option

2012-07-18 Thread Eduardo Habkost
On Mon, Jul 16, 2012 at 09:31:30PM -0700, Chegu Vinod wrote: Changes since v3: - using bitmap_set() instead of set_bit() in numa_add() routine. - removed call to bitmak_zero() since bitmap_new() also zeros' the bitmap. - Rebased to the latest qemu. Tested-by: Eduardo Habkost ehabk

[Qemu-devel] [PATCH resend] tests: Makefile: include dependency files

2012-07-18 Thread Eduardo Habkost
Otherwise 'make check' won't recompile files that need to be recompiled because of header changes. To reproduce the bug, run: $ make check # succeeds $ echo B0RKED hw/mc146818rtc_regs.h $ make check # is supposed to try to rebuild tests/rtc-test.o and fail Signed-off-by: Eduardo Habkost

Re: [Qemu-devel] [RFC seabios PATCH] enumerate APIC IDs directly from CPUs

2012-07-19 Thread Eduardo Habkost
On Thu, Jul 19, 2012 at 12:58:46PM +0300, Gleb Natapov wrote: On Tue, Jul 17, 2012 at 06:56:30PM -0300, Eduardo Habkost wrote: This patch is an attempt to fix the non-continguous-APIC-ID problem without the FW_CFG_LAPIC_INFO approach I have sent proposed last week. Basically

Re: [Qemu-devel] [RFC seabios PATCH] enumerate APIC IDs directly from CPUs

2012-07-19 Thread Eduardo Habkost
On Thu, Jul 19, 2012 at 11:28:54AM -0300, Eduardo Habkost wrote: On Thu, Jul 19, 2012 at 12:58:46PM +0300, Gleb Natapov wrote: On Tue, Jul 17, 2012 at 06:56:30PM -0300, Eduardo Habkost wrote: This patch is an attempt to fix the non-continguous-APIC-ID problem without

[Qemu-devel] [seabios PATCH 0/2] Allow non-contiguous APIC IDs

2012-07-19 Thread Eduardo Habkost
CPUs are present on boot. Eduardo Habkost (2): acpi: set I/O APIC ID to 0 by default allow CPUs to have non-contiguous Local APIC IDs src/acpi-dsdt.dsl |4 +++- src/acpi.c| 11 ++- src/config.h |2 ++ src/mptable.c |2 +- src/smp.c | 17

[Qemu-devel] [seabios PATCH 1/2] acpi: set I/O APIC ID to 0 by default

2012-07-19 Thread Eduardo Habkost
When resetting an I/O APIC, its ID is set to 0, so set it to 0 on the MADT table too. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- src/acpi.c |2 +- src/config.h |2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/acpi.c b/src/acpi.c index 55e4607

[Qemu-devel] [seabios PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs

2012-07-19 Thread Eduardo Habkost
. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- src/acpi-dsdt.dsl |4 +++- src/acpi.c|9 + src/mptable.c |2 +- src/smp.c | 17 + src/util.h|1 + 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/acpi

Re: [Qemu-devel] [SeaBIOS] [seabios PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs

2012-07-19 Thread Eduardo Habkost
On Thu, Jul 19, 2012 at 09:12:54PM -0400, Kevin O'Connor wrote: On Thu, Jul 19, 2012 at 05:52:42PM -0300, Eduardo Habkost wrote: Extract Local APIC IDs directly from the CPUs, and instead of check for i CountCPUs, check if the APIC ID was present on boot, when building ACPI tables

Re: [Qemu-devel] [seabios PATCH 1/2] acpi: set I/O APIC ID to 0 by default

2012-07-20 Thread Eduardo Habkost
On Fri, Jul 20, 2012 at 12:18:59AM +0300, Gleb Natapov wrote: On Thu, Jul 19, 2012 at 05:52:41PM -0300, Eduardo Habkost wrote: When resetting an I/O APIC, its ID is set to 0, so set it to 0 on the MADT table too. Actually BIOS needs to configure ioapic id to a uniqe value. This does

[Qemu-devel] [SeaBIOS PATCH 0/2] Allow non-contiguous APIC IDs (v2)

2012-07-20 Thread Eduardo Habkost
Small changes from the previous series: - Patch 1/2: cosmetic whitespace change - Patch 2/2: use size suffixes on asm instructions on smp.c - New patch descriptions Eduardo Habkost (2): acpi: report real I/O APIC ID (0) on MADT table allow CPUs to have non-contiguous Local APIC IDs (v2

[Qemu-devel] [SeaBIOS PATCH 1/2] acpi: report real I/O APIC ID (0) on MADT table (v2)

2012-07-20 Thread Eduardo Habkost
v1 - v2: - Cosmetic: whitespace change (removed extra newline) - New patch description Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- src/acpi.c |2 +- src/config.h |1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/acpi.c b/src/acpi.c index d39cbd9

[Qemu-devel] [SeaBIOS PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs (v2)

2012-07-20 Thread Eduardo Habkost
be exactly the same. This patch will simply allow QEMU to start setting non-contiguous APIC IDs (that is a requirement for some sockets/cores/threads topology settings). Changes v1 - v2: - Use size suffixes on all asm instructions on smp.c - New patch description Signed-off-by: Eduardo Habkost ehabk

[Qemu-devel] SeaBIOS, FW_CFG_NUMA, and FW_CFG_MAX_CPUS

2012-07-20 Thread Eduardo Habkost
Hi, While working at the CPU index vs APIC ID changes, I stumbled upon another not-very-well-defined interface between SeaBIOS and QEMU, and I would like to clarify the semantics and constraints of some FW_CFG entries. First, the facts/assumptions: - There's no concept of CPU index or CPU

Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology APIC ID utility functions

2012-07-23 Thread Eduardo Habkost
On Mon, Jul 23, 2012 at 04:49:07PM +, Blue Swirl wrote: On Mon, Jul 16, 2012 at 5:42 PM, Eduardo Habkost ehabk...@redhat.com wrote: On Sat, Jul 14, 2012 at 09:14:30AM +, Blue Swirl wrote: [...] diff --git a/tests/Makefile b/tests/Makefile index b605e14..89bd890 100644

Re: [Qemu-devel] SeaBIOS, FW_CFG_NUMA, and FW_CFG_MAX_CPUS

2012-07-23 Thread Eduardo Habkost
On Mon, Jul 23, 2012 at 06:40:51PM +, Blue Swirl wrote: On Fri, Jul 20, 2012 at 8:00 PM, Eduardo Habkost ehabk...@redhat.com wrote: Hi, While working at the CPU index vs APIC ID changes, I stumbled upon another not-very-well-defined interface between SeaBIOS and QEMU, and I would

Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology APIC ID utility functions

2012-07-23 Thread Eduardo Habkost
On Mon, Jul 23, 2012 at 07:11:11PM +, Blue Swirl wrote: On Mon, Jul 23, 2012 at 6:59 PM, Eduardo Habkost ehabk...@redhat.com wrote: On Mon, Jul 23, 2012 at 04:49:07PM +, Blue Swirl wrote: On Mon, Jul 16, 2012 at 5:42 PM, Eduardo Habkost ehabk...@redhat.com wrote: On Sat, Jul 14

Re: [Qemu-devel] SeaBIOS, FW_CFG_NUMA, and FW_CFG_MAX_CPUS

2012-07-23 Thread Eduardo Habkost
On Mon, Jul 23, 2012 at 07:25:01PM +, Blue Swirl wrote: On Mon, Jul 23, 2012 at 7:09 PM, Eduardo Habkost ehabk...@redhat.com wrote: On Mon, Jul 23, 2012 at 06:40:51PM +, Blue Swirl wrote: On Fri, Jul 20, 2012 at 8:00 PM, Eduardo Habkost ehabk...@redhat.com wrote: Hi, While

Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology APIC ID utility functions

2012-07-23 Thread Eduardo Habkost
On Mon, Jul 23, 2012 at 07:44:44PM +, Blue Swirl wrote: On Mon, Jul 23, 2012 at 7:28 PM, Eduardo Habkost ehabk...@redhat.com wrote: On Mon, Jul 23, 2012 at 07:11:11PM +, Blue Swirl wrote: On Mon, Jul 23, 2012 at 6:59 PM, Eduardo Habkost ehabk...@redhat.com wrote: On Mon, Jul 23

Re: [Qemu-devel] [SeaBIOS PATCH 1/2] acpi: report real I/O APIC ID (0) on MADT table (v2)

2012-07-24 Thread Eduardo Habkost
On Mon, Jul 23, 2012 at 03:16:30PM +0300, Gleb Natapov wrote: On Fri, Jul 20, 2012 at 02:04:49PM -0300, Eduardo Habkost wrote: When resetting an I/O APIC, its ID is set to 0, and SeaBIOS doesn't change it, so report it correctly on the MADT table. Some hardware may require the BIOS

Re: [Qemu-devel] [seabios PATCH 1/2] acpi: set I/O APIC ID to 0 by default

2012-07-24 Thread Eduardo Habkost
On Mon, Jul 23, 2012 at 02:42:27PM +0300, Gleb Natapov wrote: On Fri, Jul 20, 2012 at 01:22:43PM -0300, Eduardo Habkost wrote: On Fri, Jul 20, 2012 at 12:18:59AM +0300, Gleb Natapov wrote: On Thu, Jul 19, 2012 at 05:52:41PM -0300, Eduardo Habkost wrote: When resetting an I/O APIC, its ID

[Qemu-devel] [PATCH 5/7] cpu defs: remove replicated flags from Intel (v2)

2012-02-17 Thread Eduardo Habkost
cooper john.coo...@redhat.com Changes v1 - v2: - Rebase against latest Qemu git tree Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysconfigs/target/target-x86_64.conf b

[Qemu-devel] [PATCH 1/7] cpu models: reorder flag list to match bit order

2012-02-17 Thread Eduardo Habkost
to compare the flag values in the config files: https://gist.github.com/1004885 Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf | 36 +- 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/sysconfigs/target/target

[Qemu-devel] [PATCH 3/7] cpu defs: use Intel flag names for Intel models (v2)

2012-02-17 Thread Eduardo Habkost
submission is at Message-ID: 4ddad5e7.2020...@redhat.com, http://marc.info/?l=qemu-develm=130618871926030. Changes v1 - v2: - Rebase patch against latest Qemu git tree Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf |6 +++--- target-i386/cpuid.c

[Qemu-devel] [PATCH 4/7] cpu defs: add pse36, mca, mtrr to AMD CPU definitions (v2)

2012-02-17 Thread Eduardo Habkost
] -- Intel host [Opteron_G1, Opteron_G2, Opteron_G3] x [F12-64, win64, win32] -- AMD host Yielding successful boots in all cases. Signed-off-by: john cooper john.coo...@redhat.com Changes v1 - v2: - Rebase against latest Qemu git tree Signed-off-by: Eduardo Habkost ehabk...@redhat.com

[Qemu-devel] [PATCH 7/7] cpu defs: uncomment empty extfeatures_ecx definition for Opteron_G1 (v2)

2012-02-17 Thread Eduardo Habkost
://marc.info/?l=qemu-develm=130618871926030. Changes v1 - v2: - Rebase against latest Qemu git tree Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sysconfigs/target/target-x86_64.conf

[Qemu-devel] [PATCH 2/7] cpu flags: aliases: pclmuldq|pclmulqdq and ffxsr|fxsr_opt

2012-02-17 Thread Eduardo Habkost
as ffxsr, so allow this named to be used too. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpuid.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index b9bfeaf..aa19260 100644 --- a/target-i386/cpuid.c

[Qemu-devel] [PATCH 0/7] cpu model bug fixes and definition corrections (v3)

2012-02-17 Thread Eduardo Habkost
://marc.info/?l=qemu-develm=130704282917358 Eduardo Habkost (7): cpu models: reorder flag list to match bit order cpu flags: aliases: pclmuldq|pclmulqdq and ffxsr|fxsr_opt cpu defs: use Intel flag names for Intel models (v2) cpu defs: add pse36, mca, mtrr to AMD CPU definitions (v2) cpu defs

[Qemu-devel] [PATCH 6/7] add Westmere as a qemu cpu model (v2)

2012-02-17 Thread Eduardo Habkost
separate fro Nehalem allows us to more easily address such quirks. [ehabkost: edited commit message to have a better Subject line] Signed-off-by: john cooper john.coo...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com Changes version 1 - version 2: - Remove

Re: [Qemu-devel] [RFC 05/12] target-i386: QOM'ify CPU

2012-03-15 Thread Eduardo Habkost
On Wed, Mar 14, 2012 at 06:53:29PM +0100, Andreas Färber wrote: [...] +/** + * X86CPUClass: + * @parent_reset: The parent class' reset handler. + * + * An x86 CPU model or family. + */ +typedef struct X86CPUClass { +/* private */ +CPUClass parent_class; +/* public */ + +

[Qemu-devel] [PATCH 0/3] add --confdir option to configure

2012-03-19 Thread Eduardo Habkost
This series change the Makefile to use $(confdir) instead of $(sysconfdir)/qemu, and allows the full config path configurable instead of forcing the use of $(sysconfdir)/qemu. Eduardo Habkost (3): Makefile: use $(confdir) instead of hardcoding $(sysconfdir)/qemu qemu-options.hx: refer

[Qemu-devel] [PATCH 0/3] -readconfig: accept fd=fd option (v2)

2012-03-19 Thread Eduardo Habkost
some code to qemu-config-arch.c, as it will eventually have arch-specific features Eduardo Habkost (3): qemu-config.h: include qemu-option.h -readconfig: use QemuOpts option format (v2) -readconfig: accept fd=fd option (v2) Makefile.target|2 +- qemu-config-arch.c | 86

[Qemu-devel] [PATCH 1/3] Makefile: use $(confdir) instead of hardcoding $(sysconfdir)/qemu

2012-03-19 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1bc3cb0..9d583c4 100644 --- a/Makefile +++ b/Makefile @@ -279,8 +279,8 @@ ifdef CONFIG_VIRTFS $(INSTALL_DATA) fsdev/virtfs

[Qemu-devel] [PATCH 3/3] -readconfig: accept fd=fd option (v2)

2012-03-19 Thread Eduardo Habkost
Chhanges v1 - v2: - Moved code to qemu-config-arch.c Cc: Ronnie Sahlberg ronniesahlb...@gmail.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- qemu-config-arch.c | 21 +++-- qemu-config.c | 16 qemu-config.h |4 qemu-options.hx

[Qemu-devel] [PATCH 2/3] -readconfig: use QemuOpts option format (v2)

2012-03-19 Thread Eduardo Habkost
stuff, such as the list of default config files, and qemu-config.o is not arch-specific. Changes v1 - v2: - Create qemu-config-arch.c for the readconfig-specific code that will depend on arch-specific stuff Cc: Ronnie Sahlberg ronniesahlb...@gmail.com Signed-off-by: Eduardo Habkost ehabk

[Qemu-devel] [PATCH 1/3] qemu-config.h: include qemu-option.h

2012-03-19 Thread Eduardo Habkost
It uses QemuOptList, so it needs qemu-option.h to be included. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- qemu-config.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/qemu-config.h b/qemu-config.h index 20d707f..ba7796c 100644 --- a/qemu-config.h +++ b/qemu

[Qemu-devel] [PATCH 3/3] configure: make full config dir path configurable

2012-03-19 Thread Eduardo Habkost
Instead of hardcoding $sysconfdir/qemu, let the user choose the full path. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 8b4e3c1..98027c1 100755 --- a/configure

[Qemu-devel] [PATCH 2/3] qemu-options.hx: refer to confdir instead of sysconfdir on docs

2012-03-19 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- qemu-options.hx |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index daefce3..39578f1 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2676,8 +2676,8 @@ DEF(nodefconfig, 0

[Qemu-devel] [RFC PATCH 2/3] implement -readconfig help=defconfig option

2012-03-19 Thread Eduardo Habkost
This method will list the paths of all default config files. This is where the placement of qemu_read_config_arg() on qemu-config-arch.c becomes necessary: we have to use the list of config files to implement the new help option. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- qemu

[Qemu-devel] [RFC PATCH 0/3] Move CPU model config file to /usr/share

2012-03-19 Thread Eduardo Habkost
of both the ./configure --confdir and the -readconfig fd=fd series I submitted earlier today. Eduardo Habkost (3): move list of default config files to qemu-config-arch.c implement -readconfig help=defconfig option move cpudef config sections to /usr/share/qemu/cpudefs-x86_64.conf Makefile

Re: [Qemu-devel] [PATCH 0/3] add --confdir option to configure

2012-03-19 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 10:14:54AM -0500, Anthony Liguori wrote: On 03/19/2012 09:47 AM, Eduardo Habkost wrote: This series change the Makefile to use $(confdir) instead of $(sysconfdir)/qemu, and allows the full config path configurable instead of forcing the use of $(sysconfdir)/qemu

[Qemu-devel] [RFC PATCH 1/3] move list of default config files to qemu-config-arch.c

2012-03-19 Thread Eduardo Habkost
Move the list to an array, with a type field to identify the config file purpose/type. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- arch_init.c|1 - arch_init.h|2 -- qemu-config-arch.c | 36 qemu-config-arch.h |4

Re: [Qemu-devel] [PATCH 0/3] -readconfig: accept fd=fd option (v2)

2012-03-19 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 10:10:27AM -0500, Anthony Liguori wrote: On 03/19/2012 09:54 AM, Eduardo Habkost wrote: This is a resubmit of a previous series I sent as a RFC, with some changes to prepare for an upcoming patch that will make additional changes to the default config-file loading

[Qemu-devel] [RFC PATCH 3/3] move cpudef config sections to /usr/share/qemu/cpudefs-x86_64.conf

2012-03-19 Thread Eduardo Habkost
in the future. This patch will make sure management systems can reuse the cpudefs today using -readconfig, without worrying about how the cpudef config syntax works. As agreed on previous discussions, -nodefconfig will disable the loading of this file, as expected. Signed-off-by: Eduardo Habkost ehabk

Re: [Qemu-devel] [PATCH 0/3] add --confdir option to configure

2012-03-19 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 10:34:06AM -0500, Anthony Liguori wrote: On 03/19/2012 10:31 AM, Eduardo Habkost wrote: On Mon, Mar 19, 2012 at 10:14:54AM -0500, Anthony Liguori wrote: On 03/19/2012 09:47 AM, Eduardo Habkost wrote: This series change the Makefile to use $(confdir) instead

Re: [Qemu-devel] [PATCH 0/3] -readconfig: accept fd=fd option (v2)

2012-03-19 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 10:39:10AM -0500, Anthony Liguori wrote: On 03/19/2012 10:37 AM, Eduardo Habkost wrote: On Mon, Mar 19, 2012 at 10:10:27AM -0500, Anthony Liguori wrote: On 03/19/2012 09:54 AM, Eduardo Habkost wrote: This is a resubmit of a previous series I sent as a RFC, with some

Re: [Qemu-devel] [PATCH 0/3] add --confdir option to configure

2012-03-19 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 10:59:35AM -0500, Anthony Liguori wrote: On 03/19/2012 10:43 AM, Eduardo Habkost wrote: On Mon, Mar 19, 2012 at 10:34:06AM -0500, Anthony Liguori wrote: On 03/19/2012 10:31 AM, Eduardo Habkost wrote: On Mon, Mar 19, 2012 at 10:14:54AM -0500, Anthony Liguori wrote

Re: [Qemu-devel] [PATCH 0/3] add --confdir option to configure

2012-03-19 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 05:13:22PM +0100, Paolo Bonzini wrote: Il 19/03/2012 16:43, Eduardo Habkost ha scritto: No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm would carry a patch to configure that changed a fixed PACKAGE_NAME define. Are you really suggesting

Re: [Qemu-devel] [PATCH 0/3] -readconfig: accept fd=fd option (v2)

2012-03-19 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 11:21:07AM -0500, Anthony Liguori wrote: On 03/19/2012 11:06 AM, Eduardo Habkost wrote: On Mon, Mar 19, 2012 at 10:39:10AM -0500, Anthony Liguori wrote: On 03/19/2012 10:37 AM, Eduardo Habkost wrote: On Mon, Mar 19, 2012 at 10:10:27AM -0500, Anthony Liguori wrote

Re: [Qemu-devel] [PATCH 0/3] add --confdir option to configure

2012-03-19 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 11:22:26AM -0500, Anthony Liguori wrote: On 03/19/2012 11:20 AM, Eduardo Habkost wrote: On Mon, Mar 19, 2012 at 05:13:22PM +0100, Paolo Bonzini wrote: Il 19/03/2012 16:43, Eduardo Habkost ha scritto: No, I'm not suggesting --package-name, I'm suggesting that qemu-kvm

Re: [Qemu-devel] [PATCH 0/3] -readconfig: accept fd=fd option (v2)

2012-03-19 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 11:45:00AM -0500, Anthony Liguori wrote: On the other hand, I: - Would like to let the user (a human) list where are the default config files being used by Qemu; This should be provided via a QMP command and as part of -query-capabilities (see previous series).

Re: [Qemu-devel] [PATCH 0/3] add --confdir option to configure

2012-03-19 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 05:31:34PM +0100, Paolo Bonzini wrote: Il 19/03/2012 17:20, Eduardo Habkost ha scritto: Anyway, even if we decide that package name shouldn't be changed: why changing mandir, This one is because all manpages are under /usr/man/manSECT docdir and datadir doesn't

Re: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-03-20 Thread Eduardo Habkost
On Tue, Mar 20, 2012 at 12:53:57PM +, Liu, Jinsong wrote: Rik van Riel wrote: On 03/09/2012 01:27 PM, Liu, Jinsong wrote: As for 'tsc deadline' feature exposing, my patch (as attached) just obey qemu general cpuid exposing method, and also satisfied your target I think. One

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-20 Thread Eduardo Habkost
, Eduardo Habkost wrote: Resurrecting an old thread: [...] -- Eduardo

Re: [Qemu-devel] [PATCH 8/9] vl: add -query-capabilities

2012-03-20 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 10:09:22AM -0500, Anthony Liguori wrote: This dumps the results of query-version, query-commands, and query-config-capabilities into a single JSON object on stdout. Signed-off-by: Anthony Liguori aligu...@us.ibm.com What about a mode where no machine and devices are

Re: [Qemu-devel] [RFC PATCH 0/9] qemu capabilities reporting and config changes

2012-03-20 Thread Eduardo Habkost
On Mon, Mar 19, 2012 at 05:09:57PM +0100, Paolo Bonzini wrote: Il 19/03/2012 16:09, Anthony Liguori ha scritto: [...] I would like to push this series into 1.1 I think it's too early. However, we can definitely apply 1/2/7/8/9 now. I like patch 3 a lot, too. It would open the door for

[Qemu-devel] [PATCH 3/3] configure: add --confsuffix option

2012-03-20 Thread Eduardo Habkost
This way we can choose a configuration file path different from ${sysconfdir}/PACKAGE. This also changes the configure output to show the full configuration dir path (including $confsuffix), instead of just $sysconfdir. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |7

[Qemu-devel] [PATCH 2/3] qemu-options.hx: refer to confdir instead of sysconfdir on docs

2012-03-20 Thread Eduardo Habkost
The current docs are wrong: ${sysconfdir} is (by default) /etc, ${confdir} is (by default) /etc/qemu, that's where the config files are stored. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- qemu-options.hx |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu

[Qemu-devel] [PATCH 0/3] add ./configure --confsuffix option (v2)

2012-03-20 Thread Eduardo Habkost
This is a new try to make the full configuration path configurable. As the approach using --confdir was rejected because the package name is something immutable, this adds a option where we can ask Qemu to use a directory name that is not equal to the package name. Eduardo Habkost (3

[Qemu-devel] [PATCH 1/3] Makefile: use $(confdir) instead of hardcoding $(sysconfdir)/qemu

2012-03-20 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1bc3cb0..9d583c4 100644 --- a/Makefile +++ b/Makefile @@ -279,8 +279,8 @@ ifdef CONFIG_VIRTFS $(INSTALL_DATA) fsdev/virtfs

[Qemu-devel] [PATCH] fix '-cpu ?' Segfault

2012-03-21 Thread Eduardo Habkost
Fix stupid copypaste mistake at commit ecf40beae7dcbb057d4f115207f9d8276832a774: I moved code around but kept optarg on the cpu_list() call. Reported-by: Jiri Denemark jdene...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- vl.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [Qemu-devel] [PATCH 2/3] qemu-options.hx: refer to confdir instead of sysconfdir on docs

2012-03-21 Thread Eduardo Habkost
On Wed, Mar 21, 2012 at 01:43:58PM +0100, Paolo Bonzini wrote: Il 20/03/2012 21:15, Eduardo Habkost ha scritto: The current docs are wrong: ${sysconfdir} is (by default) /etc, ${confdir} is (by default) /etc/qemu, that's where the config files are stored. Signed-off-by: Eduardo Habkost

Re: [Qemu-devel] [PATCH 3/3] configure: add --confsuffix option

2012-03-21 Thread Eduardo Habkost
On Wed, Mar 21, 2012 at 01:39:39PM +0100, Paolo Bonzini wrote: Il 20/03/2012 21:15, Eduardo Habkost ha scritto: This way we can choose a configuration file path different from ${sysconfdir}/PACKAGE. This also changes the configure output to show the full configuration dir path

Re: [Qemu-devel] [PATCH 3/3] configure: add --confsuffix option

2012-03-22 Thread Eduardo Habkost
On Wed, Mar 21, 2012 at 11:23:00PM +0100, Paolo Bonzini wrote: Il 21/03/2012 15:42, Eduardo Habkost ha scritto: For this one, we would have compatibility issues to take care of: ./configure --datadir=FOO --sysconfdir=SYS qemu data dir: FOO (it would be better if it was FOO/qemu

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-22 Thread Eduardo Habkost
On Thu, Mar 22, 2012 at 11:32:44AM +0200, Gleb Natapov wrote: On Tue, Mar 13, 2012 at 11:53:19AM -0300, Eduardo Habkost wrote: So, trying to summarize what was discussed in the call: On Mon, Mar 12, 2012 at 10:08:10AM -0300, Eduardo Habkost wrote: Let's say we moved CPU definitions

Re: [Qemu-devel] [PATCH] fix '-cpu ?' Segfault

2012-03-22 Thread Eduardo Habkost
On Thu, Mar 22, 2012 at 02:46:48PM +0100, Andreas Färber wrote: Am 22.03.2012 14:28, schrieb Stefan Berger: On 03/21/2012 08:33 AM, Eduardo Habkost wrote: Fix stupid copypaste mistake at commit ecf40beae7dcbb057d4f115207f9d8276832a774: I moved code around but kept optarg on the cpu_list

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-22 Thread Eduardo Habkost
On Thu, Mar 22, 2012 at 04:30:55PM +0200, Gleb Natapov wrote: On Thu, Mar 22, 2012 at 10:31:21AM -0300, Eduardo Habkost wrote: On Thu, Mar 22, 2012 at 11:32:44AM +0200, Gleb Natapov wrote: What does this mean? Will -nodefconfig disable loading of bios.bin, option roms, keymaps

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-22 Thread Eduardo Habkost
On Thu, Mar 22, 2012 at 11:37:39AM -0500, Anthony Liguori wrote: On 03/22/2012 04:32 AM, Gleb Natapov wrote: On Tue, Mar 13, 2012 at 11:53:19AM -0300, Eduardo Habkost wrote: So, this problem is solved if the defaults are easily found on /usr/share. What problem is solved and why are we

Re: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-03-23 Thread Eduardo Habkost
On Fri, Mar 23, 2012 at 03:49:27AM +, Liu, Jinsong wrote: Eduardo Habkost wrote: [1] From Documentation/virtual/kvm/api.txt: KVM_GET_SUPPORTED_CPUID [...] This ioctl returns x86 cpuid features which are supported by both the hardware and kvm. Userspace can use the information

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-26 Thread Eduardo Habkost
On Sun, Mar 25, 2012 at 12:19:13PM +0200, Gleb Natapov wrote: (That's why I said that perhaps keymaps could become configuration someday. Because maybe they can be converted to a key=value model relatively easily) Such whole sale approach is harmful since it starts to affect design

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-26 Thread Eduardo Habkost
On Mon, Mar 26, 2012 at 02:03:21PM +0200, Gleb Natapov wrote: On Mon, Mar 26, 2012 at 01:59:05PM +0200, Avi Kivity wrote: On 03/26/2012 01:24 PM, Jiri Denemark wrote: ... The command line becomes unstable if you use -nodefconfig. -no-user-config solves this but I fully expect

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-26 Thread Eduardo Habkost
On Sun, Mar 25, 2012 at 01:11:04PM -0500, Anthony Liguori wrote: On 03/25/2012 10:40 AM, Avi Kivity wrote: On 03/25/2012 05:26 PM, Anthony Liguori wrote: Put the emphasis around *configuration*. So how about: 1) Load ['@SYSCONFDIR@/qemu/qemu.cfg', '@SYSCONFDIR@/qemu/target-@ARCH@.cfg',

[Qemu-devel] [PATCH 12/14] create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX

2012-03-30 Thread Eduardo Habkost
As now that block handles only the prefix variable, the code can be much simpler. This also removes the CONFIG_QEMU_PREFIX define as it is not used by any C code. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- scripts/create_config |7 +-- 1 files changed, 1 insertions(+), 6

[Qemu-devel] [PATCH 14/14] configure: add --confsuffix option

2012-03-30 Thread Eduardo Habkost
This will allow the user to make Qemu use a different subdirectory name inside $datadir and $sysconfdir, instead of /qemu. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configure b/configure index

[Qemu-devel] [PATCH 07/14] Makefile: use $(qemu_confdir) instead of $(sysconfdir)/qemu

2012-03-30 Thread Eduardo Habkost
Instead of hardcoding the directory suffix, use the qemu-specific directory variable. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 605f1aa..bda3680 100644 --- a/Makefile +++ b

[Qemu-devel] [PATCH 02/14] configure: rename $docdir to $qemu_docdir

2012-03-30 Thread Eduardo Habkost
The autoconf docdir variable is used for the program-specific subdirectory, but anyway it's better to make it clear that the variable is used for the qemu-specific subdirectory path. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |8 1 files changed, 4 insertions

[Qemu-devel] [PATCH 03/14] configure: rename $confdir to $qemu_confdir

2012-03-30 Thread Eduardo Habkost
There's no confdir variable on Autoconf, but it's good to make it clear that it's a variable for the Qemu-specific subdirectory inside $sysconfdir. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH 09/14] config-host.mak: remove CONFIG_QEMU_SHAREDIR

2012-03-30 Thread Eduardo Habkost
There is no code using that variable according to 'git grep', so kill it. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/configure b/configure index fc206ff..b02dfa3 100755 --- a/configure +++ b/configure

[Qemu-devel] [PATCH 00/14] configure: --with-confsuffix option

2012-03-30 Thread Eduardo Habkost
on create_config is removed: create_config: remove *dir block create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX Finally, the user-visible changes: configure: change meaning of --datadir to Autoconf convention configure: add --confsuffix option Eduardo Habkost (14

[Qemu-devel] [PATCH 08/14] config-host.mak: rename docdir to qemu_docdir

2012-03-30 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile |4 ++-- configure |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bda3680..a308471 100644 --- a/Makefile +++ b/Makefile @@ -267,8 +267,8 @@ BLOBS= endif install-doc

[Qemu-devel] [PATCH 10/14] config-host.mak: reorder variables a bit

2012-03-30 Thread Eduardo Habkost
Cosmetic change. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b02dfa3..5de58cb 100755 --- a/configure +++ b/configure @@ -2973,10 +2973,10 @@ echo bindir=$bindir

[Qemu-devel] [PATCH 05/14] config-host.mak: rename datadir to qemu_datadir

2012-03-30 Thread Eduardo Habkost
) for both datadir and qemu_datadir variables. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile|8 Makefile.target |4 ++-- configure |2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index d8e1f36..605f1aa 100644

[Qemu-devel] [PATCH 01/14] configure: rename $datadir to $qemu_datadir

2012-03-30 Thread Eduardo Habkost
-by: Eduardo Habkost ehabk...@redhat.com --- configure | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 14ef738..97294a6 100755 --- a/configure +++ b/configure @@ -155,7 +155,7 @@ mingw32=no EXESUF= prefix=/usr/local mandir=\${prefix}/share/man

[Qemu-devel] [PATCH 06/14] config-host.mak: rename confdir to qemu_confdir

2012-03-30 Thread Eduardo Habkost
(CONFIG_QEMU_CONFDIR) for both confdir and qemu_confdir variables. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 15bb48d..58c6f17 100755 --- a/configure +++ b/configure @@ -2976,7 +2976,7

[Qemu-devel] [PATCH 13/14] configure: change meaning of --datadir to Autoconf convention

2012-03-30 Thread Eduardo Habkost
Autoconf uses --datadir for the /usr/share directory, not the program-specific subdirectory inside /usr/share. This changes configure to match autoconf behavior. Note that this will break compatibility with existing build scripts. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure

[Qemu-devel] [PATCH 04/14] create_config: separate section for qemu_*dir variables

2012-03-30 Thread Eduardo Habkost
CONFIG_QEMU_XXXDIR as well (instead of becoming a CONFIG_QEMU_QEMU_XXXDIR define). Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- scripts/create_config |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/scripts/create_config b/scripts/create_config index 0098e68

[Qemu-devel] [PATCH 11/14] create_config: remove *dir block

2012-03-30 Thread Eduardo Habkost
This patch keeps the 'prefix=*' (CONFIG_QEMU_PREFIX) pattern because other variables may use $prefix on their config-host.mak definitions. The remaining code will be simplified on a further patch. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- scripts/create_config |2 +- 1 files changed

Re: [Qemu-devel] [PATCH 14/14] configure: add --confsuffix option

2012-04-04 Thread Eduardo Habkost
On Wed, Apr 04, 2012 at 05:26:10PM +0200, Paolo Bonzini wrote: Il 30/03/2012 19:33, Eduardo Habkost ha scritto: [...] -echo --sysconfdir=PATHinstall config in PATH/qemu +echo --sysconfdir=PATHinstall config in PATH$confsuffix +echo --with-confsuffix=SUFFIX suffix

Re: [Qemu-devel] [PATCH 13/14] configure: change meaning of --datadir to Autoconf convention

2012-04-04 Thread Eduardo Habkost
On Wed, Apr 04, 2012 at 05:25:14PM +0200, Paolo Bonzini wrote: Il 30/03/2012 19:33, Eduardo Habkost ha scritto: Autoconf uses --datadir for the /usr/share directory, not the program-specific subdirectory inside /usr/share. This changes configure to match autoconf behavior. Note

[Qemu-devel] [PATCH 13/14] configure: change meaning of --datadir to Autoconf convention

2012-04-04 Thread Eduardo Habkost
Autoconf uses --datadir for the /usr/share directory, not the program-specific subdirectory inside /usr/share. This changes configure to match autoconf behavior. Note that this will break compatibility with existing build scripts. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure

[Qemu-devel] [PATCH 07/14] Makefile: use $(qemu_confdir) instead of $(sysconfdir)/qemu

2012-04-04 Thread Eduardo Habkost
Instead of hardcoding the directory suffix, use the qemu-specific directory variable. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1c9abec..795f9c4 100644 --- a/Makefile +++ b

[Qemu-devel] [PATCH v4 00/14] configure: --with-confsuffix option

2012-04-04 Thread Eduardo Habkost
: create_config: remove *dir block create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX Finally, the user-visible changes: configure: change meaning of --datadir to Autoconf convention configure: add --with-confsuffix option Eduardo Habkost (14): configure: rename $datadir

[Qemu-devel] [PATCH 04/14] create_config: separate section for qemu_*dir variables (v2)

2012-04-04 Thread Eduardo Habkost
CONFIG_QEMU_XXXDIR as well (instead of becoming a CONFIG_QEMU_QEMU_XXXDIR define). Changes v1 - v2: - Rebase on top of newer qemu.git changes, that changed tr '[:lower:]' '[:upper:]' to LC_ALL=C tr '[a-z]' '[A-Z]'. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- scripts/create_config |9

[Qemu-devel] [PATCH 06/14] config-host.mak: rename confdir to qemu_confdir

2012-04-04 Thread Eduardo Habkost
(CONFIG_QEMU_CONFDIR) for both confdir and qemu_confdir variables. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 76144aa..7009030 100755 --- a/configure +++ b/configure @@ -2983,7 +2983,7

[Qemu-devel] [PATCH 09/14] config-host.mak: remove CONFIG_QEMU_SHAREDIR

2012-04-04 Thread Eduardo Habkost
There is no code using that variable according to 'git grep', so kill it. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/configure b/configure index f15b714..eca08bb 100755 --- a/configure +++ b/configure

[Qemu-devel] [PATCH 02/14] configure: rename $docdir to $qemu_docdir

2012-04-04 Thread Eduardo Habkost
The autoconf docdir variable is used for the program-specific subdirectory, but anyway it's better to make it clear that the variable is used for the qemu-specific subdirectory path. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |8 1 files changed, 4 insertions

[Qemu-devel] [PATCH 14/14] configure: add --with-confsuffix option

2012-04-04 Thread Eduardo Habkost
This will allow the user to make Qemu use a different subdirectory name inside $datadir and $sysconfdir, instead of /qemu. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- configure |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configure b/configure index

[Qemu-devel] [PATCH 05/14] config-host.mak: rename datadir to qemu_datadir

2012-04-04 Thread Eduardo Habkost
) for both datadir and qemu_datadir variables. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile|8 Makefile.target |4 ++-- configure |2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 35c7a2a..1c9abec 100644

<    1   2   3   4   5   6   7   8   9   10   >