Skip to contentSkip to conversation

QAPI patches patches for 2024-07-29

GIT PULL Applied Markus Armbruster 2 participants 4 messages Jul 29, 2024 – Jul 30, 2024

lore
Share & tools
lore
#0 lore raw

The following changes since commit 93b799fafd9170da3a79a533ea6f73a18de82e22:

Merge tag 'pull-ppc-for-9.1-2-20240726-1' of https://gitlab.com/npiggin/qemu into staging (2024-07-26 15:10:45 +1000)

are available in the Git repository at:

https://repo.or.cz/qemu/armbru.git tags/pull-qapi-2024-07-29

for you to fetch changes up to bc2e34e343b40b83cca82409db9c126df2e28c81:

qapi/machine: Belatedly document target loongarch64 is since 7.1 (2024-07-29 07:29:47 +0200)

----------------------------------------------------------------
QAPI patches patches for 2024-07-29

----------------------------------------------------------------
Markus Armbruster (1):
qapi/machine: Belatedly document target loongarch64 is since 7.1

Stefano Garzarella (1):
qapi/qom: make some QOM properties depend on the build settings

 qapi/crypto.json  |  3 ++-
 qapi/machine.json |  2 ++
 qapi/qom.json     | 21 ++++++++++++++-------
 3 files changed, 18 insertions(+), 8 deletions(-)
Signature · 1 line
2.45.0
#1 lore raw

[PULL 1/2] qapi/qom: make some QOM properties depend on the build settings

From: Stefano Garzarella <[email protected]>

Some QOM properties are associated with ObjectTypes that already depend on CONFIG_* switches. So to avoid generating dead code, let's also make the definition of those properties dependent on the corresponding CONFIG_*.

Message-ID: <[email protected]>

[Make SecretKeyringProperties conditional, too]
---
 qapi/crypto.json |  3 ++-
 qapi/qom.json    | 21 ++++++++++++++-------
 2 files changed, 16 insertions(+), 8 deletions(-)
qapi/crypto.json +2 -1
index f03bdab8c9..39b191e8a2 100644
@@ -485,7 +485,8 @@
 ##
 { 'struct': 'SecretKeyringProperties',
   'base': 'SecretCommonProperties',
-  'data': { 'serial': 'int32' } }
+  'data': { 'serial': 'int32' },
+  'if': 'CONFIG_SECRET_KEYRING' }
 
 ##
 # @TlsCredsProperties:
qapi/qom.json +14 -7
index 7e780e1791..fc035f126a 100644
@@ -222,7 +222,8 @@
 ##
 { 'struct': 'CanHostSocketcanProperties',
   'data': { 'if': 'str',
-            'canbus': 'str' } }
+            'canbus': 'str' },
+  'if': 'CONFIG_LINUX' }
 
 ##
 # @ColoCompareProperties:
@@ -305,7 +306,8 @@
 ##
 { 'struct': 'CryptodevVhostUserProperties',
   'base': 'CryptodevBackendProperties',
-  'data': { 'chardev': 'str' } }
+  'data': { 'chardev': 'str' },
+  'if': 'CONFIG_VHOST_CRYPTO' }
 
 ##
 # @DBusVMStateProperties:
@@ -514,7 +516,8 @@
   'data': { 'evdev': 'str',
             '*grab_all': 'bool',
             '*repeat': 'bool',
-            '*grab-toggle': 'GrabToggleKeys' } }
+            '*grab-toggle': 'GrabToggleKeys' },
+  'if': 'CONFIG_LINUX' }
 
 ##
 # @EventLoopBaseProperties:
@@ -718,7 +721,8 @@
   'base': 'MemoryBackendProperties',
   'data': { '*hugetlb': 'bool',
             '*hugetlbsize': 'size',
-            '*seal': 'bool' } }
+            '*seal': 'bool' },
+  'if': 'CONFIG_LINUX' }
 
 ##
 # @MemoryBackendShmProperties:
@@ -748,7 +752,8 @@
 ##
 { 'struct': 'MemoryBackendEpcProperties',
   'base': 'MemoryBackendProperties',
-  'data': {} }
+  'data': {},
+  'if': 'CONFIG_LINUX' }
 
 ##
 # @PrManagerHelperProperties:
@@ -761,7 +766,8 @@
 # Since: 2.11
 ##
 { 'struct': 'PrManagerHelperProperties',
-  'data': { 'path': 'str' } }
+  'data': { 'path': 'str' },
+  'if': 'CONFIG_LINUX' }
 
 ##
 # @QtestProperties:
@@ -884,7 +890,8 @@
 ##
 { 'struct': 'RngRandomProperties',
   'base': 'RngProperties',
-  'data': { '*filename': 'str' } }
+  'data': { '*filename': 'str' },
+  'if': 'CONFIG_POSIX' }
 
 ##
 # @SevCommonProperties:
Signature · 1 line
2.45.0
#2 lore raw

[PULL 2/2] qapi/machine: Belatedly document target loongarch64 is since 7.1

In reply to Markus Armbruster
Fixes a8a506c39070 (hw/loongarch: Add support loongson3 virt machine type.)

Message-ID: <[email protected]>

---
 qapi/machine.json | 2 ++
 1 file changed, 2 insertions(+)
qapi/machine.json +2 -0
index f9ea6b3e97..fcfd249e2d 100644
@@ -24,6 +24,8 @@
 #
 # @avr: since 5.1
 #
+# @loongarch64: since 7.1
+#
 # .. note:: The resulting QMP strings can be appended to the
 #    "qemu-system-" prefix to produce the corresponding QEMU executable
 #    name.  This is true even for "qemu-system-x86_64".
Signature · 1 line
2.45.0
#3 lore raw
In reply to Markus Armbruster
Quoted 6 lines · Markus Armbruster

The following changes since commit 93b799fafd9170da3a79a533ea6f73a18de82e22:

   Merge tag 'pull-ppc-for-9.1-2-20240726-1' ofhttps://gitlab.com/npiggin/qemu into staging (2024-07-26 15:10:45 +1000)

are available in the Git repository at:

Quoted 8 lines
   https://repo.or.cz/qemu/armbru.git tags/pull-qapi-2024-07-29

for you to fetch changes up to bc2e34e343b40b83cca82409db9c126df2e28c81:

   qapi/machine: Belatedly document target loongarch64 is since 7.1 (2024-07-29 07:29:47 +0200)

----------------------------------------------------------------
QAPI patches patches for 2024-07-29

Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/9.1 as appropriate.

r~