vt-d: Fixpanic in msi_msg_read_remap_rte with acpi=off
Quoted 30 lines · ----- "Dexuan Cui
From: "Dexuan Cui" <[email protected]>
To: "Miroslav Rezanina" <[email protected]>
Cc: [email protected], [email protected], "Fraser" <[email protected]>
Sent: Monday, October 19, 2009 10:49:35 AM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: RE: [Xen-devel] RE: [Xen-changelog] [xen-unstable]vt-d: Fixpanic inmsi_msg_read_remap_rtewith acpi=offQuoted 4 lines · Miroslav Rezanina
Hi Dexuan,
you're right. We should print warning. In your patch, I do not understand
why you put comment only insetup_dom0_devicesfunction. There ismore
Quoted 1 line
calling of
domain_context_mappingand we check NULL also inIn other places, the retuen value of
domain_context_mapping()has been checked properly, e.g., passing to the caller, so we wouldn't ignore the failure. :-)Quoted 2 lines
domain_context_unmapandreassign_device_ownership. We should put warning in there too, shouldn't we?
domain_context_unmap()is invoked in 2 places:
1) inintel_iommu_remove_device(), the return value has been propagated properly;
2) inreassign_device_ownership(), invokingreassign_device_ownershipimplies the device has been successfully assigned and thedomain_context_mapping()returned success, so here thedomain_context_unmap()can't fail.The other returing place in
reassign_device_ownership()has been propagated properly to the caller.
Quoted 8 lines
Thanks,
-- Dexuan_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Ok, I understand. I just need to clarify this. Your v2 is all right.
Signature · 2 lines
Miroslav Rezanina Software Engineer - Virtualization Team - XEN kernel