diff mbox series

[RESEND,03/32] qom: Add memory-backend-epc ObjectOptions support

Message ID 20210430062455.8117-4-yang.zhong@intel.com (mailing list archive)
State New, archived
Headers show
Series Qemu SGX virtualization | expand

Commit Message

Yang Zhong April 30, 2021, 6:24 a.m. UTC
Add the new 'memory-backend-epc' user creatable QOM object in
the ObjectOptions to support SGX, or the sgx backend object
cannot bootup.

Signed-off-by: Yang Zhong <yang.zhong@intel.com>
---
 qapi/qom.json | 2 ++
 1 file changed, 2 insertions(+)

Comments

Eric Blake May 3, 2021, 5:56 p.m. UTC | #1
On 4/30/21 1:24 AM, Yang Zhong wrote:
> Add the new 'memory-backend-epc' user creatable QOM object in
> the ObjectOptions to support SGX, or the sgx backend object
> cannot bootup.
> 
> Signed-off-by: Yang Zhong <yang.zhong@intel.com>
> ---
>  qapi/qom.json | 2 ++
>  1 file changed, 2 insertions(+)

Missing documentation, including a 'since 6.1' blurb, for the new addition.

> 
> diff --git a/qapi/qom.json b/qapi/qom.json
> index cd0e76d564..fd6fbee597 100644
> --- a/qapi/qom.json
> +++ b/qapi/qom.json
> @@ -767,6 +767,7 @@
>      { 'name': 'memory-backend-memfd',
>        'if': 'defined(CONFIG_LINUX)' },
>      'memory-backend-ram',
> +    'memory-backend-epc',
>      'pef-guest',
>      'pr-manager-helper',
>      'rng-builtin',
> @@ -824,6 +825,7 @@
>        'memory-backend-memfd':       { 'type': 'MemoryBackendMemfdProperties',
>                                        'if': 'defined(CONFIG_LINUX)' },
>        'memory-backend-ram':         'MemoryBackendProperties',
> +      'memory-backend-epc':         'MemoryBackendProperties',
>        'pr-manager-helper':          'PrManagerHelperProperties',
>        'rng-builtin':                'RngProperties',
>        'rng-egd':                    'RngEgdProperties',
>
Yang Zhong May 6, 2021, 12:38 p.m. UTC | #2
On Mon, May 03, 2021 at 12:56:55PM -0500, Eric Blake wrote:
> On 4/30/21 1:24 AM, Yang Zhong wrote:
> > Add the new 'memory-backend-epc' user creatable QOM object in
> > the ObjectOptions to support SGX, or the sgx backend object
> > cannot bootup.
> > 
> > Signed-off-by: Yang Zhong <yang.zhong@intel.com>
> > ---
> >  qapi/qom.json | 2 ++
> >  1 file changed, 2 insertions(+)
> 
> Missing documentation, including a 'since 6.1' blurb, for the new addition.
> 

  Eric, thanks for your comments! i will add new MemoryBackendEpcProperties
  properties and documents for sgx epc. thanks!

  Yang

> > 
> > diff --git a/qapi/qom.json b/qapi/qom.json
> > index cd0e76d564..fd6fbee597 100644
> > --- a/qapi/qom.json
> > +++ b/qapi/qom.json
> > @@ -767,6 +767,7 @@
> >      { 'name': 'memory-backend-memfd',
> >        'if': 'defined(CONFIG_LINUX)' },
> >      'memory-backend-ram',
> > +    'memory-backend-epc',
> >      'pef-guest',
> >      'pr-manager-helper',
> >      'rng-builtin',
> > @@ -824,6 +825,7 @@
> >        'memory-backend-memfd':       { 'type': 'MemoryBackendMemfdProperties',
> >                                        'if': 'defined(CONFIG_LINUX)' },
> >        'memory-backend-ram':         'MemoryBackendProperties',
> > +      'memory-backend-epc':         'MemoryBackendProperties',
> >        'pr-manager-helper':          'PrManagerHelperProperties',
> >        'rng-builtin':                'RngProperties',
> >        'rng-egd':                    'RngEgdProperties',
> > 
> 
> -- 
> Eric Blake, Principal Software Engineer
> Red Hat, Inc.           +1-919-301-3226
> Virtualization:  qemu.org | libvirt.org
diff mbox series

Patch

diff --git a/qapi/qom.json b/qapi/qom.json
index cd0e76d564..fd6fbee597 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -767,6 +767,7 @@ 
     { 'name': 'memory-backend-memfd',
       'if': 'defined(CONFIG_LINUX)' },
     'memory-backend-ram',
+    'memory-backend-epc',
     'pef-guest',
     'pr-manager-helper',
     'rng-builtin',
@@ -824,6 +825,7 @@ 
       'memory-backend-memfd':       { 'type': 'MemoryBackendMemfdProperties',
                                       'if': 'defined(CONFIG_LINUX)' },
       'memory-backend-ram':         'MemoryBackendProperties',
+      'memory-backend-epc':         'MemoryBackendProperties',
       'pr-manager-helper':          'PrManagerHelperProperties',
       'rng-builtin':                'RngProperties',
       'rng-egd':                    'RngEgdProperties',