Re: [RFC PATCH 1/2] spapr: Report correct GTSE support via ov5

2022-04-01 Thread Aneesh Kumar K.V
David Gibson writes: > On Mon, Mar 14, 2022 at 07:10:10PM -0300, Fabiano Rosas wrote: >> David Gibson writes: >> >> > On Tue, Mar 08, 2022 at 10:23:59PM -0300, Fabiano Rosas wrote: >> ... >> To satisfy TCG we could keep a spapr capability as ON and usually the >> guest would pass cap-gtse=off

Re: [PATCH] spapr_numa.c: FORM2 table handle nodes with no distance info

2021-11-07 Thread Aneesh Kumar K.V
Daniel Henrique Barboza writes: > On 11/5/21 10:51, Nicholas Piggin wrote: >> A configuration that specifies multiple nodes without distance info >> results in the non-local points in the FORM2 matrix having a distance of >> 0. This causes Linux to complain "Invalid distance value range" because

Re: [RFC PATCH 6/8] nvdimm: add PPC64 'device-node' property

2021-06-15 Thread Aneesh Kumar K.V
Daniel Henrique Barboza writes: > The spapr-nvdimm driver is able to operate in two ways. The first > one is as a regular memory in which the NUMA node of the parent > pc-dimm class is used. The second mode, as persistent memory, allows for > a different NUMA node to be used based on the locality

Re: [PATCH v4 0/3] nvdimm: Enable sync-dax property for nvdimm

2021-05-04 Thread Aneesh Kumar K.V
On 5/4/21 11:13 AM, Pankaj Gupta wrote: What this patch series did was to express that property via a device tree node and guest driver enables a hypercall based flush mechanism to ensure persistence. Would VIRTIO (entirely asynchronous, no trap at host side) based mechanism is better th

Re: [PATCH v4 0/3] nvdimm: Enable sync-dax property for nvdimm

2021-05-03 Thread Aneesh Kumar K.V
On 5/4/21 1:11 AM, Dan Williams wrote: On Mon, May 3, 2021 at 7:06 AM Shivaprasad G Bhat wrote: . The proposal that "sync-dax=unsafe" for non-PPC architectures, is a fundamental misrepresentation of how this is supposed to work. Rather than make "sync-dax" a first class citizen of th

Re: [PATCH v4 0/3] nvdimm: Enable sync-dax property for nvdimm

2021-05-01 Thread Aneesh Kumar K.V
On 5/1/21 12:44 AM, Dan Williams wrote: Some corrections to terminology confusion below... ... file on the host in case of file backed v-nvdimms. This is addressed by virtio-pmem in case of x86_64 by making explicit flushes translating to fsync at qemu. Note that virtio-pmem was a pro

Re: [PATCH v4 0/3] nvdimm: Enable sync-dax property for nvdimm

2021-04-29 Thread Aneesh Kumar K.V
On 4/29/21 9:25 PM, Stefan Hajnoczi wrote: On Wed, Apr 28, 2021 at 11:48:21PM -0400, Shivaprasad G Bhat wrote: The nvdimm devices are expected to ensure write persistence during power failure kind of scenarios. The libpmem has architecture specific instructions like dcbf on POWER to flush the c

Re: [PATCH v3 2/3] spapr: nvdimm: Implement H_SCM_FLUSH hcall

2021-03-24 Thread Aneesh Kumar K.V
On 3/24/21 8:37 AM, David Gibson wrote: On Tue, Mar 23, 2021 at 09:47:38AM -0400, Shivaprasad G Bhat wrote: The patch adds support for the SCM flush hcall for the nvdimm devices. To be available for exploitation by guest through the next patch. The hcall expects the semantics such that the flus

Re: [PATCH v3 3/3] spapr: nvdimm: Enable sync-dax device property for nvdimm

2021-03-24 Thread Aneesh Kumar K.V
On 3/24/21 8:39 AM, David Gibson wrote: On Tue, Mar 23, 2021 at 09:47:55AM -0400, Shivaprasad G Bhat wrote: The patch adds the 'sync-dax' property to the nvdimm device. When the sync-dax is 'off', the device tree property "hcall-flush-required" is added to the nvdimm node which makes the guest

Re: [Qemu-devel] [PATCH] 9pfs: deprecate handle backend

2018-01-08 Thread Aneesh Kumar K.V
ty reasons > > For all these reasons, the handle backend is now deprecated. > > [1] https://www.tuxera.com/community/posix-test-suite/ > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Greg Kurz > --- > > Aneesh, > > Even if I see the benefit of using file handl

Re: [Qemu-devel] [PATCH] MAINTAINERS: Drop Aneesh as 9pfs maintainer

2018-01-08 Thread Aneesh Kumar K.V
Greg Kurz writes: > Aneesh has been working on other topics for some time now. Let's reflect > that in the MAINTAINERS file, so that people stop Cc'ing him. > > Signed-off-by: Greg Kurz Acked-by: Aneesh Kumar K.V > --- > MAINTAINERS |2 -- > 1 file changed

Re: [Qemu-devel] [PATCH v4 1/3] 9pfs: forbid illegal path names

2016-08-30 Thread Aneesh Kumar K.V
Eric Blake writes: > [ Unknown signature status ] > On 08/30/2016 12:11 PM, Greg Kurz wrote: >> Empty path components don't make sense for most commands and may cause >> undefined behavior, depending on the backend. >> >> Also, the walk request described in the 9P spec [1] clearly shows that >>

Re: [Qemu-devel] [PATCH] 9pfs: add check for relative path

2016-08-10 Thread Aneesh Kumar K.V
P J P writes: > From: Prasad J Pandit > > At various places in 9pfs back-end, it creates full path by > concatenating two path strings. It could lead to a path > traversal issue if one of the parameter was a relative path. > Add check to avoid it. > > Reported-by: Felix Wilhelm > Signed-off-by:

[Qemu-devel] [PATCH] powerpc/mm: Update the WIMG check during H_ENTER

2016-06-17 Thread Aneesh Kumar K.V
inhibitted | memory conference) as valid values for wimg flags. Signed-off-by: Aneesh Kumar K.V --- hw/ppc/spapr_hcall.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index 2ba5cbdb194a..e011ed4b664b 100644 --- a/hw/ppc/spapr_hcall.c

Re: [Qemu-devel] [PATCH] hw/9pfs: Add CephFS support in VirtFS

2016-04-17 Thread Aneesh Kumar K.V
Greg Kurz writes: > On Tue, 15 Mar 2016 00:02:48 +0800 > Jevon Qiao wrote: > >> Ceph as a promising unified distributed storage system is widely used in the >> world of OpenStack. OpenStack users deploying Ceph for block (Cinder) and >> object (S3/Swift) are unsurprisingly looking at Manila and

Re: [Qemu-devel] [PATCH 2/2] hw/9pfs: fix alignment issue when host filesystem block size is larger than client msize

2016-02-17 Thread Aneesh Kumar K.V
Jevon Qiao writes: > Hi Aneesh, > > Thank you for reviewing my code, please see my reply in-line. > On 14/2/16 21:38, Aneesh Kumar K.V wrote: >> Jevon Qiao writes: >> >>> The following patch is to fix alignment issue when host filesystem block >>

Re: [Qemu-devel] [PATCH 2/2] hw/9pfs: fix alignment issue when host filesystem block size is larger than client msize

2016-02-14 Thread Aneesh Kumar K.V
Jevon Qiao writes: > The following patch is to fix alignment issue when host filesystem block > size > is larger than client msize. > > Thanks, > Jevon That is not the right format to send patch. You can send them as a series using git-send-email. > > From: Jevon Qiao > Date: Sun, 14 Feb 2016

Re: [Qemu-devel] [PATCH] add CephFS support in VirtFS

2016-02-13 Thread Aneesh Kumar K.V
> diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c > index f972731..385c01d 100644 > --- a/hw/9pfs/virtio-9p.c > +++ b/hw/9pfs/virtio-9p.c > @@ -1326,7 +1326,7 @@ out_nofid: > static int32_t get_iounit(V9fsPDU *pdu, V9fsPath *path) > { > struct statfs stbuf; > -int32_t iounit =

[Qemu-devel] [PATCH 16/25] 9pfs: factor out pdu_push_and_notify

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 6d32b81faa25..e97adc8ba3f2 100644 --- a/hw/9pfs/virtio-9p.c +++ b

[Qemu-devel] [PATCH 14/25] 9pfs: make pdu_{, un}marshal proper functions

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Factor out v9fs_iov_v{,un}marshal. Implement pdu_{,un}marshal with those functions. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- fsdev/9p-iov-marshal.c | 42 ++ fsdev/9p-iov-marshal.h | 5 + hw/9pfs/virtio-9p.c| 26

[Qemu-devel] [PULL 00/25] VirtFS update

2016-01-11 Thread Aneesh Kumar K.V
The following changes since commit a7e00e2536941a6e570b45b7ab4afec4505ff67e: petalogix-ml605: Set the MicroBlaze CPU version to 8.10.a (2016-01-07 14:57:26 +0100) are available in the git repository at: https://github.com/kvaneesh/qemu.git tags/for-upstream-signed for you to fetch changes

[Qemu-devel] [PATCH 07/25] 9pfs: rename virtio-9p-xattr{, -user}.{c, h} to 9p-xattr{, -user}.{c, h}

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu These three files are not virtio specific. Rename them to generic names. Fix comments and header inclusion in various files. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/9p-handle.c | 2 +- hw/9pfs/9p-local.c

[Qemu-devel] [PATCH 20/25] 9pfs: export pdu_{submit,alloc,free}

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu They will be used in later patches. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/9p.h| 3 +++ hw/9pfs/virtio-9p.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h index 9aeb8745cf20

[Qemu-devel] [PATCH 02/25] 9pfs: rename virtio-9p-handle.c to 9p-handle.c

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu This file is not virtio specific. Rename it to use generic name. Fix comment and remove unneeded inclusion of virtio.h. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/{virtio-9p-handle.c => 9p-handle.c} | 3 +-- hw/9pfs/Makefile.o

[Qemu-devel] [PATCH 23/25] 9pfs: rename virtio-9p.c to 9p.c

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Now that file only contains generic code. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/{virtio-9p.c => 9p.c} | 0 hw/9pfs/Makefile.objs | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename hw/9pfs/{virtio-9p.c => 9p.c} (100%) diff

[Qemu-devel] [PATCH 17/25] 9pfs: break out virtio_init_iov_from_pdu

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-device.c | 12 hw/9pfs/virtio-9p.c| 8 +--- hw/9pfs/virtio-9p.h| 2 ++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/hw/9pfs/virtio-9p-device.c b/hw

[Qemu-devel] [PATCH 18/25] 9pfs: break out 9p.h from virtio-9p.h

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Move out generic definitions from virtio-9p.h to 9p.h. Fix header inclusions. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/9p-handle.c | 2 +- hw/9pfs/9p-local.c | 2 +- hw/9pfs/9p-posix-acl.c | 2 +- hw/9pfs/9p-proxy.c | 2 +- hw

[Qemu-devel] [PATCH 19/25] 9pfs: factor out virtio_9p_push_and_notify

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu The new function resides in virtio specific file. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-device.c | 11 +++ hw/9pfs/virtio-9p.c| 8 +--- hw/9pfs/virtio-9p.h| 2 ++ 3 files changed, 14 insertions(+), 7 deletions

[Qemu-devel] [PATCH 24/25] 9pfs: factor out v9fs_device_{, un}realize_common

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/9p.c | 95 ++ hw/9pfs/9p.h | 2 + hw/9pfs/virtio-9p-device.c | 90 --- 3 files changed, 104

[Qemu-devel] [PATCH 06/25] 9pfs: rename virtio-9p-synth.{c, h} to 9p-synth.{c, h}

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu These two files are not virtio specific. Rename them to use generic names. Fix includes in various C files. Change define guards and comments in header files. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/{virtio-9p-synth.c => 9p-synth.c} | 2 +- hw/9

[Qemu-devel] [PATCH 03/25] 9pfs: rename virtio-9p-local.c to 9p-local.c

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu This file is not virtio specific. Rename it to use generic name. Fix comment and remove unneeded inclusion of virtio.h. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/{virtio-9p-local.c => 9p-local.c} | 3 +-- hw/9pfs/Makefile.objs

[Qemu-devel] [PATCH 10/25] fsdev: break out 9p-marshal.{c, h} from virtio-9p-marshal.{c, h}

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Break out some generic functions for marshaling 9p state. Pure code motion plus minor fixes for build system. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- Makefile | 2 +- fsdev/9p-marshal.c| 56 +++ fsdev/9p

[Qemu-devel] [PATCH 21/25] 9pfs: move handle_9p_output and make it static function

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu It's only used in virtio device. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-device.c | 34 ++ hw/9pfs/virtio-9p.c| 33 - hw/9pfs/virtio-9p.h| 1 - 3 files ch

[Qemu-devel] [PATCH 11/25] fsdev: rename virtio-9p-marshal.{c, h} to 9p-iov-marshal.{c, h}

2016-01-11 Thread Aneesh Kumar K.V
transport is going to have its own marshalling interface. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- Makefile| 2 +- fsdev/{virtio-9p-marshal.c => 9p-iov-marshal.c} | 110 +--- fsdev/9p-iov-marsha

[Qemu-devel] [PATCH 09/25] 9pfs: remove dead code

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Some structures in virtio-9p.h have been unused since 2011 when relevant functions switched to use coroutines. The declaration of pdu_packunpack and function do_pdu_unpack are useless. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.h | 68

[Qemu-devel] [PATCH 25/25] 9pfs: introduce V9fsVirtioState

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu V9fsState now only contains generic fields. Introduce V9fsVirtioState for virtio transport. Change virtio-pci and virtio-ccw to use V9fsVirtioState. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/9p.c | 11 +-- hw/9pfs/9p.h

[Qemu-devel] [PATCH 01/25] 9pfs: rename virtio-9p-coth.{c, h} to coth.{c, h}

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Those two files are not virtio specific. Rename them to use generic names. Fix includes in various C files. Change define guards and comments in header files. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/Makefile.objs| 2 +- hw/9pfs

[Qemu-devel] [PATCH 15/25] 9pfs: factor out virtio_pdu_{, un}marshal

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-device.c | 14 ++ hw/9pfs/virtio-9p.c| 6 ++ hw/9pfs/virtio-9p.h| 5 + 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/hw/9pfs/virtio-9p-device.c b

[Qemu-devel] [PATCH 12/25] 9pfs: PDU processing functions don't need to take V9fsState as argument

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu V9fsState can be referenced by pdu->s. Initialise that in device realization function. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-device.c | 1 + hw/9pfs/virtio-9p.c| 98 +- 2 files chan

[Qemu-devel] [PATCH 08/25] 9pfs: merge hw/virtio/virtio-9p.h into hw/9pfs/virtio-9p.h

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu The deleted file only contained V9fsConf which wasn't virtio specific. Merge that to the general header of 9pfs. Fixed header inclusions as I went along. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-device.c| 1 - hw/9pfs/virtio

[Qemu-devel] [PATCH 04/25] 9pfs: rename virtio-9p-posix-acl.c to 9p-posix-acl.c

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu This file is not virtio specific. Rename it to use generic name. Fix comment and remove unneeded inclusion of virtio.h. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/{virtio-9p-posix-acl.c => 9p-posix-acl.c} | 3 +-- hw/9pfs/Makefile.o

[Qemu-devel] [PATCH 22/25] 9pfs: rename virtio_9p_set_fd_limit to use v9fs_ prefix

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu It's not virtio specific. Signed-off-by: Wei Liu --- hw/9pfs/virtio-9p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 7fb05240987e..379fdcb2fe86 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -3

[Qemu-devel] [PATCH 13/25] 9pfs: PDU processing functions should start pdu_ prefix

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu This matches naming convention of pdu_marshal and pdu_unmarshal. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 88 ++--- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/hw/9pfs

[Qemu-devel] [PATCH 05/25] 9pfs: rename virtio-9p-proxy.{c, h} to 9p-proxy.{c, h}

2016-01-11 Thread Aneesh Kumar K.V
From: Wei Liu Those two files are not virtio specific. Rename them to use generic names. Fix includes in various C files. Change define guards and comments in header files. Signed-off-by: Wei Liu Signed-off-by: Aneesh Kumar K.V --- fsdev/virtfs-proxy-helper.c | 2 +- hw/9pfs

Re: [Qemu-devel] [PATCH v3 2/3] 9pfs: use V9fsBlob to transmit xattr

2016-01-11 Thread Aneesh Kumar K.V
Wei Liu writes: > On Mon, Jan 11, 2016 at 07:26:39PM +0530, Aneesh Kumar K.V wrote: > [...] >> > xattr_len = fidp->fs.xattr.len; >> > read_count = xattr_len - off; >> > @@ -1596,14 +1597,18 @@ static int v9fs_xattr_read(V9fsState *s, V9

Re: [Qemu-devel] [PATCH v3 2/3] 9pfs: use V9fsBlob to transmit xattr

2016-01-11 Thread Aneesh Kumar K.V
Wei Liu writes: > And make v9fs_pack static function. Now we only need to export > v9fs_{,un}marshal to device. > > Signed-off-by: Wei Liu > --- > v3: fix bug discovered by Aneesh > --- > fsdev/9p-iov-marshal.c | 4 ++-- > fsdev/9p-iov-marshal.h | 3 --- > hw/9pfs/9p.c | 21

Re: [Qemu-devel] [PATCH v2 12/27] 9pfs: use V9fsBlob to transmit xattr

2016-01-08 Thread Aneesh Kumar K.V
Wei Liu writes: > On Fri, Jan 08, 2016 at 02:00:31PM +0530, Aneesh Kumar K.V wrote: >> Wei Liu writes: >> >> > And make v9fs_pack static function. Now we only need to export >> > v9fs_{,un}marshal to device. >> > >> > Signed-off-by: Wei

Re: [Qemu-devel] [PATCH v2 00/27] 9pfs: disentangling virtio and generic code

2016-01-08 Thread Aneesh Kumar K.V
Wei Liu writes: > Hi all > > Version 2 of this series is even longer. :-) > > Back in 2015 summer one of our OPW interns Linda Jacobson explored the > possibility of making 9pfs work on Xen. It turned out lots of code in QEMU can > be reused. > > This patch series can be found at: > > git://xen

Re: [Qemu-devel] [PATCH v2 21/27] 9pfs: factor out virtio_9p_push_and_notify

2016-01-08 Thread Aneesh Kumar K.V
Wei Liu writes: > The new function resides in virtio specific file. > > Signed-off-by: Wei Liu > --- > v2: new, part of original "9pfs: break out generic code from > virtio-9p.{c,h}" > --- > hw/9pfs/virtio-9p-device.c | 11 +++ > hw/9pfs/virtio-9p.c| 8 +--- > hw/9pfs/v

Re: [Qemu-devel] [PATCH v2 12/27] 9pfs: use V9fsBlob to transmit xattr

2016-01-08 Thread Aneesh Kumar K.V
Wei Liu writes: > And make v9fs_pack static function. Now we only need to export > v9fs_{,un}marshal to device. > > Signed-off-by: Wei Liu > --- > fsdev/virtio-9p-marshal.c | 4 ++-- > fsdev/virtio-9p-marshal.h | 3 --- > hw/9pfs/virtio-9p.c | 21 + > 3 files changed

Re: [Qemu-devel] [PATCH v2 27/27] 9pfs: disentangle V9fsState

2016-01-07 Thread Aneesh Kumar K.V
Wei Liu writes: > V9fsState now only contains generic fields. Introduce V9fsVirtioState > for virtio transport. Change virtio-pci and virtio-ccw to use > V9fsVirtioState. Handle transport enumeration in generic routines. > Few comments below > Signed-off-by: Wei Liu > --- > hw/9pfs/9p.c

Re: [Qemu-devel] [PATCH 20/22] 9pfs: break out generic code from virtio-9p.{c, h}

2016-01-07 Thread Aneesh Kumar K.V
Wei Liu writes: > On Thu, Jan 07, 2016 at 10:27:13PM +0530, Aneesh Kumar K.V wrote: >> Wei Liu writes: >> >> > The vast majority of code in virtio-9p.c is actually generic code. >> > Rename that file to 9p.c and move virtio specific code to >> > virt

Re: [Qemu-devel] [PATCH 00/22] 9pfs: disentangling virtio and generic code

2016-01-07 Thread Aneesh Kumar K.V
Wei Liu writes: > Hi all > > Back in 2015 summer one of our OPW interns Linda Jacobson explored the > possibility of making 9pfs work on Xen. It turned out lots of code in QEMU can > be reused. > > This series refactors 9pfs related code: > > 1. Rename a bunch of files and functions to make clear

Re: [Qemu-devel] [PATCH 09/22] 9pfs: remove dead code

2016-01-07 Thread Aneesh Kumar K.V
Wei Liu writes: > Some structures virtio-9p.h have been unused since 2011 when relevant > functions switched to use coroutines. > > The declaration of pdu_packunpack and function do_pdu_unpack are > useless. > > The function virtio_9p_set_fd_limit is unused. > > Signed-off-by: Wei Liu > --- > h

Re: [Qemu-devel] [PATCH] mmap-alloc: use same backend for all mappings

2015-12-01 Thread Aneesh Kumar K.V
"Michael S. Tsirkin" writes: > On Tue, Dec 01, 2015 at 04:23:11PM +0530, Aneesh Kumar K.V wrote: >> "Michael S. Tsirkin" writes: >> >> > On Mon, Nov 30, 2015 at 02:46:31PM +0100, Greg Kurz wrote: >> >> On Mon, 30 N

Re: [Qemu-devel] [PATCH] mmap-alloc: use same backend for all mappings

2015-12-01 Thread Aneesh Kumar K.V
"Michael S. Tsirkin" writes: > On Mon, Nov 30, 2015 at 02:46:31PM +0100, Greg Kurz wrote: >> On Mon, 30 Nov 2015 15:06:33 +0200 >> "Michael S. Tsirkin" wrote: >> >> >> On ppc64, the address space is divided in 256MB-sized segments where all >> pages >> have the same size. This is a hw

Re: [Qemu-devel] [PATCH] MAINTAINERS: add maintainer to virtio-9p

2015-12-01 Thread Aneesh Kumar K.V
Greg Kurz writes: > As suggested by Paolo, I add myself as maintainer for virtio-9p. > > Signed-off-by: Greg Kurz Acked-by: Aneesh Kumar K.V > --- > MAINTAINERS |1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index bb1f3e

Re: [Qemu-devel] [PATCH 2/3] virtio-9p: add unrealize handler

2015-10-07 Thread Aneesh Kumar K.V
Stefan Hajnoczi writes: > On Mon, Oct 05, 2015 at 11:07:23AM +0200, Greg Kurz wrote: >> If the user tries to hot unplug a virtio-9p device, it seems to succeed but >> in fact: >> - virtio-9p coroutines thread pool and async queue are leaked >> - QEMU crashes in virtio_vmstate_change() if the user

Re: [Qemu-devel] [PATCH] virtio-9p: migrate virtio subsections

2015-09-19 Thread Aneesh Kumar K.V
Greg Kurz writes: > In a cross-endian setup, the virtio-9p device has state in @device_endian. It > must be migrated. > > Signed-off-by: Greg Kurz With 9p mounted, we don't support qemu migration. We have migration blocker added in v9fs_attach. > --- > hw/9pfs/virtio-9p-device.c | 11 +

Re: [Qemu-devel] [PATCH] virtio-9p: migrate virtio subsections

2015-09-19 Thread Aneesh Kumar K.V
Greg Kurz writes: > In a cross-endian setup, the virtio-9p device has state in @device_endian. It > must be migrated. > > Signed-off-by: Greg Kurz With 9p mounted, we don't support qemu migration. We still have migration blocker added in v9fs_attach. > --- > hw/9pfs/virtio-9p-device.c | 11

[Qemu-devel] [PULL] VirtFS update

2015-06-16 Thread Aneesh Kumar K.V
The following changes since commit 93f6d1c16036aaf34055d16f54ea770fb8d6d280: Merge remote-tracking branch 'remotes/kraxel/tags/pull-vga-20150615-1' into staging (2015-06-16 10:35:43 +0100) are available in the git repository at: https://github.com/kvaneesh/qemu.git tags/for-upstream-signed

[Qemu-devel] [PATCH 2/2] virtfs-proxy-helper: fail gracefully if socket path is too long

2015-06-16 Thread Aneesh Kumar K.V
From: Stefan Hajnoczi Replace the assertion check with graceful failure when the socket path is too long. Programs should not crash on invalid input. Print an error message and exit properly. Cc: Shannon Zhao Signed-off-by: Stefan Hajnoczi Signed-off-by: Aneesh Kumar K.V --- fsdev/virtfs

[Qemu-devel] [PATCH 1/2] virtfs-proxy-helper: add missing long option terminator

2015-06-16 Thread Aneesh Kumar K.V
-off-by: Aneesh Kumar K.V --- fsdev/virtfs-proxy-helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index a698e2dbb37b..91e8b9b7f1cf 100644 --- a/fsdev/virtfs-proxy-helper.c +++ b/fsdev/virtfs-proxy-helper.c @@ -49,6 +49,7

Re: [Qemu-devel] [PATCH 0/2] virtfs-proxy-helper: small fixes

2015-04-23 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > Stefan Hajnoczi writes: > >> On Mon, Mar 30, 2015 at 02:57:14PM +0100, Stefan Hajnoczi wrote: >>> These fixes are not critical but it wouldn't hurt to get them into QEMU 2.3. >>> I am not sure whether this is critical

Re: [Qemu-devel] [PATCH 0/2] virtfs-proxy-helper: small fixes

2015-04-23 Thread Aneesh Kumar K.V
Stefan Hajnoczi writes: > On Mon, Mar 30, 2015 at 02:57:14PM +0100, Stefan Hajnoczi wrote: >> These fixes are not critical but it wouldn't hurt to get them into QEMU 2.3. >> >> See patches for descriptions. >> >> Stefan Hajnoczi (2): >> virtfs-proxy-helper: add missing long option terminator

Re: [Qemu-devel] [PATCH v2] fsdev/virtfs-proxy-helper: Fix possible overflow

2015-03-30 Thread Aneesh Kumar K.V
Stefan Hajnoczi writes: > On Sat, Mar 14, 2015 at 10:00:16AM +0800, Shannon Zhao wrote: >> It's detected by coverity. As max of sockaddr_un.sun_path is >> sizeof(helper.sun_path), should check the length of source >> and use strncpy instead of strcpy. >> >> Signed-off-by: Shannon Zhao >> Signed

[Qemu-devel] [PATCH 1/6] 9pfs-local: simplify/optimize local_mapped_attr_path()

2015-03-16 Thread Aneesh Kumar K.V
() instead so we have consistent result. This also makes sure the function will do the right thing in corner cases (eg, empty pathname is given), when basename(3) return entirely another string. Signed-off-by: Michael Tokarev Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-local.c | 24

[Qemu-devel] [PATCH 2/6] 9pfs-proxy: tiny cleanups in proxy_pwritev and proxy_preadv

2015-03-16 Thread Aneesh Kumar K.V
r to each other Signed-off-by: Michael Tokarev Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-proxy.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/hw/9pfs/virtio-9p-proxy.c b/hw/9pfs/virtio-9p-proxy.c index 59c7445deab9..6bb191ee6ab8 100644

[Qemu-devel] [PATCH 3/6] hw/9pfs/virtio-9p-posix-acl: Fix out-of-bounds access

2015-03-16 Thread Aneesh Kumar K.V
From: Shannon Zhao It's detected by coverity. Fix out-of-bounds access of the function mp_dacl_listxattr. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-posix-acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[Qemu-devel] [PATCH 6/6] virtio: Fix memory leaks reported by Coverity

2015-03-16 Thread Aneesh Kumar K.V
From: Stefan Weil All four leaks are similar, so fix them in one patch. Success path was not doing memory free. Signed-off-by: Stefan Weil Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-local.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff

[Qemu-devel] [PULL] VirtFS update

2015-03-16 Thread Aneesh Kumar K.V
Hi, Please pull the below update for VirtFS The following changes since commit ee74801035b0b5f1fdfd4e31d3a53f511f91c804: Merge remote-tracking branch 'remotes/lalrae/tags/mips-20150311' into staging (2015-03-11 18:22:15 +) are available in the git repository at: https://github.com/kv

[Qemu-devel] [PATCH 4/6] fsdev/virtfs-proxy-helper: Fix improper use of negative value

2015-03-16 Thread Aneesh Kumar K.V
From: Shannon Zhao It's detected by coverity. Check the return value of proxy_marshal. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Aneesh Kumar K.V --- fsdev/virtfs-proxy-helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fsdev/virtfs-proxy-helpe

[Qemu-devel] [PATCH 5/6] virtfs-proxy: Fix possible overflow

2015-03-16 Thread Aneesh Kumar K.V
From: Shannon Zhao It's detected by coverity. The socket name specified should fit in the sockadd_un.sun_path. If not abort. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Aneesh Kumar K.V --- fsdev/virtfs-proxy-helper.c | 1 + hw/9pfs/virtio-9p-proxy.c | 4 ++

Re: [Qemu-devel] [PATCH v2] virtio: Fix memory leaks reported by Coverity

2015-03-16 Thread Aneesh Kumar K.V
Stefan Weil writes: > All four leaks are similar, so fix them in one patch. Ok had to spent some time to figure out which was the path that was not freeing memory. So added extra information to commit message. Success path was not doing memory free. Applied. > > Signed-off-by: Stefan Weil >

Re: [Qemu-devel] [PATCH] hw/9pfs/virtio-9p-proxy: Fix possible overflow

2015-03-16 Thread Aneesh Kumar K.V
Shannon Zhao writes: > It's detected by coverity. As max of sockaddr_un.sun_path is > sizeof(helper.sun_path), should check the length of source > and use strncpy instead of strcpy. > > Signed-off-by: Shannon Zhao > Signed-off-by: Shannon Zhao > --- > hw/9pfs/virtio-9p-proxy.c | 3 ++- > 1 fil

Re: [Qemu-devel] [PATCH v2] fsdev/virtfs-proxy-helper: Fix possible overflow

2015-03-15 Thread Aneesh Kumar K.V
Shannon Zhao writes: > It's detected by coverity. As max of sockaddr_un.sun_path is > sizeof(helper.sun_path), should check the length of source > and use strncpy instead of strcpy. updated such that, The socket name specified should fit in the sockadd_un.sun_path. If not abort. with that appl

Re: [Qemu-devel] [PATCH] fsdev/virtfs-proxy-helper: Fix improper use of negative value

2015-03-15 Thread Aneesh Kumar K.V
Shannon Zhao writes: > It's detected by coverity. Check the return value of proxy_marshal. > > Signed-off-by: Shannon Zhao > Signed-off-by: Shannon Zhao Applied > --- > fsdev/virtfs-proxy-helper.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev

Re: [Qemu-devel] [PATCH] hw/9pfs/virtio-9p-posix-acl: Fix out-of-bounds access

2015-03-13 Thread Aneesh Kumar K.V
Shannon Zhao writes: > It's detected by coverity. Fix out-of-bounds access of the function > mp_dacl_listxattr. > > Signed-off-by: Shannon Zhao > Signed-off-by: Shannon Zhao > --- > hw/9pfs/virtio-9p-posix-acl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/9pfs/

Re: [Qemu-devel] [PATCH v2] 9pfs-local: simplify/optimize local_mapped_attr_path()

2015-03-12 Thread Aneesh Kumar K.V
Michael Tokarev writes: > Omit one unnecessary memory allocation for components > of the path and create the resulting path directly given > lengths of the components. > > Do not use basename(3) because there are 2 versions of > this function which differs when argument ends with > slash characte

Re: [Qemu-devel] [PATCH v2] 9pfs-proxy: tiny cleanups in proxy_pwritev and proxy_preadv

2015-03-12 Thread Aneesh Kumar K.V
Michael Tokarev writes: > Don't compare syscall return with -1, use "<0" condition. > Don't introduce useless local variables when we already > have similar variable > Rename local variable to be consistent with other usages > Finally make the two methods, read and write, to be similar to each ot

Re: [Qemu-devel] [PATCH 1/3] 9pfs-proxy: simplify error handling

2015-03-11 Thread Aneesh Kumar K.V
Michael Tokarev writes: > 10.03.2015 20:41, Aneesh Kumar K.V пишет: >> Michael Tokarev writes: >> >>> 08.03.2015 19:27, Aneesh Kumar K.V wrote: >>>> Michael Tokarev writes: >>> [] >>>>> Actually, after reading almost whole 9pfs and

Re: [Qemu-devel] [PATCH 1/3] 9pfs-proxy: simplify error handling

2015-03-10 Thread Aneesh Kumar K.V
Michael Tokarev writes: > 08.03.2015 19:27, Aneesh Kumar K.V wrote: >> Michael Tokarev writes: > [] >>> Actually, after reading almost whole 9pfs and fsdev code, I can >>> say with great confidence this code is nearly hopeless. >> >> Is that about t

Re: [Qemu-devel] [PATCH 2/7] 9pfs: Fix warnings from Sparse

2015-03-10 Thread Aneesh Kumar K.V
Michael S. Tsirkin > Cc: Aneesh Kumar K.V > Signed-off-by: Stefan Weil Reviewed-by: Aneesh Kumar K.V > --- > hw/9pfs/virtio-9p-handle.c | 4 ++-- > hw/9pfs/virtio-9p-local.c | 4 ++-- > hw/9pfs/virtio-9p-proxy.c | 4 ++-- > hw/9pfs/virtio-9p.c| 3 ++- > 4 file

Re: [Qemu-devel] [PATCH 1/5] 9pfs-proxy: simplify v9fs_request(), P1

2015-03-10 Thread Aneesh Kumar K.V
Michael Tokarev writes: > 08.03.2015 19:39, Aneesh Kumar K.V wrote: >> Michael Tokarev writes: >> >>> This simplifies code in v9fs_request() a bit by replacing several >>> ifs with a common variable check and rearranging error/cleanup >>>

Re: [Qemu-devel] [PATCH] 9pfs-local: simplify/optimize local_mapped_attr_path()

2015-03-10 Thread Aneesh Kumar K.V
Michael Tokarev writes: > Omit one unnecessary memory allocation for components of the path > and create the resulting path directly given lengths of the components. > > This uses (char*) cast because basename() accepts a char* without const, > for unknown reason. Maybe it is better to use strrc

Re: [Qemu-devel] [PATCH] 9pfs-proxy: tiny cleanups in proxy_pwritev and proxy_preadv

2015-03-10 Thread Aneesh Kumar K.V
Michael Tokarev writes: > Don't compare syscall return with -1, use "<0" condition. > Don't introduce useless local variables when we already > have similar variable > Rename local variable to be consistent with other usages > > Signed-off-by: Michael Tokarev > --- > hw/9pfs/virtio-9p-proxy.c |

Re: [Qemu-devel] [PATCH 1/5] 9pfs-proxy: simplify v9fs_request(), P1

2015-03-08 Thread Aneesh Kumar K.V
Michael Tokarev writes: > This simplifies code in v9fs_request() a bit by replacing several > ifs with a common variable check and rearranging error/cleanup > code a bit. Is this -V2 of http://mid.gmane.org/b98f675750ef0535cab41225240db1657fc2fe00.1425678142.git@msgid.tls.msk.ru I am slight

Re: [Qemu-devel] [PATCH 1/3] 9pfs-proxy: simplify error handling

2015-03-08 Thread Aneesh Kumar K.V
Michael Tokarev writes: > 07.03.2015 23:37, Eric Blake wrote: >> On 03/06/2015 02:43 PM, Michael Tokarev wrote: >>> All filesystem methods that call common v9fs_request() function >>> also convert return value to errno. Move this conversion to the >>> common function and remove redundand error h

Re: [Qemu-devel] [PATCH 1/3] 9pfs-proxy: simplify error handling

2015-03-08 Thread Aneesh Kumar K.V
Michael Tokarev writes: > All filesystem methods that call common v9fs_request() function > also convert return value to errno. Move this conversion to the > common function and remove redundand error handling in methods. > > I didn't remove local `retval' variable in simple functions to > keep

Re: [Qemu-devel] 9pfs-proxy: -retval vs errno vs -1

2015-03-05 Thread Aneesh Kumar K.V
Michael Tokarev writes: > Another interesting tidbit is in hw/9pfs/virtio-9p-proxy.c. > > All filesystem methods use common v9fs_request() function, > which returns -errno. So far so good. > > Now, *all* places which call this function, does this: > > retval = v9fs_request(...); > if (re

Re: [Qemu-devel] 9pfs-local: open2() deletes existing data?

2015-03-05 Thread Aneesh Kumar K.V
Michael Tokarev writes: > I was looking at various interesting functions in hw/9pfs/virtio-9p-local.c > and noticed local_open2() which basically tries to open a file in a > filesystem, and if that is successful, it tries to set file credentials > using a configured mechanism, and if that fails,

[Qemu-devel] [PATCH] target-ppc: Use right page size with hash table lookup

2015-01-26 Thread Aneesh Kumar K.V
0x 0x Signed-off-by: Aneesh Kumar K.V --- target-ppc/cpu.h| 1 + target-ppc/mmu-hash64.c | 37 ++--- target-ppc/mmu-hash64.h | 3 +++ 3 files changed, 30 insertions(+), 11 deletions(-) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h

[Qemu-devel] [PATCH 1/2] hw/9pfs: Use little-endian format for xattr values

2014-09-04 Thread Aneesh Kumar K.V
hosts. NOTE: This will break big-endian host that have virtFS exports using security model mapped-xattr. They will have to use external tools to convert the xattr to little-endian format. Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-local.c | 44

[Qemu-devel] [PATCH 2/2] hw/9pfs: Don't return type from host in readdir on local 9p filesystem

2014-09-04 Thread Aneesh Kumar K.V
sufficient to just set d_type to DT_UNKNOWN, so guest will know to look it up separately. This is a -stable material. Signed-off-by: Bastian Blank Signed-off-by: Michael Tokarev Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-local.c | 5 - 1 file changed, 4 insertions(+), 1 deletion

[Qemu-devel] [PULL] VirtFS update

2014-09-04 Thread Aneesh Kumar K.V
m for you to fetch changes up to 840a1bf2832f5783d1070547fcb460216fc219e5: hw/9pfs: Don't return type from host in readdir on local 9p filesystem (2014-09-04 10:51:13 -0500) -------- Aneesh Kumar K.V (1): hw/9pfs: Use little-en

Re: [Qemu-devel] qemu-system-sparc64 hang (possibly virtio related?) with 2.1

2014-09-03 Thread Aneesh Kumar K.V
Alexander Graf writes: > On 03.09.14 23:21, Aneesh Kumar K.V wrote: >> "Aneesh Kumar K.V" writes: >> >>> Stefan Hajnoczi writes: >>> >>>> On Tue, Sep 02, 2014 at 02:12:45PM +0100, Mark Cave-Ayland wrote: >>>>> Fortunat

Re: [Qemu-devel] Don't return type from host in readdir on local 9p filesystem

2014-09-03 Thread Aneesh Kumar K.V
Michael Tokarev writes: > From: Bastian Blank > > When using mapped mode in 9pfs, readdir implementation > should not return file type in d_type from the host > readdir, instead, it should use the type stored in > the extended attributes. Since d_type is optional > and reading ext attrs for ev

Re: [Qemu-devel] qemu-system-sparc64 hang (possibly virtio related?) with 2.1

2014-09-03 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > Stefan Hajnoczi writes: > >> On Tue, Sep 02, 2014 at 02:12:45PM +0100, Mark Cave-Ayland wrote: >>> Fortunately I can reproduce the issue with a debug-enabled build of >>> qemu-system-sparc64, and I've posted a backtra

Re: [Qemu-devel] qemu-system-sparc64 hang (possibly virtio related?) with 2.1

2014-09-03 Thread Aneesh Kumar K.V
Stefan Hajnoczi writes: > On Tue, Sep 02, 2014 at 02:12:45PM +0100, Mark Cave-Ayland wrote: >> Fortunately I can reproduce the issue with a debug-enabled build of >> qemu-system-sparc64, and I've posted a backtrace obtained during the hung >> state at http://www.ilande.co.uk/tmp/sparc64-gdb-bt.tx

Re: [Qemu-devel] 9p mapped-* security model infos are architecture-specific

2014-08-25 Thread Aneesh Kumar K.V
Michael Tokarev writes: > I haven't noticed this email - which is almost a month old now - until today. > So replying now... > > 30.07.2014 21:43, Aneesh Kumar K.V wrote: >> "Aneesh Kumar K.V" writes: >> >>> Michael Tokarev writes: >>>

  1   2   3   4   5   6   7   >