[PATCH 9/9] tools/libs/light: Add "reset" and "remove" PCI dev commands to xl pcid daemon and libxl PCI

2021-08-12 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Add "reset" command processing to xl pcid daemon. Make possible sending "reset"/"remove" PCI device requests from libxl PCI to xl pcid daemon instead of using sysfs on libxl side. Signed-off-by: Anastasiia Lukianenko --- tools/include

[PATCH 7/9] tools/libs/light: Make Libxl PCI get values from xl pcid instead of libxl side

2021-08-12 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko pci_multifunction_check needs to use "ls" and "lstat" commands to get information from sysfs. Add "is_exists" command processing to xl pcid daemon to make possible pci_multifunction_check read directories and check lstat by using xl pc

[PATCH 8/9] tools/libs/light: Add "unbind" and "read resources" commands to libxl PCI and xl pcid

2021-08-12 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Send requests to xl pcid from libxl PCI to prevent the libxl PCI from reading / writing from / to the local sysfs directly. "Unbind" command returns driver's path or "nolstat" result in success and NULL if writing to PCI path failed. "R

[PATCH 6/9] tools/libs/light: Add "read" command to xl pcid and libxl PCI

2021-08-12 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Libxl PCI can use xl pcid server to read integer value from the given path. Signed-off-by: Anastasiia Lukianenko --- tools/include/pcid.h | 1 + tools/libs/light/libxl_pci.c | 125 ++ tools/libs/light/libxl_pcid.c | 50

[PATCH 5/9] tools/libs/light: Add "write" command to xl pcid and libxl PCI

2021-08-12 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Add functions for handling "write" command on xl pcid side. Libxl PCI side receives reply: 1. success - string in "return" message 2. fail - error type of reply message Signed-off-by: Anastasiia Lukianenko --- tools/include/pcid.h |

[PATCH 3/9] tools/xl: Add pcid daemon to xl

2021-08-12 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Add draft version of pcid server (based on vchan-node2), which can receive messages from the client. Signed-off-by: Anastasiia Lukianenko --- tools/configure | 5 +- tools/hotplug/FreeBSD/rc.d/xlpcid.in | 75 ++ tools

[PATCH 4/9] tools/libs/light: Add "ls" command processing to xl pcid daemon and libxl PCI

2021-08-12 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Messaging format is based on json style. Xl pcid receives "ls" command from client and sends a reply: 1. success case - array of directory's names 2. error case - message with "error" in return Xl pcid server transmits information about de

[PATCH 1/9] tools/libs/light: Add vchan support to libxl

2021-08-12 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Add possibility to send commands from libxl and execute them on server side. Libxl vchan adds support for JSON messages processing. The using of libxl vchan is preventing the client from libxl from reading and writing from / to the local sysfs directly.To do this

[PATCH 2/9] tools/libs/light: Add functions for handling PCI messages in JSON format

2021-08-12 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko These functions allow to process the received message from PCI server and to generate a reply in JSON format for the client. Signed-off-by: Anastasiia Lukianenko --- tools/include/pcid.h | 49 tools/libs/light/Makefile

[PATCH 0/9] Add xl PCI daemon (server for libxl PCI)

2021-08-12 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko This work introduces xl PCI daemon that acts as a server for the client in the libxl PCI. The toolstack in Dom0 accesses sysfs to get information about PCI devices and in case of Hardware Domain that sysfs lives in Hardware Domain, so Dom0 can't read that inform

Re: Hand over of the Xen shared info page

2021-05-14 Thread Anastasiia Lukianenko
Hi Julien! On Thu, 2021-05-13 at 09:37 +0100, Julien Grall wrote: > > On 13/05/2021 09:03, Anastasiia Lukianenko wrote: > > Hi all, > > Hi, > > > The problem described below concerns cases when a shared info page > > needs to be handed over from one entity

Hand over of the Xen shared info page

2021-05-13 Thread Anastasiia Lukianenko
c/arch-arm.h#L432 [4] - https://github.com/xen-project/xen/blob/25849c8b16f2a5b7fcd0a823e80a5f1b590291f9/tools/libs/guest/xg_dom_arm.c#L29 [5] - https://github.com/xen-troops/u-boot/blob/android-master/drivers/xen/hypervisor.c#L162 Regards, Anastasiia Lukianenko

Re: Xen Coding style and clang-format

2020-10-23 Thread Anastasiia Lukianenko
myr Babchuk < > > > volodymyr_babc...@epam.com> > > > Subject: Re: Xen Coding style and clang-format > > > > > > > Hi, > > > > > > > > On 16/10/2020 10:42, Anastasiia Lukianenko wrote: > > > > > Thanks for your

Re: Xen Coding style and clang-format

2020-10-16 Thread Anastasiia Lukianenko
Hi all, On Tue, 2020-10-13 at 14:30 +0200, Jan Beulich wrote: > On 12.10.2020 20:09, George Dunlap wrote: > > > On Oct 7, 2020, at 11:19 AM, Anastasiia Lukianenko < > > > anastasiia_lukiane...@epam.com> wrote: > > > So I want to know if the community is ready

Re: Xen Coding style and clang-format

2020-10-12 Thread Anastasiia Lukianenko
Hi all, On Wed, 2020-10-07 at 18:07 -0700, Stefano Stabellini wrote: > On Wed, 7 Oct 2020, Anastasiia Lukianenko wrote: > > On Thu, 2020-10-01 at 10:06 +, George Dunlap wrote: > > > > On Oct 1, 2020, at 10:06 AM, Anastasiia Lukianenko < > > > > a

Re: Xen Coding style and clang-format

2020-10-07 Thread Anastasiia Lukianenko
Hi all, On Thu, 2020-10-01 at 10:06 +, George Dunlap wrote: > > On Oct 1, 2020, at 10:06 AM, Anastasiia Lukianenko < > > anastasiia_lukiane...@epam.com> wrote: > > > > Hi, > > > > On Wed, 2020-09-30 at 10:24 +, George Dunlap wrote: > &g

Re: Xen Coding style and clang-format

2020-10-01 Thread Anastasiia Lukianenko
Hi, On Wed, 2020-09-30 at 10:24 +, George Dunlap wrote: > > On Sep 30, 2020, at 10:57 AM, Jan Beulich > > wrote: > > > > On 30.09.2020 11:18, Anastasiia Lukianenko wrote: > > > I would like to know your opinion on the following coding style > > >

Xen Coding style and clang-format

2020-09-30 Thread Anastasiia Lukianenko
lang-format The next script can be used as an example of how to build clang-format: https://github.com/viktor-mitin/xen-clang-format-example/blob/master/build_clang_format.sh Regards, Anastasiia Lukianenko