Re: [Qemu-devel] [PATCH 02/12] target-i386: split APIC creation from initialization in x86_cpu_realizefn()

2013-04-04 Thread Igor Mammedov
On Thu, 04 Apr 2013 10:59:55 +0200 Andreas Färber wrote: > Am 21.03.2013 15:28, schrieb Igor Mammedov: > > When APIC is hotplugged during CPU hotplug, device_set_realized() > > calls device_reset() on it. And if QEMU runs in KVM mode, following > > call chain will fail: > > apic_reset_common(

Re: [Qemu-devel] [PATCH 02/12] target-i386: split APIC creation from initialization in x86_cpu_realizefn()

2013-04-04 Thread Andreas Färber
Am 21.03.2013 15:28, schrieb Igor Mammedov: > When APIC is hotplugged during CPU hotplug, device_set_realized() > calls device_reset() on it. And if QEMU runs in KVM mode, following > call chain will fail: > apic_reset_common() > -> kvm_apic_vapic_base_update() > -> kvm_vcpu

[Qemu-devel] [PATCH 02/12] target-i386: split APIC creation from initialization in x86_cpu_realizefn()

2013-03-21 Thread Igor Mammedov
When APIC is hotplugged during CPU hotplug, device_set_realized() calls device_reset() on it. And if QEMU runs in KVM mode, following call chain will fail: apic_reset_common() -> kvm_apic_vapic_base_update() -> kvm_vcpu_ioctl(cpu->kvm_fd,...) due to cpu->kvm_fd not being ini