From: "Dan Magenheimer" Subject: RE: Disabling lapic and apic: pitfalls? Date: Fri, 14 Mar 2008 13:06:01 -0600 Message-ID: <20080314130601046.00000003604@djm-pc> References: Reply-To: "dan.magenheimer@oracle.com" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org > APIC is required for multiprocessor HVM guests. It can be = > lived without for UP guests. LAPIC or (IO)APIC or both? And a key part of the question is what does "lived without" mean (as far as functionality or performance or stability or ??? lost)? > -----Original Message----- > From: Keir Fraser [mailto:keir.fraser@eu.citrix.com] > Sent: Friday, March 14, 2008 12:49 PM > To: dan.magenheimer@oracle.com; xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] Disabling lapic and apic: pitfalls? > = > = > APIC is required for multiprocessor HVM guests. It can be = > lived without for > UP guests. > = > -- Keir > = > On 14/3/08 17:55, "Dan Magenheimer" = > wrote: > = > > Excuse my newbie-ness in this area... I hope the answers aren't > > too obvious or widely known. > > > > What are the disadvantages of disabling the LAPIC and APIC in a > > Linux virtual machine? What functionality is lost? What class > > of potential bugs might arise (or go away)? > > > > Does the answer differ for hvm vs pvm? > > > > Does the answer differ depending on whether the platform > > underlying is Intel or AMD? 32-bit vs 64-bit? > > > > Does the answer differ for vcpus=3D1 vs vcpus>1 (assuming CONFIG_SMP) > > > > (And what about for Windows of various flavors?) > > > > For example, I can see that if lapic is enabled, an extra 1000 > > interrupts per second are delivered to the VM (250 for pvm). > > Are these useful for anything? Or are they just eating VM cycles? > > > > I suspect that disabled apic may break driver domains or pci > > passthrough. True? What about lapic? > > > > I ask all these questions because I often see problem responses of > > the type "Try apic=3D0" or "Boot with noapic" and I wonder about the > > side effects of such a cure. Or whether the cure should be > > universally applied for VMs: Depending on the answers to the > > above questions, perhaps the default should be off and we > > should be saying "Try apic=3D1 if you need that functionality". > > > > Thanks, > > Dan > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > If Xen could save time in a bottle / then clocks wouldn't = > virtually skew / > > It would save every tick / for VMs that aren't quick / > > and Xen then would send them anew > > (with apologies to the late great Jim Croce) > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > = > = >