Skip to contentSkip to conversation

vt-d: Fixpanic in msi_msg_read_remap_rte with acpi=off

Xen-changelog Miroslav Rezanina 1 participant 1 message Oct 19, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1689390489.362811255943106271.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com

#1 lore raw
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 in msi_msg_read_remap_rte with acpi=off

Quoted 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 in setup_dom0_devices function. There is

more

Quoted 1 line

calling of domain_context_mapping and we check NULL also in

In 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_unmap and reassign_device_ownership. We should put warning in there too, shouldn't we?

domain_context_unmap() is invoked in 2 places:
1) in intel_iommu_remove_device(), the return value has been propagated properly;
2) in reassign_device_ownership(), invoking reassign_device_ownership implies the device has been successfully assigned and the domain_context_mapping() returned success, so here the domain_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