[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1012071020210.2390@kaball-desktop>
Date: Tue, 7 Dec 2010 10:23:44 +0000
From: Stefano Stabellini <stefano.stabellini@...citrix.com>
To: Sheng Yang <sheng@...ux.intel.com>
CC: Jeremy Fitzhardinge <jeremy@...p.org>,
Stefano Stabellini <Stefano.Stabellini@...citrix.com>,
"konrad.wilk@...cle.com" <konrad.wilk@...cle.com>,
xen-devel <xen-devel@...ts.xensource.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/2] xen: HVM X2APIC support
On Tue, 7 Dec 2010, Sheng Yang wrote:
> +bool xen_hvm_need_lapic(void)
> +{
> + if (xen_pv_domain())
> + return false;
> + if (xen_hvm_domain() &&
> + (xen_feature(XENFEAT_hvm_pirqs) || xen_have_vector_callback))
> + return false;
> + return (xen_cpuid_base() != 0);
> +}
> +EXPORT_SYMBOL_GPL(xen_hvm_need_lapic);
> +
Why do you want to disable x2apic
if (xen_have_vector_callback && !xen_feature(XENFEAT_hvm_pirqs))?
In this case some emulated devices are still used, like the serial, and
need interrupt delivery using an apic. Same is true for all the
pci devices assigned to the VM.
The only case in which the apic is basically left unused is
(xen_feature(XENFEAT_hvm_pirqs) && xen_have_vector_callback).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists