break;
case REC_TYPE_EMULATOR_XENSTORE_DATA:
- if (dcs->guest_config->b_info.device_model_version ==
- LIBXL_DEVICE_MODEL_VERSION_NONE) {
+ if (dcs->guest_config->b_info.type != LIBXL_DOMAIN_TYPE_HVM) {
rc = ERROR_FAIL;
LOG(ERROR,
"Received a xenstore emulator record when none was expected");
break;
case REC_TYPE_EMULATOR_CONTEXT:
- if (dcs->guest_config->b_info.device_model_version ==
- LIBXL_DEVICE_MODEL_VERSION_NONE) {
+ if (dcs->guest_config->b_info.type != LIBXL_DOMAIN_TYPE_HVM) {
rc = ERROR_FAIL;
LOG(ERROR,
"Received an emulator context record when none was expected");
sws_record_done_cb cb)
{
assert(stream->emu_sub_hdr.id != EMULATOR_UNKNOWN);
- assert(stream->device_model_version != LIBXL_DEVICE_MODEL_VERSION_NONE);
setup_generic_write(egc, stream, what, hdr, emu_hdr, body, cb);
}
stream->emu_sub_hdr.id = EMULATOR_QEMU_UPSTREAM;
break;
- case LIBXL_DEVICE_MODEL_VERSION_NONE:
- stream->emu_sub_hdr.id = EMULATOR_UNKNOWN;
- break;
-
default:
rc = ERROR_FAIL;
LOG(ERROR, "Unknown emulator for HVM domain");
char *buf = NULL;
uint32_t len = 0;
- if (stream->device_model_version == LIBXL_DEVICE_MODEL_VERSION_NONE) {
+ if (dss->type != LIBXL_DOMAIN_TYPE_HVM) {
emulator_xenstore_record_done(egc, stream);
return;
}
struct stat st;
int rc;
- assert(dss->type == LIBXL_DOMAIN_TYPE_HVM);
-
- if (stream->device_model_version == LIBXL_DEVICE_MODEL_VERSION_NONE) {
+ if (dss->type != LIBXL_DOMAIN_TYPE_HVM) {
emulator_context_record_done(egc, stream);
return;
}