All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eduardo Habkost <ehabkost@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, Lan Tianyu <tianyu.lan@intel.com>
Subject: [Qemu-devel] [PULL 39/39] x86: Skip check apic_id_limit for Xen
Date: Thu, 26 Oct 2017 16:04:04 +0200	[thread overview]
Message-ID: <20171026140404.21948-40-ehabkost@redhat.com> (raw)
In-Reply-To: <20171026140404.21948-1-ehabkost@redhat.com>

From: Lan Tianyu <tianyu.lan@intel.com>

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>
---
 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

  parent reply	other threads:[~2017-10-26 14:07 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-26 14:03 [Qemu-devel] [PULL 00/39] x86/cpu/numa queue, 2017-10-26 Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 01/39] alpha: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 02/39] alpha: use generic cpu_model parsing Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 03/39] cris: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 04/39] cris: use generic cpu_model parsing Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 05/39] lm32: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 06/39] lm32: milkymist: use generic cpu_model parsing Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 07/39] lm32: lm32_boards: " Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 08/39] m68k: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 09/39] m68k: an5206: use generic cpu_model parsing Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 10/39] m68k: mcf5208: " Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 11/39] moxie: fix qemu-system-moxie failing to start with CLI "-cpu MoxieLite" Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 12/39] moxie: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 13/39] moxie: use generic cpu_model parsing Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 14/39] openrisc: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 15/39] openrisc: use generic cpu_model parsing Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 16/39] sh4: r2d: " Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 17/39] sh4: shix: " Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 18/39] sh4: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 19/39] sh4: simplify superh_cpu_class_by_name() Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 20/39] sh4: remove SuperHCPUClass::name field Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 21/39] xtensa: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 22/39] xtensa: sim: use generic cpu_model parsing Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 23/39] xtensa: lx60/lx200/ml605/kc705: " Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 24/39] unicore32: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 25/39] unicore32: use generic cpu_model parsing Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 26/39] tricore: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 27/39] tricore: use generic cpu_model parsing Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 28/39] sparc: cleanup cpu type name composition Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 29/39] sparc: sun4u/sun4v/niagara: use generic cpu_model parsing Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 30/39] sparc: sparc: " Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 31/39] sparc: leon3: " Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 32/39] mips: use object_new() instead of gnew()+object_initialize() Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 33/39] mips: malta/boston: replace cpu_model with cpu_type Eduardo Habkost
2017-10-26 14:03 ` [Qemu-devel] [PULL 34/39] mips: fulong2e: " Eduardo Habkost
2017-10-26 14:04 ` [Qemu-devel] [PULL 35/39] mips: Magnum/Acer Pica 61: " Eduardo Habkost
2017-10-26 14:04 ` [Qemu-devel] [PULL 36/39] mips: mipssim: " Eduardo Habkost
2017-10-26 14:04 ` [Qemu-devel] [PULL 37/39] mips: r4k: " Eduardo Habkost
2017-10-26 14:04 ` [Qemu-devel] [PULL 38/39] numa: fixup parsed NumaNodeOptions earlier Eduardo Habkost
2017-10-26 14:04 ` Eduardo Habkost [this message]
2017-10-27 13:42 ` [Qemu-devel] [PULL 00/39] x86/cpu/numa queue, 2017-10-26 Peter Maydell
2017-10-27 14:10   ` Eduardo Habkost
2017-10-27 18:29     ` Philippe Mathieu-Daudé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171026140404.21948-40-ehabkost@redhat.com \
    --to=ehabkost@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=tianyu.lan@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.