qemu-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]