Re: [PATCH 2/2] xen: HVM X2APIC support

From: Stefano Stabellini
Date: Tue Dec 07 2010 - 05:23:49 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/