[Kimchi-devel] [PATCH][Kimchi] Remove hack that disables vhosts-net

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Wed Feb 3 18:34:42 UTC 2016


Reviewed-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>

On 02/02/2016 02:26 PM, Ramon Medeiros wrote:
> Vhosts-net wasn't support on the past. Now, as it works, enable the
> feature.
>
> Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
> ---
>   xmlutils/interface.py | 9 ---------
>   1 file changed, 9 deletions(-)
>
> diff --git a/xmlutils/interface.py b/xmlutils/interface.py
> index 814caf9..de80524 100644
> --- a/xmlutils/interface.py
> +++ b/xmlutils/interface.py
> @@ -18,7 +18,6 @@
>   # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
>
>   import lxml.etree as ET
> -from distutils.version import LooseVersion
>   from lxml.builder import E
>
>   from wok.plugins.kimchi import osinfo
> @@ -62,12 +61,4 @@ def get_iface_xml(params, arch=None, os_distro=None, os_version=None):
>       if mac is not None:
>           interface.append(E.mac(address=mac))
>
> -    # Hack to disable vhost feature in Ubuntu LE and SLES LE (PPC)
> -    if arch == 'ppc64' and \
> -       ((os_distro == 'ubuntu' and
> -         LooseVersion(os_version) >= LooseVersion('14.04')) or
> -        (os_distro == 'sles' and
> -         LooseVersion(os_version) >= LooseVersion('12'))):
> -        interface.append(E.driver(name='qemu'))
> -
>       return ET.tostring(interface, encoding='utf-8', pretty_print=True)




More information about the Kimchi-devel mailing list