Re: [PATCH v2 04/18] nitro_enclaves: Init PCI device driver

2020-05-25 Thread Paraschiv, Andra-Irina
On 24/05/2020 09:32, Greg KH wrote: On Sat, May 23, 2020 at 10:25:25PM +0200, Alexander Graf wrote: Hey Greg, On 22.05.20 09:04, Greg KH wrote: On Fri, May 22, 2020 at 09:29:32AM +0300, Andra Paraschiv wrote: +/** + * ne_setup_msix - Setup MSI-X vectors for the PCI device. + * + * @pdev: PC

Re: [PATCH v2 04/18] nitro_enclaves: Init PCI device driver

2020-05-25 Thread Paraschiv, Andra-Irina
On 22/05/2020 10:04, Greg KH wrote: On Fri, May 22, 2020 at 09:29:32AM +0300, Andra Paraschiv wrote: +/** + * ne_setup_msix - Setup MSI-X vectors for the PCI device. + * + * @pdev: PCI device to setup the MSI-X for. + * + * @returns: 0 on success, negative return value on failure. + */ +static

Re: [PATCH v2 04/18] nitro_enclaves: Init PCI device driver

2020-05-23 Thread Greg KH
On Sat, May 23, 2020 at 10:25:25PM +0200, Alexander Graf wrote: > Hey Greg, > > On 22.05.20 09:04, Greg KH wrote: > > > > On Fri, May 22, 2020 at 09:29:32AM +0300, Andra Paraschiv wrote: > > > +/** > > > + * ne_setup_msix - Setup MSI-X vectors for the PCI device. > > > + * > > > + * @pdev: PCI de

Re: [PATCH v2 04/18] nitro_enclaves: Init PCI device driver

2020-05-23 Thread Alexander Graf
Hey Greg, On 22.05.20 09:04, Greg KH wrote: On Fri, May 22, 2020 at 09:29:32AM +0300, Andra Paraschiv wrote: +/** + * ne_setup_msix - Setup MSI-X vectors for the PCI device. + * + * @pdev: PCI device to setup the MSI-X for. + * + * @returns: 0 on success, negative return value on failure. + */

Re: [PATCH v2 04/18] nitro_enclaves: Init PCI device driver

2020-05-22 Thread Greg KH
On Fri, May 22, 2020 at 09:29:32AM +0300, Andra Paraschiv wrote: > +/** > + * ne_setup_msix - Setup MSI-X vectors for the PCI device. > + * > + * @pdev: PCI device to setup the MSI-X for. > + * > + * @returns: 0 on success, negative return value on failure. > + */ > +static int ne_setup_msix(struct

[PATCH v2 04/18] nitro_enclaves: Init PCI device driver

2020-05-21 Thread Andra Paraschiv
The Nitro Enclaves PCI device is used by the kernel driver as a means of communication with the hypervisor on the host where the primary VM and the enclaves run. It handles requests with regard to enclave lifetime. Setup the PCI device driver and add support for MSI-X interrupts. Signed-off-by: A