Re: [Qemu-devel] [PATCH V3 4/5] libqblock test build system

2012-09-18 Thread Wenchao Xia
于 2012-9-18 18:10, Paolo Bonzini 写道: Il 18/09/2012 11:01, Wenchao Xia ha scritto: Created a new directory in tests, make chekc-libqblock will build an executable binrary, make clean will delete it. Signed-off-by: Wenchao Xia --- .gitignore |1 + Makefile

Re: [Qemu-devel] [PATCH V3 5/5] libqblock test example code

2012-09-18 Thread Wenchao Xia
于 2012-9-18 18:10, Paolo Bonzini 写道: Il 18/09/2012 11:01, Wenchao Xia ha scritto: In this example, user first create two qcow2 images, and then get the backing file relationship information of them. Then does write and read sync IO on them. Please use gtest so that this can be easily extens

Re: [Qemu-devel] [PATCH V3 1/5] libqblock build system

2012-09-18 Thread Wenchao Xia
于 2012-9-18 18:05, Paolo Bonzini 写道: Il 18/09/2012 11:01, Wenchao Xia ha scritto: Libqblock was placed in new directory ./libqblock, libtool will build dynamic library there, source files of block layer remains in ./block. So block related source code will generate 3 sets of binary, first is

[Qemu-devel] [PATCH v2] target-mips: Use TCG registers for the FPU.

2012-09-18 Thread Richard Henderson
With normal FP, this doesn't have much affect on the generated code, because most of the FP operations are not CONST/PURE, and so we spill registers in about the same frequency as the explicit load/stores. But with Loongson multimedia instructions, which are all integral and whose helpers are in f

Re: [Qemu-devel] [PATCH 7/9] fbdev: move to pixman

2012-09-18 Thread Gerd Hoffmann
On 09/18/12 22:30, Søren Sandmann wrote: > Gerd Hoffmann writes: > >> +static pixman_image_t *pixman_from_displaystate(DisplayState *ds) >> +{ >> +static pixman_image_t *pixman_from_framebuffer(void) >> +{ > You may want to call pixman_format_supported_source/destination() here > to ensure that

Re: [Qemu-devel] [PATCH 9/9] fbdev: add display scaling support

2012-09-18 Thread Gerd Hoffmann
On 09/18/12 17:02, Stefano Stabellini wrote: > On Tue, 18 Sep 2012, Gerd Hoffmann wrote: >> Add support for scaling the guest display. >> Ctrl-Alt-S hotkey toggles scaling. > > We could make sdl_zoom generic: sdl_zoom_blit doesn't actually depend on > sdl. I'd rather go the other way around and m

Re: [Qemu-devel] [PATCH 7/9] fbdev: move to pixman

2012-09-18 Thread Gerd Hoffmann
On 09/18/12 17:01, Stefano Stabellini wrote: > On Tue, 18 Sep 2012, Gerd Hoffmann wrote: >> Stop reinventing the wheel. Use the pixman library for raster ops. > > I would separate the pixmap changes from this series: either we use > this library everywhere or nowhere. At the very least vnc could

Re: [Qemu-devel] Block Migration Assertion in qemu-kvm 1.2.0

2012-09-18 Thread Peter Lieven
On 09/18/12 12:31, Kevin Wolf wrote: Am 18.09.2012 12:28, schrieb Peter Lieven: On 09/17/12 22:12, Peter Lieven wrote: On 09/17/12 10:41, Kevin Wolf wrote: Am 16.09.2012 12:13, schrieb Peter Lieven: Hi, when trying to block migrate a VM from one node to another, the source VM crashed with th

Re: [Qemu-devel] [PATCH 4/9] fbdev: add linux framebuffer display driver.

2012-09-18 Thread Gerd Hoffmann
On 09/18/12 17:01, Stefano Stabellini wrote: > On Tue, 18 Sep 2012, Gerd Hoffmann wrote: >> Display works, requires truecolor framebuffer with 16 or 32 bpp on the >> host. 32bpp is recommended. The framebuffer is used as-is, qemu >> doesn't try to switch modes. With LCD displays mode switching i

[Qemu-devel] [PATCH] target-mips: Implement Loongson Multimedia Instructions

2012-09-18 Thread Richard Henderson
Implements all of the COP2 instructions except for the S family of comparisons. The documentation is unclear for those. Signed-off-by: Richard Henderson --- It turns out that the previous patch was totally independent of the other 6 patches in the previous series. That said, I've pulled the pa

[Qemu-devel] [PATCH 1/3] target-mips: Set opn in gen_ldst_multiple.

2012-09-18 Thread Richard Henderson
Used by MIPS_DEBUG, when enabled. Signed-off-by: Richard Henderson Acked-by: Aurelien Jarno --- target-mips/translate.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target-mips/translate.c b/target-mips/translate.c index 52eeb2b..50153a9 100644 --- a/target-mips/translate.c +++ b/t

[Qemu-devel] [PATCH 2/3] target-mips: Fix MIPS_DEBUG.

2012-09-18 Thread Richard Henderson
The macro uses the DisasContext. Pass it around as needed. Signed-off-by: Richard Henderson Acked-by: Aurelien Jarno --- target-mips/translate.c | 74 + 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/target-mips/translate.c b/tar

[Qemu-devel] [PATCH 3/3] target-mips: Always evaluate debugging macro arguments

2012-09-18 Thread Richard Henderson
this will prevent some of the compilation errors with debugging enabled from creeping back in. Signed-off-by: Richard Henderson --- target-mips/translate.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/target-mips/translate.c b/target-mips/

[Qemu-devel] [PATCH v2 0/3] target-mips: MIPS_DEBUG cleanup

2012-09-18 Thread Richard Henderson
Patch set available at git://repo.or.cz/qemu/rth.git rth/mips/next The third patch is updated to avoid multiple copies, as suggested. r~ Richard Henderson (3): target-mips: Set opn in gen_ldst_multiple. target-mips: Fix MIPS_DEBUG. target-mips: Always evaluate debugging macro argument

Re: [Qemu-devel] [PATCH V3 10/11] vcpu: introduce lockmap

2012-09-18 Thread Peter Crosthwaite
On Wed, Sep 19, 2012 at 2:32 PM, Edgar E. Iglesias wrote: > On Wed, Sep 19, 2012 at 02:25:48PM +1000, Peter Crosthwaite wrote: >> Ping for PMM, >> >> This is the root case of your block on the SDHCI series - this is a >> discussion on resolution to bogus infinite looping DMA. For current >> partic

Re: [Qemu-devel] [PATCH V3 10/11] vcpu: introduce lockmap

2012-09-18 Thread Edgar E. Iglesias
On Wed, Sep 19, 2012 at 02:25:48PM +1000, Peter Crosthwaite wrote: > Ping for PMM, > > This is the root case of your block on the SDHCI series - this is a > discussion on resolution to bogus infinite looping DMA. For current > participants in this discussion, heres our thread on the same topic > o

Re: [Qemu-devel] [PATCH V3 10/11] vcpu: introduce lockmap

2012-09-18 Thread Peter Crosthwaite
Ping for PMM, This is the root case of your block on the SDHCI series - this is a discussion on resolution to bogus infinite looping DMA. For current participants in this discussion, heres our thread on the same topic over in SD land: http://lists.gnu.org/archive/html/qemu-devel/2012-08/msg01017.

Re: [Qemu-devel] [PATCH V3 2/5] libqblock type defines

2012-09-18 Thread Wenchao Xia
Il 18/09/2012 11:01, Wenchao Xia ha scritto: This patch contains type and defines used in APIs, one file for public usage by user, one for libqblock internal usage. Signed-off-by: Wenchao Xia --- libqblock/libqblock-internal.h | 56 + libqblock/libqblock-types.h| 268

[Qemu-devel] [PATCH 2/2] tcg-hppa: Fix broken load/store helpers

2012-09-18 Thread Richard Henderson
The CONFIG_TCG_PASS_AREG0 code for calling ld/st helpers was not respecting the ABI requirement for 64-bit values being aligned in registers. Mirror the ARM port in use of helper functions to marshal arguments into the correct registers. Signed-off-by: Richard Henderson --- tcg/hppa/tcg-target.

Re: [Qemu-devel] [Qemu-ppc] [PATCH v10 1/1] Add USB option in machine options

2012-09-18 Thread Li Zhang
On Wed, Sep 19, 2012 at 1:59 AM, Alexander Graf wrote: > On 09/18/2012 07:36 PM, Alexander Graf wrote: >> >> On 09/03/2012 07:25 AM, Li Zhang wrote: >>> >>> When -usb option is used, global varible usb_enabled is set. >>> And all the plaform will create one USB controller according >>> to this var

Re: [Qemu-devel] [Qemu-ppc][PATCH v10 1/1] Add USB option in machine options

2012-09-18 Thread Li Zhang
On Wed, Sep 19, 2012 at 1:36 AM, Alexander Graf wrote: > On 09/03/2012 07:25 AM, Li Zhang wrote: >> >> When -usb option is used, global varible usb_enabled is set. >> And all the plaform will create one USB controller according >> to this variable. In fact, global varibles make code hard >> to rea

[Qemu-devel] [big lock] Discussion about the convention of device's DMA each other after breaking down biglock

2012-09-18 Thread liu ping fan
Currently, cpu_physical_memory_rw() can be used directly or indirectly by mmio-dispatcher to access other devices' memory region. This can cause some problem when adopting device's private lock. Back ground refer to: http://lists.gnu.org/archive/html/qemu-devel/2012-09/msg01481.html For lazy, just

[Qemu-devel] [PATCH 1/2] tcg-hppa: Fix brcond2 and setcond2

2012-09-18 Thread Richard Henderson
Neither of these functions were performing double-word compares properly. Signed-off-by: Richard Henderson --- tcg/hppa/tcg-target.c | 51 ++- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/tcg/hppa/tcg-target.c b/tcg/hppa/tcg-targe

[Qemu-devel] [PULL 0/2] tcg-hppa fixes

2012-09-18 Thread Richard Henderson
Please pull from git://git.repo.or.cz/qemu/rth.git hppa-next Tested with alpha-softmmu and i386-softmmu, both just booting the roms. Which is farther than the instant crash of before. r~ Richard Henderson (2): tcg-hppa: Fix brcond2 and setcond2 tcg-hppa: Fix broken load/store helpers

Re: [Qemu-devel] qmp: dump-guest-memory: -p option has issues, fix it or drop it?

2012-09-18 Thread HATAYAMA Daisuke
From: Wen Congyang Subject: Re: [Qemu-devel] qmp: dump-guest-memory: -p option has issues, fix it or drop it? Date: Wed, 19 Sep 2012 10:07:04 +0800 > At 09/19/2012 08:18 AM, Luiz Capitulino Wrote: >> On Tue, 18 Sep 2012 16:13:30 -0500 >> Anthony Liguori wrote: >> >>> Markus Armbruster writes:

Re: [Qemu-devel] qmp: dump-guest-memory: -p option has issues, fix it or drop it?

2012-09-18 Thread Wen Congyang
At 09/19/2012 08:18 AM, Luiz Capitulino Wrote: > On Tue, 18 Sep 2012 16:13:30 -0500 > Anthony Liguori wrote: > >> Markus Armbruster writes: >> >>> Jan Kiszka writes: >>> * The issues discussed in this email plus the fact that the guest memory may be corrupted, and the gues

Re: [Qemu-devel] [PATCH 1/2] qemu-char: BUGFIX, don't call FD_ISSET with negative fd

2012-09-18 Thread David Gibson
On Tue, Sep 18, 2012 at 01:29:04PM +0200, Andreas Färber wrote: > Am 18.09.2012 02:08, schrieb David Gibson: > > On Mon, Sep 17, 2012 at 01:24:51PM -0500, Anthony Liguori wrote: > >> David Gibson writes: > >> > >>> tcp_chr_connect(), unlike for example udp_chr_update_read_handler() does > >>> not

[Qemu-devel] [PATCH v3 09/10] target-xtensa: implement FP1 group

2012-09-18 Thread Max Filippov
These are comparison and conditional move opcodes. See ISA, 4.3.10 for more details. Signed-off-by: Max Filippov --- target-xtensa/helper.h|8 target-xtensa/op_helper.c | 47 ++ target-xtensa/translate.c | 81 -

[Qemu-devel] [PATCH v3 02/10] softfloat: add NO_SIGNALING_NANS

2012-09-18 Thread Max Filippov
Architectures that don't have signaling NaNs can define NO_SIGNALING_NANS, it will make float*_is_quiet_nan return 1 for any NaN and float*_is_signaling_nan always return 0. Signed-off-by: Max Filippov --- fpu/softfloat-specialize.h | 67 fpu/softfl

[Qemu-devel] [PATCH v3 10/10] target-xtensa: implement coprocessor context option

2012-09-18 Thread Max Filippov
In case Coprocessor Context option is enabled CPENABLE SR bits control whether access to coprocessors is allowed or would rise one of CoprocessorXDisabled exceptions. See ISA, 4.4.5 for more details. FP is coprocessor 0. Signed-off-by: Max Filippov --- target-xtensa/cpu.h |5 + t

Re: [Qemu-devel] qmp: dump-guest-memory: -p option has issues, fix it or drop it?

2012-09-18 Thread Anthony Liguori
Luiz Capitulino writes: > On Tue, 18 Sep 2012 16:13:30 -0500 > Anthony Liguori wrote: > >> Markus Armbruster writes: >> >> > Jan Kiszka writes: >> > >> >> * The issues discussed in this email plus the fact that the guest >> >>memory may be corrupted, and the guest may be in real-

[Qemu-devel] [PATCH v3 01/10] softfloat: make float_muladd_negate_* flags independent

2012-09-18 Thread Max Filippov
Flags passed into float{32,64}_muladd are treated as bits; assign independent bits to float_muladd_negate_* to allow precise control over what gets negated in float{32,64}_muladd. Signed-off-by: Max Filippov Reviewed-by: Aurelien Jarno --- fpu/softfloat.h |2 +- 1 files changed, 1 insertion

[Qemu-devel] [PATCH v3 06/10] target-xtensa: implement LSCX and LSCI groups

2012-09-18 Thread Max Filippov
These are load/store instructions for FP registers with immediate or register index and optional base post-update. See ISA, 4.3.10 for more details. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 58 +--- 1 files changed, 54 insertions(+), 4

[Qemu-devel] [PATCH v3 07/10] target-xtensa: implement FP0 arithmetic

2012-09-18 Thread Max Filippov
These are FP arithmetic opcodes. See ISA, 4.3.10 for more details. Signed-off-by: Max Filippov --- target-xtensa/helper.h|7 + target-xtensa/op_helper.c | 37 +++ target-xtensa/translate.c | 61 - 3 files changed

[Qemu-devel] [PATCH v3 03/10] target-xtensa: handle boolean option in overlays

2012-09-18 Thread Max Filippov
Signed-off-by: Max Filippov --- target-xtensa/overlay_tool.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-xtensa/overlay_tool.h b/target-xtensa/overlay_tool.h index a3a5650..e395053 100644 --- a/target-xtensa/overlay_tool.h +++ b/target-xtensa/overlay_tool.h @@

Re: [Qemu-devel] [PATCH 000/126] Rewrite s390x translator

2012-09-18 Thread Richard Henderson
On 09/18/2012 02:09 PM, Alexander Graf wrote: > Also, 102-126 are missing for me :). Yeah, they never made it to the list. I guess next time I shouldn't try to send to many at the same time. I should stagger them into hunks of 25 at a time or so. I've fixed some bugs since the v1, and I believe

Re: [Qemu-devel] [PATCH v2 08/10] target-xtensa: implement FP0 conversions

2012-09-18 Thread Max Filippov
On Sun, Sep 9, 2012 at 8:38 PM, Max Filippov wrote: > On Sun, Sep 9, 2012 at 8:16 PM, Peter Maydell > wrote: >> On 9 September 2012 17:04, Max Filippov wrote: >>> These are FP to integer and integer to FP conversion opcodes. >>> See ISA, 4.3.10 for more details. >>> >>> Note that utrunc.s imple

[Qemu-devel] [PATCH v3 08/10] target-xtensa: implement FP0 conversions

2012-09-18 Thread Max Filippov
These are FP to integer and integer to FP conversion opcodes. See ISA, 4.3.10 for more details. Note that ISA description for utrunc.s is currently incorrect and will be fixed in future revisions. Signed-off-by: Max Filippov --- target-xtensa/helper.h|4 +++ target-xtensa/op_helper.c |

[Qemu-devel] [PATCH v3 05/10] target-xtensa: add FP registers

2012-09-18 Thread Max Filippov
There are 16 32-bit FP registers (f0 - f15), control and status user registers (fcr, fsr). See ISA, 4.3.10 for more details. Signed-off-by: Max Filippov --- gdbstub.c |8 +++ target-xtensa/cpu.h |3 ++ target-xtensa/helper.h|2 + target-xtensa/op_helper

[Qemu-devel] [PATCH v3 04/10] target-xtensa: specialize softfloat NaN rules

2012-09-18 Thread Max Filippov
NaN propagation rule: leftmost NaN in the expression gets propagated to the result. Signed-off-by: Max Filippov --- fpu/softfloat-specialize.h |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h index 50b54b8..a1d48

[Qemu-devel] [PATCH v3 00/10] target-xtensa: implement FP coprocessor option

2012-09-18 Thread Max Filippov
This series implements floating point coprocessor and coprocessor context options for xtensa and fixes a couple of bugs to make it work. Changes v2->v3: - add comment to the NO_SIGNALING_NANS definition - reword explanation for UTRUNC.S Changes v1->v2: - add NO_SIGNALING_NANS and drop float32_may

Re: [Qemu-devel] qmp: dump-guest-memory: -p option has issues, fix it or drop it?

2012-09-18 Thread Luiz Capitulino
On Tue, 18 Sep 2012 16:13:30 -0500 Anthony Liguori wrote: > Markus Armbruster writes: > > > Jan Kiszka writes: > > > >> * The issues discussed in this email plus the fact that the guest > >>memory may be corrupted, and the guest may be in real-mode even > >>when paging is

Re: [Qemu-devel] [PATCH 047/126] target-s390: Convert LOAD, STORE MULTIPLE

2012-09-18 Thread Richard Henderson
On 09/18/2012 01:49 PM, Alexander Graf wrote: > I don't have a good answer here, but how do we guarantee that we're > not overrunning the tcg inst buffer? Dunno. Not a new problem though, since the old code does the same thing. r~

Re: [Qemu-devel] [PATCH 010/126] target-s390: Reorg exception handling

2012-09-18 Thread Richard Henderson
On 09/18/2012 01:18 PM, Alexander Graf wrote: >> -/* remember what pgm exeption this was */ >> +/* Remember what pgm exeption this was. */ >> tmp = tcg_const_i32(code); >> tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUS390XState, int_pgm_code)); >> tcg_temp_free_i32(tmp); >>

Re: [Qemu-devel] Shifts, ppc[64], xtensa

2012-09-18 Thread Richard Henderson
On 09/18/2012 12:52 PM, malc wrote: > case INDEX_op_shl_i32: > if (const_args[2]) { > +if (args[2] > 31) { > +tcg_out_movi (s, TCG_TYPE_I32, 0, args[2]); > +tcg_out32 (s, SLW | SAB (args[1], args[0], 0)); > +} What's this bit fo

Re: [Qemu-devel] Shifts, ppc[64], xtensa

2012-09-18 Thread Max Filippov
On Tue, Sep 18, 2012 at 11:52 PM, malc wrote: > > Looks like PPC/PPC64 is also hit by shift issues, on top of that xtensa malc, could you please expand a little bit what are these shift issues? (sounds like a modern trend, I must have missed something) > exposed another bug in power's tcg - goto

Re: [Qemu-devel] [PATCH 4/4] vl: add -late-object to create QOM objects after machine init

2012-09-18 Thread Anthony Liguori
Andreas Färber writes: > Am 02.07.2012 14:32, schrieb Paolo Bonzini: >> Il 26/06/2012 00:43, Anthony Liguori ha scritto: >>> In order to create qdev objects via -late-object, we almost always have to >>> specify the parent_bus which is usually created during machine init. Until >>> we >>> prope

[Qemu-devel] [Bug 1052380] Re: qemu 1.0.50-2012.03-0ubuntu2 makes ARMv6k kernels crash

2012-09-18 Thread Aurelien Jarno
** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1052380 Title: qemu 1.0.50-2012.03-0ubuntu2 makes ARMv6k kernels crash Status in QEMU: Fix Re

Re: [Qemu-devel] [PATCH v3 09/19] block: raw-posix image file reopen

2012-09-18 Thread Jeff Cody
On 09/18/2012 05:20 PM, Eric Blake wrote: > On 09/18/2012 12:53 PM, Jeff Cody wrote: >> This is derived from the Supriya Kannery's reopen patches. >> >> This contains the raw-posix driver changes for the bdrv_reopen_* >> functions. All changes are staged into a temporary scratch buffer >> during t

Re: [Qemu-devel] [PATCH 1/5] tcg: Introduce movcond

2012-09-18 Thread Aurelien Jarno
On Tue, Sep 18, 2012 at 07:23:56AM -0700, Richard Henderson wrote: > Implemented with setcond if the target does not provide > the optional opcode. > > Signed-off-by: Richard Henderson > --- > tcg/README | 6 ++ > tcg/arm/tcg-target.h | 1 + > tcg/hppa/tcg-target.h | 1 + >

Re: [Qemu-devel] [PATCH 0/5] tcg: movcond

2012-09-18 Thread Aurelien Jarno
On Tue, Sep 18, 2012 at 07:23:55AM -0700, Richard Henderson wrote: > As recently discussed, with the optional fallback to setcond. > > I include a patch to target-alpha to test correctness both > before and after implementing the opcode in the i386 backend, > as well as in the optimizations. > T

Re: [Qemu-devel] [PATCH 4/5] tcg: Optimize movcond for constant comparisons

2012-09-18 Thread Aurelien Jarno
On Tue, Sep 18, 2012 at 07:23:59AM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tcg/optimize.c | 29 + > 1 file changed, 29 insertions(+) > > diff --git a/tcg/optimize.c b/tcg/optimize.c > index fba0ed9..5b0a8ce 100644 > --- a/tcg/optimiz

Re: [Qemu-devel] [PATCH 5/5] tcg: Optimize two-address commutative operations

2012-09-18 Thread Aurelien Jarno
On Tue, Sep 18, 2012 at 07:24:00AM -0700, Richard Henderson wrote: > While swapping constants to the second operand, swap > sources matching destinations to the first operand. > > Signed-off-by: Richard Henderson > --- > tcg/optimize.c | 22 +++--- > 1 file changed, 19 insertions

Re: [Qemu-devel] [PATCH 3/5] tcg-i386: Implement movcond

2012-09-18 Thread Aurelien Jarno
On Tue, Sep 18, 2012 at 07:23:58AM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tcg/i386/tcg-target.c | 29 + > tcg/i386/tcg-target.h | 7 ++- > 2 files changed, 35 insertions(+), 1 deletion(-) > > diff --git a/tcg/i386/tcg-target.c

Re: [Qemu-devel] [PATCH 11/25] q35: Introduce q35 pc based chipset emulator

2012-09-18 Thread Alex Williamson
On Fri, 2012-09-14 at 09:37 +0200, Gerd Hoffmann wrote: > On 09/13/12 22:12, Jason Baron wrote: > > +if (ram_size >= 0xe000) { > > +above_4g_mem_size = ram_size - 0xe000; > > +below_4g_mem_size = 0xe000; > > We should make the hole larger to get more pci i/o address

[Qemu-devel] [Bug 1052380] [NEW] qemu 1.0.50-2012.03-0ubuntu2 makes ARMv6k kernels crash

2012-09-18 Thread Florian Fainelli
Public bug reported: The Linux ARM kernel commit that starts causing the issue is: 18b9dc130c33de2d1fd46bd668e67d0e1a544b16: ARM: vfp: add VFPv4 capability detection and populate elf_hwcap And is fixed in qemu with: 06ed5d66f77f2794344c7dfd3d21a07e97f0b8fa: ARM: Permit any ARMv6K CPU to read th

Re: [Qemu-devel] [PATCH v3 09/19] block: raw-posix image file reopen

2012-09-18 Thread Eric Blake
On 09/18/2012 12:53 PM, Jeff Cody wrote: > This is derived from the Supriya Kannery's reopen patches. > > This contains the raw-posix driver changes for the bdrv_reopen_* > functions. All changes are staged into a temporary scratch buffer > during the prepare() stage, and copied over to the live

Re: [Qemu-devel] [PATCH 3/5] target-arm: convert shl and shr helpers to TCG

2012-09-18 Thread Edgar E. Iglesias
On Mon, Sep 17, 2012 at 03:36:46PM +0200, Laurent Desnogues wrote: > On Mon, Sep 17, 2012 at 11:43 AM, Peter Maydell > wrote: > > On 17 September 2012 10:30, Laurent Desnogues > > wrote: > >> On Mon, Sep 17, 2012 at 1:08 AM, Aurelien Jarno > >> wrote: > >>> +#define GEN_SHIFT(name)

Re: [Qemu-devel] [PATCH] usb-redir: Allow to attach USB 2.0 devices to 1.1 host controller

2012-09-18 Thread Anthony Liguori
Hans de Goede writes: > Hi, > > On 09/17/2012 11:18 AM, Jan Kiszka wrote: >> On 2012-09-17 11:08, Hans de Goede wrote: > > > >>> Although not pretty I'm ok with this, since I actually want to add >>> similar code to allow usb-3 (superspeed) devices like a usb-3 usb-stick >>> to work with ehci or

Re: [Qemu-devel] qmp: dump-guest-memory: -p option has issues, fix it or drop it?

2012-09-18 Thread Anthony Liguori
Markus Armbruster writes: > Jan Kiszka writes: > >> * The issues discussed in this email plus the fact that the guest >>memory may be corrupted, and the guest may be in real-mode even >>when paging is enabled >> > > Yes, there are some limitations with this optio

Re: [Qemu-devel] [PATCH 000/126] Rewrite s390x translator

2012-09-18 Thread Alexander Graf
On 09/18/2012 11:08 PM, Alexander Graf wrote: On 09/09/2012 11:04 PM, Richard Henderson wrote: As promised the other week. I've cleaned up the patch set and re-based it on Blueswirl's areg0 patch set. For reference, the entire patch set is available at git://repo.or.cz/qemu/rth.git rth/s39

Re: [Qemu-devel] [PATCH 7/9] fbdev: move to pixman

2012-09-18 Thread Anthony Liguori
Anthony Liguori writes: > Gerd Hoffmann writes: > >> Stop reinventing the wheel. Use the pixman library for raster ops. >> >> Signed-off-by: Gerd Hoffmann > > Why not cairo? I already have a cairo backend that uses GTK that > supports scaling. That would be a good opportunity for sharing eve

Re: [Qemu-devel] [PATCH 000/126] Rewrite s390x translator

2012-09-18 Thread Alexander Graf
On 09/09/2012 11:04 PM, Richard Henderson wrote: As promised the other week. I've cleaned up the patch set and re-based it on Blueswirl's areg0 patch set. For reference, the entire patch set is available at git://repo.or.cz/qemu/rth.git rth/s390-reorg-3 Testing has mostly been on the gcc t

Re: [Qemu-devel] [PATCH 086/126] target-s390: Convert CLST, MVST

2012-09-18 Thread Alexander Graf
On 09/11/2012 11:09 PM, Richard Henderson wrote: On 09/11/2012 12:11 PM, Blue Swirl wrote: PSW_MASK_64 bit could be added to TB flags and that could be checked during translation, then the mask needs to be applied only when the mode is active. Whether that actually improves performance depends o

Re: [Qemu-devel] [PATCH v2 2/2] Versatile Express: add modelling of NOR flash

2012-09-18 Thread Francesco Lavra
On 09/18/2012 03:46 PM, Peter Maydell wrote: > On 17 September 2012 21:08, Francesco Lavra > wrote: >> This patch adds modelling of the two NOR flash banks found on the >> Versatile Express motherboard. Tested with U-Boot running on an emulated >> Versatile Express, with either A9 or A15 CoreTile

[Qemu-devel] [PATCH] tci: Support deposit operations (use deposit32, deposit64)

2012-09-18 Thread Stefan Weil
The operations for INDEX_op_deposit_i32 and INDEX_op_deposit_i64 are now supported and enabled by default. Signed-off-by: Stefan Weil --- This is a 2nd implementation of the deposit operations. It differs from the previous patch only in the interpreter part which uses functions deposit32, deposi

Re: [Qemu-devel] [PATCH 053/126] target-s390: Convert MVC

2012-09-18 Thread Alexander Graf
On 09/09/2012 11:05 PM, Richard Henderson wrote: The code that was in gen_op_mvc was a bit confused wrt what lengths it wanted to handle. I also disbelieve that the inline memset is worthwhile. I measured it back when I inlined it and I'm fairly sure I remember significant speedups from it. C

[Qemu-devel] [PATCH v2] tci: Support deposit operations

2012-09-18 Thread Stefan Weil
The operations for INDEX_op_deposit_i32 and INDEX_op_deposit_i64 are now supported and enabled by default. Signed-off-by: Stefan Weil --- The interpreter code for INDEX_op_deposit_i64 was buggy in v1 of this patch. There is also an alternate implementation of the interpreter part which is based

Re: [Qemu-devel] [PATCH 047/126] target-s390: Convert LOAD, STORE MULTIPLE

2012-09-18 Thread Alexander Graf
On 09/09/2012 11:05 PM, Richard Henderson wrote: Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 14 target-s390x/translate.c | 191 - 2 files changed, 116 insertions(+), 89 deletions(-) diff --git a/target-s390x/insn-dat

[Qemu-devel] [PATCH stable] tci: Fix for AREG0 free mode

2012-09-18 Thread Stefan Weil
Support for helper functions with 5 arguments was missing in the code generator and in the interpreter. There is no need to pass the constant TCG_AREG0 from the code generator to the interpreter. Remove that code for the INDEX_op_qemu_st* opcodes. Signed-off-by: Stefan Weil --- This patch is al

[Qemu-devel] [PATCH] qemu-clock: add an alarm timer based on timerfd

2012-09-18 Thread Anthony Liguori
timerfd is a new(ish) mechanism provided in the 2.6.25+ Linux kernels that allows for a high resolution event timer signaled through a file descriptor. This patch adds an alarm timer implementation using timerfd. timerfd has a couple advantages over dynticks. Namely, it's fd based instead of sign

[Qemu-devel] [PATCH 16/16] ipmi: Add migration capability to the IPMI device.

2012-09-18 Thread minyard
From: Corey Minyard Signed-off-by: Corey Minyard io_length = 3; memory_region_init_io(&s->io, &ipmi_bt_io_ops, bt, "ipmi-bt", 3); +vmstate_register(NULL, 0, &vmstate_ipmi_bt, bt); return 0; } diff --git a/hw/ipmi_extern.c b/hw/ipmi_extern.c index b31aea0..803331c 100644 --- a/h

[Qemu-devel] [PATCH 09/16] IPMI: Add a PC ISA type structure

2012-09-18 Thread minyard
From: Corey Minyard This provides the base infrastructure to tie IPMI low-level interfaces into a PC ISA bus. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1 + hw/fw_cfg.h

[Qemu-devel] [PATCH 11/16] IPMI: Add a BT low-level interface

2012-09-18 Thread minyard
From: Corey Minyard This provides the simulation of the BT hardware interface for IPMI. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1 + hw/ipmi_bt.c |

[Qemu-devel] [PATCH 06/16] qemu-char: Close fd at end of file

2012-09-18 Thread minyard
From: Corey Minyard The chardev backends that used qemu_chr_open_fd did not get their file descriptors closed at end of file or when the chardev was closed. This could result in a file descriptor leak. Signed-off-by: Corey Minyard --- qemu-char.c | 31 +-- 1 files

Re: [Qemu-devel] [PATCH 7/9] fbdev: move to pixman

2012-09-18 Thread Søren Sandmann
Gerd Hoffmann writes: > +static pixman_image_t *pixman_from_displaystate(DisplayState *ds) > +{ > +PixelFormat *pf = &ds->surface->pf; > +pixman_format_code_t format; > +pixman_image_t *image; > +int type; > + > +type = pixman_shifts_to_type(pf->rshift, pf->gshift, pf->bshift)

[Qemu-devel] [PATCH 13/16] IPMI: Add an external connection simulation interface

2012-09-18 Thread minyard
From: Corey Minyard This adds an interface for IPMI that connects to a remote BMC over a chardev (generally a TCP socket). The OpenIPMI lanserv simulator describes this interface, see that for interface details. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + def

[Qemu-devel] [PATCH 08/16] Add a base IPMI interface

2012-09-18 Thread minyard
From: Corey Minyard Add the basic IPMI types and infrastructure to QEMU. Low-level interfaces and simulation interfaces will register with this; it's kind of the go-between to tie them together. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_

[Qemu-devel] [PATCH 02/16] qemu-char: Allocate CharDriverState in qemu_chr_new_from_opts

2012-09-18 Thread minyard
From: Corey Minyard This allocates the CharDriverState structure in a more logical place. It reduces code size and it allows a coming option to automatically attempt to reconnect a chardev if the connection fails. Signed-off-by: Corey Minyard --- console.c |6 +--- console.h

[Qemu-devel] [PATCH 14/16] IPMI: Add tests

2012-09-18 Thread minyard
From: Corey Minyard Test the KCS interface with a local BMC and a BT interface with an external BMC. Signed-off-by: Corey Minyard --- tests/Makefile|4 + tests/ipmi-test-bt.c | 440 + tests/ipmi-test-kcs.c | 295 +++

Re: [Qemu-devel] [RFC PATCH 11/13] hmp: add NBD server commands

2012-09-18 Thread Luiz Capitulino
On Mon, 27 Aug 2012 17:00:24 +0200 Paolo Bonzini wrote: > At the HMP level there is no nbd_server_add command. nbd_server_start > automatically exposes all of the VM's block devices, and an option -w > makes them writable. > > Signed-off-by: Paolo Bonzini > --- > hmp-commands.hx | 29

Re: [Qemu-devel] [PATCH 1/2] target-i386: Fix default Hypervisor level for accel=kvm.

2012-09-18 Thread Don Slutz
On 09/18/12 11:05, Eduardo Habkost wrote: On Tue, Sep 18, 2012 at 10:49:52AM -0400, Don Slutz wrote: From http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/00100.html EAX should be KVM_CPUID_FEATURES (0x4001) not 0. --- target-i386/kvm.c |2 +- 1 files changed, 1 insertions(+), 1

[Qemu-devel] [PATCH v3 07/19] block: use BDRV_O_NOCACHE instead of s->aligned_buf in raw-posix.c

2012-09-18 Thread Jeff Cody
Rather than check for a non-NULL aligned_buf to determine if raw_aio_submit needs to check for alignment, check for the presence of BDRV_O_NOCACHE in the bs->open_flags. Signed-off-by: Jeff Cody --- block/raw-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/raw-p

Re: [Qemu-devel] [PATCH 010/126] target-s390: Reorg exception handling

2012-09-18 Thread Alexander Graf
On 09/09/2012 11:04 PM, Richard Henderson wrote: Make the user path more like the system path. Prepare for more kinds of runtime exceptions. Compute ILC from S->NEXT_PC, rather than passing it around. Signed-off-by: Richard Henderson --- linux-user/main.c | 133 +---

[Qemu-devel] [PATCH 05/16] qemu-char: remove free of chr from win_stdio_close

2012-09-18 Thread minyard
From: Corey Minyard This will result in a double free on close, because it's freed in qemu_chr_delete() right after calling the close function. Signed-off-by: Corey Minyard --- qemu-char.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PATCH 10/16] IPMI: Add a KCS low-level interface

2012-09-18 Thread minyard
From: Corey Minyard This provides the simulation of the KCS hardware interface. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1 + hw/ipmi_kcs.c | 342

[Qemu-devel] [PATCH 01/16] vl: Move init_timer_alarm() earlier

2012-09-18 Thread minyard
From: Corey Minyard The timers may be used in initialization, so move them earlier so they are ready. A reconnect options will be added to qemu-char, and it uses a timer, but the timer alarm wasn't initialized yet. Signed-off-by: Corey Minyard --- vl.c | 10 +- 1 files changed, 5 in

Re: [Qemu-devel] [RFC PATCH 09/13] qmp: add NBD server commands

2012-09-18 Thread Luiz Capitulino
On Mon, 27 Aug 2012 17:00:22 +0200 Paolo Bonzini wrote: > Adding an NBD server inside QEMU is trivial, since all the logic is > in nbd.c and can be shared easily between qemu-nbd and QEMU itself. > The main difference is that qemu-nbd serves a single unnamed export, > while QEMU serves named expo

[Qemu-devel] [PATCH 12/16] IPMI: Add a local BMC simulation

2012-09-18 Thread minyard
From: Corey Minyard This provides a minimal local BMC, basically enough to comply with the spec and provide a complete watchdog timer (including a sensor, SDR, and event). Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 +

[Qemu-devel] [PATCH 15/16] IPMI: Add documentation.

2012-09-18 Thread minyard
From: Corey Minyard Add some basic documentation for the IPMI device. Signed-off-by: Corey Minyard --- qemu-options.hx | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index d60af6a..748758b 100644 ---

[Qemu-devel] [PATCH 03/16] qemu-char: Allow a chardev to reconnect if disconnected

2012-09-18 Thread minyard
From: Corey Minyard Allow a socket that connects to reconnect on a periodic basis if it fails to connect at startup or if the connection drops while in use. Signed-off-by: Corey Minyard --- qemu-char.c | 62 ++ qemu-char.h |4 ++

[Qemu-devel] [PATCH 07/16] qom: release previous object when setting

2012-09-18 Thread minyard
From: Corey Minyard When setting an object, if you don't release the previous object that was there, it may become unusable. This change allows a chardev to be removed from one object's properties and added to another's. Signed-off-by: Corey Minyard Acked-by: Paolo Bonzini --- qom/object.c |

[Qemu-devel] [PATCH 04/16] qemu-char: Fix a race reporting opens and closes

2012-09-18 Thread minyard
From: Corey Minyard When an open event is reported, it is done through a bh. But close events are reported immediately. So if an open event is in the bh and a close occurs, an extraneous open happens, which can confuse a user. To fix this, this patch sets the "opened" flag immediately instead

[Qemu-devel] [PATCH 00/16 v4] Add an IPMI device to qemu

2012-09-18 Thread minyard
I haven't pushed on the SEABIOS changes for IPMI, and the changes for qemu for BIOS support are quite small, anyway. So I've separated out those changes; here's the driver without BIOS table support. -corey

[Qemu-devel] [PATCH v3 05/19] block: move open flag parsing in raw block drivers to helper functions

2012-09-18 Thread Jeff Cody
Code motion, to move parsing of open flags into a helper function. Signed-off-by: Jeff Cody --- block/raw-posix.c | 38 -- block/raw-win32.c | 43 +++ 2 files changed, 47 insertions(+), 34 deletions(-) diff --git a/bloc

[Qemu-devel] [PATCH v3 19/19] block: remove keep_read_only flag from BlockDriverState struct

2012-09-18 Thread Jeff Cody
The keep_read_only flag is no longer used, in favor of the bdrv flag BDRV_O_ALLOW_RDWR. Signed-off-by: Jeff Cody --- block.c | 2 -- block_int.h | 1 - 2 files changed, 3 deletions(-) diff --git a/block.c b/block.c index ebdbf61..5db1df1 100644 --- a/block.c +++ b/block.c @@ -808,8 +808,6 @

[Qemu-devel] [PATCH v3 03/19] block: Framework for reopening files safely

2012-09-18 Thread Jeff Cody
This is based on Supriya Kannery's bdrv_reopen() patch series. This provides a transactional method to reopen multiple images files safely. Image files are queue for reopen via bdrv_reopen_queue(), and the reopen occurs when bdrv_reopen_multiple() is called. Changes are staged in bdrv_reopen_pre

[Qemu-devel] [Bug 917824] Re: qemu loops/hangs on extending qcow2-diskspace

2012-09-18 Thread warum
sorry, currently I'm busy and there's too much time gone, that I can check the things in a quick way. I'll try it, when I'm less busy, but this will probably take some weeks... -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://b

[Qemu-devel] [PATCH v3 12/19] block: qcow2 image file reopen

2012-09-18 Thread Jeff Cody
These are the stubs for the file reopen drivers for the qcow2 format. There is currently nothing that needs to be done by the qcow2 driver in reopen. Signed-off-by: Jeff Cody --- block/qcow2.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/block/qcow2.c b/block/qcow2.c index 8f

[Qemu-devel] Shifts, ppc[64], xtensa

2012-09-18 Thread malc
Looks like PPC/PPC64 is also hit by shift issues, on top of that xtensa exposed another bug in power's tcg - gototb's target was expected to be always filled via tb_set_jmp_target (even though it's clearly not what tcg/README prescribes, sorry about that). Thanks to Max Filippov for pointing to

  1   2   3   >