[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 39/39] x86: Skip check apic_id_limit for Xen
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PULL 39/39] x86: Skip check apic_id_limit for Xen |
Date: |
Thu, 26 Oct 2017 16:04:04 +0200 |
From: Lan Tianyu <address@hidden>
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 <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
---
hw/i386/pc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 8e307f7aff..e11a65b545 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 ||
--
2.13.6
- [Qemu-devel] [PULL 30/39] sparc: sparc: use generic cpu_model parsing, (continued)
- [Qemu-devel] [PULL 30/39] sparc: sparc: use generic cpu_model parsing, Eduardo Habkost, 2017/10/26
- [Qemu-devel] [PULL 29/39] sparc: sun4u/sun4v/niagara: use generic cpu_model parsing, Eduardo Habkost, 2017/10/26
- [Qemu-devel] [PULL 31/39] sparc: leon3: use generic cpu_model parsing, Eduardo Habkost, 2017/10/26
- [Qemu-devel] [PULL 32/39] mips: use object_new() instead of gnew()+object_initialize(), Eduardo Habkost, 2017/10/26
- [Qemu-devel] [PULL 33/39] mips: malta/boston: replace cpu_model with cpu_type, Eduardo Habkost, 2017/10/26
- [Qemu-devel] [PULL 34/39] mips: fulong2e: replace cpu_model with cpu_type, Eduardo Habkost, 2017/10/26
- [Qemu-devel] [PULL 35/39] mips: Magnum/Acer Pica 61: replace cpu_model with cpu_type, Eduardo Habkost, 2017/10/26
- [Qemu-devel] [PULL 37/39] mips: r4k: replace cpu_model with cpu_type, Eduardo Habkost, 2017/10/26
- [Qemu-devel] [PULL 36/39] mips: mipssim: replace cpu_model with cpu_type, Eduardo Habkost, 2017/10/26
- [Qemu-devel] [PULL 38/39] numa: fixup parsed NumaNodeOptions earlier, Eduardo Habkost, 2017/10/26
- [Qemu-devel] [PULL 39/39] x86: Skip check apic_id_limit for Xen,
Eduardo Habkost <=
- Re: [Qemu-devel] [PULL 00/39] x86/cpu/numa queue, 2017-10-26, Peter Maydell, 2017/10/27