From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzVAh-00041L-Fl for qemu-devel@nongnu.org; Fri, 12 Dec 2014 13:42:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzVAX-000161-H9 for qemu-devel@nongnu.org; Fri, 12 Dec 2014 13:42:35 -0500 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:57816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzVAX-00015v-96 for qemu-devel@nongnu.org; Fri, 12 Dec 2014 13:42:25 -0500 Received: by mail-wg0-f48.google.com with SMTP id y19so9788899wgg.21 for ; Fri, 12 Dec 2014 10:42:24 -0800 (PST) Sender: Paolo Bonzini Message-ID: <548B370A.9070107@redhat.com> Date: Fri, 12 Dec 2014 19:42:18 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1418227041-28151-1-git-send-email-pbonzini@redhat.com> <20141212173044.GD2328@work-vm> In-Reply-To: <20141212173044.GD2328@work-vm> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] kvm/apic: fix 2.2->2.1 migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" Cc: imammedo@redhat.com, qemu-devel@nongnu.org On 12/12/2014 18:30, Dr. David Alan Gilbert wrote: > OK, let me just check that I get this.... > > It gets reset to 0 already in kvm_apic_realize (before this patch -- after this patch it's only done in reset) > then we do the common init Then as part of starting up auxiliary processors we send an INIT interrupt, that resets the APIC and... > that sets it to !bsp - so 1 for most CPUs > then you're adding this so that a specific APIC implementation (kvm) > can nobble it back to 0 again? Yes. That's needed because this APIC implementation does not use the field at all. > and on the load side it's forced to zero by apic_pre_load. Yes. That's the common case for the !APIC implementation because it gets to zero as soon as te OS starts. Paolo