From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Undocumented KVM_SET_LAPIC ioctl() Date: Wed, 27 Apr 2011 11:50:20 +0300 Message-ID: <4DB7D8CC.7020902@redhat.com> References: <4DB7C7D6.7000502@redhat.com> <4DB7D1CD.6080204@redhat.com> <20110427082652.GK2265@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Pekka Enberg , KVM General , Ingo Molnar , Cyrill Gorcunov To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:28065 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754811Ab1D0Iuh (ORCPT ); Wed, 27 Apr 2011 04:50:37 -0400 In-Reply-To: <20110427082652.GK2265@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 04/27/2011 11:26 AM, Gleb Natapov wrote: > On Wed, Apr 27, 2011 at 11:20:29AM +0300, Avi Kivity wrote: > > On 04/27/2011 10:53 AM, Pekka Enberg wrote: > > >On Wed, Apr 27, 2011 at 10:37 AM, Avi Kivity wrote: > > >> KVM_SET_GSI_ROUTING - manipulate the routes between irq lines and the IOAPIC > > >> and PIC; also maintain virtual routes for message signalled interrupts (MSI) > > > > > >Is this mandatory to set up manually for lapic to work or does KVM set > > >these up automatically (like it does for most ioctls) to something > > >sane? > > > > The defaults are all sane (including the APIC ID). > > > But IIRC the only way to reset BSP lapic to its initial state is to call > KVM_SET_LAPIC with buffer filled with initial values. The same is true > for non-BSP lapics too if they are reset by machine reset (as opposite > to by INIT message). Right, we do need a reset system in kvm. -- error compiling committee.c: too many arguments to function