Re: [Qemu-devel] setting migrate_downtime results in halted vm (qemu 1.3)

2012-12-27 Thread Alexandre DERUMIER
Hi list, After discuss with Stefan Yesterday here some more info: (this is for stable qemu 1.3, it was working fine with qemu 1.2) The problem seem that whesettings a migrate_set_downtime to 1sec, the transfert of the vm seem to send all the memory of the vm in 1 step, and not by increment. So

[Qemu-devel] [PATCH] Disable semaphores fallback code for OpenBSD

2012-12-27 Thread Brad Smith
Disable the semaphores fallback code for OpenBSD as modern OpenBSD releases now have sem_timedwait(). Signed-off-by: Brad Smith diff --git a/include/qemu/thread-posix.h b/include/qemu/thread-posix.h index 380bae2..0f30dcc 100644 --- a/include/qemu/thread-posix.h +++ b/include/qemu/thread-posix.h

[Qemu-devel] [PATCH] Fix semaphores fallback code

2012-12-27 Thread Brad Smith
As reported in bug 1087114 the semaphores fallback code is broken which results in QEMU crashing and making QEMU unusable. This patch is from Paolo. This needs to be back ported to the 1.3 stable tree as well. Signed-off-by: Paolo Bonzini Signed-off-by: Brad Smith diff --git a/util/qemu-thre

[Qemu-devel] [PATCH 2/3 v2] Reset qemu timers when guest reset

2012-12-27 Thread Bharat Bhushan
This patch install the timer reset handler. This will be called when the guest is reset. Signed-off-by: Bharat Bhushan --- v2: same as v1 hw/ppc_booke.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/ppc_booke.c b/hw/ppc_booke.c index d51e7fa..837a5b6 1

[Qemu-devel] [PATCH 3/3 v2] Enable kvm emulated watchdog

2012-12-27 Thread Bharat Bhushan
Enable the KVM emulated watchdog if KVM supports (use the capability enablement in watchdog handler). Also watchdog exit (KVM_EXIT_WATCHDOG) handling is added. Watchdog state machine is cleared whenever VM state changes to running. This is to handle the cases like return from debug halt etc. Signe

[Qemu-devel] [PATCH 1/3 v2] Synchronized the linux headers

2012-12-27 Thread Bharat Bhushan
This is needed for the watchdog patches (follow up patches) Signed-off-by: Bharat Bhushan --- v2: same as v1 linux-headers/asm-generic/kvm_para.h |4 + linux-headers/asm-powerpc/epapr_hcalls.h | 98 ++ linux-headers/asm-powerpc/kvm.h | 86 ++

[Qemu-devel] [PATCH 0/3 v2] Enable and Handle in-kernel watchdog emulation

2012-12-27 Thread Bharat Bhushan
The Patchset enables and handle the in-kernel watchdog emulation if KVM supports. The first Patch is synchronizes the Linux-headers as this is needed for enabling the in-kernel watchdog emulation. The Second Patch installs the timer reset handler and the Third patch enables and handles the watchdog

[Qemu-devel] setting migrate_downtime results in halted vm

2012-12-27 Thread Stefan Priebe
Hello list, i'm using qemu 1.3 and migration works fine if i do not set migrate_downtime. If i set migrate_downtime to 1s or 0.5s or 0.3s the VM halts immediatly i cannot even connect to the qmp socket anymore and migration takes 5-10 minutes or never finishes. I see high cpu usage on sour

Re: [Qemu-devel] [PATCH 20/20] target-i386: set custom 'family' without intermediate x86_def_t

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:36PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost > --- > target-i386/cpu.c |8 +--- > 1 files changed, 1 insertions(+), 7 deletions(-) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 8c65012..fd5

Re: [Qemu-devel] [PATCH 01/20] target-i386: filter out not TCG features if running without kvm at realize time

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 08:15:18PM +0100, Igor Mammedov wrote: > On Thu, 27 Dec 2012 16:41:47 -0200 > Eduardo Habkost wrote: > > > On Thu, Dec 27, 2012 at 03:59:17PM +0100, Igor Mammedov wrote: > > > Signed-off-by: Igor Mammedov > > > Reviewed-by: Eduardo Habkost > > > Signed-off-by: Eduardo Ha

Re: [Qemu-devel] [PATCH 19/20] target-i386: set custom 'model' without intermediate x86_def_t

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:35PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost > --- > target-i386/cpu.c |8 +--- > 1 files changed, 1 insertions(+), 7 deletions(-) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 3ee4c65..8c65

Re: [Qemu-devel] [PATCH 18/20] target-i386: set custom 'stepping' without intermediate x86_def_t

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:34PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost > --- > target-i386/cpu.c |8 +--- > 1 files changed, 1 insertions(+), 7 deletions(-) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index aab5f6f..3ee4

Re: [Qemu-devel] [PATCH 17/20] target-i386: set custom 'model-id' without intermediate x86_def_t

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:33PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost > --- > target-i386/cpu.c |3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 1cb2f08..aab5f6f

Re: [Qemu-devel] [PATCH 16/20] target-i386: set custom 'level' without intermediate x86_def_t

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:32PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost Now I am starting to see why you are using featurestr in the qdict_put() calls. :-) > --- > target-i386/cpu.c |8 +--- > 1 files changed, 1 insertions(+), 7 dele

Re: [Qemu-devel] [PATCH 15/20] target-i386: set custom 'xlevel' without intermediate x86_def_t

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:31PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > --- > target-i386/cpu.c |4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 0764015..d8af528 100644 > --- a/target-i386/cpu.c

Re: [Qemu-devel] [PATCH 13/20] target-i386: set custom 'vendor' without intermediate x86_def_t

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:29PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost I would write it as qdict_put(*props, "vendor", qstring_from_str(val)) instead. It would make the property-setting code more greppable (and easier to read IMO). On the o

Re: [Qemu-devel] [PATCH 14/20] target-i386: print depricated warning if xlevel < 0x80000000

2012-12-27 Thread Igor Mammedov
On Thu, 27 Dec 2012 17:09:16 -0200 Eduardo Habkost wrote: > On Thu, Dec 27, 2012 at 03:59:30PM +0100, Igor Mammedov wrote: > > Signed-off-by: Igor Mammedov > > --- > > target-i386/cpu.c |2 ++ > > 1 files changed, 2 insertions(+), 0 deletions(-) > > > > diff --git a/target-i386/cpu.c b/tar

Re: [Qemu-devel] [PATCH 01/20] target-i386: filter out not TCG features if running without kvm at realize time

2012-12-27 Thread Igor Mammedov
On Thu, 27 Dec 2012 16:41:47 -0200 Eduardo Habkost wrote: > On Thu, Dec 27, 2012 at 03:59:17PM +0100, Igor Mammedov wrote: > > Signed-off-by: Igor Mammedov > > Reviewed-by: Eduardo Habkost > > Signed-off-by: Eduardo Habkost > > Patch is OK, but Subject line needs to be fixed. You are moving t

Re: [Qemu-devel] [PATCH 12/20] target-i386: prepare cpu_x86_parse_featurestr() to return a set of key, value property pairs

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:28PM +0100, Igor Mammedov wrote: > It prepares for converting "+feature,-feature,feature=foo,feature" into > a set of key,value property pairs that will be applied to CPU by > cpu_x86_set_props(). > > It separates legacy format parsing from property setting, later it

Re: [Qemu-devel] [PATCH 14/20] target-i386: print depricated warning if xlevel < 0x80000000

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:30PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > --- > target-i386/cpu.c |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 084faeb..0764015 100644 > --- a/target-i386/cpu.c >

Re: [Qemu-devel] [PATCH 11/20] target-i386: remove vendor_override field from CPUX86State

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:27PM +0100, Igor Mammedov wrote: > commit 8935499831312 makes cpuid return to guest host's vendor value > instead of built-in one by default if kvm_enabled() == true and allows > to override this behavior if 'vendor' is specified on -cpu command line. > > But every ti

Re: [Qemu-devel] [PATCH 10/20] target-i386: replace uint32_t vendor fields by vendor string in x86_def_t

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:26PM +0100, Igor Mammedov wrote: > Vendor property setter takes string as vendor value but cpudefs > use uint32_t vendor[123] fields to define vendor value. It makes it > difficult to unify and use property setter for values from cpudefs. > > Simplify code by using ve

Re: [Qemu-devel] [PATCH 09/20] target-i386: add x86cpu_vendor_words2str()

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:25PM +0100, Igor Mammedov wrote: > Make for() cycle reusable for the next patch > > Signed-off-by: Igor Mammedov > Reviewed-by: Eduardo Habkost To confirm that this specific submission looks OK to me: Reviewed-by: Eduardo Habkost > --- > target-i386/cpu.c | 2

Re: [Qemu-devel] [PATCH 08/20] target-i386: move kvm_check_features_against_host() check to realize time

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:24PM +0100, Igor Mammedov wrote: > kvm_check_features_against_host() should be called when features can't be > changed > and when features are convereted to properties it would be possible to change > them > until realize time, so correct way is to call > kvm_check_

Re: [Qemu-devel] [PATCH 07/20] target-i386: cpu_x86_register() consolidate freeing resources

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:23PM +0100, Igor Mammedov wrote: > freeing resources in one place would require setting 'error' > to not NULL, so add some more error reporting before jumping to > exit branch. > > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost > --- > v2: >- add

Re: [Qemu-devel] [PATCH 06/20] target-i386: move out CPU features initialization in separate func

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:22PM +0100, Igor Mammedov wrote: > No functional change, a simple code movement to simplify following > refactoring. > > Signed-off-by: Igor Mammedov > Reviewed-by: Eduardo Habkost To confirm that this specific submission is OK to me: Reviewed-by: Eduardo Habkost

Re: [Qemu-devel] [PATCH 05/20] target-i386: move setting defaults out of cpu_x86_parse_featurestr()

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:21PM +0100, Igor Mammedov wrote: > No functional change, needed for simplifying conversion to properties. > > Signed-off-by: Igor Mammedov > Reviewed-by: Eduardo Habkost To confirm that this specific submission is OK to me: Reviewed-by: Eduardo Habkost > --- >

Re: [Qemu-devel] [PATCH 04/20] target-i386: setting default 'vendor' is obsolete, remove it

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:20PM +0100, Igor Mammedov wrote: > since cpu_def config is not supported anymore and all remaining sources now > always set x86_def_t.vendor[123] fields remove setting default vendor to > simplify future re-factoring. > > Signed-off-by: Igor Mammedov > Reviewed-by: E

Re: [Qemu-devel] [PATCH 02/20] target-i386: sanitize AMD's ext2_features at realize time

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:18PM +0100, Igor Mammedov wrote: > when CPU properties are implemented, ext2_features may change > between object_new(CPU) and cpu_realize_fn(). Sanitizing > ext2_features for AMD based CPU at realize() time will keep > current behavior after CPU features are converted

Re: [Qemu-devel] [PATCH 03/20] target-i386: explicitly set vendor for each built-in cpudef

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:19PM +0100, Igor Mammedov wrote: > it will help to get rid of setting default. > > Signed-off-by: Igor Mammedov > Reviewed-by: Eduardo Habkost To confirm that this specific submission is OK to me: Reviewed-by: Eduardo Habkost > --- > target-i386/cpu.c | 27 +++

Re: [Qemu-devel] [PATCH 01/20] target-i386: filter out not TCG features if running without kvm at realize time

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:17PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > Reviewed-by: Eduardo Habkost > Signed-off-by: Eduardo Habkost Patch is OK, but Subject line needs to be fixed. You are moving the filtering for both KVM and non-KVM cases, not just the TCG filtering.

Re: [Qemu-devel] [PULL 00/34] migration thread and queue

2012-12-27 Thread Alexandre DERUMIER
Ok,I'll try to bisect it tomorrow and will do more tests. I'll keep you in touch! Alexandre - Mail original - De: "Paolo Bonzini" À: "Alexandre DERUMIER" Cc: qemu-devel@nongnu.org, anth...@codemonkey.ws, "Juan Quintela" Envoyé: Jeudi 27 Décembre 2012 17:08:23 Objet: Re: [Qemu-devel

[Qemu-devel] [RFC] Time resync by qemu-ga

2012-12-27 Thread Lei Li
Hi guys, I am working on the time drift issue as background info here. http://mid.gmane.org/87pq5r5otp@codemonkey.ws As Anthony proposed, one part of the solutions is that we want to add a qemu-ga command to resync the guest clock by reading the wallclock time when the tick overflow the lim

Re: [Qemu-devel] [PATCH v2 0/5] Improve consistency of pci-ids.txt, use symbolic constants for QEMU devices

2012-12-27 Thread Paolo Bonzini
Il 13/12/2012 10:19, Paolo Bonzini ha scritto: > Five small, boring patches. Inspired by Gerd's patch at > http://lists.gnu.org/archive/html/qemu-devel/2012-10/msg05229.html which > unfortunately is already out of date. Ping... Paolo > Paolo Bonzini (5): > docs: move pci-ids.txt to docs/specs

Re: [Qemu-devel] [PULL 00/34] migration thread and queue

2012-12-27 Thread Paolo Bonzini
Il 27/12/2012 16:51, Alexandre DERUMIER ha scritto: >>> 1) What happened before these patches? If something different, can you >>> bisect it? > Well, qemu 1.3 stable release, was working slowly (bigger downtime), but no > crash. > I don't see any changes since 1.3 and theses patches. These patc

[Qemu-devel] [PATCH 01/20] target-i386: filter out not TCG features if running without kvm at realize time

2012-12-27 Thread Igor Mammedov
Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 31 --- 1 files changed, 16 insertions(+), 15 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 7be3ad8..63aae86 100644 --- a/targe

[Qemu-devel] [PATCH 10/20] target-i386: replace uint32_t vendor fields by vendor string in x86_def_t

2012-12-27 Thread Igor Mammedov
Vendor property setter takes string as vendor value but cpudefs use uint32_t vendor[123] fields to define vendor value. It makes it difficult to unify and use property setter for values from cpudefs. Simplify code by using vendor property setter, vendor[123] fields are converted into vendor[13] ar

[Qemu-devel] [PATCH 05/20] target-i386: move setting defaults out of cpu_x86_parse_featurestr()

2012-12-27 Thread Igor Mammedov
No functional change, needed for simplifying conversion to properties. Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost --- target-i386/cpu.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 99fd3f3..e534254

[Qemu-devel] [PATCH 03/20] target-i386: explicitly set vendor for each built-in cpudef

2012-12-27 Thread Igor Mammedov
it will help to get rid of setting default. Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost --- target-i386/cpu.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 64b7637..1497980 100644 ---

Re: [Qemu-devel] [PULL 00/34] migration thread and queue

2012-12-27 Thread Alexandre DERUMIER
>>1) What happened before these patches? If something different, can you >>bisect it? Well, qemu 1.3 stable release, was working slowly (bigger downtime), but no crash. I don't see any changes since 1.3 and theses patches. >>2) Do you get anything on the console (stdout)? See >>kvm_handle_intern

[Qemu-devel] [PATCH 06/20] target-i386: move out CPU features initialization in separate func

2012-12-27 Thread Igor Mammedov
No functional change, a simple code movement to simplify following refactoring. Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost --- v2: - rebased on top of "i386: cpu: remove duplicate feature names" http://www.mail-archive.com/qemu-devel@nongnu.org/msg129458.html v3: - re

[Qemu-devel] [PATCH 02/20] target-i386: sanitize AMD's ext2_features at realize time

2012-12-27 Thread Igor Mammedov
when CPU properties are implemented, ext2_features may change between object_new(CPU) and cpu_realize_fn(). Sanitizing ext2_features for AMD based CPU at realize() time will keep current behavior after CPU features are converted to properties. Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Hab

[Qemu-devel] [PATCH 13/20] target-i386: set custom 'vendor' without intermediate x86_def_t

2012-12-27 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- target-i386/cpu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 3ead1f4..084faeb 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1338,7 +1338,7 @@ static int cpu_x86_parse_featurest

[Qemu-devel] [PATCH 18/20] target-i386: set custom 'stepping' without intermediate x86_def_t

2012-12-27 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- target-i386/cpu.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index aab5f6f..3ee4c65 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1311,13 +1311,7 @@ static int cpu_x86_parse_fe

[Qemu-devel] [PATCH 19/20] target-i386: set custom 'model' without intermediate x86_def_t

2012-12-27 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- target-i386/cpu.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 3ee4c65..8c65012 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1303,13 +1303,7 @@ static int cpu_x86_parse_fe

[Qemu-devel] [PATCH 20/20] target-i386: set custom 'family' without intermediate x86_def_t

2012-12-27 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- target-i386/cpu.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 8c65012..fd53b41 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1295,13 +1295,7 @@ static int cpu_x86_parse_fe

Re: [Qemu-devel] [PULL 00/34] migration thread and queue

2012-12-27 Thread Paolo Bonzini
Il 27/12/2012 16:30, Alexandre DERUMIER ha scritto: > Hi, > I'm currently testing new migration code with last qemu.git, > > it's working pretty fine (around 30ms downtime with standard workload). > > > But I have add some problem, with high memory workload vm. (playing an HD > video for exampl

Re: [Qemu-devel] [PULL 00/34] migration thread and queue

2012-12-27 Thread Alexandre DERUMIER
Hi, I'm currently testing new migration code with last qemu.git, it's working pretty fine (around 30ms downtime with standard workload). But I have add some problem, with high memory workload vm. (playing an HD video for example). Target vm is pause after migration, # info status VM status: pa

[Qemu-devel] [PATCH 09/20] target-i386: add x86cpu_vendor_words2str()

2012-12-27 Thread Igor Mammedov
Make for() cycle reusable for the next patch Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost --- target-i386/cpu.c | 21 ++--- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index d93bf5a..935bc42 100644 --- a/ta

[Qemu-devel] [PATCH 12/20] target-i386: prepare cpu_x86_parse_featurestr() to return a set of key, value property pairs

2012-12-27 Thread Igor Mammedov
It prepares for converting "+feature,-feature,feature=foo,feature" into a set of key,value property pairs that will be applied to CPU by cpu_x86_set_props(). It separates legacy format parsing from property setting, later it could be transformed into code that sets global properties for a given CP

[Qemu-devel] [PATCH 16/20] target-i386: set custom 'level' without intermediate x86_def_t

2012-12-27 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- target-i386/cpu.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index d8af528..1cb2f08 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1319,13 +1319,7 @@ static int cpu_x86_parse_fe

[Qemu-devel] [PATCH 14/20] target-i386: print depricated warning if xlevel < 0x80000000

2012-12-27 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- target-i386/cpu.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 084faeb..0764015 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1334,6 +1334,8 @@ static int cpu_x86_parse_featurest

[Qemu-devel] [PATCH 15/20] target-i386: set custom 'xlevel' without intermediate x86_def_t

2012-12-27 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- target-i386/cpu.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 0764015..d8af528 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1338,7 +1338,9 @@ static int cpu_x86_parse_feature

[Qemu-devel] [PATCH 17/20] target-i386: set custom 'model-id' without intermediate x86_def_t

2012-12-27 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- target-i386/cpu.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 1cb2f08..aab5f6f 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1338,8 +1338,7 @@ static int cpu_x86_parse_features

[Qemu-devel] [PATCH 11/20] target-i386: remove vendor_override field from CPUX86State

2012-12-27 Thread Igor Mammedov
commit 8935499831312 makes cpuid return to guest host's vendor value instead of built-in one by default if kvm_enabled() == true and allows to override this behavior if 'vendor' is specified on -cpu command line. But every time guest calls cpuid to get 'vendor' value, host's value is read again an

[Qemu-devel] [PATCH 08/20] target-i386: move kvm_check_features_against_host() check to realize time

2012-12-27 Thread Igor Mammedov
kvm_check_features_against_host() should be called when features can't be changed and when features are convereted to properties it would be possible to change them until realize time, so correct way is to call kvm_check_features_against_host() in x86_cpu_realize() - calling kvm_check_features

[Qemu-devel] [PATCH 04/20] target-i386: setting default 'vendor' is obsolete, remove it

2012-12-27 Thread Igor Mammedov
since cpu_def config is not supported anymore and all remaining sources now always set x86_def_t.vendor[123] fields remove setting default vendor to simplify future re-factoring. Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost --- target-i386/cpu.c | 13 - 1 files change

[Qemu-devel] [PATCH 07/20] target-i386: cpu_x86_register() consolidate freeing resources

2012-12-27 Thread Igor Mammedov
freeing resources in one place would require setting 'error' to not NULL, so add some more error reporting before jumping to exit branch. Signed-off-by: Igor Mammedov --- v2: - add missing 'return -1' on exit if error is not NULL, Spotted-By: Eduardo Habkost v3: - set error

[Qemu-devel] [PATCH 00/20 v3] x86 CPU cleanup (wave 2)

2012-12-27 Thread Igor Mammedov
This series is several cleanups, moved out from CPU properties series, since they do not really depend on CPU properties re-factoring and could simplify CPU subclasses work as well. Series doesn't depend on cpu as device or any other series, and applies to current master. git tree for testing:

Re: [Qemu-devel] [PATCH 10/20] target-i386: prepare cpu_x86_parse_featurestr() to return a set of key, value property pairs

2012-12-27 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:33:04PM +0100, Igor Mammedov wrote: > On Fri, 21 Dec 2012 11:50:26 -0200 > Eduardo Habkost wrote: > > > On Fri, Dec 21, 2012 at 01:56:56AM +0100, Igor Mammedov wrote: > > [...] > > > > All above said, I am not strongly against your approach, but I believe > > > > we cou

Re: [Qemu-devel] [PATCH 10/20] target-i386: prepare cpu_x86_parse_featurestr() to return a set of key, value property pairs

2012-12-27 Thread Igor Mammedov
On Fri, 21 Dec 2012 11:50:26 -0200 Eduardo Habkost wrote: > On Fri, Dec 21, 2012 at 01:56:56AM +0100, Igor Mammedov wrote: > [...] > > > All above said, I am not strongly against your approach, but I believe > > > we could try to make the feature string parsing code generic and > > > reusable (wi

Re: [Qemu-devel] [PATCH 3/3] Enable kvm emulated watchdog

2012-12-27 Thread Bhushan Bharat-R65777
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Monday, December 17, 2012 8:09 PM > To: Bhushan Bharat-R65777 > Cc: qemu-devel@nongnu.org; qemu-...@nongnu.org; Bhushan Bharat-R65777 > Subject: Re: [PATCH 3/3] Enable kvm emulated watchdog > > > On 17.12.2012, a

Re: [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

2012-12-27 Thread Paolo Bonzini
Il 27/12/2012 05:26, Brad Smith ha scritto: > Paolo, > > As you wrote the fallback code which is used when sem_timedwait() is > missing could you please take a look at this when you have some time? I > can test any patches you might come up with. Can you try this: diff --git a/util/qemu-thread-p

[Qemu-devel] [RFC] updated e1000 mitigation patch

2012-12-27 Thread Luigi Rizzo
Before submitting a proper patch, I'd like to hear feedback on the following proposed change to hw/e1000.c to properly implement interrupt mitigation. This is joint work with Vincenzo Maffione and Giuseppe Lettieri (in Cc), and is a followup to a similar patch i posted in july https://lists.gnu.o

[Qemu-devel] [PATCH V3 3/4] HMP: move define of mon_cmds

2012-12-27 Thread Wenchao Xia
Because mon_cmds may use info_cmds, so adjust the declare sequence of them. Signed-off-by: Wenchao Xia --- monitor.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/monitor.c b/monitor.c index e4d4c59..a392df4 100644 --- a/monitor.c +++ b/monitor.c @@ -2422,

[Qemu-devel] [PATCH V3 1/4] HMP: add QDict to info callback handler

2012-12-27 Thread Wenchao Xia
This patch change all info call back function to take additional QDict * parameter, which allow those command take parameter. Now it is set to NULL at default case. Signed-off-by: Wenchao Xia --- v2: rebased, and better doc. v3: move changelog position. hmp.c | 36

[Qemu-devel] [PATCH V3 4/4] HMP: add sub command table to info

2012-12-27 Thread Wenchao Xia
Now info command takes a table of sub info commands, and changed do_info() to do_info_help() to do help funtion only. Signed-off-by: Wenchao Xia --- hmp-commands.hx |3 ++- monitor.c | 22 +- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/hmp-co

[Qemu-devel] [PATCH V3 0/4] HMP: allow parsing for sub command

2012-12-27 Thread Wenchao Xia
These patches enhance HMP to allow it parse 2nd level of commands, such as info sub command list, which means now foldered command with parameter is possible. V2: Follow the way supposed by Markus, which make the infrastructure knows there is possible a 2nd level of command exist, instead of a

[Qemu-devel] [PATCH V3 2/4] HMP: add infrastructure for sub command

2012-12-27 Thread Wenchao Xia
This patch make parsing of hmp command aware of that it may have sub command. Also discard simple encapsulation function monitor_find_command() and qmp_find_cmd(). Signed-off-by: Wenchao Xia --- monitor.c | 44 +++- 1 files changed, 27 insertions(+), 1

Re: [Qemu-devel] [PATCH V2 1/3] HMP: add QDict to info callback handler

2012-12-27 Thread Wenchao Xia
Sorry I forgot to change the version number, pls ignore this serial. > On Thu, Dec 27, 2012 at 04:56:27PM +0800, Wenchao Xia wrote: This patch change all info call back function to take additional QDict * parameter, which allow those command take parameter. Now it is set to NULL at defaul

Re: [Qemu-devel] [PATCH V2 1/3] HMP: add QDict to info callback handler

2012-12-27 Thread Wenchao Xia
> On Thu, Dec 27, 2012 at 04:56:27PM +0800, Wenchao Xia wrote: This patch change all info call back function to take additional QDict * parameter, which allow those command take parameter. Now it is set to NULL at default case. v2: rebased, and better doc. Signed-off-by: Wenchao Xia ---

[Qemu-devel] [PATCH V2 1/4] HMP: add QDict to info callback handler

2012-12-27 Thread Wenchao Xia
This patch change all info call back function to take additional QDict * parameter, which allow those command take parameter. Now it is set to NULL at default case. Signed-off-by: Wenchao Xia --- v2: rebased, and better doc. v3: move changelog position. hmp.c | 36

[Qemu-devel] [PATCH V2 3/4] HMP: move define of mon_cmds

2012-12-27 Thread Wenchao Xia
Because mon_cmds may use info_cmds, so adjust the declare sequence of them. Signed-off-by: Wenchao Xia --- monitor.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/monitor.c b/monitor.c index e4d4c59..a392df4 100644 --- a/monitor.c +++ b/monitor.c @@ -2422,

[Qemu-devel] [PATCH V2 2/4] HMP: add infrastructure for sub command

2012-12-27 Thread Wenchao Xia
This patch make parsing of hmp command aware of that it may have sub command. Also discard simple encapsulation function monitor_find_command() and qmp_find_cmd(). Signed-off-by: Wenchao Xia --- monitor.c | 44 +++- 1 files changed, 27 insertions(+), 1

[Qemu-devel] [PATCH V2 0/4] HMP: allow parsing for sub command

2012-12-27 Thread Wenchao Xia
These patches enhance HMP to allow it parse 2nd level of commands, such as info sub command list, which means now foldered command with parameter is possible. V2: Follow the way supposed by Markus, which make the infrastructure knows there is possible a 2nd level of command exist, instead of a

Re: [Qemu-devel] [PATCH V2 1/3] HMP: add QDict to info callback handler

2012-12-27 Thread Wei-Ren Chen
On Thu, Dec 27, 2012 at 04:56:27PM +0800, Wenchao Xia wrote: > This patch change all info call back function to take > additional QDict * parameter, which allow those command > take parameter. Now it is set to NULL at default case. > > v2: rebased, and better doc. > > Signed-off-by: Wenchao Xia

[Qemu-devel] [PATCH V2 3/3] HMP: add sub command table to info

2012-12-27 Thread Wenchao Xia
Now info command takes a table of sub info commands, and changed do_info() to do_info_help() to do help funtion only. Signed-off-by: Wenchao Xia --- hmp-commands.hx |3 ++- monitor.c | 34 +++--- 2 files changed, 9 insertions(+), 28 deletions(-) diff --

[Qemu-devel] [PATCH V2 1/3] HMP: add QDict to info callback handler

2012-12-27 Thread Wenchao Xia
This patch change all info call back function to take additional QDict * parameter, which allow those command take parameter. Now it is set to NULL at default case. v2: rebased, and better doc. Signed-off-by: Wenchao Xia --- hmp.c | 36 ++--

[Qemu-devel] [PATCH V2 2/3] HMP: add infrastructure for sub command

2012-12-27 Thread Wenchao Xia
This patch make parsing of hmp command aware of that it may have sub command. Also discard simple encapsulation function monitor_find_command() and qmp_find_cmd(). Signed-off-by: Wenchao Xia --- monitor.c | 44 +++- 1 files changed, 27 insertions(+), 1

[Qemu-devel] [PATCH V2 0/3] HMP: allow parsing for sub command

2012-12-27 Thread Wenchao Xia
These patches enhance HMP to allow it parse 2nd level of commands, such as info sub command list, which means now foldered command with parameter is possible. V2: Follow the way supposed by Markus, which make the infrastructure knows there is possible a 2nd level of command exist, instead of a