Skip to contentSkip to conversation

vt-d: Fixpanic in msi_msg_read_remap_rte with acpi=off

Xen-changelog Miroslav Rezanina 3 participants 11 messages Oct 19, 2009 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 37 lines · ----- "Keir Fraser

From: "Keir Fraser" <[email protected]>
To: "Miroslav Rezanina" <[email protected]>, "Dexuan Cui" <[email protected]>
Cc: [email protected]
Sent: Monday, October 19, 2009 11:22:48 AM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: Re: [Xen-devel] RE: [Xen-changelog] [xen-unstable]vt-d: Fixpanic in msi_msg_read_remap_rte with acpi=off

Quoted 6 lines · Miroslav Rezanina
Quoted 3 lines

Thanks,
-- Dexuan

Hi Dexuan,
you're right. We should print warning. In your patch, I do not

understand

Quoted 1 line

why you put comment only in setup_dom0_devices function. There is

more

Quoted 3 lines

calling of domain_context_mapping and we check NULL also in domain_context_unmap
and reassign_device_ownership. We should put warning in there too,

shouldn't

Quoted 1 line

we?

The warnings are silly, if we believe find_matched_drhd_unit() should not
return NULL in those cases. Since obviously we wouldn't know what to do in
that case: bailing and doing nothing, while convenient and requiring little
thought to implement, probably causes other subtler problems later on since
those remap functions are supposed to actually do something! Crashing immediately is the nice thing to do here: nice for the poor developer who
may have to debug this case sometime in the future, in the hopefully unlikely event our belief turns out to be false.

Quoted 4 lines

I'll be applying Dexuan's original replacement patch.

-- Keir

I retest version with removed NULL checks and in this case, my system crashes. So there has to be checks for NULL or something else is wrong.

Regards,
Mirek

Quoted 6 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 2 lines
Miroslav Rezanina
Software Engineer - Virtualization Team - XEN kernel
#2 lore raw
Quoted 27 lines · Miroslav Rezanina
Quoted 22 lines
Quoted 7 lines

Hi Dexuan,
you're right. We should print warning. In your patch, I do not understand why you put comment only in setup_dom0_devices function. There is more calling of domain_context_mapping and we check NULL also in domain_context_unmap and reassign_device_ownership. We should put warning in there too, shouldn't we?

The warnings are silly, if we believe find_matched_drhd_unit() should not
return NULL in those cases. Since obviously we wouldn't know what to do in
that case: bailing and doing nothing, while convenient and requiring little
thought to implement, probably causes other subtler problems later on since
those remap functions are supposed to actually do something! Crashing immediately is the nice thing to do here: nice for the poor developer who
may have to debug this case sometime in the future, in the hopefully unlikely event our belief turns out to be false.

Quoted 4 lines

I'll be applying Dexuan's original replacement patch.

-- Keir

Quoted 6 lines

I retest version with removed NULL checks and in this case, my system crashes. So there has to be checks for NULL or something else is wrong.

Regards,
Mirek

Hi Mirek,
Do you mean: with changeset 20338: 5f28661bb2bb and "acpi=off iommu=1", xen crashes in your host? Can you post the entire serial log?

Thanks,
-- Dexuan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
In reply to Miroslav Rezanina
Quoted 7 lines · Miroslav Rezanina
Quoted 4 lines

I'll be applying Dexuan's original replacement patch.

-- Keir

I retest version with removed NULL checks and in this case, my system crashes. So there has to be checks for NULL or something else is wrong.

Got a backtrace and Xen boot params? If you pass acpi=off, then disable_acpi() is invoked, and this sets acpi_disabled. If acpi_disabled=1, then iommu_setup() sets iommu_enabled=0. If iommu_enabled=0 then I think all the update_ire_from_* and similar hooks get disabled in the callers. So something unexpected must be happening.

-- Keir

#4 lore raw
Quoted 9 lines · Keir Fraser
Quoted 3 lines

I retest version with removed NULL checks and in this case, my system crashes.
So there has to be checks for NULL or something else is wrong.

Got a backtrace and Xen boot params? If you pass acpi=off, then disable_acpi() is invoked, and this sets acpi_disabled. If acpi_disabled=1, then iommu_setup() sets iommu_enabled=0. If iommu_enabled=0 then I think all the update_ire_from_* and similar hooks get disabled in the callers. So something unexpected must be happening.

Hmmm, perhaps this could be an early boot-time crash before iommu_setup() is even called? Perhaps moving the if(acpi_disabled) iommu_enabled=0 somewhere early-ish in setup.c:__start_xen(), with a warning message, would be the right thing to do in that case (e.g., immediately after the call to cmdline_parse()).

-- Keir

#5 lore raw
Quoted 11 lines · Keir Fraser
Quoted 5 lines

Got a backtrace and Xen boot params? If you pass acpi=off, then disable_acpi() is invoked, and this sets acpi_disabled. If acpi_disabled=1, then iommu_setup() sets iommu_enabled=0. If iommu_enabled=0 then I think all the update_ire_from_* and similar hooks get disabled in the callers. So something unexpected must be happening.

Hmmm, perhaps this could be an early boot-time crash before iommu_setup() is even called? Perhaps moving the if(acpi_disabled) iommu_enabled=0 somewhere early-ish in setup.c:__start_xen(), with a warning message, would be the right thing to do in that case (e.g., immediately after the call to cmdline_parse()).

After some more hmmm'ing I have to admit your original patch was actually the best way to go. :-)

All other callers of acpi_find_matched_drhd_unit() that you didn't patch already check for NULL return, so it's presumably expected as a possibility. And it is okay for msi_msg_{read,write}_remap_rte() to bail silently if they cannot determine there's any work to do, since they operate as potential modifiers to operations which are primarily implemented in their callers.

So sorry about that. I'll revert Dexuan's patch.

-- Keir

#6 lore raw
Quoted 25 lines · Keir Fraser
Quoted 7 lines · Keir Fraser
Quoted 6 lines

Got a backtrace and Xen boot params? If you pass acpi=off, then disable_acpi() is invoked, and this sets acpi_disabled. If acpi_disabled=1, then iommu_setup() sets iommu_enabled=0. If iommu_enabled=0 then I think all the update_ire_from_* and similar hooks get disabled in the callers. So something unexpected must be happening.

Quoted 5 lines

Hmmm, perhaps this could be an early boot-time crash before iommu_setup() is even called? Perhaps moving the if(acpi_disabled) iommu_enabled=0 somewhere early-ish in setup.c:__start_xen(), with a warning message, would be the right thing to do in that case (e.g., immediately after the call to cmdline_parse()).

After some more hmmm'ing I have to admit your original patch was actually the best way to go. :-)

All other callers of acpi_find_matched_drhd_unit() that you didn't patch already check for NULL return, so it's presumably expected as a possibility. And it is okay for msi_msg_{read,write}_remap_rte() to bail silently if they cannot determine there's any work to do, since they operate as potential modifiers to operations which are primarily implemented in their callers.

Quoted 3 lines

So sorry about that. I'll revert Dexuan's patch.

-- Keir

But, can't you reproduce the crash I mentioned before?
Please see the attached crash log -- I'm using c/s 20341:ea34183c5c11 and with "iommu=1 acpi=off" and I use a DQ35 host.

Actually what I care is the " if ( acpi_disabled ) iommu_enabled = 0".

Thanks,
-- Dexuan

root (hd0,4)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/xen.gz dom0_mem=512m console=com1 com1=115200,8n1 loglvl=all gues t_loglvl=all iommu=1 acpi=off
[Multiboot-elf, <0x100000:0x15dc60:0xc03a0>, shtab=0x31e078, entry=0x100000]
module /boot/vmlinuz-2.6.18.8-xen0 ro root=/dev/sda5 console=tty0 xencons=ttyS
console=ttyS0 pciback.hide=(00:1b.0)(01:00.0)
[Multiboot-module @ 0x31f000, 0x9a62c8 bytes]

__ __ _____ ____ _ _ _

 \ \/ /___ _ __   |___ / | ___|    _   _ _ __  ___| |_ __ _| |__ | | ___ 
  \  // _ \ '_ \    |_ \ |___ \ __| | | | '_ \/ __| __/ _` | '_ \| |/ _ \
  /  \  __/ | | |  ___) | ___) |__| |_| | | | \__ \ || (_| | |_) | |  __/
 /_/\_\___|_| |_| |____(_)____/    \__,_|_| |_|___/\__\__,_|_.__/|_|\___|

(XEN) Xen version 3.5-unstable (dcui@) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) Mon Oct 19 22:03:25 CST 2009 (XEN) Latest ChangeSet: Mon Oct 19 13:31:21 2009 +0100 20341:ea34183c5c11
(XEN) Command line: dom0_mem=512m console=com1 com1=115200,8n1 loglvl=all guest_loglvl=all iommu=1 acpi=off (XEN) Video information:
(XEN) VGA is text mode 80x25, font 8x16
(XEN) VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN) Found 1 MBR signatures
(XEN) Found 1 EDD information structures
(XEN) Xen-e820 RAM map:

(XEN)  0000000000000000 - 000000000009d000 (usable)
(XEN)  000000000009d000 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 000000007d5a0000 (usable)
(XEN)  000000007d5a0000 - 000000007d5ae000 (ACPI data)
(XEN)  000000007d5ae000 - 000000007d5f0000 (ACPI NVS)
(XEN)  000000007d5f0000 - 000000007d600000 (reserved)
(XEN)  00000000fed90000 - 00000000fed94000 (reserved)
(XEN)  00000000fee00000 - 00000000fee01000 (reserved)
(XEN)  00000000ffa74000 - 00000000ffa75000 (reserved)
(XEN)  00000000ffb00000 - 0000000100000000 (reserved)

(XEN) System RAM: 1992MB (2040684kB)
(XEN) NUMA turned off
(XEN) Faking a node at 0000000000000000-000000007d5a0000 (XEN) Domain heap initialised
(XEN) found SMP MP-table at 000ff780
(XEN) DMI present.
(XEN) Using APIC driver default
(XEN) Intel MultiProcessor Specification v1.4
(XEN) Virtual Wire compatibility mode.
(XEN) OEM ID: TEMPLATE Product ID: ETEMPLATE APIC at: 0xFEE00000
(XEN) Processor #0 1:7 APIC version 20
(XEN) Processor #1 1:7 APIC version 20
(XEN) Processor #2 1:7 APIC version 20
(XEN) Processor #3 1:7 APIC version 20
(XEN) I/O APIC #4 Version 32 at 0xFEC00000. (XEN) Enabling APIC mode: Flat. Using 1 I/O APICs (XEN) Processors: 4
(XEN) Using scheduler: SMP Credit Scheduler (credit) (XEN) Initializing CPU#0
(XEN) Detected 2826.315 MHz processor.
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K (XEN) CPU: L2 cache: 6144K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 0
(XEN) VMX: Supported advanced features:

(XEN)  - APIC MMIO access virtualisation
(XEN)  - APIC TPR shadow
(XEN)  - Virtual NMI
(XEN)  - MSR direct-access bitmap

(XEN) HVM: VMX enabled
(XEN) xsave_init: cpu0: cntxt_max_size: 0x240 and states: 00000000:00000003 (XEN) xsave_init: using cntxt_size: 0x240 and states: 00000000:00000003 (XEN) Intel machine check reporting enabled on CPU#0.
(XEN) CPU0: Thermal monitoring enabled (TM2)
(XEN) CMCI: CPU0 has no CMCI support
(XEN) Intel VT-d Snoop Control supported.
(XEN) Intel VT-d DMA Passthrough not supported.
(XEN) Intel VT-d Queued Invalidation supported.
(XEN) Intel VT-d Interrupt Remapping supported.
(XEN) I/O virtualisation enabled
(XEN) I/O virtualisation for PV guests disabled
(XEN) CPU0: Intel(R) Core(TM)2 Quad CPU @ 2.83GHz stepping 0a
(XEN) Booting processor 1/1 eip 8c000
(XEN) Initializing CPU#1
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: L2 cache: 6144K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 1
(XEN) xsave_init: cpu1: cntxt_max_size: 0x240 and states: 00000000:00000003 (XEN) Intel machine check reporting enabled on CPU#1.
(XEN) CPU1: Thermal monitoring enabled (TM2)
(XEN) CMCI: CPU1 has no CMCI support
(XEN) CPU1: Intel(R) Core(TM)2 Quad CPU @ 2.83GHz stepping 0a
(XEN) Booting processor 2/2 eip 8c000
(XEN) Initializing CPU#2
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: L2 cache: 6144K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 2
(XEN) xsave_init: cpu2: cntxt_max_size: 0x240 and states: 00000000:00000003 (XEN) Intel machine check reporting enabled on CPU#2.
(XEN) CPU2: Thermal monitoring enabled (TM2)
(XEN) CMCI: CPU2 has no CMCI support
(XEN) CPU2: Intel(R) Core(TM)2 Quad CPU @ 2.83GHz stepping 0a
(XEN) Booting processor 3/3 eip 8c000
(XEN) Initializing CPU#3
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: L2 cache: 6144K
(XEN) CPU: Physical Processor ID: 0
(XEN) CPU: Processor Core ID: 3
(XEN) xsave_init: cpu3: cntxt_max_size: 0x240 and states: 00000000:00000003 (XEN) Intel machine check reporting enabled on CPU#3.
(XEN) CPU3: Thermal monitoring enabled (TM2)
(XEN) CMCI: CPU3 has no CMCI support
(XEN) CPU3: Intel(R) Core(TM)2 Quad CPU @ 2.83GHz stepping 0a
(XEN) Total of 4 processors activated.
(XEN) ExtINT not setup in hardware but reported by MP table (XEN) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK method
(XEN) ..TIMER: vector=0xF0 apic1=0 pin1=2 apic2=0 pin2=0
(XEN) checking TSC synchronization across 4 CPUs: passed.
(XEN) Platform timer is 1.193MHz PIT
(XEN) microcode.c:73:d32767 microcode: CPU1 resumed
(XEN) Brought up 4 CPUs
(XEN) microcode.c:73:d32767 microcode: CPU2 resumed
(XEN) microcode.c:73:d32767 microcode: CPU3 resumed
(XEN) ACPI sleep modes: S3
(XEN) mcheck_poll: Machine check polling timer started.
(XEN) ----[ Xen-3.5-unstable x86_64 debug=y Not tainted ]----
(XEN) CPU: 0
(XEN) RIP: e008:[<ffff82c4801403f5>] ats_device+0x53/0x10e
(XEN) RFLAGS: 0000000000010246 CONTEXT: hypervisor

(XEN) rax: 0000000000000000   rbx: 0000000000000000   rcx: ffff82c480231580
(XEN) rdx: 0000000000000000   rsi: ffff82c480231580   rdi: 0000000000000000
(XEN) rbp: ffff82c4802e7d28   rsp: ffff82c4802e7cf8   r8:  0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000c58   cr0: 000000008005003b   cr4: 00000000000026f0
(XEN) cr3: 000000007d2ec000   cr2: 0000000000000058
(XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: 0000   cs: e008
(XEN) Xen stack trace from rsp=ffff82c4802e7cf8:
(XEN)    ffff82c48011dc8e ffff83007d31ecc0 0000000000000000 ffff83007d322000
(XEN)    0000000000000000 0000000000000c58 ffff82c4802e7d58 ffff82c48013c9b5
(XEN)    ffff83007d322000 0000000000000000 0000000000000000 0000000000000000
(XEN)    ffff82c4802e7d68 ffff82c4801379ed ffff82c4802e7d98 ffff82c48014d43e
(XEN)    0000000000000003 ffff83007d322000 000000000000000f 0000000000000004
(XEN)    ffff82c4802e7dc8 ffff82c48010677a ffff82c48025c2b0 ffff82c48025c2b0
(XEN)    0000000000000003 0000000000000040 ffff82c4802e7f18 ffff82c48024ddb5
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    ffff82c480236675 ffff83007d2ecff8 ffff83007d2edff8 0000000000236610
(XEN)    0000000000000000 0000000000000000 ffff83000008bfc0 ffff83000008bf40
(XEN)    000000000007c8db 00000000009a62c8 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    ffffffffffffffff ffff83000008bf40 000000000008bf40 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000001000000 0000000800000000 000000010000006e
(XEN)    0000000000000003 00000000000002f8 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000067e4c ffff82c4801000b5 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) Xen call trace:
(XEN)    [<ffff82c4801403f5>] ats_device+0x53/0x10e
(XEN)    [<ffff82c48013c9b5>] intel_iommu_domain_init+0xa8/0x200
(XEN)    [<ffff82c4801379ed>] iommu_domain_init+0x74/0x76
(XEN)    [<ffff82c48014d43e>] arch_domain_create+0x54b/0x951
(XEN)    [<ffff82c48010677a>] domain_create+0x26c/0x3fd
(XEN)    [<ffff82c48024ddb5>] __start_xen+0x5264/0x557f
(XEN)    
(XEN) Pagetable walk from 0000000000000058:
(XEN)  L4[0x000] = 000000007d0fb063 5555555555555555
(XEN)  L3[0x000] = 000000007d0fa063 5555555555555555
(XEN)  L2[0x000] = 000000007d0f9063 5555555555555555 
(XEN)  L1[0x000] = 0000000000000000 ffffffffffffffff

(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) FATAL PAGE FAULT
(XEN) [error_code=0000]
(XEN) Faulting linear address: 0000000000000058
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...
Press any key to continue.
Press any key to continue.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#7 lore raw
Quoted 28 lines · Dexuan
Quoted 27 lines · Keir Fraser
Quoted 7 lines · Keir Fraser
Quoted 6 lines

Got a backtrace and Xen boot params? If you pass acpi=off, then disable_acpi() is invoked, and this sets acpi_disabled. If acpi_disabled=1, then iommu_setup() sets iommu_enabled=0. If iommu_enabled=0 then I think all the update_ire_from_* and similar hooks get disabled in the callers. So something unexpected must be happening.

Quoted 5 lines

Hmmm, perhaps this could be an early boot-time crash before iommu_setup() is even called? Perhaps moving the if(acpi_disabled) iommu_enabled=0 somewhere early-ish in setup.c:__start_xen(), with a warning message, would be the right thing to do in that case (e.g., immediately after the call to cmdline_parse()).

After some more hmmm'ing I have to admit your original patch was actually the best way to go. :-)

All other callers of acpi_find_matched_drhd_unit() that you didn't patch already check for NULL return, so it's presumably expected as a possibility. And it is okay for msi_msg_{read,write}_remap_rte() to bail silently if they cannot determine there's any work to do, since they operate as potential modifiers to operations which are primarily implemented in their callers.

So sorry about that. I'll revert Dexuan's patch.

Quoted 7 lines
Quoted 1 line

-- Keir

But, can't you reproduce the crash I mentioned before? Please see the attached crash log -- I'm using c/s 20341:ea34183c5c11 and with "iommu=1 acpi=off" and I use a DQ35 host.

Actually what I care is the " if ( acpi_disabled ) iommu_enabled = 0".

BTW: from my crash log, you can see the bogus info -- actually the host doesn't support SC, QI and IR. (XEN) Intel VT-d Snoop Control supported.
(XEN) Intel VT-d DMA Passthrough not supported.
(XEN) Intel VT-d Queued Invalidation supported.
(XEN) Intel VT-d Interrupt Remapping supported.
(XEN) I/O virtualisation enabled

Thanks,
-- Dexuan

#10 lore raw
In reply to Cui, Dexuan
Quoted 9 lines · Dexuan
Quoted 3 lines

So sorry about that. I'll revert Dexuan's patch.

-- Keir

But, can't you reproduce the crash I mentioned before?
Please see the attached crash log -- I'm using c/s 20341:ea34183c5c11 and with "iommu=1 acpi=off" and I use a DQ35 host.

Actually what I care is the " if ( acpi_disabled ) iommu_enabled = 0".

Does this really save you though? What if you specify just "iommu=1" on an ACPI system that doesn't have VT-d (and therefore declares no DHRD units)?

-- Keir

#11 lore raw
Quoted 6 lines · Keir Fraser
Quoted 4 lines · Dexuan
Quoted 3 lines

So sorry about that. I'll revert Dexuan's patch.

-- Keir

Quoted 8 lines
Quoted 6 lines

But, can't you reproduce the crash I mentioned before? Please see the attached crash log -- I'm using c/s 20341:ea34183c5c11 and with "iommu=1 acpi=off" and I use a DQ35 host.

Actually what I care is the " if ( acpi_disabled ) iommu_enabled = 0".

Does this really save you though?

Do you mean we can leave the crash mentioned in my crash.log as it it? Looks not a good idea.

Quoted 3 lines

What if you specify just "iommu=1"
on an ACPI system that doesn't have VT-d (and therefore declares no DHRD units)?

In such a case, acpi_dmar_init() would return -ENODEV and clear iommu_enabled to 0;
later iommu_setup() would actually do nothing to try to enable VT-d, and would print "I/O virtualisation disabled". This is the expected correct behavior.

Thanks,
-- Dexuan

#8 lore raw
In reply to Cui, Dexuan
Quoted 6 lines · Dexuan
Quoted 5 lines

But, can't you reproduce the crash I mentioned before? Please see the attached crash log -- I'm using c/s 20341:ea34183c5c11 and with "iommu=1 acpi=off" and I use a DQ35 host.

Actually what I care is the " if ( acpi_disabled ) iommu_enabled = 0".

Quoted 7 lines

BTW: from my crash log, you can see the bogus info -- actually the host doesn't support SC, QI and IR.
(XEN) Intel VT-d Snoop Control supported.
(XEN) Intel VT-d DMA Passthrough not supported.
(XEN) Intel VT-d Queued Invalidation supported.
(XEN) Intel VT-d Interrupt Remapping supported.
(XEN) I/O virtualisation enabled

Ah, hm, well maybe you need that too. Actually I checked in a slightly broader check as c/s 20342, which checks that !list_empty(acpi_drhd_units). If you have no such units then initialising IOMMU support is rather pointless. And if you did not do ACPI bootstrap then you cannot have parsed any units. So the check is at least as strong as checking !acpi_disabled, I think.

Hopefully everyone will be happy that this unlikely corner case, requiring the user to have actually shot themselves in the foot by manually specifying two contradictory boot parameters, is now solved to their satisfaction. ;-)

-- Keir

#9 lore raw
Quoted 25 lines · Keir Fraser
Quoted 8 lines · Dexuan
Quoted 7 lines

But, can't you reproduce the crash I mentioned before? Please see the attached crash log -- I'm using c/s 20341:ea34183c5c11 and with "iommu=1 acpi=off" and I use a DQ35 host.

Actually what I care is the " if ( acpi_disabled ) iommu_enabled = 0".

Quoted 7 lines

BTW: from my crash log, you can see the bogus info -- actually the host doesn't support SC, QI and IR.
(XEN) Intel VT-d Snoop Control supported.
(XEN) Intel VT-d DMA Passthrough not supported.
(XEN) Intel VT-d Queued Invalidation supported.
(XEN) Intel VT-d Interrupt Remapping supported.
(XEN) I/O virtualisation enabled

Ah, hm, well maybe you need that too. Actually I checked in a slightly broader check as c/s 20342, which checks that !list_empty(acpi_drhd_units). If you have no such units then initialising IOMMU support is rather pointless. And if you did not do ACPI bootstrap then you cannot have parsed any units. So the check is at least as strong as checking !acpi_disabled, I think.

Quoted 4 lines

Hopefully everyone will be happy that this unlikely corner case, requiring the user to have actually shot themselves in the foot by manually specifying two contradictory boot parameters, is now solved to their satisfaction. ;-)

Yes, I think 20342 should fix the issue. :-)

Thanks,
-- Dexuan