[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC 4/6] target-i386: convert cpu to 2-stage ini
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH RFC 4/6] target-i386: convert cpu to 2-stage initialization |
Date: |
Tue, 17 Apr 2012 09:20:24 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
Il 17/04/2012 01:37, Igor Mammedov ha scritto:
> + if (((env->cpuid_features & CPUID_APIC) || smp_cpus > 1) &&
> !env->apic_state) {
> + if (kvm_irqchip_in_kernel()) {
> + env->apic_state = qdev_create(NULL, "kvm-apic");
> + } else {
> + env->apic_state = qdev_create(NULL, "apic");
> + }
> + qdev_prop_set_uint8(env->apic_state, "id", env->cpuid_apic_id);
> + qdev_prop_set_ptr(env->apic_state, "cpu_env", env);
> + object_property_add_child(OBJECT(cpu), "apic", OBJECT(env->apic_state),
> NULL);
Ah, nevermind my previous comment. :)
Paolo
- [Qemu-devel] [PATCH RFC 0/6] target-i386: use realize for cpu initialization, Igor Mammedov, 2012/04/16
- [Qemu-devel] [PATCH RFC 1/6] target-i386: move cpu halted decision into x86_cpu_reset, Igor Mammedov, 2012/04/16
- [Qemu-devel] [PATCH RFC 2/6] target-i386: add cpu-model property to x86_cpu, Igor Mammedov, 2012/04/16
- [Qemu-devel] [PATCH RFC 3/6] pc: move apic_mapped intialization into common apic init code, Igor Mammedov, 2012/04/16
- [Qemu-devel] [PATCH RFC 4/6] target-i386: convert cpu to 2-stage initialization, Igor Mammedov, 2012/04/16
- [Qemu-devel] [PATCH RFC 6/6] target-i386: make cpus childs of /machine, Igor Mammedov, 2012/04/16
- [Qemu-devel] [PATCH RFC 5/6] target-i386: move reset callback to cpu.c, Igor Mammedov, 2012/04/16