libxl_defbool_set(&b_info->u.hvm.vnc.enable, 0);
libxl_defbool_set(&b_info->u.hvm.sdl.enable, 0);
+#ifdef LIBXL_HAVE_BUILDINFO_VKB_DEVICE
+ if (cfg->has_vkb_device)
+ libxl_defbool_set(&b_info->u.hvm.vkb_device, cfg->vkb_device);
+#endif
+
for (i = 0; i < def->ninputs; i++) {
char **usbdevice;
const char *filename)
{
g_autoptr(virConf) conf = NULL;
+ int r;
/* Check the file is readable before opening it, otherwise
* libvirt emits an error.
if (virConfGetValueBool(conf, "nested_hvm", &cfg->nested_hvm) < 0)
return -1;
+ r = virConfGetValueBool(conf, "vkb_device", &cfg->vkb_device);
+ if (r == 1)
+ cfg->has_vkb_device = true;
+ if (r < 0)
+ return -1;
+
return 0;
}