File virtinst-smbios-unsupported-for-xenpv.patch of Package virt-manager.18136

References: bsc#1180069

--- virt-manager-2.2.1/virtinst/guest.py.orig	2021-01-07 12:44:01.976882907 -0700
+++ virt-manager-2.2.1/virtinst/guest.py	2021-01-07 12:45:08.128884483 -0700
@@ -704,6 +704,8 @@ class Guest(XMLBuilder):
             self.type != "kvm"):
             log.warning("KVM acceleration not available, using '%s'",
                             self.type)
+        if self.os.is_xenpv() and self.os.smbios_mode is not None:
+            raise RuntimeError(_("The --sysinfo flag (smbios) is not supported for Xen PV guests."))
 
     def sync_vcpus_topology(self):
         """
openSUSE Build Service is sponsored by