Re: [Xen-devel] Outreachy 2016

2016-03-21 Thread Paulina Szubarczyk
Hi ​Lars, ​Thank you for your answer. I am looking forward to further information from you. ​Thanks and regards , Paulina Szubarczyk On 21 March 2016 at 10:57, Lars Kurth wrote: > Paulina, > Roger was on vacation last week. He is back now. Given that most of our > possible applicants

Re: [Xen-devel] Outreachy 2016

2016-03-21 Thread Paulina Szubarczyk
Hi Roger, I installed Xen from the source yesterday. ​Thanks and regards , Paulina Szubarczyk On 21 March 2016 at 17:28, Roger Pau Monné wrote: > On Mon, 21 Mar 2016, Paulina Szubarczyk wrote: > > > Hi ​Lars, > > > > ​Thank you for your answer. I am looking forwar

Re: [Xen-devel] Outreachy bite-sized tasks

2016-03-23 Thread Paulina Szubarczyk
Hi, Thank you for the proposed tasks. I would like to work on the second one, fixing the return codes in xl. Regards, Paulina Szubarczyk On 23 March 2016 at 16:32, Roger Pau Monné wrote: > Hello, > > First of all, thanks for your interest in the Xen Project, and for wanting > to

[Xen-devel] xl: improve return codes for more xl comands

2016-03-25 Thread Paulina Szubarczyk
Hi, This regards bite-size task for Outreachy program [0]. I followed the patches prepared by Harmandeep [1] where functions in xl_cmdimpl.c have the pattern: "*main_foo() is treated somewhat as a regular main(), it is changed to return EXIT_SUCCESS or EXIT_FAILURE. *Functions that are not main

[Xen-devel] [PATCH 00/11] Return failure on failure for more xl commands

2016-03-30 Thread Paulina Szubarczyk
This patch includes the changes from a patch prepared by George Dunlap [0] and expands them to more xl commands. This is my bite-sized outreachy project [1][2]. Return failure when the command failed for more xl commands: - mem-set - cd-insert - pci-* -- freemem -- tmem-* This makes xl more usef

[Xen-devel] [PATCH 03/11] libxl_pci: Return error code for more pci-* functions

2016-03-30 Thread Paulina Szubarczyk
Return rc value instead of always 0. Signed-off-by: Paulina Szubarczyk CC: Wei Liu CC: Ian Jackson CC: Dario Faggioli CC: Ian Campbell --- tools/libxl/libxl_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c

[Xen-devel] [PATCH 04/11] xl: improve return code for freemem function

2016-03-30 Thread Paulina Szubarczyk
- Return 0 or 1 for freemem function - Correct the condition of checking return values of freemem. Signed-off-by: Paulina Szubarczyk CC: Wei Liu CC: Ian Jackson CC: Dario Faggioli CC: Ian Campbell --- tools/libxl/xl_cmdimpl.c | 26 +++--- 1 file changed, 11

[Xen-devel] [PATCH 06/11] xl: Return an error on failed cd-insert

2016-03-30 Thread Paulina Szubarczyk
ILURE} for main_cd_*() functions * Use 'r' for non-libxl return code, as specified in CODING_STYLE Signed-off-by: George Dunlap Signed-off-by: Paulina Szubarczyk CC: Wei Liu CC: Ian Jackson CC: Dario Faggioli CC: Ian Campbell --- tools/libxl/xl_cmdimpl.c | 26 ++-

[Xen-devel] [PATCH 10/11] libxl: Fix libxl_set_memory_target return value

2016-03-30 Thread Paulina Szubarczyk
libxl_set_memory_target seems to have the following return values: * 1 on failure, if the failure happens because of a xenstore error *or* * invalid target * -1 if the setmaxmem hypercall * -errno if the set_pod_target hypercall target fails * 0 on success Make it consistently return ERROR_FAI

[Xen-devel] [PATCH 01/11] libxl_pci: improve return codes for more xl commands

2016-03-30 Thread Paulina Szubarczyk
Return error code instead of always 0. Remove assigned-only ret variable in libxl__create_pci_backend. Signed-off-by: Paulina Szubarczyk CC: Wei Liu CC: Ian Jackson CC: Dario Faggioli CC: Ian Campbell --- tools/libxl/libxl_pci.c | 8 ++-- 1 file changed, 2 insertions(+), 6

[Xen-devel] [PATCH 08/11] xl: improve main_tmem_* return codes

2016-03-30 Thread Paulina Szubarczyk
those functions. Signed-off-by: Paulina Szubarczyk CC: Wei Liu CC: Ian Jackson CC: Dario Faggioli CC: Ian Campbell --- tools/libxl/xl_cmdimpl.c | 51 ++-- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b

[Xen-devel] [PATCH 05/11] xl: Make set_memory_target return an error code on failure

2016-03-30 Thread Paulina Szubarczyk
Change a 'long long' to "int64_t" while we're at it. Signed-off-by: George Dunlap Signed-off-by: Paulina Szubarczyk - Move rc -> shell return code translation into set_memory_{max,target} - Use EXIT_{SUCCESS,FAILURE} for main_mem*() function - Use 0/1 as retu

[Xen-devel] [PATCH 07/11] xl: Return error codes for pci* commands

2016-03-30 Thread Paulina Szubarczyk
declaration; but in these cases, having a "goto out" that jumped over nothing but an "r = 0" seemed a bit pointless. Signed-off-by: George Dunlap Signed-off-by: Paulina Szubarczyk CC: Wei Liu CC: Ian Jackson CC: Dario Faggioli CC: Ian Campbell --- tools/lib

[Xen-devel] [PATCH 09/11] libxl: Remove pointless hypercall from libxl_set_memory_target

2016-03-30 Thread Paulina Szubarczyk
There's no obvious reason for the call to xc_domain_getinfolist -- all it seems to be doing is checking that the domain exists; but if it doesn't exist, it will have already failed by this point. NB that this will change the return value for libxl_set_memory_target: now it will return 0 on success

[Xen-devel] [PATCH 11/11] libxl: libxl_tmem functions improving coding style

2016-03-30 Thread Paulina Szubarczyk
In accordance with CODING_SYTLE: - Use 'r' for return values to functions whose return values are a different error space (like xc_tmem_control, xc_tmem_auth) Signed-off-by: Paulina Szubarczyk CC: Wei Liu CC: Ian Jackson CC: Dario Faggioli CC: Ian Campbell --- tools/libxl/li

[Xen-devel] [PATCH 02/11] libxl_pci: clean an unused return variable

2016-03-30 Thread Paulina Szubarczyk
libxl_device_pci_assignable_list returns: - list of the libxl_device_pci - NULL in case of error or lack of devices the rc variable is unused as return code. Signed-off-by: Paulina Szubarczyk CC: Wei Liu CC: Ian Jackson CC: Dario Faggioli CC: Ian Campbell --- tools/libxl

Re: [Xen-devel] [PATCH 00/11] Return failure on failure for more xl commands

2016-03-30 Thread Paulina Szubarczyk
coding style, change 'rc -> r' Paulina On 30 March 2016 at 17:14, Wei Liu wrote: > On Wed, Mar 30, 2016 at 05:02:39PM +0200, Paulina Szubarczyk wrote: >> This patch includes the changes from a patch prepared by George Dunlap >> [0] and expands them to more xl command

Re: [Xen-devel] [PATCH 00/11] Return failure on failure for more xl commands

2016-04-01 Thread Paulina Szubarczyk
. Paulina On 31 March 2016 at 17:06, Wei Liu wrote: > On Wed, Mar 30, 2016 at 07:19:41PM +0200, Paulina Szubarczyk wrote: >> Yes, I was looking at wrong branch, I am sorry. The patches >> >> * {01-04,08,11} were not attached in the previous patch [0]. >> >> * {05,06

Re: [Xen-devel] Outreachy bite-sized tasks

2016-04-01 Thread Paulina Szubarczyk
t use HTML for emails to this list. > > On Wed, 2016-03-23 at 17:38 +0100, Paulina Szubarczyk wrote: >> Hi, >> >> Thank you for the proposed tasks. I would like to work on the second >> one, >> fixing the return codes in xl. >> > I just wanted to say that, si

[Xen-devel] [PATCH 03/10] libxl_pci: Return error code for more pci-* functions

2016-04-01 Thread Paulina Szubarczyk
Return rc value instead of allways 0. Signed-off-by: Paulina Szubarczyk --- tools/libxl/libxl_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index 6051ee4..e4a2c2c 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl

[Xen-devel] [PATCH 00/10] xl: improve coding style and return more failure on failure for more xl commands

2016-04-01 Thread Paulina Szubarczyk
This is my bite-sized outreachy project [1][2]. I resend it due to the mistake I made in the first try. The patch aims to improve coding_style and return failure for more xl commands: - pci-* -- tmem-* After rebase to staging it seems that the patch {09} cleaning libxl_set_memory_target() to r

[Xen-devel] [PATCH 05/10] xl_cmdimpl: improve return codes for memset commands

2016-04-01 Thread Paulina Szubarczyk
- Use EXIT_{SUCCESS,FAILURE} for main_mem*() function - Use 0/1 as return values of set_memory_{max,target} Signed-off-by: Paulina Szubarczyk --- tools/libxl/xl_cmdimpl.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b

[Xen-devel] [PATCH 07/10] Add return codes for pci-detach, pci-attach, pci-asssignable-add, and pci-assignable-remove.

2016-04-01 Thread Paulina Szubarczyk
t;r = 0" seemed a bit pointless. Signed-off-by: George Dunlap Signed-off-by: Paulina Szubarczyk --- tools/libxl/xl_cmdimpl.c | 78 ++-- 1 file changed, 56 insertions(+), 22 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmd

[Xen-devel] [PATCH 01/10] libxl_pci: improve return codes for more xl commands

2016-04-01 Thread Paulina Szubarczyk
Retrun error code instead of allways 0. Remove assigned-only ret variable. Signed-off-by: Paulina Szubarczyk --- tools/libxl/libxl_pci.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index dc10cb7..3435ce2 100644

[Xen-devel] [PATCH 02/10] libxl-pci: clean unused return variable

2016-04-01 Thread Paulina Szubarczyk
libxl_device_pci_assignable_list returns: - list of the libxl_device_pci - NULL in case of error the rc variable is unused as return code. Signed-off-by: Paulina Szubarczyk --- tools/libxl/libxl_pci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/libxl

[Xen-devel] [PATCH 04/10] xl: improve return code for freemem function

2016-04-01 Thread Paulina Szubarczyk
- Return 0 or 1 for freemem function - Correct the condition of checking return values of freemem Signed-off-by: Paulina Szubarczyk --- tools/libxl/xl_cmdimpl.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools

[Xen-devel] [PATCH 06/10] xl_cmdimpl: improve return codes for cd-insert commands

2016-04-01 Thread Paulina Szubarczyk
- Use EXIT_{SUCCESS,FAILURE} for main_cd*() function - Use 0/1 as return values of cd_insert function Signed-off-by: Paulina Szubarczyk --- tools/libxl/xl_cmdimpl.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl

[Xen-devel] [PATCH 08/10] libxl: improve main_tmem_* return codes

2016-04-01 Thread Paulina Szubarczyk
those functions. Signed-off-by: Paulina Szubarczyk --- tools/libxl/xl_cmdimpl.c | 51 ++-- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 38129f4..52c3b9b 100644 --- a/tools/libxl

[Xen-devel] [PATCH 10/10] libxl: libxl_tmem functions improving coding style

2016-04-01 Thread Paulina Szubarczyk
In accordance with CODING_SYTLE: - Use 'r' for return values to functions whose return values are a different error space (like xc_tmem_control, xc_tmem_auth) Signed-off-by: Paulina Szubarczyk --- tools/libxl/libxl.c | 58 ++--- 1 fi

[Xen-devel] [PATCH 09/10] libxl: Fix libxl_set_memory_target return value

2016-04-01 Thread Paulina Szubarczyk
libxl_set_memory_target seems to have the following return values: * 1 on failure, if the failure happens because of a xenstore error *or* * invalid target * -1 if the setmaxmem hypercall * -errno if the set_pod_target hypercall target fails * 0 on success Make it consistently return ERROR_FAI

Re: [Xen-devel] [PATCH 09/10] libxl: Fix libxl_set_memory_target return value

2016-04-06 Thread Paulina Szubarczyk
On 4 April 2016 at 12:40, George Dunlap wrote: > > On 01/04/16 15:55, Roger Pau Monné wrote: > > On Fri, 1 Apr 2016, Paulina Szubarczyk wrote: > >> libxl_set_memory_target seems to have the following return values: > >> > >> * 1 on failure, if the failure

[Xen-devel] [PATCH v2 00/10] xl: improve coding style and return more failure on failure for more xl commands

2016-04-06 Thread Paulina Szubarczyk
This is my bite-sized outreachy project [1][2]. The patch aims to improve coding_style and return failure for more xl commands: - pci-* -- tmem-* After rebase to staging it seems that the patch {09} cleaning libxl_set_memory_target() to return useful error codes from [0] is not applied I resen

[Xen-devel] [PATCH v2 05/10] xl_cmdimpl: improve return codes for memset commands

2016-04-06 Thread Paulina Szubarczyk
- Use EXIT_{SUCCESS,FAILURE} for main_mem*() function - Use 0/1 as return values of set_memory_{max,target} Signed-off-by: Paulina Szubarczyk --- Changed since v1 * Changed exit() calls to 'return 1;' --- tools/libxl/xl_cmdimpl.c | 24 1 file changed, 16

[Xen-devel] [PATCH v2 03/10] libxl: fix return value of libxl__device_pci_destroy_all

2016-04-06 Thread Paulina Szubarczyk
Return rc value instead of always 0. Signed-off-by: Paulina Szubarczyk Acked-by: Roger Pau Monné --- tools/libxl/libxl_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index 8549378..b667dba 100644 --- a/tools/libxl

[Xen-devel] [PATCH v2 08/10] libxl: improve main_tmem_* return codes

2016-04-06 Thread Paulina Szubarczyk
functions. Signed-off-by: Paulina Szubarczyk Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Roger Pau Monné --- tools/libxl/xl_cmdimpl.c | 51 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl

[Xen-devel] [PATCH v2 01/10] libxl_pci: improve return codes for more xl commands

2016-04-06 Thread Paulina Szubarczyk
Return error code instead of always 0. Remove assigned-only ret variable. Signed-off-by: Paulina Szubarczyk --- Changed since v1: * The function libxl__device_from_pcidev() initialize the values of libxl__device and does not return any error code. Make it return void instead 0

[Xen-devel] [PATCH v2 07/10] xl_cmdimpl - Add return codes for pci-detach, pci-attach, pci-asssignable-add, and pci-assignable-remove.

2016-04-06 Thread Paulina Szubarczyk
er nothing but an "r = 0" seemed a bit pointless. Signed-off-by: George Dunlap Signed-off-by: Paulina Szubarczyk --- Changed since v1: * Changed exit() calls to 'return 1;' --- tools/libxl/xl_cmdimpl.c | 80 ++-- 1 file changed,

[Xen-devel] [PATCH v2 04/10] xl: improve return code for freemem function

2016-04-06 Thread Paulina Szubarczyk
- Return 0 or 1 for freemem function - Correct the condition of checking return values of freemem Signed-off-by: Paulina Szubarczyk --- tools/libxl/xl_cmdimpl.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c

[Xen-devel] [PATCH v2 02/10] libxl-pci: removing the extra 'out_closedir' cleaning path

2016-04-06 Thread Paulina Szubarczyk
Signed-off-by: Paulina Szubarczyk --- Changed since v1: * Modify the libxl_device_pci_assignable_list() function to use only one 'out' cleaning path. --- tools/libxl/libxl_pci.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/t

[Xen-devel] [PATCH v2 09/10] libxl: Fix libxl_set_memory_target return value

2016-04-06 Thread Paulina Szubarczyk
e Dunlap Signed-off-by: Paulina Szubarczyk --- tools/libxl/libxl.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 75f00be..057366e 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -4

[Xen-devel] [PATCH v2 06/10] xl_cmdimpl: improve return codes for cd-insert commands

2016-04-06 Thread Paulina Szubarczyk
- Use EXIT_{SUCCESS,FAILURE} for main_cd*() function - Use 0/1 as return values of cd_insert function Signed-off-by: Paulina Szubarczyk Acked-by: Roger Pau Monné --- tools/libxl/xl_cmdimpl.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tools/libxl

[Xen-devel] [PATCH v2 10/10] libxl: libxl_tmem functions improving coding style

2016-04-06 Thread Paulina Szubarczyk
In accordance with CODING_SYTLE: - Use 'r' for return values to functions whose return values are a different error space (like xc_tmem_control, xc_tmem_auth) Signed-off-by: Paulina Szubarczyk --- Changed since v1: * Added the error cleanup path 'out'. * Replaced retu

Re: [Xen-devel] [PATCH v2 09/10] libxl: Fix libxl_set_memory_target return value

2016-04-06 Thread Paulina Szubarczyk
On Wed, 2016-04-06 at 13:54 +0100, George Dunlap wrote: > On Wed, Apr 6, 2016 at 12:46 PM, Paulina Szubarczyk > wrote: > > From: George Dunlap > > > > libxl_set_memory_target seems to have the following return values: > > > > * 1 on failure, if the failure hap

Re: [Xen-devel] [PATCH v2 05/10] xl_cmdimpl: improve return codes for memset commands

2016-04-08 Thread Paulina Szubarczyk
On Fri, 2016-04-08 at 10:26 +0200, Dario Faggioli wrote: > On Wed, 2016-04-06 at 13:45 +0200, Paulina Szubarczyk wrote: > > --- a/tools/libxl/xl_cmdimpl.c > > +++ b/tools/libxl/xl_cmdimpl.c > > @@ -3391,15 +3391,15 @@ static int set_memory_max(uint32_t domid, > > const c

[Xen-devel] [PATCH v3 7/7] libxl: libxl_tmem functions improving coding style

2016-04-20 Thread Paulina Szubarczyk
7;, therfore use LOG() instead LOGEV() with the 'r' value since the error code is always -1. Signed-off-by: Paulina Szubarczyk --- Changed since v2: * corrected indentation * changed LOGEV()->LOG() --- tools/libxl/libxl.c | 89 ++--- 1 f

[Xen-devel] [PATCH v3 4/7] xl_cmdimpl - Add return codes for pci-detach, pci-attach, pci-asssignable-add, and pci-assignable-remove.

2016-04-20 Thread Paulina Szubarczyk
Returning error codes makes it easier for shell scripts to tell if a command has failed or succeeded. Signed-off-by: George Dunlap Signed-off-by: Paulina Szubarczyk --- Changed since v2: - Remove the change to exit code since the other pathes take care of that --- tools/libxl/xl_cmdimpl.c

[Xen-devel] [PATCH v3 00/10] xl: improve coding style and return more failure on

2016-04-20 Thread Paulina Szubarczyk
This is my bite-sized outreachy project [1][2]. The patch aims to improve coding_style and return failure for more xl commands: - pci-* -- tmem-* After rebase to staging it seems that the patch {09} cleaning libxl_set_memory_target() to return useful error codes from [0] is not applied I resen

[Xen-devel] [PATCH v3 5/7] xl: improve main_tmem_* return codes

2016-04-20 Thread Paulina Szubarczyk
functions. Signed-off-by: Paulina Szubarczyk Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Dario Faggioli Acked-by: Roger Pau Monné --- tools/libxl/xl_cmdimpl.c | 51 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/tools/libxl

[Xen-devel] [PATCH v3 1/7] libxl: improve return codes for some pci related functions

2016-04-20 Thread Paulina Szubarczyk
*libxl__device_from_pcidev() initialize the values of libxl__device struct and can be void. *libxl__create_pci_backend(), libxl__device_pci_destroy_all() should propagate the success/error, rather than always returning 0. Signed-off-by: Paulina Szubarczyk --- Changes since v2: - changed the

[Xen-devel] [PATCH v3 3/7] xl_cmdimpl: improve return codes for cd-insert commands

2016-04-20 Thread Paulina Szubarczyk
- Use EXIT_{SUCCESS,FAILURE} for main_cd*() function - Use 0/1 as return values of cd_insert function Signed-off-by: Paulina Szubarczyk Acked-by: Roger Pau Monné --- tools/libxl/xl_cmdimpl.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tools/libxl

[Xen-devel] [PATCH v3 6/7] libxl: Fix libxl_set_memory_target return value

2016-04-20 Thread Paulina Szubarczyk
_setmaxmem and xc_domain_set_pod_target) 3. Use 'lrc' for return values to local functions libxl__* where a failure means retry, rather than fail the whole function (libxl__fill_dom0_memory_info), to reduce the risk of that. Signed-off-by: George Dunlap Signed-off-by: Paulina Szubarcz

[Xen-devel] [PATCH v3 2/7] libxl: style cleanups in libxl_device_pci_assignable_list()

2016-04-20 Thread Paulina Szubarczyk
Various coding style compliance cleanups, such as, arranging for using only one path out of the function, whitespaces in loops ad if-s and r instead of rc for storing non-libxl error codes. Signed-off-by: Paulina Szubarczyk --- Changes since v2: - changed the changelog --- tools/libxl

Re: [Xen-devel] Outreachy bite-sized tasks

2016-04-20 Thread Paulina Szubarczyk
On Fri, 2016-04-01 at 15:35 +0200, Roger Pau Monné wrote: > Please don't top post, it breaks the flow of the conversation. > > I'm also adding Anthony (one of the QEMU/Xen maintainers). > On Fri, 1 Apr 2016, Paulina Szubarczyk wrote: > > > Hi Roger, > >

Re: [Xen-devel] [PATCH v3 2/7] libxl: style cleanups in libxl_device_pci_assignable_list()

2016-04-21 Thread Paulina Szubarczyk
On Wed, 2016-04-20 at 22:24 +0200, Olaf Hering wrote: > On Wed, Apr 20, Paulina Szubarczyk wrote: > > > @@ -398,34 +398,34 @@ libxl_device_pci > > *libxl_device_pci_assignable_list(libxl_ctx *ctx, int *num) > > dir = opendir(SYSFS_PCIBACK_DRIVER); > >

Re: [Xen-devel] [PATCH v3 6/7] libxl: Fix libxl_set_memory_target return value

2016-05-09 Thread Paulina Szubarczyk
On Wed, 2016-04-27 at 15:29 +0100, Wei Liu wrote: > On Wed, Apr 20, 2016 at 10:04:03AM +0200, Paulina Szubarczyk wrote: > > libxl_set_memory_target seems to have the following return values: > > > > * 1 on failure, if the failure happens because of a xenstore error *or*

[Xen-devel] [PATCH v4 6/7] libxl: style cleanups in libxl_device_pci_assignable_list()

2016-05-09 Thread Paulina Szubarczyk
Various coding style compliance cleanups, such as, arranging for using only one path out of the function, whitespaces in loops ad if-s and r instead of rc for storing non-libxl error codes. Signed-off-by: Paulina Szubarczyk --- Changes since v3: - When the opendir() returns NULL stored in 

[Xen-devel] [PATCH v4 5/7] libxl: improve return codes for some pci related functions

2016-05-09 Thread Paulina Szubarczyk
*libxl__device_from_pcidev(), pcidev_struct_fill() initialize the values of libxl_device and libxl_device_pci structs and can be void. *libxl__create_pci_backend(), libxl__device_pci_destroy_all() should propagate the success/error, rather than always returning 0. Signed-off-by: Paulina

[Xen-devel] [PATCH v4 1/7] xl_cmdimpl - Add return codes for pci-detach, pci-attach, pci-asssignable-add, and pci-assignable-remove.

2016-05-09 Thread Paulina Szubarczyk
Returning error codes makes it easier for shell scripts to tell if a command has failed or succeeded. Signed-off-by: George Dunlap Signed-off-by: Paulina Szubarczyk Acked-by: Wei Liu --- tools/libxl/xl_cmdimpl.c | 68 ++-- 1 file changed, 49

[Xen-devel] [PATCH v4 2/7] xl: improve main_tmem_* return codes

2016-05-09 Thread Paulina Szubarczyk
functions. Signed-off-by: Paulina Szubarczyk Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Dario Faggioli Acked-by: Roger Pau Monné Acked-by: Wei Liu --- tools/libxl/xl_cmdimpl.c | 51 1 file changed, 30 insertions(+), 21 deletions(-) diff

[Xen-devel] [PATCH v4 00/10] xl: improve coding style and return more failure on

2016-05-09 Thread Paulina Szubarczyk
This is my bite-sized outreachy project [1][2]. The patch aims to improve coding_style and return failure for more xl commands: - pci-* -- tmem-* After rebase to staging it seems that the patch {09} cleaning libxl_set_memory_target() to return useful error codes from [0] is not applied I resen

[Xen-devel] [PATCH v4 3/7] xl_cmdimpl: improve return codes for cd-insert commands

2016-05-09 Thread Paulina Szubarczyk
- Use EXIT_{SUCCESS,FAILURE} for main_cd*() function - Use 0/1 as return values of cd_insert function Signed-off-by: Paulina Szubarczyk Reviewed-by: Olaf Hering Acked-by: Roger Pau Monné --- tools/libxl/xl_cmdimpl.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions

[Xen-devel] [PATCH v4 4/7] libxl: Fix libxl_set_memory_target return value

2016-05-09 Thread Paulina Szubarczyk
_memory_info), to reduce the risk of that. Signed-off-by: George Dunlap Signed-off-by: Paulina Szubarczyk Reviewed-by: Olaf Hering --- Changed since v3: - changed the changelog tools/libxl/libxl.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git

[Xen-devel] [PATCH v4 7/7] libxl: libxl_tmem functions improving coding style

2016-05-09 Thread Paulina Szubarczyk
;, therfore use LOGE() instead LOGEV() with the 'r' value. Signed-off-by: Paulina Szubarczyk --- Changed since v3: - changed LOG() to LOGE() tools/libxl/libxl.c | 89 ++--- 1 file changed, 50 insertions(+), 39 deletions(-) diff --git a/too

Re: [Xen-devel] [PATCH v4 00/10] xl: improve coding style and return more failure on

2016-05-09 Thread Paulina Szubarczyk
On Mon, 2016-05-09 at 14:06 +0100, Wei Liu wrote: > Hi Paulina > > I believe this series is now all acked. > > We're however in code freeze at the moment -- only critical bug fixes > and patches very of very low risk can be committed. I will apply this > series when the tree reopens. Hi Wei, T

[Xen-devel] [PATCH v6 0/2] qemu-qdisk: Implementation of grant copy operation.

2016-09-07 Thread Paulina Szubarczyk
-runtime=$RUNTIME >> $FILENAME The test were repeated at least three times. [1] https://docs.google.com/spreadsheets/d/1E6AMiB8ceJpExL6jWpH9u2yy6DZxzhmDUyFf-eUuJ0c/edit?usp=sharing [2] https://github.com/paulina-szubarczyk/xen-benchmark - multitest_with_iodepth.sh Thanks and regards, Paulina ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

[Xen-devel] [PATCH v6 1/2] libs/gnttab: introduce grant copy interface

2016-09-07 Thread Paulina Szubarczyk
In a linux part an ioctl(gntdev, IOCTL_GNTDEV_GRANT_COPY, ..) system call is invoked. In mini-os the operation is yet not implemented. For the OSs that does not implement gnttab the call of the grant copy operation causes abort. Signed-off-by: Paulina Szubarczyk Reviewed-by: David Vrabel

[Xen-devel] [PATCH v6 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-09-07 Thread Paulina Szubarczyk
ers and on the completion grant copy is called and buffers are freed. For the 'write' operation grant copy is performed before invoking write by qemu device. A new value 'feature_grant_copy' is added to recognize when the grant copy operation is supported by a guest. Sig

Re: [Xen-devel] [PATCH v6 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-09-07 Thread Paulina Szubarczyk
On 09/07/2016 10:56 PM, Stefano Stabellini wrote: On Wed, 7 Sep 2016, Paulina Szubarczyk wrote: Copy data operated on during request from/to local buffers to/from the grant references. Before grant copy operation local buffers must be allocated what is done by calling ioreq_init_copy_buffers

Re: [Xen-devel] [PATCH v6 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-09-09 Thread Paulina Szubarczyk
On 09/08/2016 12:00 AM, Paulina Szubarczyk wrote: On 09/07/2016 10:56 PM, Stefano Stabellini wrote: On Wed, 7 Sep 2016, Paulina Szubarczyk wrote: Copy data operated on during request from/to local buffers to/from the grant references. Before grant copy operation local buffers must be

[Xen-devel] [PATCH v7 0/2] qemu-qdisk: Implementation of grant copy operation.

2016-09-14 Thread Paulina Szubarczyk
--direct='1' \ --ioengine=libaio \ --filename=$DEV \ --iodepth=$IODEPTH \ --bs=$BS \ --name=$NAME \ --runtime=$RUNTIME >> $FILENAME The test were repeated at least three

[Xen-devel] [PATCH v7 1/2] libs/gnttab: introduce grant copy interface

2016-09-14 Thread Paulina Szubarczyk
In a linux part an ioctl(gntdev, IOCTL_GNTDEV_GRANT_COPY, ..) system call is invoked. In mini-os the operation is yet not implemented. For the OSs that does not implement gnttab the call of the grant copy operation causes abort. Signed-off-by: Paulina Szubarczyk Reviewed-by: David Vrabel

[Xen-devel] [PATCH v7 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-09-14 Thread Paulina Szubarczyk
ers and on the completion grant copy is called and buffers are freed. For the 'write' operation grant copy is performed before invoking write by qemu device. A new value 'feature_grant_copy' is added to recognize when the grant copy operation is supported by a guest. Signed-off

[Xen-devel] [PATCH v4 1/2] Interface for grant copy operation in libs.

2016-08-02 Thread Paulina Szubarczyk
In a linux part an ioctl(gntdev, IOCTL_GNTDEV_GRANT_COPY, ..) system call is invoked. In mini-os the operation is yet not implemented. For the OSs that does not implement gnttab the call of the grant copy operation causes abort. Signed-off-by: Paulina Szubarczyk --- Changes since v3: - revert to

[Xen-devel] [PATCH v4 0/2] qemu-qdisk: Implementation of grant copy operation.

2016-08-02 Thread Paulina Szubarczyk
--ioengine=libaio \ --filename=$DEV \ --iodepth=$IODEPTH \ --bs=$BS \ --name=$NAME \ --runtime=$RUNTIME >> $FILENAME The test were repeated at least three times. [1] https://docs.google.com/s

[Xen-devel] [PATCH v4 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-08-02 Thread Paulina Szubarczyk
ers and on the completion grant copy is called and buffers are freed. For the 'write' operation grant copy is performed before invoking write by qemu device. A new value 'feature_grant_copy' is added to recognize when the grant copy operation is supported by a guest. Sig

Re: [Xen-devel] [PATCH v4 1/2] Interface for grant copy operation in libs.

2016-08-04 Thread Paulina Szubarczyk
On 08/04/2016 11:38 AM, Wei Liu wrote: The code looks ok. I have two minor suggestions below. I would suggest changing the subject line to: libs/gnttab: introduce grant copy interface On Tue, Aug 02, 2016 at 04:06:29PM +0200, Paulina Szubarczyk wrote: In a linux part an ioctl(gntdev

Re: [Xen-devel] [PATCH v4 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-08-08 Thread Paulina Szubarczyk
On 08/08/2016 01:11 PM, Roger Pau Monné wrote: On Tue, Aug 02, 2016 at 04:06:30PM +0200, Paulina Szubarczyk wrote: Copy data operated on during request from/to local buffers to/from the grant references. Before grant copy operation local buffers must be allocated what is done by calling

Re: [Xen-devel] [PATCH v4 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-08-08 Thread Paulina Szubarczyk
On 08/02/2016 04:06 PM, Paulina Szubarczyk wrote: Copy data operated on during request from/to local buffers to/from the grant references. Before grant copy operation local buffers must be allocated what is done by calling ioreq_init_copy_buffers. For the 'read' operation, first

Re: [Xen-devel] [PATCH v4 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-08-09 Thread Paulina Szubarczyk
On 08/09/2016 06:56 PM, Anthony PERARD wrote: On Tue, Aug 02, 2016 at 04:06:30PM +0200, Paulina Szubarczyk wrote: Copy data operated on during request from/to local buffers to/from the grant references. Before grant copy operation local buffers must be allocated what is done by calling

[Xen-devel] [PATCH v5 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-08-15 Thread Paulina Szubarczyk
ers and on the completion grant copy is called and buffers are freed. For the 'write' operation grant copy is performed before invoking write by qemu device. A new value 'feature_grant_copy' is added to recognize when the grant copy operation is supported by a guest. Sig

[Xen-devel] [PATCH v4 0/2] qemu-qdisk: Implementation of grant copy operation.

2016-08-15 Thread Paulina Szubarczyk
--ioengine=libaio \ --filename=$DEV \ --iodepth=$IODEPTH \ --bs=$BS \ --name=$NAME \ --runtime=$RUNTIME >> $FILENAME The test were repeated at least three times. [1] https://docs.google.com/s

[Xen-devel] [PATCH v5 1/2] libs/gnttab: introduce grant copy interface

2016-08-15 Thread Paulina Szubarczyk
In a linux part an ioctl(gntdev, IOCTL_GNTDEV_GRANT_COPY, ..) system call is invoked. In mini-os the operation is yet not implemented. For the OSs that does not implement gnttab the call of the grant copy operation causes abort. Signed-off-by: Paulina Szubarczyk Reviewed-by: David Vrabel

[Xen-devel] [PATCH v5 0/2] qemu-qdisk: Implementation of grant copy operation.

2016-08-16 Thread Paulina Szubarczyk
--ioengine=libaio \ --filename=$DEV \ --iodepth=$IODEPTH \ --bs=$BS \ --name=$NAME \ --runtime=$RUNTIME >> $FILENAME The test were repeated at least three times. [1] https://docs.google.com/spreadsheets/d/1E6AMiB8ceJpExL6jWpH9

[Xen-devel] Outreachy 2016

2016-03-19 Thread Paulina Szubarczyk
ld like to ask you to be my mentor ​,​ and at the beginning for an idea of a bite-size task to ​ ​ gain inside of ​ ​ the process of communication on the list and submitting ​ ​ a patch. Thanks, Paulina Szubarczyk​ ___ Xen-devel mailing list Xen-devel@lis

[Xen-devel] [PATCH 1/3] libs, gnttab, libxc: Interface for grant copy operation

2016-05-27 Thread Paulina Szubarczyk
Implentation of interface to grant copy operation called through libxc. An ioctl(gntdev, IOCTL_GNTDEV_GRANT_COPY, ..) system call is invoked for linux. In the mini-os the operation is yet not implemented. * In the file "tools/include/xen-sys/Linux/gntdev.h" added - 'struct ioctl_gntdev_grant_cop

[Xen-devel] [PATCH 0/3] qemu-qdisk: Replace grant map by grant copy.

2016-05-27 Thread Paulina Szubarczyk
u2yy6DZxzhmDUyFf-eUuJ0c/edit?usp=sharing - domU sheets [2] https://github.com/paulina-szubarczyk/xen-benchmark - multitest_with_iodepth.sh Thanks and regards, Paulina ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH 3/3] qemu-xen-dir/hw/block: Cache local buffers used in grant copy

2016-05-27 Thread Paulina Szubarczyk
If there are still pending requests the buffers are not free() but cached in an array of a size max_request*BLKIF_MAX_SEGMENTS_PER_REQUEST --- hw/block/xen_disk.c | 59 ++--- 1 file changed, 47 insertions(+), 12 deletions(-) diff --git a/hw/block/xe

[Xen-devel] [PATCH 2/3] qemu-xen-dir/hw/block/xen_disk: Replace grant map by grant copy.

2016-05-27 Thread Paulina Szubarczyk
Grant copy operation is divided into two phases different for 'read' and 'write' operation. For a 'read' operation the flow is as follow: 1. allocate local buffers for all the segments contained in a request. 2. fill the request io vectors with the buffers' addresses 3. invoke read operation by

[Xen-devel] [PATCH RESEND 1/4] libs, gnttab, libxc: Interface for grant copy operation

2016-05-30 Thread Paulina Szubarczyk
Implentation of interface to grant copy operation called through libxc. An ioctl(gntdev, IOCTL_GNTDEV_GRANT_COPY, ..) system call is invoked for linux. In the mini-os the operation is yet not implemented. * In the file "tools/include/xen-sys/Linux/gntdev.h" added - 'struct ioctl_gntdev_grant_cop

[Xen-devel] [PATCH RESEND 2/4] qdisk, hw/block/xen_disk: Removal of grant mapping

2016-05-30 Thread Paulina Szubarczyk
Grant mapping related functions and variables are removed on behalf of grant copy operation introduced in following commits. --- hw/block/xen_disk.c | 284 ++-- 1 file changed, 10 insertions(+), 274 deletions(-) diff --git a/hw/block/xen_disk.c b/hw

[Xen-devel] [PATCH RESEND 0/4] qemu-qdisk: Replace grant map by grant copy.

2016-05-30 Thread Paulina Szubarczyk
/docs.google.com/spreadsheets/d/1E6AMiB8ceJpExL6jWpH9u2yy6DZxzhmDUyFf-eUuJ0c/edit?usp=sharing - domU sheets [2] https://github.com/paulina-szubarczyk/xen-benchmark - multitest_with_iodepth.sh Thanks and regards, Paulina ___ Xen-devel mailin

[Xen-devel] [PATCH RESEND 3/4] qdisk, hw/block/xen_disk: Perform grant copy instead of grant map.

2016-05-30 Thread Paulina Szubarczyk
Grant copy operation is divided into two phases different for 'read' and 'write' operation. For a 'read' operation the flow is as follow: 1. allocate local buffers for all the segments contained in a request. 2. fill the request io vectors with the buffers' addresses 3. invoke r

[Xen-devel] [PATCH RESEND 4/4] qemu-xen-dir/hw/block: Cache local buffers used in grant copy

2016-05-30 Thread Paulina Szubarczyk
If there are still pending requests the buffers are not free() but cached in an array of a size max_request*BLKIF_MAX_SEGMENTS_PER_REQUEST --- hw/block/xen_disk.c | 60 + 1 file changed, 47 insertions(+), 13 deletions(-) diff --git a/hw/block/x

Re: [Xen-devel] [PATCH RESEND 1/4] libs, gnttab, libxc: Interface for grant copy operation

2016-06-01 Thread Paulina Szubarczyk
On Tue, 2016-05-31 at 10:25 +0100, David Vrabel wrote: > > On 31/05/2016 05:44, Paulina Szubarczyk wrote: > > Implentation of interface to grant copy operation called through > > libxc. An ioctl(gntdev, IOCTL_GNTDEV_GRANT_COPY, ..) system call is > > invoked for l

Re: [Xen-devel] [PATCH RESEND 3/4] qdisk, hw/block/xen_disk: Perform grant copy instead of grant map.

2016-06-01 Thread Paulina Szubarczyk
On Tue, 2016-05-31 at 10:37 +0100, David Vrabel wrote: > On 31/05/2016 05:44, Paulina Szubarczyk wrote: > > Grant copy operation is divided into two phases different for > > 'read' and 'write' operation. > > > > For a 'read' operation the

Re: [Xen-devel] [PATCH RESEND 1/4] libs, gnttab, libxc: Interface for grant copy operation

2016-06-01 Thread Paulina Szubarczyk
On Wed, 2016-06-01 at 12:22 +0100, David Vrabel wrote: > On 01/06/16 08:45, Paulina Szubarczyk wrote: > > On Tue, 2016-05-31 at 10:25 +0100, David Vrabel wrote: > >> > >> On 31/05/2016 05:44, Paulina Szubarczyk wrote: > >>> > >>> Notification

Re: [Xen-devel] [PATCH RESEND 2/4] qdisk, hw/block/xen_disk: Removal of grant mapping

2016-06-02 Thread Paulina Szubarczyk
On Thu, 2016-06-02 at 11:41 +0200, Roger Pau Monné wrote: > On Tue, May 31, 2016 at 06:44:56AM +0200, Paulina Szubarczyk wrote: > > Grant mapping related functions and variables are removed > > on behalf of grant copy operation introduced in following commits. > > As David

Re: [Xen-devel] [PATCH RESEND 4/4] qemu-xen-dir/hw/block: Cache local buffers used in grant copy

2016-06-07 Thread Paulina Szubarczyk
On Thu, 2016-06-02 at 16:19 +0200, Roger Pau Monné wrote: > On Tue, May 31, 2016 at 06:44:58AM +0200, Paulina Szubarczyk wrote: > > If there are still pending requests the buffers are not free() but > > cached in an array of a size max_request*BLKIF_MAX_SEGMENTS_PER_REQUEST >

Re: [Xen-devel] [PATCH v4 1/7] xl_cmdimpl - Add return codes for pci-detach, pci-attach, pci-asssignable-add, and pci-assignable-remove.

2016-06-09 Thread Paulina Szubarczyk
On Thu, 2016-06-09 at 15:44 +0100, Wei Liu wrote: > Hi Paulina > > I was about to push this whole series, but I noticed the subject line > of this patch is very long. > > May I make a suggestion that we update the title of this patch to > > xl: add return codes for various pci functions > > ?

[Xen-devel] [PATCH v2 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-06-13 Thread Paulina Szubarczyk
est. The body of the function 'ioreq_runio_qemu_aio' is moved to 'ioreq_runio_qemu_aio_blk' and in the 'ioreq_runio_qemu_aio' depending on the support for grant copy according checks, initialization, grant operation are made, then the 'ioreq_runio_qemu_aio_blk'

  1   2   >