# vim: set fileencoding=utf-8
# <NAME> <<EMAIL>>
#
# HICA - Host integrated container applications
#
# MIT License (C) 2015

from base.hica_base import *

class KvmPassthroughInjector(HicaInjector):
  def get_description(self):
    return "Bind mounts KVM device into the container"

  def get_config_key(self):
    return "io.hica.kvm_passthrough"

  def get_injected_args(self):
    return (("--kvm-device", HicaValueType.DEVICE, "/dev/kvm"),)

def register(context):
  obj = KvmPassthroughInjector()
  context[obj.get_config_key()] = obj

# vim: set fileencoding=utf-8
# <NAME> <<EMAIL>>
#
# HICA - Host integrated container applications
#
# MIT License (C) 2015

from base.hica_base import *

class KvmPassthroughInjector(HicaInjector):
  def get_description(self):
    return "Bind mounts KVM device into the container"

  def get_config_key(self):
    return "io.hica.kvm_passthrough"

  def get_injected_args(self):
    return (("--kvm-device", HicaValueType.DEVICE, "/dev/kvm"),)

def register(context):
  obj = KvmPassthroughInjector()
  context[obj.get_config_key()] = obj

# vim: set fileencoding=utf-8 # <NAME> <<EMAIL>> # # HICA - Host integrated container applications # # MIT License (C) 2015