All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-comment] [PATCH v2] content: Reserve virtio-nsm device ID
@ 2020-05-27  9:07 Petre Eftime
  2020-05-28 10:34 ` Stefan Hajnoczi
  2020-06-10 13:17 ` [virtio-comment] " Eftime, Petre
  0 siblings, 2 replies; 7+ messages in thread
From: Petre Eftime @ 2020-05-27  9:07 UTC (permalink / raw)
  To: virtio-comment; +Cc: graf, Petre Eftime

The NitroSecureModule is a device with a very stripped down
Trusted Platform Module functionality, which is used in the
context of a Nitro Enclave (see https://lkml.org/lkml/2020/4/21/1020)
to provide boot time measurement and attestation.

Since this device provides some critical cryptographic operations,
there are a series of operations which are required to have guarantees
of atomicity, ordering and consistency: operations fully succeed or fully
fail, including when some external events might interfere in the
process: live migration, crashes, etc; any failure in the critical
section requires termination of the enclave it is attached to, so
the device needs to be as resilient as possible, simplicity is
strongly desired.

To account for that, the device and driver are made to have very few
error cases in the critical path and the operations themselves can be
rolled back and retried if events happen outside the critical
area, while processing a request. The driver itself can be made very
simple and thus is easily portable.

Since the requests can be handled directly in the virtio queue, serving
most requests requires no additional buffering or memory allocations
on the host side.

Signed-off-by: Petre Eftime <epetre@amazon.com>
---
 content.tex | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/content.tex b/content.tex
index 91735e3..66c8f2b 100644
--- a/content.tex
+++ b/content.tex
@@ -2801,6 +2801,8 @@ \chapter{Device Types}\label{sec:Device Types}
 \hline
 31         &   Video decoder device \\
 \hline
+33         &   NitroSecureModule \\
+\hline
 \end{tabular}
 
 Some of the devices above are unspecified by this document,
-- 
2.20.1




Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [virtio-comment] [PATCH v2] content: Reserve virtio-nsm device ID
  2020-05-27  9:07 [virtio-comment] [PATCH v2] content: Reserve virtio-nsm device ID Petre Eftime
@ 2020-05-28 10:34 ` Stefan Hajnoczi
  2020-06-10 13:17 ` [virtio-comment] " Eftime, Petre
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Hajnoczi @ 2020-05-28 10:34 UTC (permalink / raw)
  To: Petre Eftime; +Cc: virtio-comment, graf

[-- Attachment #1: Type: text/plain, Size: 1506 bytes --]

On Wed, May 27, 2020 at 12:07:07PM +0300, Petre Eftime wrote:
> The NitroSecureModule is a device with a very stripped down
> Trusted Platform Module functionality, which is used in the
> context of a Nitro Enclave (see https://lkml.org/lkml/2020/4/21/1020)
> to provide boot time measurement and attestation.
> 
> Since this device provides some critical cryptographic operations,
> there are a series of operations which are required to have guarantees
> of atomicity, ordering and consistency: operations fully succeed or fully
> fail, including when some external events might interfere in the
> process: live migration, crashes, etc; any failure in the critical
> section requires termination of the enclave it is attached to, so
> the device needs to be as resilient as possible, simplicity is
> strongly desired.
> 
> To account for that, the device and driver are made to have very few
> error cases in the critical path and the operations themselves can be
> rolled back and retried if events happen outside the critical
> area, while processing a request. The driver itself can be made very
> simple and thus is easily portable.
> 
> Since the requests can be handled directly in the virtio queue, serving
> most requests requires no additional buffering or memory allocations
> on the host side.
> 
> Signed-off-by: Petre Eftime <epetre@amazon.com>
> ---
>  content.tex | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [virtio-comment] Re: [PATCH v2] content: Reserve virtio-nsm device ID
  2020-05-27  9:07 [virtio-comment] [PATCH v2] content: Reserve virtio-nsm device ID Petre Eftime
  2020-05-28 10:34 ` Stefan Hajnoczi
@ 2020-06-10 13:17 ` Eftime, Petre
  2020-06-10 13:22   ` Eftime, Petre
  2020-07-20 17:10   ` Michael S. Tsirkin
  1 sibling, 2 replies; 7+ messages in thread
From: Eftime, Petre @ 2020-06-10 13:17 UTC (permalink / raw)
  To: virtio-comment; +Cc: graf

[-- Attachment #1: Type: text/plain, Size: 2129 bytes --]

On 2020-05-27 12:07, Petre Eftime wrote:
> The NitroSecureModule is a device with a very stripped down
> Trusted Platform Module functionality, which is used in the
> context of a Nitro Enclave (see https://lkml.org/lkml/2020/4/21/1020)
> to provide boot time measurement and attestation.
>
> Since this device provides some critical cryptographic operations,
> there are a series of operations which are required to have guarantees
> of atomicity, ordering and consistency: operations fully succeed or fully
> fail, including when some external events might interfere in the
> process: live migration, crashes, etc; any failure in the critical
> section requires termination of the enclave it is attached to, so
> the device needs to be as resilient as possible, simplicity is
> strongly desired.
>
> To account for that, the device and driver are made to have very few
> error cases in the critical path and the operations themselves can be
> rolled back and retried if events happen outside the critical
> area, while processing a request. The driver itself can be made very
> simple and thus is easily portable.
>
> Since the requests can be handled directly in the virtio queue, serving
> most requests requires no additional buffering or memory allocations
> on the host side.
>
> Signed-off-by: Petre Eftime <epetre@amazon.com>
> ---
>   content.tex | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/content.tex b/content.tex
> index 91735e3..66c8f2b 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -2801,6 +2801,8 @@ \chapter{Device Types}\label{sec:Device Types}
>   \hline
>   31         &   Video decoder device \\
>   \hline
> +33         &   NitroSecureModule \\
> +\hline
>   \end{tabular}
>   
>   Some of the devices above are unspecified by this document,

Hi all,

I've opened a corresponding issue on Github.

|Fixes: https://github.com/oasis-tcs/virtio-spec/issues/81|

|Thank you,|
|Petre Eftime
|



Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.

[-- Attachment #2: Type: text/html, Size: 2768 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [virtio-comment] Re: [PATCH v2] content: Reserve virtio-nsm device ID
  2020-06-10 13:17 ` [virtio-comment] " Eftime, Petre
@ 2020-06-10 13:22   ` Eftime, Petre
  2020-07-20 17:10   ` Michael S. Tsirkin
  1 sibling, 0 replies; 7+ messages in thread
From: Eftime, Petre @ 2020-06-10 13:22 UTC (permalink / raw)
  To: virtio-comment; +Cc: graf


On 2020-06-10 16:17, Eftime, Petre wrote:
> On 2020-05-27 12:07, Petre Eftime wrote:
>> The NitroSecureModule is a device with a very stripped down
>> Trusted Platform Module functionality, which is used in the
>> context of a Nitro Enclave (see https://lkml.org/lkml/2020/4/21/1020)
>> to provide boot time measurement and attestation.
>>
>> Since this device provides some critical cryptographic operations,
>> there are a series of operations which are required to have guarantees
>> of atomicity, ordering and consistency: operations fully succeed or 
>> fully
>> fail, including when some external events might interfere in the
>> process: live migration, crashes, etc; any failure in the critical
>> section requires termination of the enclave it is attached to, so
>> the device needs to be as resilient as possible, simplicity is
>> strongly desired.
>>
>> To account for that, the device and driver are made to have very few
>> error cases in the critical path and the operations themselves can be
>> rolled back and retried if events happen outside the critical
>> area, while processing a request. The driver itself can be made very
>> simple and thus is easily portable.
>>
>> Since the requests can be handled directly in the virtio queue, serving
>> most requests requires no additional buffering or memory allocations
>> on the host side.
>>
>> Signed-off-by: Petre Eftime <epetre@amazon.com>
>> ---
>>   content.tex | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/content.tex b/content.tex
>> index 91735e3..66c8f2b 100644
>> --- a/content.tex
>> +++ b/content.tex
>> @@ -2801,6 +2801,8 @@ \chapter{Device Types}\label{sec:Device Types}
>>   \hline
>>   31         &   Video decoder device \\
>>   \hline
>> +33         &   NitroSecureModule \\
>> +\hline
>>   \end{tabular}
>>     Some of the devices above are unspecified by this document,
>
> Hi all,
>
> I've opened a corresponding issue on Github.
>
> |Fixes: https://github.com/oasis-tcs/virtio-spec/issues/81|
>
> |Thank you,|
> |Petre Eftime
> |
>
>
>
> Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. 
> Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. 
> Registered in Romania. Registration number J22/2621/2005.

Sorry, my mail client decided to add some extra characters.

Fixes: https://github.com/oasis-tcs/virtio-spec/issues/81

Thank you,

Petre Eftime





Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [virtio-comment] Re: [PATCH v2] content: Reserve virtio-nsm device ID
  2020-06-10 13:17 ` [virtio-comment] " Eftime, Petre
  2020-06-10 13:22   ` Eftime, Petre
@ 2020-07-20 17:10   ` Michael S. Tsirkin
  2020-07-21 11:23     ` Eftime, Petre
  1 sibling, 1 reply; 7+ messages in thread
From: Michael S. Tsirkin @ 2020-07-20 17:10 UTC (permalink / raw)
  To: Eftime, Petre; +Cc: virtio-comment, graf

On Wed, Jun 10, 2020 at 04:17:25PM +0300, Eftime, Petre wrote:
> On 2020-05-27 12:07, Petre Eftime wrote:
> 
>     The NitroSecureModule is a device with a very stripped down
>     Trusted Platform Module functionality, which is used in the
>     context of a Nitro Enclave (see https://lkml.org/lkml/2020/4/21/1020)
>     to provide boot time measurement and attestation.
> 
>     Since this device provides some critical cryptographic operations,
>     there are a series of operations which are required to have guarantees
>     of atomicity, ordering and consistency: operations fully succeed or fully
>     fail, including when some external events might interfere in the
>     process: live migration, crashes, etc; any failure in the critical
>     section requires termination of the enclave it is attached to, so
>     the device needs to be as resilient as possible, simplicity is
>     strongly desired.
> 
>     To account for that, the device and driver are made to have very few
>     error cases in the critical path and the operations themselves can be
>     rolled back and retried if events happen outside the critical
>     area, while processing a request. The driver itself can be made very
>     simple and thus is easily portable.
> 
>     Since the requests can be handled directly in the virtio queue, serving
>     most requests requires no additional buffering or memory allocations
>     on the host side.
> 
>     Signed-off-by: Petre Eftime <epetre@amazon.com>
>     ---
>      content.tex | 2 ++
>      1 file changed, 2 insertions(+)
> 
>     diff --git a/content.tex b/content.tex
>     index 91735e3..66c8f2b 100644
>     --- a/content.tex
>     +++ b/content.tex
>     @@ -2801,6 +2801,8 @@ \chapter{Device Types}\label{sec:Device Types}
>      \hline
>      31         &   Video decoder device \\
>      \hline
>     +33         &   NitroSecureModule \\
>     +\hline
>      \end{tabular}
> 
>      Some of the devices above are unspecified by this document,
> 
> Hi all,
> 
> I've opened a corresponding issue on Github.
> 
> Fixes: https://github.com/oasis-tcs/virtio-spec/issues/81
> 
> Thank you,
> Petre Eftime


Looks like no one minds. Do you want the TC to vote on this?

> 
> Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar
> Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in
> Romania. Registration number J22/2621/2005.
> 


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [virtio-comment] Re: [PATCH v2] content: Reserve virtio-nsm device ID
  2020-07-20 17:10   ` Michael S. Tsirkin
@ 2020-07-21 11:23     ` Eftime, Petre
       [not found]       ` <97eafeaa-7897-39b7-10fb-5ffed2298b00@amazon.de>
  0 siblings, 1 reply; 7+ messages in thread
From: Eftime, Petre @ 2020-07-21 11:23 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: virtio-comment, graf

On 2020-07-20 20:10, Michael S. Tsirkin wrote:
> On Wed, Jun 10, 2020 at 04:17:25PM +0300, Eftime, Petre wrote:
>> On 2020-05-27 12:07, Petre Eftime wrote:
>>
>>      The NitroSecureModule is a device with a very stripped down
>>      Trusted Platform Module functionality, which is used in the
>>      context of a Nitro Enclave (see https://lkml.org/lkml/2020/4/21/1020)
>>      to provide boot time measurement and attestation.
>>
>>      Since this device provides some critical cryptographic operations,
>>      there are a series of operations which are required to have guarantees
>>      of atomicity, ordering and consistency: operations fully succeed or fully
>>      fail, including when some external events might interfere in the
>>      process: live migration, crashes, etc; any failure in the critical
>>      section requires termination of the enclave it is attached to, so
>>      the device needs to be as resilient as possible, simplicity is
>>      strongly desired.
>>
>>      To account for that, the device and driver are made to have very few
>>      error cases in the critical path and the operations themselves can be
>>      rolled back and retried if events happen outside the critical
>>      area, while processing a request. The driver itself can be made very
>>      simple and thus is easily portable.
>>
>>      Since the requests can be handled directly in the virtio queue, serving
>>      most requests requires no additional buffering or memory allocations
>>      on the host side.
>>
>>      Signed-off-by: Petre Eftime <epetre@amazon.com>
>>      ---
>>       content.tex | 2 ++
>>       1 file changed, 2 insertions(+)
>>
>>      diff --git a/content.tex b/content.tex
>>      index 91735e3..66c8f2b 100644
>>      --- a/content.tex
>>      +++ b/content.tex
>>      @@ -2801,6 +2801,8 @@ \chapter{Device Types}\label{sec:Device Types}
>>       \hline
>>       31         &   Video decoder device \\
>>       \hline
>>      +33         &   NitroSecureModule \\
>>      +\hline
>>       \end{tabular}
>>
>>       Some of the devices above are unspecified by this document,
>>
>> Hi all,
>>
>> I've opened a corresponding issue on Github.
>>
>> Fixes: https://github.com/oasis-tcs/virtio-spec/issues/81
>>
>> Thank you,
>> Petre Eftime
>
> Looks like no one minds. Do you want the TC to vote on this?
>
Yes, would help us get started towards upstreaming the Linux driver for 
this.

Thank you,
Petre Eftime





Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [virtio-comment] Re: [PATCH v2] content: Reserve virtio-nsm device ID
       [not found]       ` <97eafeaa-7897-39b7-10fb-5ffed2298b00@amazon.de>
@ 2020-08-10 14:34         ` Michael S. Tsirkin
  0 siblings, 0 replies; 7+ messages in thread
From: Michael S. Tsirkin @ 2020-08-10 14:34 UTC (permalink / raw)
  To: Alexander Graf; +Cc: Eftime, Petre, virtio-comment

On Mon, Aug 10, 2020 at 04:06:26PM +0200, Alexander Graf wrote:
> 
> 
> On 21.07.20 13:23, Eftime, Petre wrote:
> > On 2020-07-20 20:10, Michael S. Tsirkin wrote:
> > > On Wed, Jun 10, 2020 at 04:17:25PM +0300, Eftime, Petre wrote:
> > > > On 2020-05-27 12:07, Petre Eftime wrote:
> > > > 
> > > >      The NitroSecureModule is a device with a very stripped down
> > > >      Trusted Platform Module functionality, which is used in the
> > > >      context of a Nitro Enclave (see
> > > > https://lkml.org/lkml/2020/4/21/1020)
> > > >      to provide boot time measurement and attestation.
> > > > 
> > > >      Since this device provides some critical cryptographic operations,
> > > >      there are a series of operations which are required to have
> > > > guarantees
> > > >      of atomicity, ordering and consistency: operations fully
> > > > succeed or fully
> > > >      fail, including when some external events might interfere in the
> > > >      process: live migration, crashes, etc; any failure in the critical
> > > >      section requires termination of the enclave it is attached to, so
> > > >      the device needs to be as resilient as possible, simplicity is
> > > >      strongly desired.
> > > > 
> > > >      To account for that, the device and driver are made to have
> > > > very few
> > > >      error cases in the critical path and the operations
> > > > themselves can be
> > > >      rolled back and retried if events happen outside the critical
> > > >      area, while processing a request. The driver itself can be
> > > > made very
> > > >      simple and thus is easily portable.
> > > > 
> > > >      Since the requests can be handled directly in the virtio
> > > > queue, serving
> > > >      most requests requires no additional buffering or memory
> > > > allocations
> > > >      on the host side.
> > > > 
> > > >      Signed-off-by: Petre Eftime <epetre@amazon.com>
> > > >      ---
> > > >       content.tex | 2 ++
> > > >       1 file changed, 2 insertions(+)
> > > > 
> > > >      diff --git a/content.tex b/content.tex
> > > >      index 91735e3..66c8f2b 100644
> > > >      --- a/content.tex
> > > >      +++ b/content.tex
> > > >      @@ -2801,6 +2801,8 @@ \chapter{Device
> > > > Types}\label{sec:Device Types}
> > > >       \hline
> > > >       31         &   Video decoder device \\
> > > >       \hline
> > > >      +33         &   NitroSecureModule \\
> > > >      +\hline
> > > >       \end{tabular}
> > > > 
> > > >       Some of the devices above are unspecified by this document,
> > > > 
> > > > Hi all,
> > > > 
> > > > I've opened a corresponding issue on Github.
> > > > 
> > > > Fixes: https://github.com/oasis-tcs/virtio-spec/issues/81
> > > > 
> > > > Thank you,
> > > > Petre Eftime
> > > 
> > > Looks like no one minds. Do you want the TC to vote on this?
> > > 
> > Yes, would help us get started towards upstreaming the Linux driver for
> > this.
> 
> So what is the next step to get the vote happening? :)
> 
> 
> Alex
> 

Missed the answer, sorry.  Started vote now.

> 
> Amazon Development Center Germany GmbH
> Krausenstr. 38
> 10117 Berlin
> Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
> Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
> Sitz: Berlin
> Ust-ID: DE 289 237 879
> 
> 


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-08-10 14:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27  9:07 [virtio-comment] [PATCH v2] content: Reserve virtio-nsm device ID Petre Eftime
2020-05-28 10:34 ` Stefan Hajnoczi
2020-06-10 13:17 ` [virtio-comment] " Eftime, Petre
2020-06-10 13:22   ` Eftime, Petre
2020-07-20 17:10   ` Michael S. Tsirkin
2020-07-21 11:23     ` Eftime, Petre
     [not found]       ` <97eafeaa-7897-39b7-10fb-5ffed2298b00@amazon.de>
2020-08-10 14:34         ` Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.