Re: [PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-04-05 Thread Stefano Stabellini
On Tue, 5 Apr 2022, Stefano Stabellini wrote: > On Fri, 1 Apr 2022, Julien Grall wrote: > > On 01/04/2022 01:35, Stefano Stabellini wrote: > > > > > > > + > > > > > > > +/* Alloc magic pages */ > > > > > > > +if (alloc_magic_pages(info, ) != 0) { > > > > > > > +printf("Error on

Re: [PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-04-05 Thread Stefano Stabellini
On Fri, 1 Apr 2022, Juergen Gross wrote: > On 01.04.22 12:02, Julien Grall wrote: > > Hi Stefano, > > > > On 01/04/2022 01:35, Stefano Stabellini wrote: > > > > > > > + > > > > > > > +    /* Alloc magic pages */ > > > > > > > +    if (alloc_magic_pages(info, ) != 0) { > > > > > > > +   

Re: [PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-04-05 Thread Stefano Stabellini
On Fri, 1 Apr 2022, Julien Grall wrote: > On 01/04/2022 01:35, Stefano Stabellini wrote: > > > > > > + > > > > > > +/* Alloc magic pages */ > > > > > > +if (alloc_magic_pages(info, ) != 0) { > > > > > > +printf("Error on alloc magic pages\n"); > > > > > > +return 1; > > > >

Re: [PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-04-01 Thread Juergen Gross
On 01.04.22 12:02, Julien Grall wrote: Hi Stefano, On 01/04/2022 01:35, Stefano Stabellini wrote: + +    /* Alloc magic pages */ +    if (alloc_magic_pages(info, ) != 0) { +    printf("Error on alloc magic pages\n"); +    return 1; +    } + +    xc_dom_gnttab_init(); This call as the

Re: [PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-04-01 Thread Julien Grall
On 01/04/2022 11:02, Julien Grall wrote: Hi Stefano, On 01/04/2022 01:35, Stefano Stabellini wrote: + +    /* Alloc magic pages */ +    if (alloc_magic_pages(info, ) != 0) { +    printf("Error on alloc magic pages\n"); +    return 1; +    } + +    xc_dom_gnttab_init(); This call

Re: [PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-04-01 Thread Julien Grall
Hi Stefano, On 01/04/2022 01:35, Stefano Stabellini wrote: + +/* Alloc magic pages */ +if (alloc_magic_pages(info, ) != 0) { +printf("Error on alloc magic pages\n"); +return 1; +} + +xc_dom_gnttab_init(); This call as the risk to break the guest if the dom0

Re: [PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-03-31 Thread Stefano Stabellini
On Mon, 28 Mar 2022, Julien Grall wrote: > On 23/03/2022 02:50, Stefano Stabellini wrote: > > On Sat, 29 Jan 2022, Julien Grall wrote: > > > On 28/01/2022 21:33, Stefano Stabellini wrote: > > > > +libxl_uuid uuid; > > > > +uint64_t v; > > > > +int rc; > > > > + > > > > +

Re: [PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-03-28 Thread Julien Grall
Hi Stefano, On 23/03/2022 02:50, Stefano Stabellini wrote: On Sat, 29 Jan 2022, Julien Grall wrote: On 28/01/2022 21:33, Stefano Stabellini wrote: +libxl_uuid uuid; +uint64_t v; +int rc; + +printf("Init dom0less domain: %d\n", info->domid); +dom.guest_domid = info->domid;

Re: [PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-03-22 Thread Stefano Stabellini
On Sat, 29 Jan 2022, Julien Grall wrote: > On 28/01/2022 21:33, Stefano Stabellini wrote: > > From: Luca Miccio > > > > Add an example application that can be run in dom0 to complete the > > dom0less domains initialization so that they can get access to xenstore > > and use PV drivers. > > > >

Re: [PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-01-29 Thread Julien Grall
Hi, On 28/01/2022 21:33, Stefano Stabellini wrote: From: Luca Miccio Add an example application that can be run in dom0 to complete the dom0less domains initialization so that they can get access to xenstore and use PV drivers. Signed-off-by: Luca Miccio Signed-off-by: Stefano Stabellini

[PATCH v3 5/5] tools: add example application to initialize dom0less PV drivers

2022-01-28 Thread Stefano Stabellini
From: Luca Miccio Add an example application that can be run in dom0 to complete the dom0less domains initialization so that they can get access to xenstore and use PV drivers. Signed-off-by: Luca Miccio Signed-off-by: Stefano Stabellini CC: Wei Liu CC: Anthony PERARD CC: Juergen Gross ---