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

References: bsc#1180069

Index: virt-manager-5.1.0/virtinst/guest.py
===================================================================
--- virt-manager-5.1.0.orig/virtinst/guest.py
+++ virt-manager-5.1.0/virtinst/guest.py
@@ -788,6 +788,8 @@ class Guest(XMLBuilder):
 
         if wants_default_type and self.conn.is_qemu() and self.os.is_x86() and self.type != "kvm":
             log.warning("KVM acceleration not available, using '%s'", self.type)  # pragma: no cover
+        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 refresh_machine_type(self):
         """
openSUSE Build Service is sponsored by