Re: [Qemu-devel] removing on-demand msix vector allocation

2012-12-06 Thread Jan Kiszka
On 2012-12-06 08:59, Michael S. Tsirkin wrote: > I've been looking at handling of msix masking > in qemu. It looks like all of virtio,vfio and > device assignment implemented their own > similar but slightly different thing. > So I am inclined to move this handling to common > code in msix.c, addin

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.3.0 release

2012-12-06 Thread Markus Armbruster
Gerhard Wiesinger writes: > On 03.12.2012 21:51, Anthony Liguori wrote: >> Hi, >> >> Major features include: >> - After nearly 6 years of work, all remaining differences between the >> qemu-kvm.git and qemu.git have been merged into qemu.git >> > > How is qemu-kvm enabled? > --enable-kvm ?

Re: [Qemu-devel] [PATCH v5 00/11] virtio: virtio-blk data plane

2012-12-06 Thread Stefan Hajnoczi
On Thu, Dec 06, 2012 at 01:38:28PM +0200, Michael S. Tsirkin wrote: > On Wed, Dec 05, 2012 at 09:46:59PM +0100, Stefan Hajnoczi wrote: > > This series adds the -device virtio-blk-pci,x-data-plane=on property that > > enables a high performance I/O codepath. A dedicated thread is used to > > proce

Re: [Qemu-devel] [PATCH v5 10/11] dataplane: add virtio-blk data plane code

2012-12-06 Thread Stefan Hajnoczi
On Thu, Dec 06, 2012 at 08:35:55AM +0100, Paolo Bonzini wrote: > Il 05/12/2012 21:47, Stefan Hajnoczi ha scritto: > > + > > +/* Block until pending requests have completed > > + * > > + * The vring continues to be serviced so ensure no new requests will be > > added > > + * to avoid races. > > + *

Re: [Qemu-devel] [PATCH v5 10/11] dataplane: add virtio-blk data plane code

2012-12-06 Thread Stefan Hajnoczi
On Thu, Dec 06, 2012 at 08:35:55AM +0100, Paolo Bonzini wrote: > Il 05/12/2012 21:47, Stefan Hajnoczi ha scritto: > > + > > +/* Block until pending requests have completed > > + * > > + * The vring continues to be serviced so ensure no new requests will be > > added > > + * to avoid races. > > + *

Re: [Qemu-devel] [PATCH v5 00/11] virtio: virtio-blk data plane

2012-12-06 Thread Stefan Hajnoczi
On Fri, Dec 07, 2012 at 10:43:24AM +0800, Liu Yuan wrote: > On 12/06/2012 04:46 AM, Stefan Hajnoczi wrote: > > Limitations: > > * Only format=raw is supported > > The boost number looks promising, but support of other format(which > might as well fit into this new IO path design) is in the plan?

Re: [Qemu-devel] [PATCH v5 10/11] dataplane: add virtio-blk data plane code

2012-12-06 Thread Stefan Hajnoczi
On Thu, Dec 06, 2012 at 01:33:58PM +0200, Michael S. Tsirkin wrote: > On Wed, Dec 05, 2012 at 09:47:09PM +0100, Stefan Hajnoczi wrote: > > virtio-blk-data-plane is a subset implementation of virtio-blk. > > I already asked this: > > what confuses me a bit is how, being a subset, it exposes the >

Re: [Qemu-devel] [RFC 3/3] docs: document virtio-balloon stats

2012-12-06 Thread Dietmar Maurer
> +The memory statistics are: > + > + o stat-swap-in > + o stat-swap-out > + o stat-major-faults > + o stat-minor-faults > + o stat-free-memory > + o stat-total-memory I want to implement an automatic ballooning policy, so I need to know the amount of free RAM inside the guest. But it seem that t

[Qemu-devel] [PATCH] target-arm: GIC: bug fixes for arm_gic.c

2012-12-06 Thread Daniel Sangorrin
Hi, I found some bugs in the way the IRQ number is calculated at certain places in arm_gic.c. Perhaps there are a few more errors that I didn't notice. These bugs were not noticeable when running Linux as a guest, but I found them when running my own porting of a multicore real-time OS (TOPPERS/FMP

Re: [Qemu-devel] [PATCH v4] correct error message qemu-img reported

2012-12-06 Thread li guang
在 2012-12-06四的 11:04 +0100,Kevin Wolf写道: > Am 05.11.2012 08:41, schrieb liguang: > > qemu-img will complain when qcow or qcow2 > > size overflow for 64 bits, report the right > > message in this condition. > > > > Signed-off-by: liguang > > --- > > qemu-img.c |7 ++- > > 1 files changed,

[Qemu-devel] [ [PATCH 2/2] qemu-img:report size overflow error message

2012-12-06 Thread liguang
qemu-img will complain when qcow or qcow2 size overflow for 64 bits, report the right message in this condition. Signed-off-by: liguang --- qemu-img.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index e29e01b..f3209b4 100644 --- a/qemu-img

[Qemu-devel] [ [PATCH 1/2] cutils:change strtosz_suffix_unit function

2012-12-06 Thread liguang
if value to be translated is larger than INT64_MAX, this function will not be convenient for caller to be aware of it, so change a little for this. Signed-off-by: liguang --- cutils.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cutils.c b/cutils.c index 4f0692f..

Re: [Qemu-devel] [PATCH v5 00/11] virtio: virtio-blk data plane

2012-12-06 Thread Liu Yuan
Hi Stefan, On 12/06/2012 04:46 AM, Stefan Hajnoczi wrote: > Limitations: > * Only format=raw is supported The boost number looks promising, but support of other format(which might as well fit into this new IO path design) is in the plan? It seems that bypassing block layer would end up adding ye

[Qemu-devel] [PATCH] net, hub: fix the indent in the comments

2012-12-06 Thread zwu . kernel
From: Zhi Yong Wu Remove some redundant blanks in the comments of net_hub_id_for_client(). Signed-off-by: Zhi Yong Wu --- net/hub.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/hub.c b/net/hub.c index be41301..3b2d1ff 100644 --- a/net/hub.c +++ b/net/hub.c @@

[Qemu-devel] [PATCH v3 2/3] target-i386:make hw_breakpoint_enabled return bool type

2012-12-06 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.h | 15 +-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 29245d1..3646128 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -996,9 +996,20 @@ int cpu_x86_handle_mmu_faul

[Qemu-devel] [PATCH v3 3/3] target-i386:slightly refactor dr7 related function

2012-12-06 Thread liguang
Signed-off-by: liguang --- target-i386/helper.c | 74 +--- target-i386/machine.c |5 ++- target-i386/misc_helper.c |4 +- target-i386/seg_helper.c |6 ++-- 4 files changed, 57 insertions(+), 32 deletions(-) diff --git a/target-i386/

[Qemu-devel] [PATCH v3 1/3] target-i386:define name of breakpoint bit in dr7

2012-12-06 Thread liguang
Signed-off-by: liguang --- target-i386/cpu.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 90ef1ff..29245d1 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -231,6 +231,13 @@ #define DR7_TYPE_SHIFT 16 #define

[Qemu-devel] [PATCH v3 0/3] target-i386:make breakpoint more cleaner

2012-12-06 Thread li guang
try to make breakpoint related functions more cleaner. originally, these functions implicit use 0,1,2,3 as name of breakpoint, really hard to understand, so name them readable, and also refactor the statement to check these types for clean reason. v2 changes: 1. split 'breakpoint_enabled' into '{l

Re: [Qemu-devel] [PATCH 3/3] target-i386:slightly refactor dr7 related function

2012-12-06 Thread li guang
在 2012-12-06四的 09:48 +,Peter Maydell写道: > On 6 December 2012 09:36, Andreas Färber wrote: > > Am 06.12.2012 10:27, schrieb li guang: > >> 在 2012-12-06四的 09:23 +,Peter Maydell写道: > >>> On 6 December 2012 09:16, li guang wrote: > 在 2012-12-06四的 08:54 +,Peter Maydell写道: > > On 6

[Qemu-devel] [PATCH] gitignore: Add virtfs-proxy-helper

2012-12-06 Thread Cole Robinson
Signed-off-by: Cole Robinson --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index bd6ba1c..3ce57cc 100644 --- a/.gitignore +++ b/.gitignore @@ -47,6 +47,7 @@ test-qmp-output-visitor test-string-input-visitor test-string-output-visitor test-visitor-s

Re: [Qemu-devel] [BUG] QEMU crashes when 64bit BAR is present

2012-12-06 Thread Alexey Korolev
On 06/12/12 20:45, Gerd Hoffmann wrote: > On 12/06/12 05:09, Alexey Korolev wrote: >> I tried the head today. >> Qemu crashes in the same way as before. > Hmm. Doesn't reproduce here (using RHEL-5 as guest, although it is 5.8 > so more recent than your centos 5.5). > > Is this a 32bit or 64bit gue

Re: [Qemu-devel] [PATCH] virtio: verify that all outstanding buffers are flushed (was Re: vmstate conversion for virtio?)

2012-12-06 Thread Rusty Russell
"Michael S. Tsirkin" writes: > On Thu, Dec 06, 2012 at 04:33:06PM +1030, Rusty Russell wrote: >> "Michael S. Tsirkin" writes: >> > Add sanity check to address the following concern: >> > >> > On Wed, Dec 05, 2012 at 09:47:22AM +1030, Rusty Russell wrote: >> >> All we need is the index of the req

Re: [Qemu-devel] [PATCH 2/2] target-i386: use visit_type_unit_suffixed_int() to parse tsc_freq property value

2012-12-06 Thread mdroth
On Thu, Dec 06, 2012 at 10:12:05PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Michael Roth > --- > v2: >- replace visit_type_freq() with visit_type_unit_suffixed_int() > in x86_cpuid_set_tsc_freq() > --- > target-i386/cpu.c | 2 +- > 1 file changed, 1 in

Re: [Qemu-devel] [PATCH 1/2] qapi: add visitor for parsing int[KMGT] input string

2012-12-06 Thread mdroth
On Thu, Dec 06, 2012 at 10:12:04PM +0100, Igor Mammedov wrote: > Caller of visit_type_unit_suffixed_int() will have to specify > value of 'K' suffix via unit argument. > For Kbytes it's 1024, for Khz it's 1000. > > Signed-off-by: Igor Mammedov Reviewed-by: Michael Roth > --- > v2: > - conve

Re: [Qemu-devel] [RFC] 1.4 release schedule

2012-12-06 Thread Blue Swirl
On Thu, Dec 6, 2012 at 10:19 AM, Kevin Wolf wrote: > Am 05.12.2012 20:58, schrieb Blue Swirl: >> On Wed, Dec 5, 2012 at 7:41 PM, Hans de Goede wrote: >>> Hi, >>> >>> >>> On 12/05/2012 08:28 PM, Blue Swirl wrote: On Tue, Dec 4, 2012 at 10:00 PM, Anthony Liguori wrote: > > P

Re: [Qemu-devel] [RFC] 1.4 release schedule

2012-12-06 Thread Blue Swirl
On Thu, Dec 6, 2012 at 9:01 AM, Andreas Färber wrote: > Am 05.12.2012 20:28, schrieb Blue Swirl: >> On Tue, Dec 4, 2012 at 10:00 PM, Anthony Liguori wrote: >>> What was committed post hard freeze that's not a >>> bug fix? >> >> d3067b0 Documentation: Update image format information >> a13e5e0 Doc

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.3.0 release

2012-12-06 Thread Gerhard Wiesinger
On 03.12.2012 21:51, Anthony Liguori wrote: Hi, Major features include: - After nearly 6 years of work, all remaining differences between the qemu-kvm.git and qemu.git have been merged into qemu.git How is qemu-kvm enabled? --enable-kvm ? Is there a runtime only command line switch als

Re: [Qemu-devel] [RFC] 1.4 release schedule

2012-12-06 Thread Blue Swirl
On Thu, Dec 6, 2012 at 8:05 AM, Markus Armbruster wrote: > Blue Swirl writes: > >> On Wed, Dec 5, 2012 at 7:41 PM, Hans de Goede wrote: >>> Hi, >>> >>> >>> On 12/05/2012 08:28 PM, Blue Swirl wrote: On Tue, Dec 4, 2012 at 10:00 PM, Anthony Liguori wrote: > > Peter Maydell

Re: [Qemu-devel] [PATCH 1/1] tmp105: Fix I2C protocol bug

2012-12-06 Thread Blue Swirl
On Wed, Dec 5, 2012 at 7:48 PM, Alex Horn wrote: > The private buffer length field must only be incremented after the I2C > frame has been transmitted. > > To expose this bug, assume the temperature in the TMP105 hardware model > is +0.125 C (e.g. snow slush). Note that eleven bit precision is req

[Qemu-devel] [PATCH 1/2] qapi: add visitor for parsing int[KMGT] input string

2012-12-06 Thread Igor Mammedov
Caller of visit_type_unit_suffixed_int() will have to specify value of 'K' suffix via unit argument. For Kbytes it's 1024, for Khz it's 1000. Signed-off-by: Igor Mammedov --- v2: - convert type_freq to type_unit_suffixed_int. - provide qapi_dealloc_type_unit_suffixed_int() impl. --- qapi/qa

[Qemu-devel] [PATCH 2/2] target-i386: use visit_type_unit_suffixed_int() to parse tsc_freq property value

2012-12-06 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- v2: - replace visit_type_freq() with visit_type_unit_suffixed_int() in x86_cpuid_set_tsc_freq() --- target-i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index c6c2ca0..b7f0aba 100644

[Qemu-devel] [PATCH 0/2] introduce visitor for parsing suffixed integer

2012-12-06 Thread Igor Mammedov
Igor Mammedov (2): qapi: add visitor for parsing int[KMGT] input string target-i386: use visit_type_unit_suffixed_int() to parse tsc_freq property value qapi/qapi-dealloc-visitor.c | 7 +++ qapi/qapi-visit-core.c | 13 + qapi/qapi-visit-core.h | 8 qap

Re: [Qemu-devel] [PATCH 5/6] add visitor for parsing hz[KMG] input string

2012-12-06 Thread Igor Mammedov
On Wed, 5 Dec 2012 15:00:59 -0600 mdroth wrote: > On Wed, Dec 05, 2012 at 05:21:50PM -0200, Eduardo Habkost wrote: > > On Wed, Dec 05, 2012 at 11:52:29AM -0600, mdroth wrote: > > > On Tue, Dec 04, 2012 at 05:34:42PM -0200, Eduardo Habkost wrote: > > [...] > > > > diff --git a/qapi/string-input-vi

[Qemu-devel] [Bug 1087411] [NEW] pseries machine breaks in instalation of SLES11_SP2

2012-12-06 Thread Erlon R. Cruz
Public bug reported: QEMU version: 1.0, 1.1, and 1.2 Host OS: Intel(R) Core(TM) i5-2520M CPU @ 2.50GH Linux tpad 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux SLES Media: SLES-11-SP2-DVD-ppc64-GM-DVD1.iso: sha256 -> 2247dd6bb495eb50860668e46f7d6ba

Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-06 Thread Erlon Cruz
On Wed, Dec 5, 2012 at 12:39 PM, Alexander Graf wrote: > > On 05.12.2012, at 15:37, Alexander Graf wrote: > > > On 05.12.2012, at 15:35, Alexander Graf wrote: > > > On 05.12.2012, at 15:09, Erlon Cruz wrote: > > Hi Alex, > > >> Could you please post >> >> * the exact command line you were usin

Re: [Qemu-devel] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-06 Thread Erlon Cruz
On Wed, Dec 5, 2012 at 12:35 PM, Alexander Graf wrote: > > On 05.12.2012, at 15:09, Erlon Cruz wrote: > > Hi Alex, > > >> Could you please post >> >> * the exact command line you were using >> > > ./ppc64-softmmu/qemu-system-ppc64 -machine type=pseries,usb=off -m 512 > -net nic,vlan=0 -net ta

Re: [Qemu-devel] [Qemu-ppc] [PATCH 08/13] pseries: Update SLOF for NVRAM support

2012-12-06 Thread Erlon Cruz
On Wed, Dec 5, 2012 at 12:37 PM, Alexander Graf wrote: > > On 05.12.2012, at 15:35, Alexander Graf wrote: > > > On 05.12.2012, at 15:09, Erlon Cruz wrote: > > Hi Alex, > > >> Could you please post >> >> * the exact command line you were using >> > > ./ppc64-softmmu/qemu-system-ppc64 -machine

[Qemu-devel] [PATCH] target-mips: Fix incorrect reads and writes to DSPControl register

2012-12-06 Thread Petar Jovanovic
From: Petar Jovanovic Upper 4 bits of ccond (bits 31..28 ) of DSPControl register are not used in the MIPS32 architecture. They are used in the MIPS64 architecture. For MIPS32 these bits must be written as zero, and return zero on read. The change fixes writes (WRDSP) and reads (RDDSP) to the re

[Qemu-devel] [Bug 1034980] Re: pseries machine: vscsi scsi qemu cd-rom does not work in win32

2012-12-06 Thread Kenneth Salerno
This started to work in version 1.2, thanks! -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1034980 Title: pseries machine: vscsi scsi qemu cd-rom does not work in win32 Status in QEMU: New Bug

[Qemu-devel] Understanding KVM

2012-12-06 Thread Ian Molton
Hi, Im trying to figure out how (on, say, x86), qemu (1.3, git) knows when the guest has accessed a page - in particular, on a framebuffer. It looks like its done via dirty page logs, which are maintained by the host kernel, so probably this is a kernel question, more than a qemu one. Is th

Re: [Qemu-devel] [RFC 2/3] virtio-balloon: re-enable balloon stats

2012-12-06 Thread Luiz Capitulino
On Thu, 6 Dec 2012 11:03:21 -0600 mdroth wrote: > On Tue, Dec 04, 2012 at 01:04:47PM -0200, Luiz Capitulino wrote: > > The statistics are now available through device properties via a > > polling mechanism. First, a client has to enable polling, then it > > can query the stats. > > > > The follo

Re: [Qemu-devel] [PATCH 3/7] target-alpha: Add support for -cpu ?

2012-12-06 Thread Eduardo Habkost
On Thu, Dec 06, 2012 at 05:02:52PM +0100, Andreas Färber wrote: > Am 06.12.2012 16:42, schrieb Andreas Färber: > > Am 06.12.2012 16:37, schrieb Eduardo Habkost: > >> On Wed, Oct 31, 2012 at 04:04:00AM +0100, Andreas Färber wrote: > >>> Implement alphabetical listing of CPU subclasses. > >>> > >>> S

Re: [Qemu-devel] [RFC 3/3] docs: document virtio-balloon stats

2012-12-06 Thread mdroth
On Thu, Dec 06, 2012 at 01:31:09PM -0200, Luiz Capitulino wrote: > On Thu, 6 Dec 2012 13:24:11 + > "Daniel P. Berrange" wrote: > > > On Tue, Dec 04, 2012 at 01:04:48PM -0200, Luiz Capitulino wrote: > > > Signed-off-by: Luiz Capitulino > > > --- > > > docs/virtio-balloon-stats.txt | 73 > >

Re: [Qemu-devel] [RFC 2/3] virtio-balloon: re-enable balloon stats

2012-12-06 Thread mdroth
On Tue, Dec 04, 2012 at 01:04:47PM -0200, Luiz Capitulino wrote: > The statistics are now available through device properties via a > polling mechanism. First, a client has to enable polling, then it > can query the stats. > > The following control properties are introduced: > > o stats-polling-

Re: [Qemu-devel] [PATCH 2/7] target-alpha: Turn CPU definitions into subclasses

2012-12-06 Thread Andreas Färber
Am 06.12.2012 17:09, schrieb Eduardo Habkost: > On Thu, Dec 06, 2012 at 04:51:31PM +0100, Andreas Färber wrote: >> Am 06.12.2012 16:29, schrieb Eduardo Habkost: >>> On Wed, Oct 31, 2012 at 04:03:59AM +0100, Andreas Färber wrote: >>> [...] +static void alpha_cpu_register(const AlphaCPUInfo *inf

Re: [Qemu-devel] [PATCH 3/7] target-alpha: Add support for -cpu ?

2012-12-06 Thread Eduardo Habkost
On Thu, Dec 06, 2012 at 03:59:46PM +, Peter Maydell wrote: > On 6 December 2012 15:37, Eduardo Habkost wrote: > > target-arm has very similar code. Isn't it better to first write a > > common reusable function to list CPU models using the list of > > subclasses, instead of adding very similar

Re: [Qemu-devel] [PATCH 2/7] target-alpha: Turn CPU definitions into subclasses

2012-12-06 Thread Eduardo Habkost
On Thu, Dec 06, 2012 at 04:51:31PM +0100, Andreas Färber wrote: > Am 06.12.2012 16:29, schrieb Eduardo Habkost: > > On Wed, Oct 31, 2012 at 04:03:59AM +0100, Andreas Färber wrote: > > [...] > >> +static void alpha_cpu_register(const AlphaCPUInfo *info) > >> +{ > >> +TypeInfo type_info = { > >>

Re: [Qemu-devel] [PATCH 3/7] target-alpha: Add support for -cpu ?

2012-12-06 Thread Andreas Färber
Am 06.12.2012 16:42, schrieb Andreas Färber: > Am 06.12.2012 16:37, schrieb Eduardo Habkost: >> On Wed, Oct 31, 2012 at 04:04:00AM +0100, Andreas Färber wrote: >>> Implement alphabetical listing of CPU subclasses. >>> >>> Signed-off-by: Andreas Färber >>> --- >>> target-alpha/cpu.c | 41 +++

Re: [Qemu-devel] [PATCH 3/7] target-alpha: Add support for -cpu ?

2012-12-06 Thread Peter Maydell
On 6 December 2012 15:37, Eduardo Habkost wrote: > target-arm has very similar code. Isn't it better to first write a > common reusable function to list CPU models using the list of > subclasses, instead of adding very similar functions to all > architectures? What would be particularly useful to

Re: [Qemu-devel] [PATCH 2/7] target-alpha: Turn CPU definitions into subclasses

2012-12-06 Thread Andreas Färber
Am 06.12.2012 16:29, schrieb Eduardo Habkost: > On Wed, Oct 31, 2012 at 04:03:59AM +0100, Andreas Färber wrote: > [...] >> +static void alpha_cpu_register(const AlphaCPUInfo *info) >> +{ >> +TypeInfo type_info = { >> +.name = info->name, >> +.parent = TYPE_ALPHA_CPU, >> +

Re: [Qemu-devel] [RFC 3/3] docs: document virtio-balloon stats

2012-12-06 Thread Luiz Capitulino
On Thu, 6 Dec 2012 13:24:11 + "Daniel P. Berrange" wrote: > On Tue, Dec 04, 2012 at 01:04:48PM -0200, Luiz Capitulino wrote: > > Signed-off-by: Luiz Capitulino > > --- > > docs/virtio-balloon-stats.txt | 73 > > +++ > > 1 file changed, 73 insertions(

Re: [Qemu-devel] [PATCH 3/7] target-alpha: Add support for -cpu ?

2012-12-06 Thread Andreas Färber
Am 06.12.2012 16:37, schrieb Eduardo Habkost: > On Wed, Oct 31, 2012 at 04:04:00AM +0100, Andreas Färber wrote: >> Implement alphabetical listing of CPU subclasses. >> >> Signed-off-by: Andreas Färber >> --- >> target-alpha/cpu.c | 41 + >> target-alpha/c

[Qemu-devel] [PATCH] qxl: use correct rom size for revision < 4

2012-12-06 Thread Alon Levy
RHBZ 869981 Before this patch revision < 4 (4 is the default) would result in a wrong qxl_rom size of 16384 instead of 8192 when building with spice-protocol-0.12, due to the addition of fields in the rom for client capabilities and monitors config that were added between spice-protocol 0.10 and 0

Re: [Qemu-devel] [PATCH 3/7] target-alpha: Add support for -cpu ?

2012-12-06 Thread Eduardo Habkost
On Wed, Oct 31, 2012 at 04:04:00AM +0100, Andreas Färber wrote: > Implement alphabetical listing of CPU subclasses. > > Signed-off-by: Andreas Färber > --- > target-alpha/cpu.c | 41 + > target-alpha/cpu.h |4 +++- > 2 Dateien geändert, 44 Zeilen hin

Re: [Qemu-devel] [PATCH 2/7] target-alpha: Turn CPU definitions into subclasses

2012-12-06 Thread Eduardo Habkost
On Wed, Oct 31, 2012 at 04:03:59AM +0100, Andreas Färber wrote: [...] > +static void alpha_cpu_register(const AlphaCPUInfo *info) > +{ > +TypeInfo type_info = { > +.name = info->name, > +.parent = TYPE_ALPHA_CPU, > +.instance_init = info->initfn, > +}; > + > +typ

[Qemu-devel] [PATCH 04/32] build: add $(TARGET_DIR) to "GEN config-target.h" lines

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- rules.mak |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rules.mak b/rules.mak index 77d2360..8448b94 100644 --- a/rules.mak +++ b/rules.mak @@ -71,7 +71,7 @@ TRACETOOL=$(PYTHON) $(SRC_PATH)/scripts/tracetool.py @test -f $@ || cp

[Qemu-devel] [PATCH 03/32] build: adjust setting of QEMU_INCLUDES

2012-12-06 Thread Paolo Bonzini
Make it correct for nested directories, and move the static part from Makefile to configure. Signed-off-by: Paolo Bonzini --- Makefile |2 -- configure |3 +-- rules.mak |3 +++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7e38112..9ebd3cd

[Qemu-devel] [PATCH 13/32] net: move net.c to net/

2012-12-06 Thread Paolo Bonzini
Acked-by: Paolo Bonzini Signed-off-by: Paolo Bonzini --- Makefile.objs |2 +- net/Makefile.objs |2 +- net.c => net/net.c |8 3 files changed, 6 insertions(+), 6 deletions(-) rename net.c => net/net.c (99%) diff --git a/Makefile.objs b/Makefile.objs index 0fb3904..56

[Qemu-devel] [PATCH 05/32] build: move rules from Makefile to */Makefile.objs

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile| 10 -- audio/Makefile.objs |3 +++ block/Makefile.objs |2 ++ hw/Makefile.objs|2 ++ ui/Makefile.objs|5 + 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 9ebd3c

[Qemu-devel] [PATCH 21/32] qapi: move include files to include/qapi/

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- backends/rng-egd.c |2 +- backends/rng-random.c |2 +- backends/rng.c |2 +- balloon.c |2 +- block.c

[Qemu-devel] [PATCH 01/32] libcacard: simplify rules for recursive build

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile | 10 +- 1 files changed, 1 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 9ecbcbb..d06fbad 100644 --- a/Makefile +++ b/Makefile @@ -169,19 +169,11 @@ libqemustub.a: $(stub-obj-y) # Support building shared library libcaca

[Qemu-devel] [PATCH 4/4] HMP: Introduce console command

2012-12-06 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 21 + hmp.c | 52 hmp.h |1 + monitor.c | 15 +++ monitor.h |3 +++ 5 files changed, 92 insertions(+), 0 deletions(-) dif

[Qemu-devel] [PATCH 2/4] QAPI: Introduce memchar-write QMP command

2012-12-06 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 15 +++ hmp.c| 13 + hmp.h|1 + qapi-schema.json | 41 + qemu-char.c | 48 qmp-commands.hx | 34

[Qemu-devel] [PATCH 3/4] QAPI: Introduce memchar-read QMP command

2012-12-06 Thread Lei Li
Signed-off-by: Lei Li --- hmp-commands.hx | 19 ++ hmp.c| 17 hmp.h|1 + qapi-schema.json | 25 +++ qemu-char.c | 57 ++ qmp-commands.hx | 34 +

[Qemu-devel] [PATCH 0/4 V8] char: Add CirMemCharDriver and provide QMP interface

2012-12-06 Thread Lei Li
This patch series attempts to add new char backend CirMemCharDriver with a circular buffer and expose it to users by introducing QMP interface memchar-write and memchar-read and via the command line like the other CharDriverStates. Serial ports in qemu always use CharDriverStates as there backends

[Qemu-devel] [PATCH 18/32] qapi: remove qapi/qapi-types-core.h

2012-12-06 Thread Paolo Bonzini
The file is only including error.h and qerror.h. Prefer explicit inclusion of whatever files are needed. Signed-off-by: Paolo Bonzini --- qapi/opts-visitor.c |1 + qapi/qapi-dealloc-visitor.c |1 + qapi/qapi-types-core.h | 20 qapi/qapi-visit-core.c

[Qemu-devel] [PATCH 1/4] qemu-char: Add new char backend CirMemCharDriver

2012-12-06 Thread Lei Li
Signed-off-by: Lei Li --- qemu-char.c | 131 +++ qemu-config.c |3 + qemu-options.hx | 10 3 files changed, 144 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 242b799..3e45ce6 100644 --- a/qemu-char

[Qemu-devel] [PATCH 22/32] block: move include files to include/block/

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- aes.c |2 +- aio-posix.c|2 +- aio-win32.c|2 +- async.c|2 +- block-migration.

[Qemu-devel] [PATCH 07/32] build: kill libdis, move disassemblers to disas/

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- .gitignore |1 + Makefile |9 +++--- Makefile.dis | 20 -- Makefile.objs | 19 ++--- Makefile.target

[Qemu-devel] [PATCH 26/32] qom: move include files to include/qom/

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/qdev-core.h |2 +- hw/stream.h |2 +- include/qemu/rng-random.h |2 +- include/qemu/rng.h |2 +- include/{qemu => qom}/cpu.h |2 +- include/{qemu => qom}/object.

[Qemu-devel] [PATCH 10/32] janitor: do not include qemu-char everywhere

2012-12-06 Thread Paolo Bonzini
Touching char/char.h basically causes the whole of QEMU to be rebuilt. Avoid this, it is usually unnecessary. Signed-off-by: Paolo Bonzini --- audio/alsaaudio.c|1 - audio/ossaudio.c |1 - block/raw-posix.c|1 - bt-host.c|1 - bt-vhci.c

Re: [Qemu-devel] buildbot failure in qemu on virtfs_x86_64_debian_6_0

2012-12-06 Thread Aneesh Kumar K.V
q...@buildbot.b1-systems.de writes: > The Buildbot has detected a new failure on builder virtfs_x86_64_debian_6_0 > while building qemu. > Full details are available at: > > http://buildbot.b1-systems.de/qemu/builders/virtfs_x86_64_debian_6_0/builds/307 > > Buildbot URL: http://buildbot.b1-syst

Re: [Qemu-devel] [RFC PATCH v5 6/6] virtio-blk : Refactor virtio-blk.

2012-12-06 Thread KONRAD Frédéric
On 06/12/2012 15:21, Peter Maydell wrote: On 6 December 2012 13:58, KONRAD Frédéric wrote: On 06/12/2012 11:13, Peter Maydell wrote: It can't just be a command line alias, or we will break migration. It has to be a simple device that composes together the virtio-pci and virtio-blk devices, plu

[Qemu-devel] [PATCH 12/32] net: do not include net.h everywhere

2012-12-06 Thread Paolo Bonzini
Acked-by: Paolo Bonzini Signed-off-by: Paolo Bonzini --- arch_init.c |1 - hw/alpha_sys.h |1 - hw/device-hotplug.c |1 - hw/lm32_boards.c |1 - hw/milkymist-hw.h|1 + hw/milkymist.c |1 - hw/s390-virtio-bus.c |1 - hw/spapr_vscsi.c |

[Qemu-devel] [PATCH 11/32] net: move Bluetooth stuff out of net.h

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- bt-host.c |1 - bt-host.h | 13 - bt-vhci.c |2 +- hw/bt-hci-csr.c|2 +- hw/bt-hci.c|2 +- hw/bt.c|2 +- hw/usb/dev-bluetooth.c |2 +- net.h

[Qemu-devel] [PATCH 02/32] vscclient: use per-target variables

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index d06fbad..7e38112 100644 --- a/Makefile +++ b/Makefile @@ -189,8 +189,9 @@ qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y) libqemustub.a

[Qemu-devel] [PATCH 5/6] qcow2: Move BLKDBG_EVENT out of the lock

2012-12-06 Thread Kevin Wolf
We want to use these events to suspend requests for testing concurrent AIO requests. Suspending requests while they are holding the CoMutex is rather boring for this purpose. Signed-off-by: Kevin Wolf --- block/qcow2.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/blo

[Qemu-devel] [PATCH 08/32] build: kill libuser

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile|8 +++- Makefile.objs |3 ++- Makefile.target |3 +-- Makefile.user | 24 configure |3 --- 5 files changed, 6 insertions(+), 35 deletions(-) delete mode 100644 Makefile.user diff --git a/

Re: [Qemu-devel] [RFC PATCH v5 6/6] virtio-blk : Refactor virtio-blk.

2012-12-06 Thread Peter Maydell
On 6 December 2012 13:58, KONRAD Frédéric wrote: > On 06/12/2012 11:13, Peter Maydell wrote: >> It can't just be a command line alias, or we will break migration. >> It has to be a simple device that composes together the virtio-pci >> and virtio-blk devices, plus legacy support for properties and

[Qemu-devel] [PATCH 09/32] janitor: do not rely on indirect inclusions of or from qemu-char.h

2012-12-06 Thread Paolo Bonzini
Various header files rely on qemu-char.h including qemu-config.h or main-loop.h, but they really do not need qemu-char.h at all (particularly interesting is the case of the block layer!). Clean this up, and also add missing inclusions of qemu-char.h itself. Signed-off-by: Paolo Bonzini --- arch

[Qemu-devel] [PATCH 6/6] qemu-iotests: Test concurrent cluster allocations

2012-12-06 Thread Kevin Wolf
This adds some first tests for qcow2's dependency handling when two parallel write requests access the same cluster. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/046 | 215 tests/qemu-iotests/046.out | 163 +

[Qemu-devel] [PATCH 06/32] build: create ldscripts/

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure |2 +- alpha.ld => ldscripts/alpha.ld |0 arm.ld => ldscripts/arm.ld |0 hppa.ld => ldscripts/hppa.ld |0 i386.ld => ldscripts/i386.ld |0 ia64.ld => ldscripts/ia64.ld |0 m68

[Qemu-devel] [PATCH 14/32] net: reorganize headers

2012-12-06 Thread Paolo Bonzini
Move public headers to include/net, and leave private headers in net/. Put the virtio headers in include/net/tap.h, removing the multiple copies that existed. Leave include/net/tap.h as the interface for NICs, and net/tap_int.h as the interface for OS-specific parts of the tap backend. Acked-by:

Re: [Qemu-devel] detecting seccomp sandbox capability via QMP

2012-12-06 Thread Daniel P. Berrange
On Thu, Dec 06, 2012 at 08:00:56AM -0600, Anthony Liguori wrote: > "Daniel P. Berrange" writes: > > > On Tue, Dec 04, 2012 at 03:44:54PM -0600, Anthony Liguori wrote: > >> "Daniel P. Berrange" writes: > >> > >> > On Tue, Dec 04, 2012 at 01:13:46PM -0600, Anthony Liguori wrote: > >> >> "Daniel P

Re: [Qemu-devel] [PATCH v5 07/11] iov: add iov_discard() to remove data

2012-12-06 Thread Stefan Hajnoczi
On Thu, Dec 06, 2012 at 01:36:42PM +0200, Michael S. Tsirkin wrote: > On Wed, Dec 05, 2012 at 09:47:06PM +0100, Stefan Hajnoczi wrote: > > The iov_discard() function removes data from the front or back of the > > vector. This is useful when peeling off header/footer structs. > > > > Signed-off-by

Re: [Qemu-devel] detecting seccomp sandbox capability via QMP

2012-12-06 Thread Anthony Liguori
"Daniel P. Berrange" writes: > On Tue, Dec 04, 2012 at 03:44:54PM -0600, Anthony Liguori wrote: >> "Daniel P. Berrange" writes: >> >> > On Tue, Dec 04, 2012 at 01:13:46PM -0600, Anthony Liguori wrote: >> >> "Daniel P. Berrange" writes: >> >> >> >> > >> >> > In the absence of any way to detect

Re: [Qemu-devel] [RFC PATCH v5 6/6] virtio-blk : Refactor virtio-blk.

2012-12-06 Thread KONRAD Frédéric
On 06/12/2012 11:13, Peter Maydell wrote: On 6 December 2012 09:53, Andreas Färber wrote: Am 06.12.2012 10:21, schrieb KONRAD Frédéric: I agree with that, but, there is an issue : The refactored VirtIOBlk is a device and seems to work, but the device which use this VirtIOBlock (eg virtio-blk-p

[Qemu-devel] [PATCH 20/32] janitor: add guards to headers

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- gen-icount.h|5 + host-utils.h|4 hw/9pfs/virtio-9p-synth.h |4 hw/audiodev.h |5 + hw/baum.h |4 hw/bt.h |

[Qemu-devel] [PATCH 16/32] ui: move files to ui/ and include/ui/

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs |4 +--- hmp.c |2 +- hw/adb.c |2 +- hw/ads7846.c |2 +- hw/applesmc.c

[Qemu-devel] [PATCH 24/32] monitor: move include files to include/monitor/

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- arch_init.c |2 +- audio/audio.c|2 +- audio/wavcapture.c |2 +- balloon.c|2 +- balloon.h|2 +- bloc

[Qemu-devel] [PATCH 17/32] qapi: move inclusions of qemu-common.h from headers to .c files

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qapi/opts-visitor.c |1 + qapi/qapi-types-core.h |1 - qapi/qapi-visit-core.c |1 + scripts/qapi-commands.py |1 + scripts/qapi-visit.py|1 + 5 files changed, 4 insertions(+), 1 deletions(-) diff --git a/qapi/opts-visitor.c b/qapi

[Qemu-devel] [PATCH 29/32] softmmu: move remaining include files to include/ subdirectories

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- backends/rng-egd.c |2 +- bt-host.c |2 +- bt-vhci.c |2 +- event_notifier-posix.c |2 +- gdbstub.c |2 +- hmp.c

[Qemu-devel] [PATCH 3/6] blkdebug: Implement suspend/resume of AIO requests

2012-12-06 Thread Kevin Wolf
This allows more systematic AIO testing. The patch adds three new operations to blkdebug: * Setting a "breakpoint" on a blkdebug event. The next request that triggers this breakpoint is suspended and is tagged with a name. The breakpoint is removed after a request has triggered it. * A su

[Qemu-devel] [PATCH 4/6] qemu-io: Add AIO debugging commands

2012-12-06 Thread Kevin Wolf
This makes the blkdebug suspend/resume functionality available in qemu-io. Use it like this: $ ./qemu-io blkdebug::/tmp/test.qcow2 qemu-io> break write_aio req_a qemu-io> aio_write 0 4k qemu-io> blkdebug: Suspended request 'req_a' qemu-io> resume req_a blkdebug: Resuming request 'req_a

[Qemu-devel] [PATCH 1/6] blkdebug: Allow usage without config file

2012-12-06 Thread Kevin Wolf
As soon as new rules can be set during runtime, as introduced by the next patch, blkdebug makes sense even without a config file. Signed-off-by: Kevin Wolf --- block/blkdebug.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/block/blkdebug.c b/block/blkdebug.c index

[Qemu-devel] [PATCH 2/6] blkdebug: Factor out remove_rule()

2012-12-06 Thread Kevin Wolf
The cleanup work to remove a rule depends on the type of the rule. It's easy for the existing rules as there is no data that must be cleaned up and is specific to a type yet, but the next patch will change this. Signed-off-by: Kevin Wolf --- block/blkdebug.c | 15 +-- 1 files chang

[Qemu-devel] [PATCH 0/6] blkdebug/qcow2/qemu-iotests: Add some AIO testing

2012-12-06 Thread Kevin Wolf
The few existing test cases that involve AIO depend on luck for getting the right order of requests so that they really test interesting cases. This series allows a more systematic approach by stopping and resuming AIO requests at given points. Kevin Wolf (6): blkdebug: Allow usage without confi

Re: [Qemu-devel] [PATCH] tests: Add tests for fdsets

2012-12-06 Thread Kevin Wolf
Am 04.12.2012 16:31, schrieb Stefan Hajnoczi: > On Wed, Nov 14, 2012 at 05:53:16PM -0500, Corey Bryant wrote: >> >> Signed-off-by: Corey Bryant >> --- >> tests/qemu-iotests/044| 129 >> ++ >> tests/qemu-iotests/044.out| 5 ++ >> tests/qemu-io

Re: [Qemu-devel] [RFC 3/3] docs: document virtio-balloon stats

2012-12-06 Thread Daniel P. Berrange
On Tue, Dec 04, 2012 at 01:04:48PM -0200, Luiz Capitulino wrote: > Signed-off-by: Luiz Capitulino > --- > docs/virtio-balloon-stats.txt | 73 > +++ > 1 file changed, 73 insertions(+) > create mode 100644 docs/virtio-balloon-stats.txt > > diff --git a/doc

[Qemu-devel] [PATCH 30/32] fpu: move public header file to include/fpu

2012-12-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure|2 +- fpu/softfloat.c |2 +- {fpu => include/fpu}/softfloat.h |0 include/qemu/bswap.h |2 +- linux-user/arm/nwfpe/double_cpdo.c |2 +- linux-user/arm/nwfpe/extend

  1   2   >