[Qemu-devel] [PATCH 1/4] net: tap-linux: Fix unhelpful error message

2011-10-31 Thread Stefan Hajnoczi
From: Luiz Capitulino I'm getting: could not configure /dev/net/tun (tap%d): Operation not permitted When the ioctl() fails, ifr.ifr_name will most likely not be overwritten. So we better only use it when ifname contains a string. Signed-off-by: Luiz Capitulino Signed-off-by: Stefan Hajno

[Qemu-devel] [PATCH 4/4] acl: Fix use after free in qemu_acl_reset()

2011-10-31 Thread Stefan Hajnoczi
From: Markus Armbruster Reproducer: $ MALLOC_PERTURB_=234 qemu-system-x86_64 -vnc :0,acl,sasl [...] QEMU 0.15.50 monitor - type 'help' for more information (qemu) acl_add vnc.username fred allow acl: added rule at position 1 (qemu) acl_reset vnc.username Segmentation faul

[Qemu-devel] [PATCH 3/4] qapi: fix typos in documentation JSON examples

2011-10-31 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- docs/qapi-code-gen.txt |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt index f345866..c0a9325 100644 --- a/docs/qapi-code-gen.txt +++ b/docs/qapi-code-gen.txt @@ -41,7 +41,7 @@ dictionar

[Qemu-devel] [PATCH 2/4] sysbus: Supply missing va_end()

2011-10-31 Thread Stefan Hajnoczi
From: Markus Armbruster C99 7.15.1: Each invocation of the va_start and va_copy macros shall be matched by a corresponding invocation of the va_end macro in the same function. Spotted by Coverity. Harmless on the (common) systems where va_end() does nothing. Signed-off-by: Markus Armbruster S

[Qemu-devel] [PULL 0/4] Trivial patches for 27 October to 1 November 2011

2011-10-31 Thread Stefan Hajnoczi
The following changes since commit ff74c5a9a91c6dbf1017195462aa4176f7381240: Merge remote-tracking branch 'riku/linux-user-for-upstream' into staging (2011-10-31 15:05:40 -0500) are available in the git repository at: ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-patches Luiz Capituli

[Qemu-devel] [PATCH v2] use g_free, instead of free

2011-10-31 Thread Dong Xu Wang
From: Dong Xu Wang Fix mismatching allocation and deallocation: g_free should be used to pair with g_malloc. Also fix coding style. Signed-off-by: Dong Xu Wang --- block/cloop.c | 119 +++-- 1 files changed, 65 insertions(+), 54 deletions(-

[Qemu-devel] buildbot failure in qemu on xen_x86_64_debian_6_0

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

[Qemu-devel] [patch] remove unused function arg in qemu_iohandler_poll() and qemu_iohandler_fill()

2011-10-31 Thread Jun Koi
This patch removes unused function argument xfds from qemu_iohandler_poll() and qemu_iohandler_fill() Signed-off-by: Jun Koi diff --git a/iohandler.c b/iohandler.c index 5640d49..9963790 100644 --- a/iohandler.c +++ b/iohandler.c @@ -89,7 +89,7 @@ int qemu_set_fd_handler(int fd, return qem

[Qemu-devel] buildbot failure in qemu on trivial-patches_x86_64_debian_6_0

2011-10-31 Thread qemu
The Buildbot has detected a new failure on builder trivial-patches_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/trivial-patches_x86_64_debian_6_0/builds/78 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this

[Qemu-devel] buildbot failure in qemu on trivial-patches_i386_debian_6_0

2011-10-31 Thread qemu
The Buildbot has detected a new failure on builder trivial-patches_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/trivial-patches_i386_debian_6_0/builds/78 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Bui

[Qemu-devel] buildbot failure in qemu on qmp_x86_64_debian_6_0

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

[Qemu-devel] buildbot failure in qemu on qmp_i386_debian_6_0

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

[Qemu-devel] buildbot failure in qemu on block_x86_64_debian_6_0

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

Re: [Qemu-devel] [PATCH] qmp: report TRAY_STATE_CHANGED events

2011-10-31 Thread ShaoHe Feng
test-by: ShaoHe Feng It seems this patch can not work well. there is my test process. I startup a guest by the follow option: -drive file=/home/fsh/image/OCDC-natty-Test-Drive-20110823_010339.iso,if=ide,index=1,media=cdrom after the guest startups, then I right click mouse in the UI of the

Re: [Qemu-devel] GSoC mentor summit QEMU users session

2011-10-31 Thread Alexander Graf
On 31.10.2011, at 18:35, Peter Maydell wrote: > On 1 November 2011 00:08, Alexander Graf wrote: >> On 31.10.2011, at 06:12, Peter Maydell wrote: >>> On 29 October 2011 14:52, Alexander Graf wrote: We should also show people unmaintained areas. The conclusion was a wiki page with subs

[Qemu-devel] [patch] explicitly initialize tcg_cpu_thread

2011-10-31 Thread Jun Koi
This patch explicitly initializes tcg_cpu_thread to NULL in cpus.c (One code patch in qemu_tcg_init_vcpu() relies on the value of tcg_cpu_thread to create env->thread and so on ) Signed-off-by: Jun Koi diff --git a/cpus.c b/cpus.c index f768683..47feb58 100644 --- a/cpus.c +++ b/cpus.c @@ -606,

Re: [Qemu-devel] [PATCH v2] trace: Add wildcard trace event support

2011-10-31 Thread Mark Wu
On 10/31/2011 10:05 PM, Stefan Hajnoczi wrote: >net/queue.c |1 + Oops! Thanks. Very sorry for that! I will be more cautious.

Re: [Qemu-devel] [PATCH] qed: adjust the way to get nb_sectors

2011-10-31 Thread Zhi Yong Wu
On Mon, Oct 31, 2011 at 02:11:00PM +, Stefan Hajnoczi wrote: >From: Stefan Hajnoczi >To: Zhi Yong Wu >Cc: Kevin Wolf , Zhi Yong Wu , > qemu-devel@nongnu.org, stefa...@linux.vnet.ibm.com >Content-Type: text/plain; charset=ISO-8859-1 >x-cbid: 11103114-6148---00CC1760 >X-IBM-ISS-Spam

Re: [Qemu-devel] GSoC mentor summit QEMU users session

2011-10-31 Thread Peter Maydell
On 1 November 2011 00:08, Alexander Graf wrote: > On 31.10.2011, at 06:12, Peter Maydell wrote: >> On 29 October 2011 14:52, Alexander Graf wrote: >>> We should also show people unmaintained areas. The conclusion was a wiki >>> page with subsystems and status so people know what to expect. Maybe

Re: [Qemu-devel] [PATCH 3/3] monitor: add ability to dump SLB entries

2011-10-31 Thread Nishanth Aravamudan
On 31.10.2011 [17:35:13 -0700], Alexander Graf wrote: > > On 31.10.2011, at 15:53, Nishanth Aravamudan wrote: > > > On 31.10.2011 [15:14:12 +1100], David Gibson wrote: > >> Good points below. I forgot to CC Nish, the original patch author on > >> my post, so I've added him to the list now. > >>

Re: [Qemu-devel] [PULL 0/3] 128-bit support for the memory API

2011-10-31 Thread David Gibson
On Mon, Oct 31, 2011 at 11:05:47AM -0500, Anthony Liguori wrote: > On 10/30/2011 09:02 AM, Avi Kivity wrote: > >This somewhat controversial patchset converts internal arithmetic in the > >memory API to 128 bits. > > Given the level of controversy, what do you think about deferring > this to 1.1?

[Qemu-devel] [PATCH] block.c typo in comment fixed

2011-10-31 Thread matthias . bgg
From: Matthias Brugger Signed-off-by: Matthias Brugger --- block.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index 9bb236c..480aae2 100644 --- a/block.c +++ b/block.c @@ -497,7 +497,7 @@ static int bdrv_open_common(BlockDriverState *bs, const

Re: [Qemu-devel] [PATCH 3/3] monitor: add ability to dump SLB entries

2011-10-31 Thread Alexander Graf
On 31.10.2011, at 15:53, Nishanth Aravamudan wrote: > On 31.10.2011 [15:14:12 +1100], David Gibson wrote: >> Good points below. I forgot to CC Nish, the original patch author on >> my post, so I've added him to the list now. >> >> Nish, can you correct these problems and resend the patch please

Re: [Qemu-devel] GSoC mentor summit QEMU users session

2011-10-31 Thread Alexander Graf
On 31.10.2011, at 06:12, Peter Maydell wrote: > On 29 October 2011 14:52, Alexander Graf wrote: >> We should also show people unmaintained areas. The conclusion was a wiki >> page with subsystems and status so people know what to expect. Maybe we >> could generate this from the MAINTAINERS file

Re: [Qemu-devel] [PATCH] linux-user: add binfmt wrapper for argv[0] handling

2011-10-31 Thread Alexander Graf
On 31.10.2011, at 12:16, Riku Voipio wrote: > On Sat, Oct 29, 2011 at 08:08:39PM +0200, Alexander Graf wrote: >>> When using qemu's linux-user binaries through binfmt, argv[0] gets lost >>> along the execution because qemu only gets passed in the full file name >>> to the executable while argv[0

[Qemu-devel] [PATCH 4/7] opencores_eth: fix RX path: FCS, padding and TL

2011-10-31 Thread Max Filippov
OpenCores 10/100 Mbps Ethernet MAC specification doesn't clearly state whether FCS is counted in the RX frame length or not. Looks like it is. Append zero FCS to the received frames. Get rid of big static buffer for RX frame padding, optimize it for the most common MINFL value range. Set RXD_TL f

[Qemu-devel] [PATCH 1/3] xtensa_lx60: add FLASH support

2011-10-31 Thread Max Filippov
LX60 carry 4 Mbyte FLASH and 128 Kbyte SRAM, LX200 carry 16 Mbyte FLASH and 32 Mbyte SRAM. Either of these memories may be mapped to the system ROM region. Select boot from FLASH if -kernel option is not specified, otherwise boot from SRAM. Signed-off-by: Max Filippov --- default-configs/xtensa

[Qemu-devel] [PATCH 6/7] xtensa_lx60: pass kernel arguments from -append

2011-10-31 Thread Max Filippov
Create boot parameters in the end of SRAM region, insert kernel arguments specified in -append there. Signed-off-by: Max Filippov --- hw/xtensa_bootparam.h | 25 + hw/xtensa_lx60.c | 24 2 files changed, 45 insertions(+), 4 deletions(-)

[Qemu-devel] [PATCH 7/7] xtensa_lx60: fix build date code and change memory region names

2011-10-31 Thread Max Filippov
Fix date code to uses MMDD notation. Change memory region names to reflect specification that defines them. Signed-off-by: Max Filippov --- hw/xtensa_lx60.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xtensa_lx60.c b/hw/xtensa_lx60.c index 069b21c..8947

[Qemu-devel] [PATCH 2/3] xtensa_lx60: pass kernel arguments from -append

2011-10-31 Thread Max Filippov
Create boot parameters in the end of SRAM region, insert kernel arguments specified in -append there. Signed-off-by: Max Filippov --- hw/xtensa_bootparam.h | 25 + hw/xtensa_lx60.c | 24 2 files changed, 45 insertions(+), 4 deletions(-)

Re: [Qemu-devel] [PATCH] MAINTAINERS: Add PReP maintainer

2011-10-31 Thread Alexander Graf
On 31.10.2011, at 16:03, Andreas Färber wrote: > Officially take on maintainership for PReP and upgrade to Odd Fixes. > > Signed-off-by: Andreas Färber > Cc: Alexander Graf > Cc: Hervé Poussineau Acked-by: Alexander Graf Anthony, could you please take this in directly? Alex > --- > M

[Qemu-devel] [PATCH 5/7] xtensa_lx60: add FLASH support

2011-10-31 Thread Max Filippov
LX60 carry 4 Mbyte FLASH and 128 Kbyte SRAM, LX200 carry 16 Mbyte FLASH and 32 Mbyte SRAM. Either of these memories may be mapped to the system ROM region. Select boot from FLASH if -kernel option is not specified, otherwise boot from SRAM. Signed-off-by: Max Filippov --- default-configs/xtensa

[Qemu-devel] [PATCH] MAINTAINERS: Add PReP maintainer

2011-10-31 Thread Andreas Färber
Officially take on maintainership for PReP and upgrade to Odd Fixes. Signed-off-by: Andreas Färber Cc: Alexander Graf Cc: Hervé Poussineau --- MAINTAINERS |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4535eeb..bccdd4f 100644 --- a

[Qemu-devel] [PATCH 3/3] xtensa_lx60: fix build date code and change memory region names

2011-10-31 Thread Max Filippov
Fix date code to uses MMDD notation. Change memory region names to reflect specification that defines them. Signed-off-by: Max Filippov --- hw/xtensa_lx60.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xtensa_lx60.c b/hw/xtensa_lx60.c index 069b21c..8947

[Qemu-devel] [PATCH 2/7] target-xtensa: handle cache options in the overlay tool

2011-10-31 Thread Max Filippov
Cache options must be enabled for the cores that have cache to avoid illegal instruction exceptions. Signed-off-by: Max Filippov --- target-xtensa/overlay_tool.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/target-xtensa/overlay_tool.h b/target-xtensa/overlay_too

[Qemu-devel] [PATCH 1/7] target-xtensa: mask out undefined bits of WINDOWBASE SR

2011-10-31 Thread Max Filippov
According to ISA, table 5-156, bits 32:NAREG/4 of the WINDOWSTART SR must be zero. Signed-off-by: Max Filippov --- target-xtensa/translate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 1688bb2..b724d46 1006

Re: [Qemu-devel] [PATCH 3/3] monitor: add ability to dump SLB entries

2011-10-31 Thread Nishanth Aravamudan
On 31.10.2011 [15:14:12 +1100], David Gibson wrote: > Good points below. I forgot to CC Nish, the original patch author on > my post, so I've added him to the list now. > > Nish, can you correct these problems and resend the patch please? Yep, I'll work on this shortly. > On Mon, Oct 31, 2011 a

[Qemu-devel] [PULL 0/7] target-xtensa patches for 1.0

2011-10-31 Thread Max Filippov
The following fixes for target-xtensa targeting 1.0 are available in the git repository at git://jcmvbkbc.spb.ru/dumb/qemu-xtensa.git xtensa Max Filippov (7): target-xtensa: mask out undefined bits of WINDOWBASE SR target-xtensa: handle cache options in the overlay tool target-xtensa: rai

Re: [Qemu-devel] [PULL 0/7] target-xtensa patches for 1.0

2011-10-31 Thread Max Filippov
> The following fixes for target-xtensa targeting 1.0 are available in the git > repository at > > git://jcmvbkbc.spb.ru/dumb/qemu-xtensa.git xtensa > > Max Filippov (7): > target-xtensa: mask out undefined bits of WINDOWBASE SR > target-xtensa: handle cache options in the overlay tool >

[Qemu-devel] [PATCH 3/7] target-xtensa: raise an exception for invalid and reserved opcodes

2011-10-31 Thread Max Filippov
This includes opcodes from disabled features and those marked reserved in the ISA. Also end TB on opcodes that definitely generate an exception: illegal instructions, syscall and privileged instructions. Signed-off-by: Max Filippov --- target-xtensa/translate.c |7 ++- 1 files changed,

Re: [Qemu-devel] [PULL] tcg/interpreter: Add TCG + interpreter for bytecode

2011-10-31 Thread Anthony Liguori
On 10/31/2011 05:02 PM, Stefan Weil wrote: Am 31.10.2011 22:38, schrieb Anthony Liguori: I'll defer to Blue and/or Aurelien here as I don't know enough about TCG to really review this series. But I'd recommend waiting to pull this until after 1.1 opens up. This is the sort of thing that 1) peo

Re: [Qemu-devel] [PULL] tcg/interpreter: Add TCG + interpreter for bytecode

2011-10-31 Thread Stefan Weil
Am 31.10.2011 22:38, schrieb Anthony Liguori: On 10/31/2011 04:31 PM, Stefan Weil wrote: Hi, this is a 3rd version of the patch series which adds support for QEMU on any host by using a TCG interpreter (TCI). Version 2 was sent to the list and is available here: http://lists.gnu.org/archive/ht

[Qemu-devel] [PATCH 06/13] hw/9pfs: Open and create files

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Add interfaces to open and create files for proxy file system driver. Signed-off-by: M. Mohan Kumar --- Makefile |2 + configure |1 + hw/9pfs/proxy.h |6 ++ hw/9pfs/virtfs-proxy-helper.c | 135 +

[Qemu-devel] [PATCH 10/13] hw/9pfs: xattr interfaces in proxy filesystem driver

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Add xattr support for proxy FS Signed-off-by: M. Mohan Kumar --- hw/9pfs/proxy.h |4 ++ hw/9pfs/virtfs-proxy-helper.c | 60 hw/9pfs/virtio-9p-proxy.c | 121 ++--- 3 files changed, 176 inser

[Qemu-devel] [PATCH 00/13] Proxy FS driver for VirtFS

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Pass-through security model in QEMU 9p server needs root privilege to do few file operations (like chown, chmod to any mode/uid:gid). There are two issues in pass-through security model 1) TOCTTOU vulnerability: Following symbolic links in the server could provide access

Re: [Qemu-devel] [PULL] tcg/interpreter: Add TCG + interpreter for bytecode

2011-10-31 Thread Anthony Liguori
On 10/31/2011 04:31 PM, Stefan Weil wrote: Hi, this is a 3rd version of the patch series which adds support for QEMU on any host by using a TCG interpreter (TCI). Version 2 was sent to the list and is available here: http://lists.gnu.org/archive/html/qemu-devel/2011-10/msg02504.html The new ve

[Qemu-devel] [PULL] tcg/interpreter: Add TCG + interpreter for bytecode

2011-10-31 Thread Stefan Weil
Hi, this is a 3rd version of the patch series which adds support for QEMU on any host by using a TCG interpreter (TCI). Version 2 was sent to the list and is available here: http://lists.gnu.org/archive/html/qemu-devel/2011-10/msg02504.html The new version removed the TRACE macros which I used

Re: [Qemu-devel] [libvirt] RFC decoupling VM NIC provisioning fromVM NIC connection to backend networks

2011-10-31 Thread Christian Benvenuti (benve)
> -Original Message- > From: qemu-devel-bounces+benve=cisco@nongnu.org [mailto:qemu-devel- > bounces+benve=cisco@nongnu.org] On Behalf Of Markus Armbruster > Sent: Monday, October 31, 2011 7:05 AM > To: Daniel P. Berrange > Cc: libvir-l...@redhat.com; David Wang (dwang2); Ram Durair

Re: [Qemu-devel] [PATCH v3 5/6] target-mips: Adding support for Cavium specific instructions

2011-10-31 Thread Andreas Färber
Am 28.10.2011 06:42, schrieb Khansa Butt: > > > On Sat, Oct 22, 2011 at 4:36 PM, Andreas Färber > wrote: > > Am 22.10.2011 12:11, schrieb kha...@kics.edu.pk > : HTML again :( > > From: Khansa Butt mailto:kha...@kics.edu.pk>

Re: [Qemu-devel] [libvirt] RFC decoupling VM NIC provisioning from VM NIC connection to backend networks

2011-10-31 Thread Christian Benvenuti (benve)
> -Original Message- > From: qemu-devel-bounces+benve=cisco@nongnu.org [mailto:qemu-devel- > bounces+benve=cisco@nongnu.org] On Behalf Of Daniel P. Berrange > Sent: Monday, October 31, 2011 3:49 AM > To: Sumit Naiksatam (snaiksat) > Cc: libvir-l...@redhat.com; David Wang (dwang2); R

[Qemu-devel] [PATCH 02/13] hw/9pfs: Move pdu_marshal/unmarshal code to a seperate file

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Move p9 marshaling/unmarshaling code to a separate file so that proxy filesytem driver can use these calls. Also made marshaling code generic to accept "struct iovec" instead of V9fsPDU. Signed-off-by: M. Mohan Kumar Signed-off-by: Aneesh Kumar K.V --- Makefile.objs

[Qemu-devel] [PATCH 03/13] hw/9pfs: Add new proxy filesystem driver

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Add new proxy filesystem driver to add root privilege to qemu process. It needs a helper process to be started by root user. Following command line can be used to utilize proxy filesystem driver -virtfs proxy,id=,mount_tag=,sock_fd= Signed-off-by: M. Mohan Kumar --- Mak

[Qemu-devel] [PATCH 08/13] hw/9pfs: Add stat/readlink/statfs for proxy FS

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Signed-off-by: M. Mohan Kumar --- hw/9pfs/proxy.h |3 ++ hw/9pfs/virtfs-proxy-helper.c | 81 - hw/9pfs/virtio-9p-proxy.c | 67 +++--- 3 files changed, 144 insertions(+), 7 delet

[Qemu-devel] [PATCH 12/13] hw/9pfs: Documentation changes related to proxy fs

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Signed-off-by: M. Mohan Kumar --- qemu-options.hx | 30 ++ 1 files changed, 22 insertions(+), 8 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 8df6165..eef98c5 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -527,19

[Qemu-devel] [PATCH 13/13] hw/9pfs: man page for proxy helper

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Signed-off-by: M. Mohan Kumar --- Makefile | 12 ++- hw/9pfs/virtfs-proxy-helper.texi | 63 ++ 2 files changed, 74 insertions(+), 1 deletions(-) create mode 100644 hw/9pfs/virtfs-proxy-helper.texi diff

[Qemu-devel] [PATCH 09/13] hw/9pfs: File ownership and others

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Add file ownership interfaces like chmod/chown, utime update, rename, remove and truncating files for proxy FS Signed-off-by: M. Mohan Kumar --- hw/9pfs/proxy.h |6 ++ hw/9pfs/virtfs-proxy-helper.c | 61 ++- hw/9pfs/virtio-9p-proxy.c

[Qemu-devel] [PATCH 07/13] hw/9pfs: Create other filesystem objects

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Add interfaces to create filesystem objects like directory, device nodes, symbolic links, links for proxy filesytem driver Signed-off-by: M. Mohan Kumar --- hw/9pfs/proxy.h |4 ++ hw/9pfs/virtfs-proxy-helper.c | 63 +- hw/9pfs/virt

[Qemu-devel] [PATCH 05/13] hw/9pfs: Add support to use named socket for proxy FS

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Add option to use named socket for communicating between proxy helper and qemu proxy FS. Access to socket can be given by using command line options -u and -g. Signed-off-by: M. Mohan Kumar --- hw/9pfs/virtfs-proxy-helper.c | 89 ++--

[Qemu-devel] [PATCH 04/13] hw/9pfs: File system helper process for qemu 9p proxy FS

2011-10-31 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Provide root privilege access to QEMU 9p proxy filesystem using socket communication. Proxy helper is started by root user as: ~ # virtfs-proxy-helper {{-s|--socket -u|--uid -g|--gid}|{-f|--fd }} -p[-r -t ] Where uid:gid gives socket access to uid:gid, -r:t combin

[Qemu-devel] [PATCH 01/13] hw/9pfs: Move opt validation to FsDriver callback

2011-10-31 Thread M. Mohan Kumar
From: "Aneesh Kumar K.V" This remove all conditional code from common code path and make opt validation a FSDriver callback. Signed-off-by: Aneesh Kumar K.V Signed-off-by: M. Mohan Kumar --- fsdev/file-op-9p.h | 15 +-- fsdev/qemu-fsdev.c | 44 ++---

Re: [Qemu-devel] [PULL] [PATCH 00/10] Linux-user patches for 1.0

2011-10-31 Thread Anthony Liguori
On 10/31/2011 02:27 PM, Riku Voipio wrote: Fixes related linux-user qemu targetting 1.0 are available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream Pulled. Thanks. Regards, Anthony Liguori Alexander Graf (2): linux-user: fix opena

[Qemu-devel] [PATCH v2] Support running QEMU on Valgrind

2011-10-31 Thread Stefan Weil
Valgrind is a tool which can automatically detect many kinds of bugs. Running QEMU on Valgrind with x86_64 hosts was not possible because Valgrind aborts when memalign is called with an alignment larger than 1 MiB. QEMU normally uses 2 MiB on Linux x86_64. Now the alignment is reduced to the page

Re: [Qemu-devel] [PATCH v2 2/4] softfloat: Avoid uint16 type conflict on Darwin

2011-10-31 Thread Andreas Färber
Am 31.10.2011 20:42, schrieb Peter Maydell: > On 31 October 2011 19:18, Andreas Färber wrote: >> --- a/fpu/softfloat.h >> +++ b/fpu/softfloat.h >> @@ -54,6 +54,9 @@ these four paragraphs for those parts of this code that >> are retained. >> | to the same as `int'. >> >> *--

[Qemu-devel] [Bug 884401] [NEW] PCI Passthrough for Digium TCE400P Codec Card Not working

2011-10-31 Thread Ray Seals
Public bug reported: trying to use a Digium TCE400P Codec card on a Virtual instance using the following information: lspci 02:08.0 Ethernet controller: Digium, Inc. Wildcard TCE400P transcoder base card (rev 11) lspci -n 02:08.0 0200: d161:8004 (rev 11) virsh nodedev-list | grep pci pci_0

Re: [Qemu-devel] [PATCH 13/25] vmstate: port ppc cpu

2011-10-31 Thread Juan Quintela
Alexander Graf wrote: > On 25.10.2011, at 16:00, Juan Quintela wrote: > >> Added sdr1_vmstate because storing the value requires calling >> ppc_store_sdr1(). >> The position when the function is called also changes (I think it is save). > > Thanks for converting this. I'm fairly sure that vmsave

Re: [Qemu-devel] [PATCH v2 2/4] softfloat: Avoid uint16 type conflict on Darwin

2011-10-31 Thread Peter Maydell
On 31 October 2011 19:18, Andreas Färber wrote: > --- a/fpu/softfloat.h > +++ b/fpu/softfloat.h > @@ -54,6 +54,9 @@ these four paragraphs for those parts of this code that are > retained. >  | to the same as `int'. >  **/

[Qemu-devel] [PULL] [PATCH 00/10] Linux-user patches for 1.0

2011-10-31 Thread Riku Voipio
Fixes related linux-user qemu targetting 1.0 are available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream Alexander Graf (2): linux-user: fix openat linux-user: implement reboot syscall Matthias Braun (3): linux-user: fix TARGET_RLIM_INF

[Qemu-devel] [PATCH v2 4/4] cocoa: Close sheet after image file selection

2011-10-31 Thread Andreas Färber
If no disk image is specified, the Cocoa frontend displays a modal sheet to let the user select an image file to boot from. This sheet is never closed and it permanently obscures the emulator window. Close it after obtaining the file name in case the user did select a file. Otherwise we exit imme

[Qemu-devel] [PATCH v2 3/4] vl.c: Guard against GThread double-initialization

2011-10-31 Thread Andreas Färber
GThread-ERROR **: GThread system may only be initialized once. aborting... Making the g_thread_init() call in vl.c conditional resolves an abort on Mac OS X, where coroutine-gthread.c seems to call it before vl.c. Reported-by: Juan Pineda Signed-off-by: Andreas Färber Cc: Daniel P. Berrange --

Re: [Qemu-devel] [PATCH] Support running QEMU on Valgrind

2011-10-31 Thread Anthony Liguori
On 10/31/2011 02:03 PM, Stefan Weil wrote: Am 31.10.2011 19:13, schrieb Anthony Liguori: On 10/30/2011 07:07 AM, Stefan Weil wrote: Valgrind is a tool which can automatically detect many kinds of bugs. Running QEMU on Valgrind with x86_64 hosts was not possible because Valgrind aborts when mem

[Qemu-devel] [PATCH v2 2/4] softfloat: Avoid uint16 type conflict on Darwin

2011-10-31 Thread Andreas Färber
In file included from ./bswap.h:7, from ./qemu-common.h:106, from ./qemu-aio.h:17, from ./Block.h:4, from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/FSEvents.h:28, fr

[Qemu-devel] [PATCH v2 1/4] MAINTAINERS: Add Cocoa maintainer

2011-10-31 Thread Andreas Färber
Degrade cocoa.m from Maintained to Odd Fixes. Signed-off-by: Andreas Färber Cc: Anthony Liguori --- MAINTAINERS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2b4c5d7..c08951c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -446,6 +446

[Qemu-devel] [PATCH v2 0/4] Cocoa patches for 1.0

2011-10-31 Thread Andreas Färber
Hello, Here's an updated series, including a runtime abort fix and a GUI bugfix. Note: Patch 3/4 touches generic code. Regards, Andreas Andreas Färber (4): MAINTAINERS: Add Cocoa maintainer softfloat: Avoid uint16 type conflict on Darwin vl.c: Guard against GThread double-initialization

Re: [Qemu-devel] [PATCH] linux-user: add binfmt wrapper for argv[0] handling

2011-10-31 Thread Riku Voipio
On Sat, Oct 29, 2011 at 08:08:39PM +0200, Alexander Graf wrote: > > When using qemu's linux-user binaries through binfmt, argv[0] gets lost > > along the execution because qemu only gets passed in the full file name > > to the executable while argv[0] can be something completely different. > > > >

[Qemu-devel] KVM call agenda for November 1st

2011-10-31 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Thanks, Juan.

[Qemu-devel] KVM call agenda for November 1st

2011-10-31 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Thanks, Juan. PD. Tomorrow is a Spanish holiday, so I would not attend the call.

Re: [Qemu-devel] [PATCH] Support running QEMU on Valgrind

2011-10-31 Thread Stefan Weil
Am 31.10.2011 19:13, schrieb Anthony Liguori: On 10/30/2011 07:07 AM, Stefan Weil wrote: Valgrind is a tool which can automatically detect many kinds of bugs. Running QEMU on Valgrind with x86_64 hosts was not possible because Valgrind aborts when memalign is called with an alignment larger tha

Re: [Qemu-devel] [PATCH] Support running QEMU on Valgrind

2011-10-31 Thread Stefan Weil
Am 31.10.2011 19:30, schrieb Markus Armbruster: Copies are evil because we need to pick the one version that's right for all our users. Repeatedly. That's okay (sort of) when there's a tight coupling, and there's really only one admissible version. Or it may be a lesser evil when the thing copi

[Qemu-devel] [PATCH v2 1/3] cmd: Fix coding style in cmd.c

2011-10-31 Thread Pavel Borzenkov
Before the next patches, fix coding style of the affected functions. Signed-off-by: Pavel Borzenkov --- cmd.c | 168 - 1 files changed, 82 insertions(+), 86 deletions(-) diff --git a/cmd.c b/cmd.c index f77897e..a6e3ef4 100644 ---

[Qemu-devel] [PATCH v2 3/3] cmd: Fix potential memory leak

2011-10-31 Thread Pavel Borzenkov
Signed-off-by: Pavel Borzenkov --- cmd.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd.c b/cmd.c index 75415d8..0806e18 100644 --- a/cmd.c +++ b/cmd.c @@ -329,16 +329,21 @@ char **breakline(char *input, int *count) int c = 0; char *p; char **r

[Qemu-devel] [PATCH v2 2/3] cmd: Fix potential NULL pointer dereference

2011-10-31 Thread Pavel Borzenkov
Signed-off-by: Pavel Borzenkov --- cmd.c | 11 +++ 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/cmd.c b/cmd.c index a6e3ef4..75415d8 100644 --- a/cmd.c +++ b/cmd.c @@ -47,7 +47,7 @@ compare(const void *a, const void *b) void add_command(const cmdinfo_t *ci) { -

[Qemu-devel] [PATCH v2 0/3] Misc small fixes in cmd.c

2011-10-31 Thread Pavel Borzenkov
The first patch fixes coding style of the functions affected by next two patches. Second patch fixes potential NULL pointer dereference (return value of realloc is not checked). Third patch fixes potential memory leak (for the case when realloc returns NULL). Pavel Borzenkov (3): cmd: Fix coding

Re: [Qemu-devel] [PATCH] Support running QEMU on Valgrind

2011-10-31 Thread Stefan Weil
Am 31.10.2011 19:22, schrieb Daniel P. Berrange: On Sun, Oct 30, 2011 at 01:07:26PM +0100, Stefan Weil wrote: Valgrind is a tool which can automatically detect many kinds of bugs. Running QEMU on Valgrind with x86_64 hosts was not possible because Valgrind aborts when memalign is called with an

[Qemu-devel] [PATCH v3 3/4] Add cap reduction support to enable use as SUID

2011-10-31 Thread Corey Bryant
The ideal way to use qemu-bridge-helper is to give it an fscap of using: setcap cap_net_admin=ep qemu-bridge-helper Unfortunately, most distros still do not have a mechanism to package files with fscaps applied. This means they'll have to SUID the qemu-bridge-helper binary. To improve security

[Qemu-devel] [PATCH v3 1/4] Add basic version of bridge helper

2011-10-31 Thread Corey Bryant
This patch adds a helper that can be used to create a tap device attached to a bridge device. Since this helper is minimal in what it does, it can be given CAP_NET_ADMIN which allows qemu to avoid running as root while still satisfying the majority of what users tend to want to do with tap devices

[Qemu-devel] [PATCH v3 0/4] -net bridge: rootless bridge support for qemu

2011-10-31 Thread Corey Bryant
With qemu it is possible to run a guest from an unprivileged user but if we wanted to communicate with the outside world we had to switch to root. We address this problem by introducing a new network backend and a new network option for -net tap. This is less flexible when compared to existing -n

[Qemu-devel] [PATCH v3 4/4] Add support for net bridge

2011-10-31 Thread Corey Bryant
The most common use of -net tap is to connect a tap device to a bridge. This requires the use of a script and running qemu as root in order to allocate a tap device to pass to the script. This model is great for portability and flexibility but it's incredibly difficult to eliminate the need to ru

[Qemu-devel] [PATCH v3 2/4] Add access control support to qemu bridge helper

2011-10-31 Thread Corey Bryant
We go to great lengths to restrict ourselves to just cap_net_admin as an OS enforced security mechanism. However, we further restrict what we allow users to do to simply adding a tap device to a bridge interface by virtue of the fact that this is the only functionality we expose. This is not good

Re: [Qemu-devel] [PATCH] Support running QEMU on Valgrind

2011-10-31 Thread Markus Armbruster
Stefan Weil writes: > Am 31.10.2011 07:38, schrieb Markus Armbruster: >> Alexander Graf writes: >>> On 30.10.2011, at 13:07, Stefan Weil wrote: Valgrind is a tool which can automatically detect many kinds of bugs. Running QEMU on Valgrind with x86_64 hosts was not possible because

Re: [Qemu-devel] [PATCH] Support running QEMU on Valgrind

2011-10-31 Thread Daniel P. Berrange
On Sun, Oct 30, 2011 at 01:07:26PM +0100, Stefan Weil wrote: > Valgrind is a tool which can automatically detect many kinds of bugs. > > Running QEMU on Valgrind with x86_64 hosts was not possible because > Valgrind aborts when memalign is called with an alignment larger than > 1 MiB. QEMU normall

Re: [Qemu-devel] [PATCH] Support running QEMU on Valgrind

2011-10-31 Thread Anthony Liguori
On 10/30/2011 07:07 AM, Stefan Weil wrote: Valgrind is a tool which can automatically detect many kinds of bugs. Running QEMU on Valgrind with x86_64 hosts was not possible because Valgrind aborts when memalign is called with an alignment larger than 1 MiB. QEMU normally uses 2 MiB on Linux x86_

Re: [Qemu-devel] [PATCH v3 01/13] remove unused function

2011-10-31 Thread Anthony Liguori
Are you planning on spinning a v4 with TeLeMan's suggestions by tomorrow? Regards, Anthony Liguori On 10/21/2011 11:26 AM, Paolo Bonzini wrote: Reviewed-by: Anthony Liguori Signed-off-by: Paolo Bonzini --- hw/mac_dbdma.c |5 - hw/mac_dbdma.h |1 - 2 files changed, 0 insertions(

Re: [Qemu-devel] [PATCH v3 0/3] TLS abstraction layer for thread-local cpu_single_env on Linux

2011-10-31 Thread Anthony Liguori
On 10/31/2011 08:40 AM, Peter Maydell wrote: An early ping since I have no idea who counts as the submaintainer for this patchset and it definitely needs to go in for 1.0... I'm in the process of testing them and will apply provided nothing breaks. Regards, Anthony Liguori thanks -- PMM O

Re: [Qemu-devel] [PATCH] hw/9pfs: use g_vasprintf() instead of rolling our own

2011-10-31 Thread Aneesh Kumar K.V
On Mon, 31 Oct 2011 11:49:33 +, Stefan Hajnoczi wrote: > Markus Armbruster sent fixes for va_list vararg > issues in v9fs_string_alloc_printf(). It turns out the function > duplicates g_vasprintf() and can therefore be eliminated entirely. > > Signed-off-by: Stefan Hajnoczi Reviewed-by:

[Qemu-devel] [PATCH v2] dma: Avoid reentrancy in DMA transfer handlers

2011-10-31 Thread Kevin Wolf
With the conversion of the block layer to coroutines, bdrv_read/write have changed to run a nested event loop that calls qemu_bh_poll. Consequently a scheduled BH can be called while a DMA transfer handler runs and this means that DMA_run becomes reentrant. Devices haven't been designed to cope wi

Re: [Qemu-devel] [PATCH] dma: Avoid reentrancy in DMA transfer handlers

2011-10-31 Thread Kevin Wolf
Am 31.10.2011 17:00, schrieb Kevin Wolf: > Am 31.10.2011 16:34, schrieb Paolo Bonzini: >> On 10/31/2011 03:46 PM, Kevin Wolf wrote: Hmm, I think you should set rearm = 1 to ensure the BH is run when ultimately you leave the sync read. Sorry for not spotting this before. >>> >>> I was a

Re: [Qemu-devel] Problem under OSX Lion: GThread-ERROR **: GThread system may only be initialized once

2011-10-31 Thread Andreas Färber
Am 31.10.2011 17:36, schrieb Daniel P. Berrange: > On Mon, Oct 31, 2011 at 09:25:26AM -0700, Juan Pineda wrote: >> The current Qemu master branch crashes under OSX with a GThread error. >> Commenting out vlc.c line 2188 (call to g_thread_init) allows it to run >> successfully. > > As a general rul

Re: [Qemu-devel] [PATCH v3 0/3] TLS abstraction layer for thread-local cpu_single_env on Linux

2011-10-31 Thread Jan Kiszka
On 2011-10-31 14:40, Peter Maydell wrote: > An early ping since I have no idea who counts as the submaintainer > for this patchset and it definitely needs to go in for 1.0... I think it's rather a central system this touches. So it's likely a super-maintainer thing. Anyway, you have my ack on the

Re: [Qemu-devel] [PATCH v3 03/13] qemu-timer: move common code to qemu_rearm_alarm_timer

2011-10-31 Thread Stefan Weil
Am 31.10.2011 11:05, schrieb Paolo Bonzini: On 10/31/2011 08:23 AM, TeLeMan wrote: >static void qemu_rearm_alarm_timer(struct qemu_alarm_timer *t) >{ > -if (!alarm_has_dynticks(t)) > +int64_t nearest_delta_ns; > +assert(alarm_has_dynticks(t)); "mmtimer" and "win32" alarms

Re: [Qemu-devel] [PATCH] Support running QEMU on Valgrind

2011-10-31 Thread Stefan Weil
Am 31.10.2011 07:38, schrieb Markus Armbruster: Alexander Graf writes: On 30.10.2011, at 13:07, Stefan Weil wrote: Valgrind is a tool which can automatically detect many kinds of bugs. Running QEMU on Valgrind with x86_64 hosts was not possible because Valgrind aborts when memalign is called

  1   2   3   >