>> >> - if (vm_need_virtualize_apic_accesses(vmx->vcpu.kvm)) >> + if ((vmx->vcpu.vcpu_id == 0) && >> + (vm_need_virtualize_apic_accesses(vmx->vcpu.kvm))) >> if (alloc_apic_access_page(vmx->vcpu.kvm) != 0) >> return -ENOMEM; >> >> > > We may not have vcpu id 0 (though it's very unlikely). >
Current LAPIC code assume vcpu_id = 0 for BSP. And even no real support of APIC_ID change. How about use (vcpu->apic_base & MSR_IA32_APICBASE_BSP) ? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel