[Pkg-libvirt-commits] [Git][libvirt-team/libvirt-python][upstream/latest] New upstream version 8.0.0

Guido Günther (@agx) gitlab at salsa.debian.org
Tue Feb 22 10:06:24 GMT 2022



Guido Günther pushed to branch upstream/latest at Libvirt Packaging Team / libvirt-python


Commits:
9a84d03c by Guido Günther at 2022-02-22T10:57:40+01:00
New upstream version 8.0.0
- - - - -


7 changed files:

- ChangeLog
- PKG-INFO
- generator.py
- libvirt-override-api.xml
- libvirt-override.c
- libvirt-python.spec
- setup.py


Changes:

=====================================
ChangeLog
=====================================
@@ -1,3 +1,27 @@
+2022-01-05 Daniel P. Berrangé  <berrange at redhat.com>
+    
+    Add an override impl for virDomainSetLaunchSecurityState
+    
+    
+2021-12-01 Jiri Denemark  <jdenemar at redhat.com>
+    
+    Post-release version bump to 8.0.0
+    
+    
+2021-12-01 Daniel P. Berrangé  <berrange at redhat.com>
+    
+    Switch to new GitHub repo-lockdown configuration
+    The repo-lockdown service used to run as a bot outside GitHub, but has
+    now switched to using the GitHub Actions workflow framework. This
+    requires use of a new configuration file.
+    
+    
+    
+2021-11-01 Jiri Denemark  <jdenemar at redhat.com>
+    
+    Post-release version bump to 7.10.0
+    
+    
 2021-10-08 Daniel P. Berrangé  <berrange at redhat.com>
     
     Add support for domain event for memory device size change


=====================================
PKG-INFO
=====================================
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: libvirt-python
-Version: 7.9.0
+Version: 8.0.0
 Summary: The libvirt virtualization API python binding
 Home-page: http://www.libvirt.org
 Author: Libvirt Maintainers


=====================================
generator.py
=====================================
@@ -473,6 +473,7 @@ skip_impl = {
     'virDomainGetGuestVcpus',
     'virConnectBaselineHypervisorCPU',
     'virDomainGetLaunchSecurityInfo',
+    'virDomainSetLaunchSecurityState',
     'virNodeGetSEVInfo',
     'virNetworkPortGetParameters',
     'virNetworkPortSetParameters',


=====================================
libvirt-override-api.xml
=====================================
@@ -845,5 +845,12 @@
       <arg name='domain' type='virDomainPtr' info='a domain object'/>
       <arg name='flags' type='unsigned int' info='optional fine-tuning flags'/>
     </function>
+    <function name='virDomainSetLaunchSecurityState' file='python'>
+      <info>Set a launch security secret in the guest's memory.</info>
+      <return type='int' info='0 in case of success, -1 in case of failure.'/>
+      <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
+      <arg name='params' type='virTypedParameterPtr' info='pointer to launch security state objects'/>
+      <arg name='flags' type='unsigned int' info='currently used, set to 0.'/>
+    </function>
   </symbols>
 </api>


=====================================
libvirt-override.c
=====================================
@@ -10647,6 +10647,54 @@ libvirt_virDomainGetMessages(PyObject *self ATTRIBUTE_UNUSED,
 }
 #endif /* LIBVIR_CHECK_VERSION(7, 1, 0) */
 
+#if LIBVIR_CHECK_VERSION(8, 0, 0)
+
+static virPyTypedParamsHint virPyDomainSetLaunchSecurityStateParams[] = {
+    { VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET, VIR_TYPED_PARAM_STRING },
+    { VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET_HEADER, VIR_TYPED_PARAM_STRING },
+    { VIR_DOMAIN_LAUNCH_SECURITY_SEV_SECRET_SET_ADDRESS, VIR_TYPED_PARAM_ULLONG },
+};
+
+static PyObject *
+libvirt_virDomainSetLaunchSecurityState(PyObject *self ATTRIBUTE_UNUSED,
+                                        PyObject *args)
+{
+    PyObject *pyobj_dom = NULL;
+    PyObject *pyobj_dict = NULL;
+
+    virDomainPtr dom;
+    virTypedParameterPtr params = NULL;
+    int nparams = 0;
+    unsigned int flags;
+    int c_retval;
+
+    if (!PyArg_ParseTuple(args, (char *)"OOI:virDomainSetLaunchSecurityState",
+                          &pyobj_dom, &pyobj_dict, &flags))
+        return NULL;
+
+    if (PyDict_Check(pyobj_dict)) {
+        if (virPyDictToTypedParams(pyobj_dict, &params, &nparams,
+                                   virPyDomainSetLaunchSecurityStateParams,
+                                   VIR_N_ELEMENTS(virPyDomainSetLaunchSecurityStateParams)) < 0) {
+            return NULL;
+        }
+    } else {
+        PyErr_Format(PyExc_TypeError, "Launch security state params must be "
+                     "a dictionary");
+        return NULL;
+    }
+
+    dom = (virDomainPtr) PyvirDomain_Get(pyobj_dom);
+
+    LIBVIRT_BEGIN_ALLOW_THREADS;
+    c_retval = virDomainSetLaunchSecurityState(dom, params, nparams, flags);
+    LIBVIRT_END_ALLOW_THREADS;
+
+    virTypedParamsFree(params, nparams);
+
+    return libvirt_intWrap(c_retval);
+}
+#endif /* LIBVIR_CHECK_VERSION(8, 0, 0) */
 
 /************************************************************************
  *									*
@@ -10922,6 +10970,9 @@ static PyMethodDef libvirtMethods[] = {
 #if LIBVIR_CHECK_VERSION(7, 8, 0)
     {(char *) "virNodeDeviceGetAutostart", libvirt_virNodeDeviceGetAutostart, METH_VARARGS, NULL},
 #endif /* LIBVIR_CHECK_VERSION(7, 8, 0) */
+#if LIBVIR_CHECK_VERSION(8, 0, 0)
+    {(char *) "virDomainSetLaunchSecurityState", libvirt_virDomainSetLaunchSecurityState, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(8, 0, 0) */
     {NULL, NULL, 0, NULL}
 };
 


=====================================
libvirt-python.spec
=====================================
@@ -14,7 +14,7 @@
 
 Summary: The libvirt virtualization API python3 binding
 Name: libvirt-python
-Version: 7.9.0
+Version: 8.0.0
 Release: 1%{?dist}
 Source0: https://libvirt.org/sources/python/%{name}-%{version}.tar.gz
 Url: https://libvirt.org


=====================================
setup.py
=====================================
@@ -335,7 +335,7 @@ class my_clean(clean):
 _c_modules, _py_modules = get_module_lists()
 
 setup(name = 'libvirt-python',
-      version = '7.9.0',
+      version = '8.0.0',
       url = 'http://www.libvirt.org',
       maintainer = 'Libvirt Maintainers',
       maintainer_email = 'libvir-list at redhat.com',



View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt-python/-/commit/9a84d03cb7b422bea391064db61fd4714b9d56f2

-- 
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt-python/-/commit/9a84d03cb7b422bea391064db61fd4714b9d56f2
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20220222/5418c57f/attachment-0001.htm>


More information about the Pkg-libvirt-commits mailing list