qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] x86: Skip check apic_id_limit for Xen
@ 2017-08-16  0:22 Lan Tianyu
  2017-08-16 11:21 ` Paolo Bonzini
  0 siblings, 1 reply; 9+ messages in thread
From: Lan Tianyu @ 2017-08-16  0:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: Lan Tianyu, mst, pbonzini, rth, ehabkost, anthony.perard,
	xen-devel

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>
---
 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 5943539..fc17885 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1260,7 +1260,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 ||
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-10-27  1:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-16  0:22 [Qemu-devel] [PATCH] x86: Skip check apic_id_limit for Xen Lan Tianyu
2017-08-16 11:21 ` Paolo Bonzini
2017-08-17  1:37   ` Lan Tianyu
2017-08-18 16:38     ` Eduardo Habkost
2017-08-18 16:53       ` Paolo Bonzini
2017-08-21  2:22       ` Lan Tianyu
2017-10-26 12:19         ` Eduardo Habkost
2017-10-26 14:27           ` Michael S. Tsirkin
2017-10-27  1:30             ` Lan Tianyu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).