Lines Matching refs:qcpu
84 AccelCPUState *qcpu = cpu->accel; in nvmm_set_registers() local
85 struct nvmm_vcpu *vcpu = &qcpu->vcpu; in nvmm_set_registers()
136 state->crs[NVMM_X64_CR_CR8] = qcpu->tpr; in nvmm_set_registers()
221 AccelCPUState *qcpu = cpu->accel; in nvmm_get_registers() local
222 struct nvmm_vcpu *vcpu = &qcpu->vcpu; in nvmm_get_registers()
289 if (tpr != qcpu->tpr) { in nvmm_get_registers()
290 qcpu->tpr = tpr; in nvmm_get_registers()
344 AccelCPUState *qcpu = cpu->accel; in nvmm_can_take_int() local
345 struct nvmm_vcpu *vcpu = &qcpu->vcpu; in nvmm_can_take_int()
348 if (qcpu->int_window_exit) { in nvmm_can_take_int()
352 if (qcpu->int_shadow || !(cpu_env(cpu)->eflags & IF_MASK)) { in nvmm_can_take_int()
369 AccelCPUState *qcpu = cpu->accel; in nvmm_can_take_nmi() local
376 if (qcpu->nmi_window_exit) { in nvmm_can_take_nmi()
392 AccelCPUState *qcpu = cpu->accel; in nvmm_vcpu_pre_run() local
393 struct nvmm_vcpu *vcpu = &qcpu->vcpu; in nvmm_vcpu_pre_run()
405 if (tpr != qcpu->tpr) { in nvmm_vcpu_pre_run()
406 qcpu->tpr = tpr; in nvmm_vcpu_pre_run()
448 state->crs[NVMM_X64_CR_CR8] = qcpu->tpr; in nvmm_vcpu_pre_run()
475 AccelCPUState *qcpu = cpu->accel; in nvmm_vcpu_post_run() local
481 qcpu->int_shadow = exit->exitstate.int_shadow; in nvmm_vcpu_post_run()
482 qcpu->int_window_exit = exit->exitstate.int_window_exiting; in nvmm_vcpu_post_run()
483 qcpu->nmi_window_exit = exit->exitstate.nmi_window_exiting; in nvmm_vcpu_post_run()
486 if (qcpu->tpr != tpr) { in nvmm_vcpu_post_run()
487 qcpu->tpr = tpr; in nvmm_vcpu_post_run()
489 cpu_set_apic_tpr(x86_cpu->apic_state, qcpu->tpr); in nvmm_vcpu_post_run()
562 AccelCPUState *qcpu = cpu->accel; in nvmm_handle_rdmsr() local
563 struct nvmm_vcpu *vcpu = &qcpu->vcpu; in nvmm_handle_rdmsr()
607 AccelCPUState *qcpu = cpu->accel; in nvmm_handle_wrmsr() local
608 struct nvmm_vcpu *vcpu = &qcpu->vcpu; in nvmm_handle_wrmsr()
681 AccelCPUState *qcpu = cpu->accel; in nvmm_vcpu_loop() local
682 struct nvmm_vcpu *vcpu = &qcpu->vcpu; in nvmm_vcpu_loop()
735 if (qcpu->stop) { in nvmm_vcpu_loop()
737 qcpu->stop = false; in nvmm_vcpu_loop()
773 qcpu->stop = true; in nvmm_vcpu_loop()
888 AccelCPUState *qcpu = current_cpu->accel; in nvmm_ipi_signal() local
890 struct nvmm_vcpu *vcpu = &qcpu->vcpu; in nvmm_ipi_signal()
893 qcpu->stop = true; in nvmm_ipi_signal()
922 AccelCPUState *qcpu; in nvmm_init_vcpu() local
937 qcpu = g_new0(AccelCPUState, 1); in nvmm_init_vcpu()
939 ret = nvmm_vcpu_create(mach, cpu->cpu_index, &qcpu->vcpu); in nvmm_init_vcpu()
944 g_free(qcpu); in nvmm_init_vcpu()
952 ret = nvmm_vcpu_configure(mach, &qcpu->vcpu, NVMM_VCPU_CONF_CPUID, in nvmm_init_vcpu()
958 g_free(qcpu); in nvmm_init_vcpu()
962 ret = nvmm_vcpu_configure(mach, &qcpu->vcpu, NVMM_VCPU_CONF_CALLBACKS, in nvmm_init_vcpu()
968 g_free(qcpu); in nvmm_init_vcpu()
975 ret = nvmm_vcpu_configure(mach, &qcpu->vcpu, NVMM_VCPU_CONF_TPR, &tpr); in nvmm_init_vcpu()
980 g_free(qcpu); in nvmm_init_vcpu()
985 qcpu->dirty = true; in nvmm_init_vcpu()
986 cpu->accel = qcpu; in nvmm_init_vcpu()
1018 AccelCPUState *qcpu = cpu->accel; in nvmm_destroy_vcpu() local
1020 nvmm_vcpu_destroy(mach, &qcpu->vcpu); in nvmm_destroy_vcpu()