aboutsummaryrefslogtreecommitdiff
path: root/hw/i386
diff options
context:
space:
mode:
authorLan Tianyu <tianyu.lan@intel.com>2017-08-15 20:22:13 -0400
committerEduardo Habkost <ehabkost@redhat.com>2017-10-27 16:04:28 +0200
commit1a26f46692320f1981c95967e0d5af4443b5f0b1 (patch)
treea4f47bdc842864d04b38baf4591f83161dd779fd /hw/i386
parentcc001888b78090ed08d05453b5574b3253a143c0 (diff)
downloadqemu-1a26f46692320f1981c95967e0d5af4443b5f0b1.zip
qemu-1a26f46692320f1981c95967e0d5af4443b5f0b1.tar.gz
qemu-1a26f46692320f1981c95967e0d5af4443b5f0b1.tar.bz2
x86: Skip check apic_id_limit for Xen
Xen vIOMMU device model will be in Xen hypervisor. Skip vIOMMU check for Xen here when vcpu number is more than 255. Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Message-Id: <1502842933-8323-1-git-send-email-tianyu.lan@intel.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/i386')
-rw-r--r--hw/i386/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 8e307f7..e11a65b 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1228,7 +1228,7 @@ void pc_machine_done(Notifier *notifier, void *data)
fw_cfg_modify_i16(pcms->fw_cfg, FW_CFG_NB_CPUS, pcms->boot_cpus);
}
- if (pcms->apic_id_limit > 255) {
+ if (pcms->apic_id_limit > 255 && !xen_enabled()) {
IntelIOMMUState *iommu = INTEL_IOMMU_DEVICE(x86_iommu_get_default());
if (!iommu || !iommu->x86_iommu.intr_supported ||