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);
+ if (def->vkb_device != -1)
+ libxl_defbool_set(&b_info->u.hvm.vkb_device, def->vkb_device);
+ // maybe just disable it by default, and let libxlMakeVfbList() add
+ // the ones needed.
#endif
for (i = 0; i < def->ninputs; i++) {
char **usbdevice;
+ // maybe reenable vkb_device, if bus == VIR_DOMAIN_INPUT_BUS_XEN
if (def->inputs[i]->bus != VIR_DOMAIN_INPUT_BUS_USB)
continue;
libxl_device_vkb *x_vkbs;
size_t i;
+ // handle vkb_device here?
if (nvfbs == 0)
return 0;
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;
}
int hvm = def->os.type == VIR_DOMAIN_OSTYPE_HVM;
virDomainGraphicsDef *graphics = NULL;
+ // handle vkb_device here?
+
if (hvm) {
if (xenConfigGetBool(conf, "vnc", &val, 0) < 0)
goto cleanup;
return -1;
}
}
+
+ if (xenConfigGetBool(conf, "vkb_device", &def->vkb_device, -1) < 0)
+ return -1;
} else {
if (xenConfigCopyStringOpt(conf, "bootloader", &def->os.bootloader) < 0)
return -1;