#include "virsh-completer-nodedev.h"
#include "virsh-util.h"
#include "conf/node_device_conf.h"
+#include "conf/domain_conf.h"
#include "viralloc.h"
#include "virsh-nodedev.h"
#include "virsh.h"
return virshCommaStringListComplete(cap_str, (const char **)tmp);
}
+
+
+char **
+virshNodeDevicePCIBackendCompleter(vshControl *ctl G_GNUC_UNUSED,
+ const vshCmd *cmd G_GNUC_UNUSED,
+ unsigned int flags)
+{
+ virCheckFlags(0, NULL);
+
+ return virshEnumComplete(VIR_DOMAIN_HOSTDEV_PCI_BACKEND_TYPE_LAST,
+ virDomainHostdevSubsysPCIBackendTypeToString);
+}
*/
#include <config.h>
+#include "virsh-completer-nodedev.h"
#include "virsh-nodedev.h"
#include "virsh-util.h"
},
{.name = "driver",
.type = VSH_OT_STRING,
+ .completer = virshNodeDevicePCIBackendCompleter,
.help = N_("pci device assignment backend driver (e.g. 'vfio' or 'kvm')")
},
{.name = NULL}