[Qemu-devel] [Bug 1008728] Re: Program counter is wrong when re-enter tb_find_fast in SH4 CPU

2012-06-07 Thread S.P. Lu
Hi: I'm sorry. It is a mistake. Because program is SH3, the peripheral IO is not same as SH4. So, it always in infinite loop. Sorry. S.P.LU -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1008728 T

[Qemu-devel] [PATCH] MIPS: Correct MIPS16/microMIPS branch size calculation

2012-06-07 Thread Maciej W. Rozycki
From: Nathan Froyd Nathan's original terse comment: "Use MIPS_HFLAG_B16 to determine the address of a jump instruction when we need to restart a delay slot instruction." and was not accompanied by a test case nor I have one offhand. However this change appears obviously correct to me, and t

[Qemu-devel] [PATCH] MIPS: Remove obsolete comment about OPC_JALX

2012-06-07 Thread Maciej W. Rozycki
A while ago I made a change to make MIPS16 code use the OPC_JALS opcode "pinched" from microMIPS support as well as the artificial OPC_JALXS opcode I made up on that occasion so that the fixed 16-bit delay slot size of MIPS16 instructions is handled uniformly across code, just as the microMIP

[Qemu-devel] [PATCH] MIPS/user: Fix reset CPU state initialization

2012-06-07 Thread Maciej W. Rozycki
This change updates the CPU reset sequence to use a common piece of code that figures out CPU state flags, fixing the problem with MIPS_HFLAG_COP1X not being set where applicable that causes floating-point MADD family instructions (and other instructions from the MIPS IV FP subset) to trap.

[Qemu-devel] [PATCH] MIPS: Correct FCR0 initialization

2012-06-07 Thread Maciej W. Rozycki
From: Nathan Froyd This change addresses a problem where QEMU incorrectly traps on floating-point MADD group instructions with SIGILL, at least while emulating MIPS32r2 processors. These instructions use the COP1X major opcode and include ones like: madd.d $f2,$f4,$f2,$f6 Here's

[Qemu-devel] [PATCH] MIPS/GDB: Correct stub handling of CP1 FIR

2012-06-07 Thread Maciej W. Rozycki
The CP1 FIR register is read-only, ignore any write attempts from the GDB stub. Signed-off-by: Maciej W. Rozycki --- Definitely obvious, please apply. Maciej qemu-mips-fir.diff Index: qemu-git-trunk/gdbstub.c === --- qemu-gi

[Qemu-devel] [PATCH] MIPS/system: MTC0 single-stepping PC update fix

2012-06-07 Thread Maciej W. Rozycki
Some MTC0 (and possibly other) instructions switch to the BS_STOP state to terminate the current translation block, so that the state transition of the simulated CPU resulting from the CP0 operation takes effect with the following instruction. This happens for "mtc0 ,c0_config" for example. Wh

[Qemu-devel] [RFC] QOMification of AXI stream

2012-06-07 Thread Peter Crosthwaite
Hi all, Im looking to QOMifying and refactoring the AXI stream interfaces between the AXI ethernet and AXI DMA modules. I could use some guidance on how to do this as I can think of about 6 different solutions. Sources are hw/xilinx_axienet.c and hw/xilinx_axidma.c. First ill start off by describ

[Qemu-devel] [PATCH] MIPS: Correct branch-likely single-stepping

2012-06-07 Thread Maciej W. Rozycki
From: Nathan Froyd We have a problem with single-stepping branch-likely instructions. Here's Nathan's original note: "[This] is a problem with single-stepping in QEMU: it manifests as the program corrupting the register set--specifically the return address--and going into an infinite loop. T

[Qemu-devel] [PATCH] MIPS/GDB: Correct stub handling of CP0 Status and Cause

2012-06-07 Thread Maciej W. Rozycki
This change fixes the GDB stub such that write requests to the CP0 Status and Config registers: 1. Respect the r/w mask and do not change read-only bits. 2. Correctly execute any side effects, for example enable or disable coprocessors, assert or clear software interrupts, etc. In practic

[Qemu-devel] [RFC PATCH 0/1] linux-user: Issue running applications through ld.so

2012-06-07 Thread Meador Inge
Hi All, I am running into an issue where QEMU fails to map a target executable due to hitting the lower limit on /proc/sys/vm/mmap_min_addr. This normally just works because of all the nice guest base probing we have in place: $ cat /proc/sys/vm/mmap_min_addr 4096 $ qemu-arm ./hello.out Hello,

[Qemu-devel] [RFC PATCH 1/1] linux-user: Probe the guest base for shared objects when needed

2012-06-07 Thread Meador Inge
In some cases when running a shared library directly from QEMU (e.g. ld.so) the guest base should still be probed so that any images loaded later at fixed addresses by the target code can still be mapped. Signed-off-by: Meador Inge --- linux-user/elfload.c |3 +++ 1 files changed, 3 insertio

Re: [Qemu-devel] [PATCH v3 08/16] target-or32: Add translation routines

2012-06-07 Thread Wei-Ren Chen
On Thu, Jun 07, 2012 at 05:21:04PM -0700, Richard Henderson wrote: > On 2012-06-07 17:00, Jia Liu wrote: > > TCGv_i32 sr_ove = tcg_temp_new_i32(); > > You need tcg_temp_local_new_i32 in order to last beyond the branches. > > Frankly, it's often easier to handle division and its ex

Re: [Qemu-devel] [PATCH v3 08/16] target-or32: Add translation routines

2012-06-07 Thread Jia Liu
Hi Richard, On Fri, Jun 8, 2012 at 8:21 AM, Richard Henderson wrote: > On 2012-06-07 17:00, Jia Liu wrote: >>                 TCGv_i32 sr_ove = tcg_temp_new_i32(); > > You need tcg_temp_local_new_i32 in order to last beyond the branches. > > Frankly, it's often easier to handle division and its e

[Qemu-devel] buildbot failure in qemu on block_mingw32

2012-06-07 Thread qemu
The Buildbot has detected a new failure on builder block_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/237 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61 Build Reason: The

Re: [Qemu-devel] [PATCH qom-next 6/7] qom: Add "realized" property

2012-06-07 Thread Anthony Liguori
On 06/08/2012 03:31 AM, Andreas Färber wrote: From: Paolo Bonzini Since we had to move the state field from DeviceState to Object, we cannot delay the implementation of the "realized" property. The property is a trigger for two actions that propagate through the composition tree. "Realize" is c

Re: [Qemu-devel] [PATCH qom-next 4/7] qdev: Move bulk of qdev-properties.c to qom/object-properties.c

2012-06-07 Thread Anthony Liguori
On 06/08/2012 03:31 AM, Andreas Färber wrote: From: Paolo Bonzini Signed-off-by: Paolo Bonzini [AF: Move to new qom/object-properties.c, update documentation.] Signed-off-by: Andreas Färber Reviewed-by: Anthony Liguori Regards, Anthony Liguori --- hw/qdev-properties.c| 487 +---

Re: [Qemu-devel] [PATCH qom-next 3/7] qdev: Generalize properties to Objects

2012-06-07 Thread Anthony Liguori
On 06/08/2012 03:31 AM, Andreas Färber wrote: From: Paolo Bonzini The property machinery uses DeviceState arguments in a few places. Replace this with Object so that we can push properties up. Signed-off-by: Paolo Bonzini [AF: Fixed indentation in set_taddr().] Signed-off-by: Andreas Färber R

Re: [Qemu-devel] [PATCH qom-next 2/7] qom: Add get_id

2012-06-07 Thread Anthony Liguori
On 06/08/2012 03:31 AM, Andreas Färber wrote: From: Paolo Bonzini Some classes may present objects differently in errors, for example if they are not part of the composition tree or if they are not assigned an id by the user. Let them do this with a get_id method on Object, and use the method c

Re: [Qemu-devel] [PATCH qom-next 1/7] qdev: Push state up to Object

2012-06-07 Thread Anthony Liguori
On 06/08/2012 03:30 AM, Andreas Färber wrote: From: Paolo Bonzini qdev properties use the state member (an embryo of the "realized" property) in order to disable setting them after a device has been initialized. So, in order to push qdev properties up to Object we need to push this bit there to

Re: [Qemu-devel] [PATCH v3 08/16] target-or32: Add translation routines

2012-06-07 Thread Richard Henderson
On 2012-06-07 17:00, Jia Liu wrote: > TCGv_i32 sr_ove = tcg_temp_new_i32(); You need tcg_temp_local_new_i32 in order to last beyond the branches. Frankly, it's often easier to handle division and its exceptions via an out-of-line handler. r~

Re: [Qemu-devel] [PATCH v3 08/16] target-or32: Add translation routines

2012-06-07 Thread Jia Liu
Hi Max, Thank you for your unaided eye look :-) I've fixed them, and, I think, it will be good if you check them before I make V4 pacthes. So, please, use your unaided eye again. On Thu, Jun 7, 2012 at 12:40 AM, Max Filippov wrote: > Hi Jia, > > more comments on remaining issues visible with un

Re: [Qemu-devel] [PATCH 0/3][v17] megasas: LSI Megaraid SAS HBA emulation

2012-06-07 Thread Paolo Bonzini
Il 29/05/2012 14:22, Paolo Bonzini ha scritto: > Il 29/05/2012 13:51, Hannes Reinecke ha scritto: >> This is an updated patchset for megasas. Upon popular demand >> I've split it into three parts, the header file, the emulation >> itself, and a patch adding trace events to the emulation. >> >> Paol

Re: [Qemu-devel] [PATCH qom-next 4/7] qdev: Move bulk of qdev-properties.c to qom/object-properties.c

2012-06-07 Thread Paolo Bonzini
Il 07/06/2012 21:31, Andreas Färber ha scritto: > qom/Makefile|2 +- This will conflict (trivially) with the Makefile rewrite. Paolo

Re: [Qemu-devel] [PATCH qom-next 0/7] QOM realize, revised

2012-06-07 Thread Paolo Bonzini
Il 07/06/2012 21:30, Andreas Färber ha scritto: > Hi Paolo, > > I've modified the remainder of your static properties series, in particular: > > "qdev: Push state up to Object": > * OBJECT_STATE_CREATED -> OBJECT_STATE_INITIALIZED, to align with QOM API > * Don't set early in object_instance_init

Re: [Qemu-devel] [PULL] iov* function rework (one more time)

2012-06-07 Thread Paolo Bonzini
Il 07/06/2012 19:53, Michael Tokarev ha scritto: > > This is the same patchset which has been submitted, resubmitted, > rewritten, resubmitted, split, resubmitted, merged, rewritten again, > resubmitted and finally received a promise from Anthony to be looked > at. Today, months later, I'm still

Re: [Qemu-devel] [PATCH v3 06/29] build: move libobj-y variable to nested Makefile.objs

2012-06-07 Thread Paolo Bonzini
Il 07/06/2012 23:10, Blue Swirl ha scritto: >> diff --git a/target-sparc/Makefile.objs b/target-sparc/Makefile.objs >> index c574c9e..3556d13 100644 >> --- a/target-sparc/Makefile.objs >> +++ b/target-sparc/Makefile.objs >> @@ -1 +1,7 @@ >> -# still empty >> +obj-y += helper.o cpu.o >> +obj-y += fo

[Qemu-devel] [PATCH 3/9] alpha-linux-user: Handle TARGET_SSI_IEEE_RAISE_EXCEPTION properly

2012-06-07 Thread Richard Henderson
We weren't aggregating the exceptions, nor raising signals properly. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 61 + 1 files changed, 51 insertions(+), 10 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c in

[Qemu-devel] [PATCH 4/9] linux-user: Handle O_SYNC, O_NOATIME, O_CLOEXEC, O_PATH

2012-06-07 Thread Richard Henderson
And tidy up syscall_defs.h a little bit. For each target, only define the bits in arch/target/include/asm/fcntl.h, leaving the others to a new asm-generic section below. Signed-off-by: Richard Henderson --- linux-user/strace.c | 12 +++- linux-user/syscall.c | 15 +++- linux-user

[Qemu-devel] [PATCH 7/9] alpha-linux-user: Fix a3 error return with v0 error bypass.

2012-06-07 Thread Richard Henderson
We were failing to initialize a3 for syscalls that bypass the negative return value error check. Signed-off-by: Richard Henderson --- linux-user/main.c | 12 +--- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index e81abb2..605018a

[Qemu-devel] [PATCH 5/9] linux-user: Allocate the right amount of space for non-fixed file maps

2012-06-07 Thread Richard Henderson
If we let the kernel handle the implementation of mmap_find_vma, via an anon mmap, we must use the size as indicated by the user and not the size truncated to the filesize. This happens often in ld.so, where we initially mmap the file to the size of the text+data+bss to reserve an area, then mmap+

[Qemu-devel] [PATCH 6/9] linux-user: Translate pipe2 flags; add to strace

2012-06-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/strace.list |3 +++ linux-user/syscall.c |3 ++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/linux-user/strace.list b/linux-user/strace.list index a7eeaef..af3c6a0 100644 --- a/linux-user/strace.list +++ b/linux-user/str

[Qemu-devel] [PATCH 8/9] alpha-linux-user: Properly handle the non-rt sigprocmask syscall.

2012-06-07 Thread Richard Henderson
Name the syscall properly for QEMU, kernel source notwithstanding. Fix syntax errors in the code thus enabled within do_syscall. Signed-off-by: Richard Henderson --- linux-user/alpha/syscall_nr.h |2 +- linux-user/syscall.c |9 + 2 files changed, 6 insertions(+), 5 delet

[Qemu-devel] [PATCH 9/9] alpha-linux-user: Fix the getpriority syscall

2012-06-07 Thread Richard Henderson
Alpha uses unbiased priority values in the syscall, with the a3 return value signaling error conditions. Therefore, properly interpret the libc getpriority as needed for the guest rather than passing the host value through unchanged. Signed-off-by: Richard Henderson --- linux-user/syscall.c |

[Qemu-devel] [PATCH 2/9] alpha-linux-user: Work around hosted mmap allocation problems

2012-06-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/cpu.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h index 99f9ee1..0d87fa7 100644 --- a/target-alpha/cpu.h +++ b/target-alpha/cpu.h @@ -40,9 +40,20 @@ #define TARGET_

[Qemu-devel] [PATCH 1/9] alpha-linux-user: Fix signal handling

2012-06-07 Thread Richard Henderson
Proper signal numbers were not defined, and EXCP_INTERRUPT was unhandled, leading to all sorts of subtle confusion. Signed-off-by: Richard Henderson --- linux-user/main.c |3 +++ linux-user/syscall_defs.h | 41 - 2 files changed, 43 insertion

[Qemu-devel] [PATCH v3 0/9] {alpha-}linux user improvements

2012-06-07 Thread Richard Henderson
Changes v2-v3: Fix fcntl translation table in O_CLOEXEC patch. The O_LARGEFILE entry could result in an end-of-table {0,0,0,0} marker. Handle sigprocmask and getpriority properly for alpha. Changes v1-v2: Dropped -stracefile patch. That clearly needs more iteration in order to make ev

Re: [Qemu-devel] [PATCH v3 0/4] Standard SD host controller model

2012-06-07 Thread Peter Crosthwaite
>> http://git.chromium.org/gitweb/?p=chromiumos/third_party/qemu.git;a=commit;h=9b9c2ea8bd25be06b23a30f07262ade9190d8e95 > > Looks like its not actually true, the first thing I noticed is that > documentation defines mandatory 3.00 controller registers Host Control 2 and > Preset Values, which Vinc

[Qemu-devel] [PATCH 2/2] configure: report appropriate error on missing library

2012-06-07 Thread Harsh Prateek Bora
Signed-off-by: Harsh Prateek Bora --- configure |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 76dd57f..e8f0172 100755 --- a/configure +++ b/configure @@ -2915,7 +2915,8 @@ if test "$softmmu" = yes ; then tools="$tools fsdev/virtfs-pro

[Qemu-devel] [PATCH 1/2] trace/simple.c: fix deprecated glib2 interface

2012-06-07 Thread Harsh Prateek Bora
Signed-off-by: Harsh Prateek Bora --- trace/simple.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trace/simple.c b/trace/simple.c index 33ae486..b4a3c6e 100644 --- a/trace/simple.c +++ b/trace/simple.c @@ -161,8 +161,11 @@ static void trace(TraceEventID event, uint6

[Qemu-devel] [PATCH 0/2] Configure and build fix for VirtFS

2012-06-07 Thread Harsh Prateek Bora
Minor fixes: 1) glib2 deprecated g_atomic_int_exchange_and_add in favour of g_atomic_int_add since ver 2.30 and therefore build breaks with newer glib2 library. 2) Configure needs to report appropriate error on missing libraries for VirtFS. Harsh Prateek Bora (2): trace/simple.c

Re: [Qemu-devel] [PATCH v3 06/29] build: move libobj-y variable to nested Makefile.objs

2012-06-07 Thread Blue Swirl
On Thu, Jun 7, 2012 at 7:39 AM, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- >  Makefile.target                 |   41 > +++ >  configure                       |    6 -- >  target-alpha/Makefile.objs      |    3 ++- >  target-arm/Makefile.objs

Re: [Qemu-devel] [PATCH 00/31] PPC: mpc8544ds: Create device tree dynamically

2012-06-07 Thread Blue Swirl
On Tue, Jun 5, 2012 at 11:52 PM, Alexander Graf wrote: > Today we have two separate places where we keep information which device > is where: > >  - hw/ppce500_mpc8544ds.c to instantiate all devices >  - pc-bios/mpc8544ds.dtb as device tree to tell the guest about devices > > Every time we split c

Re: [Qemu-devel] [Qemu-ppc] [PATCH 26/31] PPC: e500: Use new MPIC dt format

2012-06-07 Thread Blue Swirl
On Tue, Jun 5, 2012 at 11:53 PM, Alexander Graf wrote: > Due to popular demand, we're updating the way we generate the MPIC > node and interrupt lines based on what the current state of art is. > > Requested-by: Scott Wood > Signed-off-by: Alexander Graf > --- >  hw/ppce500_mpc8544ds.c |   33 ++

Re: [Qemu-devel] [PATCH 5/6] fdc: use LOG_UNIMP logging

2012-06-07 Thread Blue Swirl
On Mon, Jun 4, 2012 at 9:36 AM, Kevin Wolf wrote: > Am 03.06.2012 19:38, schrieb Blue Swirl: >> Convert uses of FLOPPY_ERROR to either FLOPPY_DPRINTF >> (for implemented cases) or to use LOG_UNIMP (unimplemented). >> >> Signed-off-by: Blue Swirl > > I would suggest that you check the messages of

[Qemu-devel] [PATCH qom-next 2/7] qom: Add get_id

2012-06-07 Thread Andreas Färber
From: Paolo Bonzini Some classes may present objects differently in errors, for example if they are not part of the composition tree or if they are not assigned an id by the user. Let them do this with a get_id method on Object, and use the method consistently where a %(device) appears in the er

[Qemu-devel] [PATCH qom-next 3/7] qdev: Generalize properties to Objects

2012-06-07 Thread Andreas Färber
From: Paolo Bonzini The property machinery uses DeviceState arguments in a few places. Replace this with Object so that we can push properties up. Signed-off-by: Paolo Bonzini [AF: Fixed indentation in set_taddr().] Signed-off-by: Andreas Färber --- hw/qdev-addr.c | 19 ++--- hw/qdev-

[Qemu-devel] CoW image commit+shrink(= make_empty) support

2012-06-07 Thread Taisuke Yamada
I attended Paolo Bonzini's qemu session ("Live Disk Operations: Juggling Data and Trying to go Unnoticed") in LinuxCon Japan, and he adviced me to post the bits I have regarding my question on qemu's support on shrinking CoW image. Here's my problem description. I recently designed a experimenta

[Qemu-devel] [PATCH qom-next 0/7] QOM realize, revised

2012-06-07 Thread Andreas Färber
Hi Paolo, I've modified the remainder of your static properties series, in particular: "qdev: Push state up to Object": * OBJECT_STATE_CREATED -> OBJECT_STATE_INITIALIZED, to align with QOM API * Don't set early in object_instance_init() but in object_init_with_type() after all initfns have bee

[Qemu-devel] [PATCH qom-next 4/7] qdev: Move bulk of qdev-properties.c to qom/object-properties.c

2012-06-07 Thread Andreas Färber
From: Paolo Bonzini Signed-off-by: Paolo Bonzini [AF: Move to new qom/object-properties.c, update documentation.] Signed-off-by: Andreas Färber --- hw/qdev-properties.c| 487 +-- hw/qdev.c | 47 +- hw/qdev.h |

[Qemu-devel] [PATCH qom-next 6/7] qom: Add "realized" property

2012-06-07 Thread Andreas Färber
From: Paolo Bonzini Since we had to move the state field from DeviceState to Object, we cannot delay the implementation of the "realized" property. The property is a trigger for two actions that propagate through the composition tree. "Realize" is called when the property becomes true, and propa

Re: [Qemu-devel] [PATCH qom-next 7/7] qom: Add QERR_PROPERTY_SET_AFTER_REALIZE

2012-06-07 Thread Andreas Färber
Am 07.06.2012 21:31, schrieb Andreas Färber: > From: Peter Maydell > > Add a new QError QERR_PROPERTY_SET_AFTER_REALIZE for attempts > to set a QOM or qdev property after the object/device has been > realized. This allows a slightly more informative diagnostic > than the previous "Insufficient pe

[Qemu-devel] [PATCH qom-next 7/7] qom: Add QERR_PROPERTY_SET_AFTER_REALIZE

2012-06-07 Thread Andreas Färber
From: Peter Maydell Add a new QError QERR_PROPERTY_SET_AFTER_REALIZE for attempts to set a QOM or qdev property after the object/device has been realized. This allows a slightly more informative diagnostic than the previous "Insufficient permission" message. Signed-off-by: Peter Maydell Signed-

[Qemu-devel] [PATCH qom-next 1/7] qdev: Push state up to Object

2012-06-07 Thread Andreas Färber
From: Paolo Bonzini qdev properties use the state member (an embryo of the "realized" property) in order to disable setting them after a device has been initialized. So, in order to push qdev properties up to Object we need to push this bit there too. Signed-off-by: Paolo Bonzini [AF: Rename t

[Qemu-devel] [PULL] iov* function rework (one more time)

2012-06-07 Thread Michael Tokarev
The following changes since commit 083dbf489d1b0592e910ecfb90b3858c23e49ab7: target-microblaze: fix swx build breakage (2012-06-07 10:12:00 +0200) are available in the git repository at: git://git.corpit.ru/qemu.git mjt-iov for you to fetch changes up to 85c5ece9bc0bd30f0573e43d1ddd756154ac

Re: [Qemu-devel] [PATCH 05/13] pci: Add pci_device_route_intx_to_irq

2012-06-07 Thread Michael S. Tsirkin
On Thu, Jun 07, 2012 at 06:46:38PM +0200, Jan Kiszka wrote: > On 2012-06-07 18:28, Michael S. Tsirkin wrote: > > On Thu, Jun 07, 2012 at 05:10:17PM +0200, Jan Kiszka wrote: > >> On 2012-06-07 16:32, Michael S. Tsirkin wrote: > >>> On Mon, Jun 04, 2012 at 10:52:13AM +0200, Jan Kiszka wrote: > @

Re: [Qemu-devel] [PATCH 05/13] pci: Add pci_device_route_intx_to_irq

2012-06-07 Thread Jan Kiszka
On 2012-06-07 18:28, Michael S. Tsirkin wrote: > On Thu, Jun 07, 2012 at 05:10:17PM +0200, Jan Kiszka wrote: >> On 2012-06-07 16:32, Michael S. Tsirkin wrote: >>> On Mon, Jun 04, 2012 at 10:52:13AM +0200, Jan Kiszka wrote: @@ -1089,6 +1093,14 @@ static void pci_set_irq(void *opaque, int irq_nu

Re: [Qemu-devel] [PATCH 05/13] pci: Add pci_device_route_intx_to_irq

2012-06-07 Thread Michael S. Tsirkin
On Thu, Jun 07, 2012 at 05:10:17PM +0200, Jan Kiszka wrote: > On 2012-06-07 16:32, Michael S. Tsirkin wrote: > > On Mon, Jun 04, 2012 at 10:52:13AM +0200, Jan Kiszka wrote: > >> @@ -1089,6 +1093,14 @@ static void pci_set_irq(void *opaque, int irq_num, > >> int level) > >> pci_change_irq_level

[Qemu-devel] [PULL] rtl8139,pci,msi

2012-06-07 Thread Michael S. Tsirkin
The following changes since commit 8cc9b43f7c5f826b39af4b012ad89bb55faac29c: target-microblaze: lwx/swx: first implementation (2012-06-04 10:19:46 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_anthony for you to fetch changes up t

Re: [Qemu-devel] [PATCH 08/10] qom: push static properties to Object

2012-06-07 Thread Andreas Färber
Am 23.05.2012 17:44, schrieb Paolo Bonzini: > This patch is made much larger by the need to touch all assignments > of props. The interesting changes are in hw/qdev-monitor.c, > hw/qdev-properties.c, hw/qdev.c, hw/qdev.h, include/qemu/object.h, > qom/object.c. > > Signed-off-by: Paolo Bonzini A

[Qemu-devel] [PATCH] make_device_config.sh: Fix target path in generated dependency file

2012-06-07 Thread Andreas Färber
config-devices.mak.d is included from Makefile.target, i.e. from inside the *-softmmu/ directory. It included the directory path, so never applied to the actual config-devices.mak. Symptoms were spurious dependency issues with default-configs/pci.mak. Fix by using `basename` to strip the directory

Re: [Qemu-devel] [PATCH 0/3][v17] megasas: LSI Megaraid SAS HBA emulation

2012-06-07 Thread Stefan Hajnoczi
On Tue, May 29, 2012 at 01:51:15PM +0200, Hannes Reinecke wrote: > This is an updated patchset for megasas. Upon popular demand > I've split it into three parts, the header file, the emulation > itself, and a patch adding trace events to the emulation. > > Paolo, can you merge it via your tree? Or

Re: [Qemu-devel] [PATCH 11/13] Move pci_parse_devaddr to qdev-properties

2012-06-07 Thread Andreas Färber
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 07.06.2012 17:11, schrieb Jan Kiszka: > On 2012-06-07 14:57, Andreas Färber wrote: >> These last three patches collide with Paolo's QOM properties >> refactoring: qdev properties are being generalized to Object and >> on my GitHub "realize" branch

Re: [Qemu-devel] [PATCH v2 0/2] xen: Clean up BlockDriverState use

2012-06-07 Thread Stefano Stabellini
On Wed, 6 Jun 2012, Markus Armbruster wrote: > Compile tested only. Stefano, please give it a whirl. > > v2: Moved a declaration to an inner block on Stefano's request. > > Markus Armbruster (2): > xen: Don't change -drive if=xen device name during machine init > xen: Don't peek behind the B

Re: [Qemu-devel] [PATCH 00/16] introduce OptsVisitor, rebase -net/-netdev parsing

2012-06-07 Thread Paolo Bonzini
Il 07/06/2012 17:29, Michael Roth ha scritto: > For QEMU <-> X serialization/deserialization, such as a visitor which > implements a wire encoding (QMP being the only example currently), we need to > take care that the wire encoding is compatible with the representation > expected by the other end

Re: [Qemu-devel] [PATCH 00/16] introduce OptsVisitor, rebase -net/-netdev parsing

2012-06-07 Thread Michael Roth
On Thu, Jun 07, 2012 at 01:29:54PM +0200, Laszlo Ersek wrote: > On 06/06/12 22:09, Michael Roth wrote: > > On Wed, Jun 06, 2012 at 06:49:19PM +0200, Laszlo Ersek wrote: > > >> The fallback (*v->type_int)() call stores an int64_t, according to its > >> prototype ("interface contract"). IMHO it shou

[Qemu-devel] [Bug 1002121] Re: disk error when guest boot up via qcow2 image

2012-06-07 Thread Jan Kiszka
Hmm, it might be related if the error happens during early boot: Could you try if http://thread.gmane.org/gmane.comp.emulators.kvm.devel/92036 makes a difference in your scenario? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. http

[Qemu-devel] [Bug 1003054] Re: Socket not closed when a connection ends

2012-06-07 Thread Vincent Autefage
** 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/1003054 Title: Socket not closed when a connection ends Status in QEMU: Fix Released Bug des

Re: [Qemu-devel] [PATCH] use --libexecdir instead of ignoring it first and reinventing it later

2012-06-07 Thread Corey Bryant
On 06/06/2012 05:11 PM, Michael Tokarev wrote: Commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8 "Add basic version of bridge helper" put the bridge helper executable into a fixed ${prefix}/libexec/ location, instead of using ${libexecdir} for this. At the same time, --libexecdir is being happily

Re: [Qemu-devel] [PATCH 06/13] pci: Add INTx routing notifier

2012-06-07 Thread Jan Kiszka
On 2012-06-07 15:14, Michael S. Tsirkin wrote: > On Mon, Jun 04, 2012 at 10:52:14AM +0200, Jan Kiszka wrote: >> This per-device notifier shall be triggered by any interrupt router >> along the path of a device's legacy interrupt signal on routing changes. >> For simplicity reasons and as this is a

Re: [Qemu-devel] [PATCH 11/13] Move pci_parse_devaddr to qdev-properties

2012-06-07 Thread Jan Kiszka
On 2012-06-07 14:57, Andreas Färber wrote: > Am 04.06.2012 10:52, schrieb Jan Kiszka: >> We will some use this function also for property parsing, so move it >> over unmodified and rename it. >> >> Signed-off-by: Jan Kiszka > > These last three patches collide with Paolo's QOM properties > refact

Re: [Qemu-devel] [PATCH 5/6] blkdebug: optionally tie errors to a specific sector

2012-06-07 Thread Stefan Hajnoczi
On Wed, Jun 6, 2012 at 7:10 AM, Paolo Bonzini wrote: > This makes blkdebug scripts more powerful, and independent of the > exact sequence of operations performed by streaming. > > Signed-off-by: Paolo Bonzini > --- >  block/blkdebug.c |   26 -- >  1 file changed, 24 insert

Re: [Qemu-devel] [PATCH 05/13] pci: Add pci_device_route_intx_to_irq

2012-06-07 Thread Jan Kiszka
On 2012-06-07 16:32, Michael S. Tsirkin wrote: > On Mon, Jun 04, 2012 at 10:52:13AM +0200, Jan Kiszka wrote: >> @@ -1089,6 +1093,14 @@ static void pci_set_irq(void *opaque, int irq_num, >> int level) >> pci_change_irq_level(pci_dev, irq_num, change); >> } >> >> +PCIINTxRoute pci_device_rou

Re: [Qemu-devel] [PATCH 1/6] blkdebug: remove sync i/o events

2012-06-07 Thread Stefan Hajnoczi
On Wed, Jun 6, 2012 at 7:10 AM, Paolo Bonzini wrote: > These are unused, except (by mistake more or less) in QED. > > Signed-off-by: Paolo Bonzini > --- >  block.h          |    2 -- >  block/blkdebug.c |    2 -- >  block/qed.c      |    2 +- >  3 files changed, 1 insertion(+), 5 deletions(-) Ac

Re: [Qemu-devel] [PATCH block-next 0/3] qemu-img check/qcow2: Allow fixing refcounts

2012-06-07 Thread Stefan Hajnoczi
On Wed, Jun 6, 2012 at 3:53 PM, Zhi Yong Wu wrote: > On Wed, Jun 6, 2012 at 6:32 PM, Stefan Hajnoczi wrote: >> On Fri, Jun 1, 2012 at 9:26 AM, Zhi Yong Wu wrote: >>> On Fri, Jun 1, 2012 at 4:06 PM, Stefan Hajnoczi wrote: On Fri, Jun 1, 2012 at 6:22 AM, Zhi Yong Wu wrote: > On Thu, May

Re: [Qemu-devel] [PATCH 02/13] pci: Fold pci_bus_new_inplace into pci_bus_new

2012-06-07 Thread Jan Kiszka
On 2012-06-07 14:51, Andreas Färber wrote: > Am 04.06.2012 10:52, schrieb Jan Kiszka: >> There are no external users for this function. >> >> Signed-off-by: Jan Kiszka > > Nack, please take a look at my recent prep_pci RFC series. Instead of > dropping _inplace we need to convert all PCI host con

Re: [Qemu-devel] Any approach to log the file read/write (I/O data flow) like the "-d in_asm" option?

2012-06-07 Thread Stefan Hajnoczi
On Thu, Jun 7, 2012 at 4:24 AM, 陳韋任 (Wei-Ren Chen) wrote: > On Wed, Jun 06, 2012 at 11:23:37AM +0100, Stefan Hajnoczi wrote: >> On Sun, Jun 3, 2012 at 9:50 PM, Yue Chen wrote: >> > I'm doing something like a simple and lightweight REPLAY program out of >> > QEMU, only including CPU, MEMORY, and D

[Qemu-devel] [PATCH v5 2/2] net: add the support for -netdev socket, listen

2012-06-07 Thread zwu . kernel
From: Zhi Yong Wu The -net socket,listen option does not work with the newer -netdev syntax: http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg01508.html This patch makes it work now. For the case where one vlan has multiple listenning sockets, the patch will also provide the support. S

[Qemu-devel] [PATCH v5 1/2] net: fix the coding style

2012-06-07 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/socket.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/net/socket.c b/net/socket.c index fcd0a3c..7194345 100644 --- a/net/socket.c +++ b/net/socket.c @@ -301,7 +301,9 @@ static NetSocketState *net_socket_fd_init

Re: [Qemu-devel] [PATCH v4] net: add the support for -netdev socket, listen

2012-06-07 Thread Stefan Hajnoczi
On Thu, Jun 7, 2012 at 3:16 PM, Paolo Bonzini wrote: > Il 07/06/2012 14:49, Zhi Yong Wu ha scritto: >>> > Instead, drop the NetSocketListenState struct and add a listen_fd field >>> > to NetSocketState.  When a -netdev socket,listen= instance is created >>> > there will be a NetSocketState with fd

[Qemu-devel] [PATCH qom-next] arm_l2x0: Rename "type" property to "cache-type"

2012-06-07 Thread Andreas Färber
Resolves a name conflict with the qdev "type" property that is about to be moved to Object. Signed-off-by: Andreas Färber Acked-by: Mark Langsdorf --- Going to insert this in the qom-next queue before 'qdev: Push "type" property up to Object'. hw/arm_l2x0.c |2 +- 1 files changed, 1 inse

Re: [Qemu-devel] [PATCH v4] net: add the support for -netdev socket, listen

2012-06-07 Thread Zhi Yong Wu
On Thu, Jun 7, 2012 at 10:16 PM, Paolo Bonzini wrote: > Il 07/06/2012 14:49, Zhi Yong Wu ha scritto: >>> > Instead, drop the NetSocketListenState struct and add a listen_fd field >>> > to NetSocketState.  When a -netdev socket,listen= instance is created >>> > there will be a NetSocketState with f

Re: [Qemu-devel] [PATCH v2 3/3] Update simpletrace.py to support new v2 log format

2012-06-07 Thread Stefan Hajnoczi
On Thu, May 24, 2012 at 10:50 AM, Harsh Prateek Bora wrote: > -            fields = [event[0], '%0.3f' % (delta_ns / 1000.0)] > -            for i in xrange(1, len(event)): > -                fields.append('%s=0x%x' % (event[i], rec[i + 1])) > +            if rec[0] == dropped_event_id: > +      

Re: [Qemu-devel] [PATCH v3 0/4] Standard SD host controller model

2012-06-07 Thread Igor Mitsyanko
On 06/07/2012 04:24 PM, Andreas Färber wrote: Am 07.06.2012 07:05, schrieb Peter A. G. Crosthwaite: [Original cover by Igor] First patch introduces standard SD host controller model. This is accumulated version of my previous patch I sent a while ago and a recent SDHCI patch by Peter A. G. Crost

Re: [Qemu-devel] CoW image commit+shrink(= make_empty) support

2012-06-07 Thread Jeff Cody
On 06/07/2012 02:19 AM, Taisuke Yamada wrote: > I attended Paolo Bonzini's qemu session ("Live Disk Operations: Juggling > Data and Trying to go Unnoticed") in LinuxCon Japan, and he adviced me > to post the bits I have regarding my question on qemu's support on shrinking > CoW image. > > Here's

Re: [Qemu-devel] [PATCH v2 2/3] Simpletrace v2: Add support for multiple args, strings.

2012-06-07 Thread Stefan Hajnoczi
On Thu, May 24, 2012 at 10:50 AM, Harsh Prateek Bora wrote: > A newer tracelog format which gets rid of fixed size trace records and > therefore allows to trace multiple arguments as well as strings in trace > events. > > Sample trace: > v9fs_version 0.000 tag=0x id=0x64 msize=0x2000 version=9

Re: [Qemu-devel] [PATCH 05/13] pci: Add pci_device_route_intx_to_irq

2012-06-07 Thread Michael S. Tsirkin
On Mon, Jun 04, 2012 at 10:52:13AM +0200, Jan Kiszka wrote: > @@ -1089,6 +1093,14 @@ static void pci_set_irq(void *opaque, int irq_num, int > level) > pci_change_irq_level(pci_dev, irq_num, change); > } > > +PCIINTxRoute pci_device_route_intx_to_irq(PCIDevice *dev, int pin) > +{ > +PCI

Re: [Qemu-devel] [PATCH] configure: Fix build for some versions of glibc (9pfs)

2012-06-07 Thread Serge Hallyn
Quoting Stefano Stabellini (stefano.stabell...@eu.citrix.com): > On Thu, 7 Jun 2012, Stefan Weil wrote: > > Some versions declare open_by_handle_at, but don't define AT_EMPTY_PATH. > > Extend the check in configure to test both preconditions. > > > > Signed-off-by: Stefan Weil > > It works for m

Re: [Qemu-devel] [PATCH v5 5/5] add L2x0/PL310 cache controller device

2012-06-07 Thread Mark Langsdorf
Yes, that's fine by me. --Mark Langsdorf Calxeda, Inc. From: Andreas Färber [afaer...@suse.de] Sent: Thursday, June 07, 2012 8:45 AM To: Mark Langsdorf Cc: qemu-devel@nongnu.org; peter.mayd...@linaro.org; Rob Herring; Paolo Bonzini Subject: Re: [Qemu-devel

Re: [Qemu-devel] [PATCH v4] net: add the support for -netdev socket, listen

2012-06-07 Thread Paolo Bonzini
Il 07/06/2012 14:49, Zhi Yong Wu ha scritto: >> > Instead, drop the NetSocketListenState struct and add a listen_fd field >> > to NetSocketState. When a -netdev socket,listen= instance is created >> > there will be a NetSocketState with fd=-1 and a valid listen_fd. The > Have you considered the c

Re: [Qemu-devel] [PULL v3 00/29] per-directory Makefile.objs snippets, limit vpath (ab)use

2012-06-07 Thread Paolo Bonzini
Il 07/06/2012 14:47, Anthony Liguori ha scritto: >>> >>> >>> v2->v3: included patch from Anthony, added fixes for new dump mechanism >> >> A question: How nice does this play with `make clean`ing the old places >> the objects were built in an existing checkout? Did you test that? > > I did. Seeme

Re: [Qemu-devel] [PATCH v3] pci: call object_unparent() before free_qdev()

2012-06-07 Thread Jason Baron
On Tue, Jun 05, 2012 at 12:52:02AM +0300, Michael S. Tsirkin wrote: > On Mon, Jun 04, 2012 at 04:15:56PM -0400, Jason Baron wrote: > > On Sun, May 20, 2012 at 05:57:45PM +0800, Amos Kong wrote: > > > Start VM with 8 multiple-function block devs, hot-removing > > > those block devs by 'device_del ..

Re: [Qemu-devel] Fwd: buildbot failure in qemu on fedora-mingw32

2012-06-07 Thread Stefan Weil
Am 07.06.2012 13:54, schrieb Anthony Liguori: Luiz/Wen Congyang: ^ Regards, Anthony Liguori /home/buildbot/slave-spunk/fedora-mingw32/build/dump.c:17:24: fatal It looks like sys/procfs.h is not needed at all. I just sent a patch which removes this and some more include statements. Anthony,

Re: [Qemu-devel] [PATCH] seabios: correct setting of datalow_base for large rom images

2012-06-07 Thread Jason Baron
On Tue, Jun 05, 2012 at 08:09:21PM -0400, Kevin O'Connor wrote: > On Tue, Jun 05, 2012 at 12:09:18PM -0400, Jason Baron wrote: > > I've been creating 256kb rom images with larger acpi tables for second level > > buses. After a recent re-base, my rom images no longer built. Bisected to: > > > > com

Re: [Qemu-devel] [PATCH v5 5/5] add L2x0/PL310 cache controller device

2012-06-07 Thread Andreas Färber
Am 29.12.2011 17:19, schrieb Mark Langsdorf: > From: Rob Herring > > This is just a dummy device for ARM L2 cache controllers, based on the > pl310. The cache type parameter can be defined by a property value > and has a meaningful default. > > Signed-off-by: Rob Herring > Signed-off-by: Mark L

[Qemu-devel] [PATCH] w32: Fix broken build (missing include file)

2012-06-07 Thread Stefan Weil
dump.c was recently added to the code. It unconditionally includes sys/procfs which is not available with MinGW (w32, w64). It looks like this file is not needed at all (tested on Linux), so I removed it completely. Some other include statements are also redundant because they are already include

[Qemu-devel] [PATCH] bt: HCI Reset returns a Cmd Complete event.

2012-06-07 Thread Andrzej Zaborowski
HCI Reset command returns a Command Complete event, not a Command Status event. We need to avoid resetting the stored last command code for the response to be fully correct. Signed-off-by: Andrzej Zaborowski --- hw/bt-hci.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --gi

[Qemu-devel] [PATCH] bt: Fix the bitmask in event masked check.

2012-06-07 Thread Andrzej Zaborowski
Signed-off-by: Andrzej Zaborowski --- hw/bt-hci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/bt-hci.c b/hw/bt-hci.c index 8c717f9..48cbbb5 100644 --- a/hw/bt-hci.c +++ b/hw/bt-hci.c @@ -442,7 +442,7 @@ static inline uint8_t *bt_hci_event_start(struct bt_hci_s *h

Re: [Qemu-devel] [PATCH v2] vnc: disable VNC password authentication (security type 2) when in FIPS mode

2012-06-07 Thread Paul Moore
On Thursday, June 07, 2012 12:31:25 PM Alexander Graf wrote: > On 07.06.2012, at 05:10, Anthony Liguori wrote: > > On 06/07/2012 06:56 AM, Paul Moore wrote: > >> On Wednesday, June 06, 2012 01:56:52 AM Alexander Graf wrote: > >>> The other one (FIPS) is basically a list of encryption algorithms tha

Re: [Qemu-devel] [PATCH 06/13] pci: Add INTx routing notifier

2012-06-07 Thread Michael S. Tsirkin
On Mon, Jun 04, 2012 at 10:52:14AM +0200, Jan Kiszka wrote: > This per-device notifier shall be triggered by any interrupt router > along the path of a device's legacy interrupt signal on routing changes. > For simplicity reasons and as this is a slow path anyway, no further > details on the routin

  1   2   3   >