diff mbox series

[RFC,2/3] genport: Add json support for generic port

Message ID 168185650912.899932.17915407771139232861.stgit@djiang5-mobl3 (mailing list archive)
State New, archived
Headers show
Series QEMU ACPI generic port support | expand

Commit Message

Dave Jiang April 18, 2023, 10:21 p.m. UTC
Add QOM json update for ACPI generic port object to support HMAT
enumeration.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
 qapi/machine.json |    3 ++-
 qapi/qom.json     |   12 ++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/qapi/machine.json b/qapi/machine.json
index 068427b8feb8..39cb5bd713f6 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -479,7 +479,8 @@ 
    '*cpus':   ['uint16'],
    '*mem':    'size',
    '*memdev': 'str',
-   '*initiator': 'uint16' }}
+   '*initiator': 'uint16',
+   '*genport': 'str' }}
 
 ##
 # @NumaDistOptions:
diff --git a/qapi/qom.json b/qapi/qom.json
index 30e76653ad28..8f5faff49114 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -444,6 +444,16 @@ 
   'base': 'NetfilterProperties',
   'data': { '*vnet_hdr_support': 'bool' } }
 
+##
+# @GenericPortDeviceProperties:
+#
+# Properties for generic port devices.
+#
+# Since: 7.2
+##
+{ 'struct': 'GenericPortDeviceProperties',
+  'data': {} }
+
 ##
 # @InputBarrierProperties:
 #
@@ -886,6 +896,7 @@ 
     'filter-redirector',
     'filter-replay',
     'filter-rewriter',
+    'genport',
     'input-barrier',
     { 'name': 'input-linux',
       'if': 'CONFIG_LINUX' },
@@ -955,6 +966,7 @@ 
       'filter-redirector':          'FilterRedirectorProperties',
       'filter-replay':              'NetfilterProperties',
       'filter-rewriter':            'FilterRewriterProperties',
+      'genport':                    'GenericPortDeviceProperties',
       'input-barrier':              'InputBarrierProperties',
       'input-linux':                { 'type': 'InputLinuxProperties',
                                       'if': 'CONFIG_LINUX' },