Re: [Qemu-devel] [PATCH v2 4/5] exec.c: refactor cpu_physical_memory_map

2011-07-11 Thread Alexander Graf
On 12.07.2011, at 00:17, Jan Kiszka wrote: > On 2011-05-19 19:35, stefano.stabell...@eu.citrix.com wrote: >> From: Stefano Stabellini >> >> Introduce qemu_ram_ptr_length that takes an address and a size as >> parameters rather than just an address. >> >> Refactor cpu_physical_memory_map so tha

Re: [Qemu-devel] [PATCH v2 4/5] exec.c: refactor cpu_physical_memory_map

2011-07-11 Thread Alexander Graf
On 12.07.2011, at 00:17, Jan Kiszka wrote: > On 2011-05-19 19:35, stefano.stabell...@eu.citrix.com wrote: >> From: Stefano Stabellini >> >> Introduce qemu_ram_ptr_length that takes an address and a size as >> parameters rather than just an address. >> >> Refactor cpu_physical_memory_map so tha

Re: [Qemu-devel] [PATCH v2 4/5] exec.c: refactor cpu_physical_memory_map

2011-07-11 Thread Alexander Graf
On 12.07.2011, at 00:17, Jan Kiszka wrote: > On 2011-05-19 19:35, stefano.stabell...@eu.citrix.com wrote: >> From: Stefano Stabellini >> >> Introduce qemu_ram_ptr_length that takes an address and a size as >> parameters rather than just an address. >> >> Refactor cpu_physical_memory_map so tha

Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu

2011-07-11 Thread Xiao Jiang
Xiao Jiang wrote: David Gilbert wrote: On 11 July 2011 09:21, Xiao Jiang wrote: Hello, I downloaded latest qemu 0.14.1, it should support realview-pbx-a9 board now from below cmd. $ qemu-system-arm -M ?|grep Cortex-A9 realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9

Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu

2011-07-11 Thread Xiao Jiang
David Gilbert wrote: On 11 July 2011 09:21, Xiao Jiang wrote: Hello, I downloaded latest qemu 0.14.1, it should support realview-pbx-a9 board now from below cmd. $ qemu-system-arm -M ?|grep Cortex-A9 realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9 Then I compiled a zI

[Qemu-devel] [Bug 808737] Re: No option to load additional binary files from command line in QEMU

2011-07-11 Thread Anup Patel
I understand that we should not change -kernel option for backwards compatibility, that's why I suggest some new option for loading arbitrary binary file (not necessarily ELF file). This option would just mean: "Just blindly load the given file to the given physical address". We can also pass this

[Qemu-devel] Need help: IO Functionality for Hardware

2011-07-11 Thread Philip Loh
I am attempting to develop some code for a new board and am stuck trying to implement a working IO system. How can I stream input to my qemu-system-X executable and, for example, get something to be output from it, say, print to screen, without using fprintf? Thanks! Also, what does cpu_physical_m

[Qemu-devel] Về: PCI with Xilinx virtex-ml507 board

2011-07-11 Thread Lê Đức Tài
On Jul 11, 2011 15:31, "Edgar E. Iglesias" wrote: > On Jul 11, 2011 5:31 AM, "Lê Đức Tài" wrote: > > > Hi, > > It seems that virtex board doesn't have a PCI bus emulation. > > I have tried to create one using ppc4xx_pci_init() function but it doesn't >work. > > Could you help me some id

[Qemu-devel] buildbot failure in qemu on block_i386_debian_5_0

2011-07-11 Thread qemu
The Buildbot has detected a new failure on builder block_i386_debian_5_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_i386_debian_5_0/builds/31 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Build Rea

[Qemu-devel] buildbot failure in qemu on block_x86_64_debian_5_0

2011-07-11 Thread qemu
The Buildbot has detected a new failure on builder block_x86_64_debian_5_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_x86_64_debian_5_0/builds/31 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Build

Re: [Qemu-devel] [PATCH v5 05/18] qapi: add QMP input visitor

2011-07-11 Thread Michael Roth
On 07/07/2011 09:32 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:02:32 -0500 Michael Roth wrote: A type of Visiter class that is used to walk a qobject's structure and assign each entry to the corresponding native C type. Command marshaling function will use this to pull out QMP command p

Re: [Qemu-devel] [SeaBIOS] SeaBIOS error with Juniper FreeBSD kernel

2011-07-11 Thread Brandon Bennett
> Are all versions based on FreeBSD 4.11? > Are newer versions still affected? Newer versions should be based on 6.1 but there are a lot of changes. I haven't had a chance to test with something newer yet. -Brandon

Re: [Qemu-devel] [PATCH v6 4/4] guest agent: add guest agent RPCs/commands

2011-07-11 Thread Michael Roth
On 07/11/2011 04:12 PM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 15:11:26 -0500 Michael Roth wrote: On 07/08/2011 10:14 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:21:40 -0500 Michael Roth wrote: This adds the initial set of QMP/QAPI commands provided by the guest agent: guest-sy

Re: [Qemu-devel] [PATCH v2 4/5] exec.c: refactor cpu_physical_memory_map

2011-07-11 Thread Jan Kiszka
On 2011-05-19 19:35, stefano.stabell...@eu.citrix.com wrote: > From: Stefano Stabellini > > Introduce qemu_ram_ptr_length that takes an address and a size as > parameters rather than just an address. > > Refactor cpu_physical_memory_map so that we call qemu_ram_ptr_length only > once rather than

Re: [Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org

2011-07-11 Thread Jan Kiszka
On 2011-07-08 22:26, Stefan BOSAK wrote: > Hello. > > Bug is in (xen-mapcache.c): > > Reported-by: Steve > Signed-off-by: Steve > > diff --git a/xen-mapcache.c b/xen-mapcache.c > index 57fe24d..1c3b5bf 100644 > --- a/xen-mapcache.c > +++ b/xen-mapcache.c > @@ -107,7 +107,7 @@ void qemu_map_cac

Re: [Qemu-devel] [RFC v3 31/56] ac97: convert to memory API

2011-07-11 Thread malc
On Mon, 11 Jul 2011, Avi Kivity wrote: > On 07/11/2011 04:42 AM, Anthony Liguori wrote: > > On 07/10/2011 03:33 PM, malc wrote: > > > On Sun, 10 Jul 2011, Avi Kivity wrote: > > > > > > > fixes BAR sizing as well. > > > > > > I find this patch disgusting, the read and write handlers in particular

Re: [Qemu-devel] [PATCH v6 4/4] guest agent: add guest agent RPCs/commands

2011-07-11 Thread Luiz Capitulino
On Mon, 11 Jul 2011 15:11:26 -0500 Michael Roth wrote: > On 07/08/2011 10:14 AM, Luiz Capitulino wrote: > > On Tue, 5 Jul 2011 08:21:40 -0500 > > Michael Roth wrote: > > > >> This adds the initial set of QMP/QAPI commands provided by the guest > >> agent: > >> > >> guest-sync > >> guest-ping >

Re: [Qemu-devel] [PATCH v3] QMP: add snapshot_blkdev command

2011-07-11 Thread Luiz Capitulino
On Mon, 11 Jul 2011 22:28:57 +0200 Jes Sorensen wrote: > On 07/11/11 22:24, Luiz Capitulino wrote: > > On Mon, 11 Jul 2011 20:01:09 +0200 > > jes.soren...@redhat.com wrote: > > > >> > From: Jes Sorensen > >> > > >> > Add QMP bits for snapshot_blkdev command. This is the same as > >> > snapshot

Re: [Qemu-devel] [PATCH v3] QMP: add snapshot_blkdev command

2011-07-11 Thread Jes Sorensen
On 07/11/11 22:24, Luiz Capitulino wrote: > On Mon, 11 Jul 2011 20:01:09 +0200 > jes.soren...@redhat.com wrote: > >> > From: Jes Sorensen >> > >> > Add QMP bits for snapshot_blkdev command. This is the same as >> > snapshot_blkdev in the human monitor. The command is synchronous. >> > >> > In t

Re: [Qemu-devel] [PATCH v3] QMP: add snapshot_blkdev command

2011-07-11 Thread Luiz Capitulino
On Mon, 11 Jul 2011 20:01:09 +0200 jes.soren...@redhat.com wrote: > From: Jes Sorensen > > Add QMP bits for snapshot_blkdev command. This is the same as > snapshot_blkdev in the human monitor. The command is synchronous. > > In the future async commands and or a break down of the functionality

Re: [Qemu-devel] [PATCH v6 4/4] guest agent: add guest agent RPCs/commands

2011-07-11 Thread Michael Roth
On 07/08/2011 10:14 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:21:40 -0500 Michael Roth wrote: This adds the initial set of QMP/QAPI commands provided by the guest agent: guest-sync guest-ping guest-info guest-shutdown guest-file-open guest-file-read guest-file-write guest-file-seek gu

[Qemu-devel] [PATCH v2 3/5] block: add bdrv_get_mapping()

2011-07-11 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block.c | 14 ++ block.h |2 ++ 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 97d5a6b..3874ed5 100644 --- a/block.c +++ b/block.c @@ -3037,3 +3037,17 @@ int bdrv_open_conversion_target(BlockDriverState

[Qemu-devel] [PATCH v2 4/5] block: add bdrv_map()

2011-07-11 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block.c | 14 ++ block.h |2 ++ 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 3874ed5..39510cb 100644 --- a/block.c +++ b/block.c @@ -3051,3 +3051,17 @@ int bdrv_get_mapping(BlockDriverState *bs, uint64

[Qemu-devel] [PATCH v2 5/5] block: add bdrv_copy_header()

2011-07-11 Thread Devin Nakamura
Signed-off-by: Devin Nakamura --- block.c | 12 block.h |2 ++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 39510cb..69a3e13 100644 --- a/block.c +++ b/block.c @@ -3065,3 +3065,15 @@ int bdrv_map(BlockDriverState *bs, uint64_t *guest

Re: [Qemu-devel] [PATCH 2/2] syscall: pselect arg_sigsize variable was write only

2011-07-11 Thread Juan Quintela
Juan Quintela wrote: > Remove it. > > Signed-off-by: Juan Quintela /me nacks himself Peter one is better, it even makes sense, go figure O:-)

[Qemu-devel] [Bug 802588] Re: Latest GIT version fails to compile on Linux - setjmp.h problem

2011-07-11 Thread Stefan Weil
Patch http://patchwork.ozlabs.org/patch/103157/ is a possible solution for this problem. ** Changed in: qemu Assignee: (unassigned) => Stefan Weil (ubuntu-weilnetz) ** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qem

Re: [Qemu-devel] qemu - SCSI disk "Device Model", "Serial Number", and "Firmware Version"?

2011-07-11 Thread Ryan Harper
* Dave Seddon [2011-06-07 02:28]: > Greetings, > > Just wondering if it would be difficult to add the ability to define the > SCSI disk "Device Model", "Serial Number", and "Firmware Version". I've > been using the '-device lsi' successfully to emulate the LSI controller, > but now I want to emu

[Qemu-devel] [Bug 808588] Re: Netperf tests cause i82551 network down

2011-07-11 Thread Stefan Weil
** Changed in: qemu Assignee: (unassigned) => Stefan Weil (ubuntu-weilnetz) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/808588 Title: Netperf tests cause i82551 network down Status in QEMU:

Re: [Qemu-devel] [PATCH 1/1] QMP: add snapshot_blkdev command

2011-07-11 Thread Jes Sorensen
On 07/11/11 18:35, Luiz Capitulino wrote: > On Fri, 8 Jul 2011 14:00:13 +0200 > jes.soren...@redhat.com wrote: > >> From: Jes Sorensen >> >> Add QMP bits for snapshot_blkdev command. This is the same as >> snapshot_blkdev in the human monitor. The command is synchronous. >> >> In the future asyn

[Qemu-devel] How to measure guest instruction count ?

2011-07-11 Thread Jeff Yu
Hi all, I am new to qemu. Recently, I was trying to measure the performance(MIPS) of qemu executing splash2 benchmark. At first, I am trying the -icount flag built in qemu, but with the limited user manual. I also read the post on Qemu-devel Precise guest instruction count.

Re: [Qemu-devel] live block copy/stream/snapshot discussion

2011-07-11 Thread Marcelo Tosatti
On Mon, Jul 11, 2011 at 03:47:15PM +0100, Stefan Hajnoczi wrote: > Kevin, Marcelo, > I'd like to reach agreement on the QMP/HMP APIs for live block copy > and image streaming. Libvirt has acked the image streaming APIs that > Adam proposed and I think they are a good fit for the feature. I have >

Re: [Qemu-devel] [PATCH v1 0/8]: QMP: Thin provisioning support

2011-07-11 Thread Luiz Capitulino
On Tue, 5 Jul 2011 15:17:43 -0300 Luiz Capitulino wrote: > Roughly speaking, thin provisioning is a feature where the VM is started with > a small storage and when a no space error is triggered, more space is > allocated > and the VM is put to run again. block guys ping? This series has some

[Qemu-devel] [PATCH v3] QMP: add snapshot_blkdev command

2011-07-11 Thread Jes . Sorensen
From: Jes Sorensen Add QMP bits for snapshot_blkdev command. This is the same as snapshot_blkdev in the human monitor. The command is synchronous. In the future async commands and or a break down of the functionality into multiple commands might be added. Signed-off-by: Jes Sorensen --- qmp-c

Re: [Qemu-devel] [PATCH 1/1] QMP: add snapshot_blkdev command

2011-07-11 Thread Luiz Capitulino
On Mon, 11 Jul 2011 19:50:45 +0200 Jes Sorensen wrote: > On 07/11/11 18:35, Luiz Capitulino wrote: > > On Fri, 8 Jul 2011 14:00:13 +0200 > > jes.soren...@redhat.com wrote: > > > >> From: Jes Sorensen > >> > >> Add QMP bits for snapshot_blkdev command. This is the same as > >> snapshot_blkdev i

Re: [Qemu-devel] qdev for programmers writeup

2011-07-11 Thread Peter Maydell
On 11 July 2011 16:29, Paolo Bonzini wrote: > On 07/11/2011 04:44 PM, Peter Maydell wrote: >> (Also if you have one bus type >> per board then you're still very limited in what you can do with -device >> because you can't plug in some random other sysbus device anyway.) > > I'm not talking about o

Re: [Qemu-devel] [PATCH 1/1] QMP: add snapshot_blkdev command

2011-07-11 Thread Luiz Capitulino
On Fri, 8 Jul 2011 14:00:13 +0200 jes.soren...@redhat.com wrote: > From: Jes Sorensen > > Add QMP bits for snapshot_blkdev command. This is the same as > snapshot_blkdev in the human monitor. The command is synchronous. > > In the future async commands and or a break down of the functionality

Re: [Qemu-devel] [PATCH 2/2] syscall: pselect arg_sigsize variable was write only

2011-07-11 Thread Peter Maydell
On 11 July 2011 17:15, Juan Quintela wrote: > Remove it. > > Signed-off-by: Juan Quintela http://patchwork.ozlabs.org/patch/104232/ in the current linux-user pullreq is a fix for this. -- PMM

[Qemu-devel] [PATCH 1/2] xen_mapcache: remove unused variable

2011-07-11 Thread Juan Quintela
Signed-off-by: Juan Quintela --- xen-mapcache.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/xen-mapcache.c b/xen-mapcache.c index fac47cd..e2e324d 100644 --- a/xen-mapcache.c +++ b/xen-mapcache.c @@ -232,7 +232,7 @@ uint8_t *qemu_map_cache(target_phys_addr_t phys_a

[Qemu-devel] [PATCH 0/2] Yet more gcc warnings fixes

2011-07-11 Thread Juan Quintela
More places that have write only variables. Once here, why we have clovvered arg7 is a good question (TM) abi_long do_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg2, abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6, abi_long arg7,

[Qemu-devel] [PATCH 2/2] syscall: pselect arg_sigsize variable was write only

2011-07-11 Thread Juan Quintela
Remove it. Signed-off-by: Juan Quintela --- linux-user/syscall.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index fed7a8f..35bbe36 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5634,7 +5634,7 @@ abi_lo

Re: [Qemu-devel] [Bug 808737] Re: No option to load additional binary files from command line in QEMU

2011-07-11 Thread Peter Maydell
On 11 July 2011 16:23, Stefan Hajnoczi wrote: > Doesn't arm_boot.c already load an arbitrary binary when the image is > neither a kernel ELF or uboot image?  I don't know the arm_boot.c > details but skimming the source shows it already does > load_image_targphys(). The assumption is that an ELF

Re: [Qemu-devel] migration: new sections and backward compatibility.

2011-07-11 Thread Paolo Bonzini
On 07/11/2011 05:32 PM, Kevin Wolf wrote: I'd guess the best would be to have a special VMSTATE that means "broken old version doesn't send a section" which we can set for special -M? No, the best would be to have a serious migration format, based for example on ASN.1 which Michael Tsirkin

Re: [Qemu-devel] qdev for programmers writeup

2011-07-11 Thread Paolo Bonzini
On 07/11/2011 04:44 PM, Peter Maydell wrote: That's true, but the only way to plug in those device models would be with C code. You cannot just play with -device to reconfigure them. I think the C source level reuse is more important and more useful than plugging stuff around with -device, bec

Re: [Qemu-devel] [PATCH v5] Add support for Zipit Z2 machine

2011-07-11 Thread Vasily Khoruzhick
On Wednesday 06 July 2011 16:52:49 Vasily Khoruzhick wrote: > Zipit Z2 is small PXA270 based handheld. Ping? > Signed-off-by: Vasily Khoruzhick > --- > v2: codestyle fixes, added VMStateDescription for LCD device and AER915, > traces clean up. > v3: no changes > v4: no changes > v5: use DPRI

Re: [Qemu-devel] [Bug 808737] Re: No option to load additional binary files from command line in QEMU

2011-07-11 Thread Stefan Hajnoczi
On Mon, Jul 11, 2011 at 3:14 PM, Anup Patel <808...@bugs.launchpad.net> wrote: > I am trying to develop a lightweight hypervisor for ARM Cortex-A8. In my > case I have to load hypervisor elf as kernel and there and number of > other binaries like flattened device tree binary for hypervisor > config

Re: [Qemu-devel] migration: new sections and backward compatibility.

2011-07-11 Thread Kevin Wolf
Am 07.07.2011 17:23, schrieb Paolo Bonzini: > On 07/07/2011 01:02 PM, Alexander Graf wrote: >> I'd guess the best would be to have a special VMSTATE that means >> "broken old version doesn't send a section" which we can set for >> special -M? > > No, the best would be to have a serious migration f

Re: [Qemu-devel] [PATCH 5/7] linux-user: Add syscall numbers from kernel 2.6.39.2

2011-07-11 Thread cedric.vincent
On Mon, Jul 11, 2011 at 04:11:00PM +0200, riku.voi...@iki.fi wrote: > From: Peter Maydell > > Add syscall numbers for new syscall numbers; this brings us > into line with Linux 2.6.39.2. The syscall #123 on SH4 should be "TARGET_NR_cacheflush" instead of "TARGET_NR_modify_ldt" [1]. The only con

Re: [Qemu-devel] Taking live snapshots of running VMs

2011-07-11 Thread Kevin Wolf
Am 09.07.2011 00:24, schrieb Ahmed M. Azab: > Hi All, > > Is there a way to take a live memory snapshot of a running VM without > freezing or stopping this VM? > > I explored the Qemu code and documentation and I found two ways to > take a snapshot: > > 1-Using "savevm" Qemu monitor command, whi

[Qemu-devel] [PATCH v3 2/2] qemu-io: Fix if scoping bug

2011-07-11 Thread Devin Nakamura
Fix a bug caused by lack of braces in if statement Lack of braces means that if(count & 0x1ff) is never reached Conflicts: qemu-io.c Signed-off-by: Devin Nakamura --- qemu-io.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index e3c82

Re: [Qemu-devel] live block copy/stream/snapshot discussion

2011-07-11 Thread Stefan Hajnoczi
Kevin, Marcelo, I'd like to reach agreement on the QMP/HMP APIs for live block copy and image streaming. Libvirt has acked the image streaming APIs that Adam proposed and I think they are a good fit for the feature. I have described that API below for your review (it's exactly what the QED Image

[Qemu-devel] [Bug 808737] Re: No option to load additional binary files from command line in QEMU

2011-07-11 Thread Anup Patel
I am trying to develop a lightweight hypervisor for ARM Cortex-A8. In my case I have to load hypervisor elf as kernel and there and number of other binaries like flattened device tree binary for hypervisor configuration, guest kernel binary, guest ramdisk, etc. Currently, I am developing it for Re

[Qemu-devel] [PATCH 3/7] linux-user: Add support for more VT ioctls

2011-07-11 Thread riku . voipio
From: Cédric VINCENT DirectFB-1.0 uses at least two of the four added ioctls, and the two others were added for completeness. This patch was validated with the program "vlock -all/-new". Signed-off-by: Cédric VINCENT Cc: Riku Voipio Signed-off-by: Riku Voipio --- linux-user/ioctls.h

Re: [Qemu-devel] qdev for programmers writeup

2011-07-11 Thread Peter Maydell
On 11 July 2011 13:48, Paolo Bonzini wrote: > On 07/11/2011 12:46 PM, Peter Maydell wrote: >>Paolo wrote: >>> Together with such >>> a bus type there should be a single root board-specific device that is >>> attached to SysBus.  An interrupt controller is usually a good candidate >>> for this beca

[Qemu-devel] [Bug 808737] Re: No option to load additional binary files from command line in QEMU

2011-07-11 Thread Anup Patel
Just to add to my use case. Currently, to load a test binary called "arm_test.bin.patched" i have hacked QEMU in the following manner: diff --git a/hw/arm_boot.c b/hw/arm_boot.c index bfac982..e4873d4 100644 --- a/hw/arm_boot.c +++ b/hw/arm_boot.c @@ -280,6 +280,13 @@ void arm_load_kernel(CPUStat

Re: [Qemu-devel] qemu-user[armel/mips] and debian-rootfs

2011-07-11 Thread Lisandro Damián Nicanor Pérez Meyer
On Lun 11 Jul 2011 10:45:27 riku voipio escribió: > On 07/02/2011 02:52 AM, Lisandro Damián Nicanor Pérez Meyer wrote: > > I have clearly not been verbose enough, so I'll better try to solve that > > :-) > > > > The problem is the following: once I create a chroot, I copy > > /usr/bin/qemu- mips-s

Re: [Qemu-devel] qemu-user[armel/mips] and debian-rootfs

2011-07-11 Thread Riku Voipio
On Mon, Jul 11, 2011 at 11:10:50AM -0300, Lisandro Damián Nicanor Pérez Meyer wrote: > Thanks Riku! This bug has already been solved by Wesley Terpstra: > Ok, I missed these patches. Will adjust the linux-user patchset to i

[Qemu-devel] [PATCH 7/7] linux-user/syscall.c: Enforce pselect6 sigset size restrictions

2011-07-11 Thread riku . voipio
From: Peter Maydell Enforce the same restriction on the size of the sigset passed to pselect6 as the Linux kernel does. This is both correct and silences a gcc 4.6 warning about a write-only variable. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c |5

[Qemu-devel] [PATCH 6/7] linux-user: Implement prlimit64 syscall

2011-07-11 Thread riku . voipio
From: Peter Maydell Implement the prlimit64 syscall. Slightly modified to apply upstream -Riku Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 43 +++ linux-user/syscall_defs.h |4 2 files changed, 47

[Qemu-devel] [PATCH 5/7] linux-user: Add syscall numbers from kernel 2.6.39.2

2011-07-11 Thread riku . voipio
From: Peter Maydell Add syscall numbers for new syscall numbers; this brings us into line with Linux 2.6.39.2. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/alpha/syscall_nr.h | 23 ++- linux-user/arm/syscall_nr.h| 13 +

[Qemu-devel] [PATCH 4/7] linux-user: Add support for even more FB ioctls

2011-07-11 Thread riku . voipio
From: Cédric VINCENT This patch was validated with programs from DirectFB-1.0 and WebKit/DirectFB. Signed-off-by: Cédric VINCENT Cc: Riku Voipio Signed-off-by: Riku Voipio --- linux-user/ioctls.h|5 + linux-user/syscall_defs.h |5 + linux-user/syscall_types.h | 13

[Qemu-devel] [PATCH 0/7] pending linux-user patches

2011-07-11 Thread riku . voipio
From: Riku Voipio Following linux-user patches have been submitted since the last round. Last chance to comment before I ask for pull. Patches also available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream Cédric VINCENT (4): arm-semi: Prov

Re: [Qemu-devel] [PATCH 0/4] scsi fixes

2011-07-11 Thread Hannes Reinecke
On 07/11/2011 03:42 PM, Kevin Wolf wrote: Am 11.07.2011 15:34, schrieb Stefan Hajnoczi: On Mon, Jul 11, 2011 at 2:02 PM, Hannes Reinecke wrote: Hi all, these are some fixes I found during debugging my megasas HBA emulation. This time I've sent them as a separate patchset for inclusion. All of

[Qemu-devel] [PATCH 2/7] linux-user: Add support for KD...LED ioctls

2011-07-11 Thread riku . voipio
From: Cédric VINCENT DirectFB-1.0 uses at least one of the four added ioctls, and the three others were added for completeness. This patch was validated with the program "setleds" and the following Makefile: SETLEDS_INIT = setleds -v -num -caps -scroll SETLEDS_TESTS = sh -c ' \

[Qemu-devel] [PATCH 1/7] arm-semi: Provide access to CLI arguments passed through the "-append" option

2011-07-11 Thread riku . voipio
From: Cédric VINCENT This patch basically adapts the new semi-hosting command-line support -- introduced by Wolfgang Schildbach in the commit 2e8785ac -- for use in system-mode. Note that the "arm_cmdline_len" and "host_cmdline_len" variables were renamed respectively "input_size" and "output_si

[Qemu-devel] [PATCH] virtio: fix indirect descriptor buffer overflow

2011-07-11 Thread Michael S. Tsirkin
We were previously allowing arbitrarily-long indirect descriptors, which could lead to a buffer overflow in qemu-kvm process. CVE-2011-2212 Signed-off-by: Michael S. Tsirkin --- hw/virtio.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/hw/virtio.c b/hw/virtio.c

Re: [Qemu-devel] [PATCH 0/4] scsi fixes

2011-07-11 Thread Kevin Wolf
Am 11.07.2011 15:34, schrieb Stefan Hajnoczi: > On Mon, Jul 11, 2011 at 2:02 PM, Hannes Reinecke wrote: >> Hi all, >> >> these are some fixes I found during debugging my megasas HBA emulation. >> This time I've sent them as a separate patchset for inclusion. >> All of them have been acked, so plea

Re: [Qemu-devel] [Bug 808737] [NEW] No option to load additional binary files from command line in QEMU

2011-07-11 Thread Stefan Hajnoczi
On Mon, Jul 11, 2011 at 12:41 PM, Anup Patel <808...@bugs.launchpad.net> wrote: > Public bug reported: > > There is no command line option like -kerner, or -initrd to load an > arbitrary binary file to a RAM location when launching QEMU. It depends on your target (e.g. qemu-system-x86_64) but you

Re: [Qemu-devel] [PATCH 2/2] qemu-io: Fix if scoping bug

2011-07-11 Thread Stefan Hajnoczi
On Mon, Jul 11, 2011 at 2:18 PM, Kevin Wolf wrote: > Am 11.07.2011 11:47, schrieb Stefan Hajnoczi: >> On Mon, Jul 11, 2011 at 6:25 AM, Devin Nakamura wrote: >>> diff --git a/qemu-io.c b/qemu-io.c >>> index e484f40..85cfe27 100644 >>> --- a/qemu-io.c >>> +++ b/qemu-io.c >>> @@ -449,7 +449,7 @@ sta

Re: [Qemu-devel] [PATCH 0/4] scsi fixes

2011-07-11 Thread Stefan Hajnoczi
On Mon, Jul 11, 2011 at 2:02 PM, Hannes Reinecke wrote: > Hi all, > > these are some fixes I found during debugging my megasas HBA emulation. > This time I've sent them as a separate patchset for inclusion. > All of them have been acked, so please apply. Are SCSI patches going through Kevin's tre

Re: [Qemu-devel] qemu-user[armel/mips] and debian-rootfs

2011-07-11 Thread riku voipio
On 07/02/2011 02:52 AM, Lisandro Damián Nicanor Pérez Meyer wrote: I have clearly not been verbose enough, so I'll better try to solve that :-) The problem is the following: once I create a chroot, I copy /usr/bin/qemu- mips-static to $CHROOT/usr/bin and then chroot $CHROOT. Now if I do run tou

Re: [Qemu-devel] [PATCH 1/2] qemu-io: Fix formatting

2011-07-11 Thread Kevin Wolf
Am 11.07.2011 07:25, schrieb Devin Nakamura: > Replaced tabs with spaces, 8 space indentations with 4 space > indentation, and other fixes to better adhere to CODING_STYLE > > Signed-off-by: Devin Nakamura > --- > qemu-io.c | 2653 > +++--

Re: [Qemu-devel] [PATCH 2/2] qemu-io: Fix if scoping bug

2011-07-11 Thread Kevin Wolf
Am 11.07.2011 11:47, schrieb Stefan Hajnoczi: > On Mon, Jul 11, 2011 at 6:25 AM, Devin Nakamura wrote: >> diff --git a/qemu-io.c b/qemu-io.c >> index e484f40..85cfe27 100644 >> --- a/qemu-io.c >> +++ b/qemu-io.c >> @@ -449,7 +449,7 @@ static int read_f(int argc, char **argv) >> return 0; >

Re: [Qemu-devel] [Qemu-trivial] [PATCH] vhost build fix for i386

2011-07-11 Thread Stefan Hajnoczi
On Mon, Jul 11, 2011 at 1:57 PM, Wolfgang Mauerer wrote: > vhost.c uses __sync_fetch_and_and(), which is only > available for -march=i486 and above (see > https://bugzilla.redhat.com/show_bug.cgi?id=624279). Seems reasonable. I am happy to add it to the trivial-patches tree but will wait another

[Qemu-devel] [PATCH 4/4] scsi-disk: Mask out serial number EVPD

2011-07-11 Thread Hannes Reinecke
If the serial number is not set we should mask it out in the list of supported VPD pages and mark it as not supported. Signed-off-by: Hannes Reinecke Acked-by: Paolo Bonzini --- hw/scsi-disk.c | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hw/scsi-disk.c

Re: [Qemu-devel] KVM call egenda for July 12

2011-07-11 Thread Alexander Graf
Am 11.07.2011 um 13:46 schrieb Juan Quintela : > > Hi > > Please send in any agenda items you are interested in covering. Device passthrough on non-PCI (take 2) Alex >

[Qemu-devel] [PATCH 3/4] scsi-disk: Fixup debugging statement

2011-07-11 Thread Hannes Reinecke
A debugging statement wasn't converted to the new interface. Signed-off-by: Hannes Reinecke Acked-by: Paolo Bonzini --- hw/scsi-disk.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index c2a99fe..5804662 100644 --- a/hw/scsi-disk.c +++

[Qemu-devel] [PATCH] vhost build fix for i386

2011-07-11 Thread Wolfgang Mauerer
vhost.c uses __sync_fetch_and_and(), which is only available for -march=i486 and above (see https://bugzilla.redhat.com/show_bug.cgi?id=624279). Signed-off-by: Wolfgang Mauerer --- configure | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/configure

[Qemu-devel] [PATCH 2/4] scsi: Add 'hba_private' to SCSIRequest

2011-07-11 Thread Hannes Reinecke
'tag' is just an abstraction to identify the command from the driver. So we should make that explicit by replacing 'tag' with a driver-defined pointer 'hba_private'. This saves the lookup for driver handling several commands in parallel. 'tag' is still being kept for tracing purposes. Signed-off-b

[Qemu-devel] [PATCH 1/4] iov: Update parameter usage in iov_(to|from)_buf()

2011-07-11 Thread Hannes Reinecke
iov_to_buf() has an 'offset' parameter, iov_from_buf() hasn't. This patch adds the missing parameter to iov_from_buf(). It also renames the 'offset' parameter to 'iov_off' to emphasize it's the offset into the iovec and not the buffer. Signed-off-by: Hannes Reinecke Acked-by: Alexander Graf ---

[Qemu-devel] [PATCH 0/4] scsi fixes

2011-07-11 Thread Hannes Reinecke
Hi all, these are some fixes I found during debugging my megasas HBA emulation. This time I've sent them as a separate patchset for inclusion. All of them have been acked, so please apply. Hannes Reinecke (4): iov: Update parameter usage in iov_(to|from)_buf() scsi: Add 'hba_private' to SCSIR

Re: [Qemu-devel] live block copy/stream/snapshot discussion

2011-07-11 Thread Stefan Hajnoczi
On Tue, Jul 05, 2011 at 05:17:49PM +0300, Dor Laor wrote: > Anthony advised to clone > http://wiki.qemu.org/index.php?title=Features/LiveBlockMigrationFuture > to the list in order to encourage discussion, so here it is: > >

Re: [Qemu-devel] qdev for programmers writeup

2011-07-11 Thread Paolo Bonzini
On 07/11/2011 12:46 PM, Peter Maydell wrote: One point I'd like clarification on is when you need to invent a new bus type. As rarely as possible, but as often as necessary? :P New buses limit reusability of the models, but you need one whenever the existing buses do not express how two devic

Re: [Qemu-devel] [PATCH 0/2] netdev fixes

2011-07-11 Thread Markus Armbruster
Markus Armbruster writes: > Ping? Could someone please take pity and review or commit this? Thanks.

[Qemu-devel] KVM call egenda for July 12

2011-07-11 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Later, Juan.

[Qemu-devel] [Bug 808737] [NEW] No option to load additional binary files from command line in QEMU

2011-07-11 Thread Anup Patel
Public bug reported: There is no command line option like -kerner, or -initrd to load an arbitrary binary file to a RAM location when launching QEMU. ** Affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml

Re: [Qemu-devel] [PATCH 1/1] virtio-console: Prevent abort()s in case of host chardev close

2011-07-11 Thread Markus Armbruster
Amit Shah writes: > A host chardev could close just before the guest sends some data to be > written. This will cause an -EPIPE error. This shouldn't be propagated > to virtio-serial-bus. > > Ideally we should close the port once -EPIPE is received, but since the > chardev interface doesn't ret

Re: [Qemu-devel] [RFC v3 31/56] ac97: convert to memory API

2011-07-11 Thread Avi Kivity
On 07/11/2011 04:42 AM, Anthony Liguori wrote: On 07/10/2011 03:33 PM, malc wrote: On Sun, 10 Jul 2011, Avi Kivity wrote: fixes BAR sizing as well. I find this patch disgusting, the read and write handlers in particular. Shouldn't it be possible to do something like: typedef struct OldMem

Re: [Qemu-devel] qdev for programmers writeup

2011-07-11 Thread Peter Maydell
On 11 July 2011 11:20, Paolo Bonzini wrote: This is cool; more qdev documentation is really useful. One point I'd like clarification on is when you need to invent a new bus type. Sometimes it's pretty obvious because there's a real hardware bus type there (PCI, SCSI) that you're modelling. It's

[Qemu-devel] qdev for programmers writeup

2011-07-11 Thread Paolo Bonzini
Hi, this is a partial version of a "qdev for programmers" document I've been working on. Comments are welcome. Paolo - 8< - == qdev overview and concepts == qdev is the factory interface that QEMU uses to create guest devices and

Re: [Qemu-devel] [PATCH 2/2] qemu-io: Fix if scoping bug

2011-07-11 Thread Stefan Hajnoczi
On Mon, Jul 11, 2011 at 6:25 AM, Devin Nakamura wrote: > diff --git a/qemu-io.c b/qemu-io.c > index e484f40..85cfe27 100644 > --- a/qemu-io.c > +++ b/qemu-io.c > @@ -449,7 +449,7 @@ static int read_f(int argc, char **argv) >         return 0; >     } > > -    if (!pflag) > +    if (!pflag) { >    

[Qemu-devel] [Bug 808588] Re: Netperf tests cause i82551 network down

2011-07-11 Thread Amos Kong
related fix in driver: http://marc.info/?l=linux-netdev&m=118859393206222&w=3 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/808588 Title: Netperf tests cause i82551 network down Status in QEMU:

Re: [Qemu-devel] Taking live snapshots of running VMs

2011-07-11 Thread Jes Sorensen
On 07/09/11 00:24, Ahmed M. Azab wrote: > Hi All, > > Is there a way to take a live memory snapshot of a running VM without > freezing or stopping this VM? > > I explored the Qemu code and documentation and I found two ways to > take a snapshot: What you are talking about is called a 'checkpoint

Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu

2011-07-11 Thread Xiao Jiang
David Gilbert wrote: On 11 July 2011 09:21, Xiao Jiang wrote: Hello, I downloaded latest qemu 0.14.1, it should support realview-pbx-a9 board now from below cmd. $ qemu-system-arm -M ?|grep Cortex-A9 realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9 Then I compiled a zI

Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu

2011-07-11 Thread David Gilbert
On 11 July 2011 09:21, Xiao Jiang wrote: > Hello, > > I downloaded latest qemu 0.14.1, it should support realview-pbx-a9 board now > from > below cmd. > $ qemu-system-arm -M ?|grep Cortex-A9 > realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9 > > Then I compiled a zImage from l

Re: [Qemu-devel] IO errors in guest caused by LTP dio test

2011-07-11 Thread Kevin Wolf
Am 28.06.2011 10:50, schrieb Kevin Wolf: > Am 27.06.2011 18:08, schrieb Andi Kleen: >> On Mon, Jun 27, 2011 at 05:59:41PM +0200, Kevin Wolf wrote: >>> Am 23.06.2011 01:36, schrieb Andi Kleen: Running LTP testcases/kernel/io/direct_io/test_dma_thread_diotest7 causes IO errors in the g

Re: [Qemu-devel] PCI with Xilinx virtex-ml507 board

2011-07-11 Thread Edgar E. Iglesias
Hi, The emulated board and fpga config doesnt have pci. It does have a xilinx ll-temac ethernet mac though. I have patches for that, its on my todo list to post them. Right now im on the road with little access to my stuff. It'll have to wait, sorry. If you dont need a particular mac, you could t

[Qemu-devel] How to run realview-pbx-a9 image in qemu

2011-07-11 Thread Xiao Jiang
Hello, I downloaded latest qemu 0.14.1, it should support realview-pbx-a9 board now from below cmd. $ qemu-system-arm -M ?|grep Cortex-A9 realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9 Then I compiled a zImage from latest mainline with use realview-smp_defconfig as conf