Re: [Qemu-devel] [PATCH v3 0/2] soft-float-fixes for target-s390x

2012-12-28 Thread Richard Henderson
Ping 2... r~ On 2012-12-20 11:45, Richard Henderson wrote: > Ping? It's got reviews... > > r~ > > On 12/11/2012 09:21 AM, Richard Henderson wrote: >> Changes v2-v3: >> Ignore softfloat "style" completely. Code now formatted per QEMU. >> >> Changes v1-v2: >> Incorporating feedback from Pet

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

2012-12-28 Thread Peter Maydell
On 28 December 2012 06:38, Brad Smith wrote: > Disable the semaphores fallback code for OpenBSD as modern OpenBSD > releases now have sem_timedwait(). Maybe we should have a configure test for existence of sem_timedwait() rather than os-guessing ifdeffery... -- PMM

[Qemu-devel] [PATCH] tcg-hppa: Fix typo in brcond2

2012-12-28 Thread Richard Henderson
Reported-by: Stuart Brady Signed-off-by: Richard Henderson --- tcg/hppa/tcg-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/hppa/tcg-target.c b/tcg/hppa/tcg-target.c index 5b27cf6..656e736 100644 --- a/tcg/hppa/tcg-target.c +++ b/tcg/hppa/tcg-target.c @@ -824,7 +

[Qemu-devel] [PATCH] tcg-i386: Perform cmov detection at runtime for 32-bit.

2012-12-28 Thread Richard Henderson
Existing compile-time detection is spotty at best. Convert it all to runtime detection instead. Signed-off-by: Richard Henderson --- configure | 19 +++ tcg/i386/tcg-target.c | 31 ++- tcg/i386/tcg-target.h | 5 - 3 files changed, 49

Re: [Qemu-devel] [PATCH v2] tcg: Add TCGV_IS_UNUSED_*

2012-12-28 Thread Richard Henderson
Ping 2. There is a Reviewed-by... r~ On 2012-12-07 13:07, Richard Henderson wrote: > Cc: Aurelien Jarno > Signed-off-by: Richard Henderson > --- > tcg/tcg-op.h | 2 ++ > tcg/tcg.h| 3 +++ > 2 files changed, 5 insertions(+) > > Changes since v1: > * Add tl-sized TCGV_IS_UNUSED to tcg-o

[Qemu-devel] [PATCH 2/9] target-i386: Make cpu_x86_create() get Error argument

2012-12-28 Thread Eduardo Habkost
Instead of forcing the caller to guess what went wrong while creating the CPU object, return error information in a Error argument. Also, as cpu_x86_create() won't print error messages itself anymore, change cpu_x86_init() to print any error returned by cpu_x86_create() or cpu_x86_realize(). Sign

[Qemu-devel] [RFC 8/9] target-i386: CPU subclasses for predefined CPU models

2012-12-28 Thread Eduardo Habkost
This uses a separate base class (TYPE_X86_PREDEF_CPU) for all the predefined CPU models, because those classes will have a x86_def_t struct embedded into the class struct (while TYPE_X86_HOST_CPU, for example, doesn't have it). The code that was inside x86_cpu_create_from_name() is now inside the i

[Qemu-devel] [PATCH 3/9] target-i386: Simplify cpu_x86_find_by_name() logic

2012-12-28 Thread Eduardo Habkost
Move the check for "host" to beginning of function, so instead of a confusing if/else-if/else mess we now have just two obvious if/else blocks: 1) Special case for "host"; 2) General case for CPU model lookup on x86_defs list. This way, we will be able to easily move those two parts to separate c

[Qemu-devel] [RFC 6/9] target-i386: Move CPU creation code to model name lookup function

2012-12-28 Thread Eduardo Habkost
While moving the code, rename the resulting function from cpu_x86_find_by_name() to x86_cpu_create_from_name(). Note that this adds duplicate object_new() and cpudef_2_x86_cpu() calls. This is because the "host" and predefined CPU classes will be converted in separate steps. After both parts are c

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

2012-12-28 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 ---

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

2012-12-28 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_ag

[Qemu-devel] [RFC 9/9] target-i386: Unify CPU object creation on x86_cpu_create_from_name()

2012-12-28 Thread Eduardo Habkost
To keep the kvm_enabled() check for "host" working, a 'kvm_required' field was added to X86CPUClass. Signed-off-by: Eduardo Habkost --- target-i386/cpu-qom.h | 1 + target-i386/cpu.c | 32 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/targ

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

2012-12-28 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 07/20] target-i386: cpu_x86_register() consolidate freeing resources

2012-12-28 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 Reviewed-by: Eduardo Habkost --- v2: - add missing 'return -1' on exit if error is not NULL, Spotted-By: Eduardo

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

2012-12-28 Thread Igor Mammedov
Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost --- 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 eb0dcc2..00cb413 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1339,7 +1339,7 @@ stat

[Qemu-devel] [RFC 4/9] target-i386: Set feature string parsing results directly on CPU object

2012-12-28 Thread Eduardo Habkost
Note that this is temporary: just like we would eventually kill usage of x86_def_t inside cpu_x86_parse_featurestr(), we will eventually kill usage of X86CPU inside that function as well. This will help us keep the x86_def_t usage restricted to the CPU object creation code. Signed-off-by: Eduardo

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

2012-12-28 Thread Brad Smith
On Fri, Dec 28, 2012 at 08:13:37PM +, Blue Swirl wrote: > On Fri, Dec 28, 2012 at 6:00 AM, Brad Smith wrote: > > 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 t

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

2012-12-28 Thread Igor Mammedov
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 64f385b..cd1884d 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1296,13 +1296,7

[Qemu-devel] [RFC 5/9] target-i386: Move kvm_features/hypervisor initialization to cpu_x86_find_by_name()

2012-12-28 Thread Eduardo Habkost
Move the initialization to the cpu_x86_find_by_name(), inside the block for predefined CPU models. That code is not necessary for -cpu "host", because: - kvm_features doesn't need to be set because kvm_cpu_fill_host() already sets all bits supported by the host. - the CPUID_EXT_HYPERVISOR flag

[Qemu-devel] [PATCH 01/20] target-i386: filter out unsupported features at realize time

2012-12-28 Thread Igor Mammedov
Signed-off-by: Igor Mammedov 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/target-i386/cpu.c +++ b/target-i386

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

2012-12-28 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 15/20] target-i386: set custom 'xlevel' without intermediate x86_def_t

2012-12-28 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- v2: use qstring_append_int() for converting xlevel to string Suggested-By: Eduardo Habkost --- target-i386/cpu.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 02ece1e..14f434b 100644

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

2012-12-28 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 15/20] target-i386: set custom 'xlevel' without intermediate x86_def_t

2012-12-28 Thread Eduardo Habkost
On Fri, Dec 28, 2012 at 09:01:30PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost > --- > v2: > use qstring_append_int() for converting xlevel to string >Suggested-By: Eduardo Habkost > --- > target-i386/cpu.c |5 - > 1 files changed, 4 i

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

2012-12-28 Thread Eduardo Habkost
On Fri, Dec 28, 2012 at 09:01:29PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost > --- > 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 00cb413..02ece1e 10

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

2012-12-28 Thread Eduardo Habkost
On Fri, Dec 28, 2012 at 09:01:25PM +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 01/20] target-i386: filter out unsupported features at realize time

2012-12-28 Thread Eduardo Habkost
On Fri, Dec 28, 2012 at 09:01:16PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > Signed-off-by: Eduardo Habkost Reviewed-by: Eduardo Habkost > --- > target-i386/cpu.c | 31 --- > 1 files changed, 16 insertions(+), 15 deletions(-) > > diff --git a/

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

2012-12-28 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] [RFC 7/9] target-i386: CPU subclass for -cpu "host"

2012-12-28 Thread Eduardo Habkost
Note that we are initializing the CPU features inside instance_init (and not storing any CPU feature information inside the class struct) because kvm_cpu_fill_host() needs KVM to be initialized, and we can't guarantee that KVM will be initialized when class_init is called. Signed-off-by: Eduardo H

[Qemu-devel] [PATCH 0/9] x86 CPU subclasses

2012-12-28 Thread Eduardo Habkost
This is basically a x86 CPU subclasses RFC, preceded by some changes that I would like to include even if this particular approach to the x86 CPU subclasses doesn't get accepted (so the first patches are marked as PATCH instead of RFC). The main differences from the RFC sent by Andreas previously

[Qemu-devel] [PATCH 1/9] target-i386: Move CPU object creation to cpu.c

2012-12-28 Thread Eduardo Habkost
As we will need to create the CPU object after splitting the CPU model string (because we're going to use different subclasses for each CPU model), move the CPU object creation to cpu_x86_register(), and at the same time rename cpu_x86_register() to cpu_x86_create(). This will also simplify the CP

[Qemu-devel] [PATCH v2] tests: add gcov target

2012-12-28 Thread Blue Swirl
Add support for compiling for GCOV test coverage, enabled with '--enable-gcov' during configure. After tests, test coverage can be reported with 'make gcov'. Signed-off-by: Blue Swirl --- v2: update to HEAD: report coverage for more files improve gcov invocation and use foo-y Makefile magic fo

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

2012-12-28 Thread Igor Mammedov
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 14f434b..8d3ac5e 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1320,13 +1320,7

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

2012-12-28 Thread Blue Swirl
On Fri, Dec 28, 2012 at 6:00 AM, Brad Smith wrote: > 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. Needs to be back ported

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

2012-12-28 Thread Igor Mammedov
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 e20356e..8009a59 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1312,13 +1312,7

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

2012-12-28 Thread Blue Swirl
Thanks, applied. On Fri, Dec 28, 2012 at 6:38 AM, Brad Smith wrote: > 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..

Re: [Qemu-devel] [PATCH] usb/redirect.c: unbreak compilation due to include/char/char.h

2012-12-28 Thread Blue Swirl
Thanks, applied. On Sun, Dec 23, 2012 at 9:25 PM, Alon Levy wrote: > Broken since: > > commit 927d4878b0ff319ed87fed9363f314613b0a5ed9 > Author: Paolo Bonzini > Date: Mon Dec 17 18:20:05 2012 +0100 > > softmmu: move remaining include files to include/ subdirectories > > Signed-off-by: Alon

Re: [Qemu-devel] [PULL] QOM CPUState patch queue 2012-12-19

2012-12-28 Thread Blue Swirl
Thanks, pulled. On Sun, Dec 23, 2012 at 12:00 AM, Andreas Färber wrote: > Am 22.12.2012 13:08, schrieb Blue Swirl: >> On Wed, Dec 19, 2012 at 1:36 PM, Andreas Färber wrote: >>> Hello, >>> >>> This is my current QOM CPU patch queue. Please pull. >> >> It conflicts with HEAD, please rebase. > > Me

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

2012-12-28 Thread Igor Mammedov
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 8009a59..64f385b 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1304,13 +1304,7

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

2012-12-28 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 00cb413..02ece1e 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1335,6 +1335,8 @@ static int cpu_x86_parse_featurest

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

2012-12-28 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 11/20] target-i386: remove vendor_override field from CPUX86State

2012-12-28 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 17/20] target-i386: set custom 'model-id' without intermediate x86_def_t

2012-12-28 Thread Igor Mammedov
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 8d3ac5e..e20356e 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1340,8 +1340,7 @@ sta

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

2012-12-28 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-28 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 04/20] target-i386: setting default 'vendor' is obsolete, remove it

2012-12-28 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

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

2012-12-28 Thread Igor Mammedov
On Fri, 28 Dec 2012 15:39:19 -0200 Eduardo Habkost wrote: > On Thu, Dec 27, 2012 at 03:59:26PM +0100, Igor Mammedov wrote: > [...] > > assert(kvm_enabled()); > > > > x86_cpu_def->name = "host"; > > -host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx); > > -x86_cpu_def->vendor1 = ebx; >

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

2012-12-28 Thread Stefan Priebe
Hi Paolo, Am 28.12.2012 18:53, schrieb Paolo Bonzini: Il 28/12/2012 08:05, Alexandre DERUMIER ha scritto: 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

[Qemu-devel] [PATCH 1/2] target-i386: kvm: -cpu host: use GET_SUPPORTED_CPUID for SVM features

2012-12-28 Thread Eduardo Habkost
The existing -cpu host code simply set every bit inside svm_features (initializing it to -1), and that makes it impossible to make the enforce/check options work properly when the user asks for SVM features explicitly in the command-line. So, instead of initializing svm_features to -1, use GET_SUP

[Qemu-devel] [PATCH 2/2] target-i386: kvm: enable all supported KVM features for -cpu host

2012-12-28 Thread Eduardo Habkost
When using -cpu host, we don't need to use the kvm_default_features variable, as the user is explicitly asking QEMU to enable all feature supported by the host. This changes the kvm_cpu_fill_host() code to use GET_SUPPORTED_CPUID to initialize the kvm_features field, so we get all host KVM feature

[Qemu-devel] [PATCH 0/2] Fixes for -cpu host KVM/SVM feature initialization

2012-12-28 Thread Eduardo Habkost
This series has two very similar fixes for feature initizliation for "-cpu host". This should allow us to make the check/enforce code check for host support of KVM and SVM features, later. Eduardo Habkost (2): target-i386: kvm: -cpu host: use GET_SUPPORTED_CPUID for SVM features target-i386: k

Re: [Qemu-devel] No root device Found while booting a CENTOS Image

2012-12-28 Thread Dunrong Huang
On Sat, Dec 29, 2012 at 1:33 AM, Saptarshi Sen wrote: > HI, > > I am using the following command for booting a CENTOS image. Although > the system boots initially but at the > end, it throws an error " No root Device found " > >qemu/qemu-system-x86_64 -m 512 -kernel vmlinuz-2.6.32-71.el6.i

Re: [Qemu-devel] [PATCH 05/12] net: multiqueue support

2012-12-28 Thread Blue Swirl
On Fri, Dec 28, 2012 at 10:31 AM, Jason Wang wrote: > This patch adds basic multiqueue support for qemu. The idea is simple, an > array > of NetClientStates were introduced in NICState, parse_netdev() were extended > to > find and match all NetClientStates belongs to the backend and place their

Re: [Qemu-devel] [PATCH 10/12] virtio-net: multiqueue support

2012-12-28 Thread Blue Swirl
On Fri, Dec 28, 2012 at 10:32 AM, Jason Wang wrote: > This patch implements both userspace and vhost support for multiple queue > virtio-net (VIRTIO_NET_F_MQ). This is done by introducing an array of > VirtIONetQueue to VirtIONet. > > Signed-off-by: Jason Wang > --- > hw/virtio-net.c | 318 > +

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

2012-12-28 Thread Paolo Bonzini
Il 28/12/2012 08:05, Alexandre DERUMIER ha scritto: > 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

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

2012-12-28 Thread Blue Swirl
On Thu, Dec 27, 2012 at 10:06 AM, Luigi Rizzo wrote: > 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 fo

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

2012-12-28 Thread Eduardo Habkost
On Thu, Dec 27, 2012 at 03:59:26PM +0100, Igor Mammedov wrote: [...] > assert(kvm_enabled()); > > x86_cpu_def->name = "host"; > -host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx); > -x86_cpu_def->vendor1 = ebx; > -x86_cpu_def->vendor2 = edx; > -x86_cpu_def->vendor3 = ecx; > +

[Qemu-devel] No root device Found while booting a CENTOS Image

2012-12-28 Thread Saptarshi Sen
HI, I am using the following command for booting a CENTOS image. Although the system boots initially but at the end, it throws an error " No root Device found " qemu/qemu-system-x86_64 -m 512 -kernel vmlinuz-2.6.32-71.el6.i686 -initrd initramfs-2.6.32-71.el6.i686.img -append "root=/dev/hda

[Qemu-devel] [Bug 902413] Re: qemu-i386-user on ARM host: wine hangs/spins when trying to run anything

2012-12-28 Thread leeseungman
** Changed in: qemu Assignee: (unassigned) => leeseungman (forsucess1) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/902413 Title: qemu-i386-user on ARM host: wine hangs/spins when trying to r

[Qemu-devel] [PATCH 10/12] virtio-net: multiqueue support

2012-12-28 Thread Jason Wang
This patch implements both userspace and vhost support for multiple queue virtio-net (VIRTIO_NET_F_MQ). This is done by introducing an array of VirtIONetQueue to VirtIONet. Signed-off-by: Jason Wang --- hw/virtio-net.c | 318 ++- hw/virtio-net

[Qemu-devel] [PATCH 04/12] net: intorduce qemu_del_nic()

2012-12-28 Thread Jason Wang
To support multiqueue nic, this patch separate the nic destructor from qemu_del_net_client() to a new helper qemu_del_nic(). The following patches would refactor this function to support multiqueue nic. Signed-off-by: Jason Wang --- hw/e1000.c |2 +- hw/eepro100.c|2 +-

[Qemu-devel] [PATCH 07/12] virtio: introduce virtio_queue_del()

2012-12-28 Thread Jason Wang
Some device (such as virtio-net) needs the ability to destroy or re-order the virtqueues, this patch adds a helper to do this. Signed-off-by: Jason Wang --- hw/virtio.c |9 + hw/virtio.h |2 ++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/virtio.c b/hw/virti

[Qemu-devel] [PATCH 06/12] vhost: multiqueue support

2012-12-28 Thread Jason Wang
This patch lets vhost support multiqueue. The idea is simple, just launching multiple threads of vhost and let each of vhost thread processing a subset of the virtqueues of the device. The only thing needed is passing a virtqueue index when starting vhost device, this is used to track the first vi

[Qemu-devel] [PATCH 05/12] net: multiqueue support

2012-12-28 Thread Jason Wang
This patch adds basic multiqueue support for qemu. The idea is simple, an array of NetClientStates were introduced in NICState, parse_netdev() were extended to find and match all NetClientStates belongs to the backend and place their pointers in NICConf. Then qemu_new_nic can setup a N:N mapping be

[Qemu-devel] [PATCH 12/12] virtio-net: compat multiqueue support

2012-12-28 Thread Jason Wang
Disable multiqueue support for pre 1.4. Signed-off-by: Jason Wang --- hw/pc_piix.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 19e342a..0145370 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -295,6 +295,10 @@ static QEMUMachine p

[Qemu-devel] [PATCH 01/12] tap: multiqueue support

2012-12-28 Thread Jason Wang
Recently, linux support multiqueue tap which could let userspace call TUNSETIFF for a signle device many times to create multiple file descriptors as independent queues. User could also enable/disabe a specific queue through TUNSETQUEUE. The patch adds the generic infrastructure to create multique

[Qemu-devel] [PATCH 08/12] virtio: add a queue_index to VirtQueue

2012-12-28 Thread Jason Wang
Add a queue_index to VirtQueue and a helper to fetch it, this could be used by multiqueue supported device. Signed-off-by: Jason Wang --- hw/virtio.c |8 hw/virtio.h |1 + 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hw/virtio.c b/hw/virtio.c index bc3c9c3..726

[Qemu-devel] [PATCH 11/12] virtio-net: migration support for multiqueue

2012-12-28 Thread Jason Wang
This patch add migration support for multiqueue virtio-net. The version were bumped to 12. Signed-off-by: Jason Wang --- hw/virtio-net.c | 45 +++-- 1 files changed, 35 insertions(+), 10 deletions(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index

[Qemu-devel] [PATCH 03/12] net: introduce qemu_get_nic()

2012-12-28 Thread Jason Wang
To support multiqueue , the patch introduce a helper qemu_get_nic() to get the NICState from a NetClientState. The following patches would refactor this helper to support multiqueue. Signed-off-by: Jason Wang --- hw/cadence_gem.c|8 hw/dp8393x.c|6 +++--- hw/

[Qemu-devel] [PATCH 02/12] net: introduce qemu_get_queue()

2012-12-28 Thread Jason Wang
To support multiqueue, the patch introduce a helper qemu_get_queue() which is used to get the NetClientState of a device. The following patches would refactor this helper to support multiqueue. Signed-off-by: Jason Wang --- hw/cadence_gem.c|8 +++--- hw/dp8393x.c|8 ++

[Qemu-devel] [PATCH 09/12] virtio-net: separate virtqueue from VirtIONet

2012-12-28 Thread Jason Wang
To support multiqueue virtio-net, the first step is to separate the virtqueue related fields from VirtIONet to a new structure VirtIONetQueue. The following patches will add an array of VirtIONetQueue to VirtIONet based on this patch. Signed-off-by: Jason Wang --- hw/virtio-net.c | 209

[Qemu-devel] [PATCH 00/12] Multiqueue virtio-net

2012-12-28 Thread Jason Wang
Hello all: This seires is an update of last version of multiqueue virtio-net support. Recently, linux tap gets multiqueue support. This series implements basic support for multiqueue tap, nic and vhost. Then use it as an infrastructure to enable the multiqueue support for virtio-net. Both vhost

[Qemu-devel] [PATCH 1/2] e1000: no need auto-negotiation if link was down

2012-12-28 Thread Amos Kong
Commit b9d03e352cb6b31a66545763f6a1e20c9abf0c2c added link auto-negotiation emulation, it would always set link up by callback function. Problem exists if original link status was down, link status should not be changed in auto-negotiation. Signed-off-by: Jason Wang Signed-off-by: Amos Kong ---

[Qemu-devel] [PATCH 2/2] rtl8139: preserve link state across device reset

2012-12-28 Thread Amos Kong
A device reset does not affect the link state, only set_link does. Signed-off-by: Amos Kong --- hw/rtl8139.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/rtl8139.c b/hw/rtl8139.c index c59ec6b..3e08062 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -1258,7 +1258,8

[Qemu-devel] [PATCH 0/2] fix of preserving link status

2012-12-28 Thread Amos Kong
Set link down and reboot guest, e1000 link status will be re-set to up by auto-negotiation, it's a regression bug. rtl8139 link status would be reset to up always. Problems are fixed by those two patches. RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=890288 Amos Kong (2): e1000: no need au