Re: [PATCH v4 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-07-06 Thread Paraschiv, Andra-Irina
On 06/07/2020 11:01, Alexander Graf wrote: On 06.07.20 09:49, Paraschiv, Andra-Irina wrote: On 06/07/2020 10:13, Alexander Graf wrote: On 22.06.20 22:03, Andra Paraschiv wrote: The Nitro Enclaves driver provides an ioctl interface to the user space for enclave lifetime management

Re: [PATCH v4 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-07-06 Thread Alexander Graf
On 06.07.20 09:49, Paraschiv, Andra-Irina wrote: On 06/07/2020 10:13, Alexander Graf wrote: On 22.06.20 22:03, Andra Paraschiv wrote: The Nitro Enclaves driver provides an ioctl interface to the user space for enclave lifetime management e.g. enclave creation / termination and setting

Re: [PATCH v4 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-07-06 Thread Paraschiv, Andra-Irina
On 06/07/2020 10:13, Alexander Graf wrote: On 22.06.20 22:03, Andra Paraschiv wrote: The Nitro Enclaves driver provides an ioctl interface to the user space for enclave lifetime management e.g. enclave creation / termination and setting enclave resources such as memory and CPU. This ioctl

Re: [PATCH v4 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-07-06 Thread Alexander Graf
On 22.06.20 22:03, Andra Paraschiv wrote: The Nitro Enclaves driver provides an ioctl interface to the user space for enclave lifetime management e.g. enclave creation / termination and setting enclave resources such as memory and CPU. This ioctl interface is mapped to a Nitro Enclaves misc

Re: [PATCH v4 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-06-30 Thread Paraschiv, Andra-Irina
On 30/06/2020 11:05, Greg KH wrote: On Mon, Jun 29, 2020 at 08:45:25PM +0300, Paraschiv, Andra-Irina wrote: On 29/06/2020 19:20, Greg KH wrote: On Mon, Jun 22, 2020 at 11:03:18PM +0300, Andra Paraschiv wrote: +static int __init ne_init(void) +{ + struct pci_dev *pdev =

Re: [PATCH v4 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-06-30 Thread Greg KH
On Mon, Jun 29, 2020 at 08:45:25PM +0300, Paraschiv, Andra-Irina wrote: > > > On 29/06/2020 19:20, Greg KH wrote: > > > > On Mon, Jun 22, 2020 at 11:03:18PM +0300, Andra Paraschiv wrote: > > > +static int __init ne_init(void) > > > +{ > > > + struct pci_dev *pdev =

Re: [PATCH v4 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-06-29 Thread Greg KH
On Mon, Jun 22, 2020 at 11:03:18PM +0300, Andra Paraschiv wrote: > +static int __init ne_init(void) > +{ > + struct pci_dev *pdev = pci_get_device(PCI_VENDOR_ID_AMAZON, > + PCI_DEVICE_ID_NE, NULL); > + int rc = -EINVAL; > + > + if (!pdev) > +

Re: [PATCH v4 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-06-29 Thread Paraschiv, Andra-Irina
On 29/06/2020 19:20, Greg KH wrote: On Mon, Jun 22, 2020 at 11:03:18PM +0300, Andra Paraschiv wrote: +static int __init ne_init(void) +{ + struct pci_dev *pdev = pci_get_device(PCI_VENDOR_ID_AMAZON, + PCI_DEVICE_ID_NE, NULL); + int rc =

[PATCH v4 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-06-22 Thread Andra Paraschiv
The Nitro Enclaves driver provides an ioctl interface to the user space for enclave lifetime management e.g. enclave creation / termination and setting enclave resources such as memory and CPU. This ioctl interface is mapped to a Nitro Enclaves misc device. Signed-off-by: Andra Paraschiv ---