Lines Matching refs:model

2380 void kvm_s390_get_host_cpu_model(S390CPUModel *model, Error **errp)  in kvm_s390_get_host_cpu_model()  argument
2391 memset(model, 0, sizeof(*model)); in kvm_s390_get_host_cpu_model()
2407 model->lowest_ibc = lowest_ibc(prop.ibc); in kvm_s390_get_host_cpu_model()
2410 model->cpu_id = cpuid_id(prop.cpuid); in kvm_s390_get_host_cpu_model()
2411 model->cpu_id_format = cpuid_format(prop.cpuid); in kvm_s390_get_host_cpu_model()
2412 model->cpu_ver = 0xff; in kvm_s390_get_host_cpu_model()
2415 s390_add_from_feat_block(model->features, S390_FEAT_TYPE_STFL, in kvm_s390_get_host_cpu_model()
2418 if (test_bit(S390_FEAT_STFLE, model->features)) { in kvm_s390_get_host_cpu_model()
2419 set_bit(S390_FEAT_DAT_ENH_2, model->features); in kvm_s390_get_host_cpu_model()
2422 rc = query_cpu_feat(model->features); in kvm_s390_get_host_cpu_model()
2428 rc = query_cpu_subfunc(model->features); in kvm_s390_get_host_cpu_model()
2435 if (!test_bit(S390_FEAT_MULTIPLE_EPOCH, model->features)) { in kvm_s390_get_host_cpu_model()
2436 clear_bit(S390_FEAT_PTFF_QSIE, model->features); in kvm_s390_get_host_cpu_model()
2437 clear_bit(S390_FEAT_PTFF_QTOUE, model->features); in kvm_s390_get_host_cpu_model()
2438 clear_bit(S390_FEAT_PTFF_STOE, model->features); in kvm_s390_get_host_cpu_model()
2439 clear_bit(S390_FEAT_PTFF_STOUE, model->features); in kvm_s390_get_host_cpu_model()
2444 set_bit(S390_FEAT_CMM, model->features); in kvm_s390_get_host_cpu_model()
2447 clear_bit(S390_FEAT_CMM_NT, model->features); in kvm_s390_get_host_cpu_model()
2452 clear_bit(S390_FEAT_BPB, model->features); in kvm_s390_get_host_cpu_model()
2460 set_bit(S390_FEAT_UNPACK, model->features); in kvm_s390_get_host_cpu_model()
2468 set_bit(S390_FEAT_CONFIGURATION_TOPOLOGY, model->features); in kvm_s390_get_host_cpu_model()
2472 set_bit(S390_FEAT_ZPCI, model->features); in kvm_s390_get_host_cpu_model()
2473 set_bit(S390_FEAT_ADAPTER_EVENT_NOTIFICATION, model->features); in kvm_s390_get_host_cpu_model()
2477 model->def = s390_find_cpu_def(cpu_type, ibc_gen(unblocked_ibc), in kvm_s390_get_host_cpu_model()
2481 model->def = s390_find_cpu_def(0, ibc_gen(unblocked_ibc), in kvm_s390_get_host_cpu_model()
2483 model->features); in kvm_s390_get_host_cpu_model()
2485 if (!model->def) { in kvm_s390_get_host_cpu_model()
2491 set_bit(S390_FEAT_AP, model->features); in kvm_s390_get_host_cpu_model()
2499 set_bit(S390_FEAT_EXTENDED_LENGTH_SCCB, model->features); in kvm_s390_get_host_cpu_model()
2502 set_bit(S390_FEAT_DIAG_318, model->features); in kvm_s390_get_host_cpu_model()
2506 query_uv_feat_guest(model->features); in kvm_s390_get_host_cpu_model()
2509 bitmap_and(model->features, model->features, model->def->full_feat, in kvm_s390_get_host_cpu_model()
2547 void kvm_s390_apply_cpu_model(const S390CPUModel *model, Error **errp) in kvm_s390_apply_cpu_model() argument
2559 if (!model) { in kvm_s390_apply_cpu_model()
2570 prop.cpuid = s390_cpuid_from_cpu_model(model); in kvm_s390_apply_cpu_model()
2571 prop.ibc = s390_ibc_from_cpu_model(model); in kvm_s390_apply_cpu_model()
2573 s390_fill_feat_block(model->features, S390_FEAT_TYPE_STFL, in kvm_s390_apply_cpu_model()
2581 rc = configure_cpu_feat(model->features); in kvm_s390_apply_cpu_model()
2587 rc = configure_cpu_subfunc(model->features); in kvm_s390_apply_cpu_model()
2593 if (test_bit(S390_FEAT_CMM, model->features)) { in kvm_s390_apply_cpu_model()
2597 if (ap_enabled(model->features)) { in kvm_s390_apply_cpu_model()
2602 rc = configure_uv_feat_guest(model->features); in kvm_s390_apply_cpu_model()