WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] RE: set_msi_affinity() vs. pci_restore_msi_state()

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: [Xen-devel] RE: set_msi_affinity() vs. pci_restore_msi_state()
From: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
Date: Mon, 8 Mar 2010 10:14:04 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 07 Mar 2010 18:15:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B9139780200007800033011@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4B9139780200007800033011@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acq8fXrGHZoYbGV5ScaQnz9+b5hOYwB5jS+A
Thread-topic: set_msi_affinity() vs. pci_restore_msi_state()
Jan, 
    Have you met any issue ?  Per my understanding, there is no problem here.  
For set_msi_affinity, it calls write_msi_msg to write the MSI info to real 
hardware and also update it to (msi_desc)entry->msg, so entry->msg should store 
the latest msi's data/addr. And only if pci_restore_msi_state uses entry->msg 
to restore msi state, the correct info should be restored. And the key point is 
that write_msi_msg not only update hardware's msi state, but it stores the 
latest MSI info to msi descriptor entry->msg.  
Xiantao

-----Original Message-----
From: Jan Beulich [mailto:JBeulich@xxxxxxxxxx] 
Sent: Saturday, March 06, 2010 12:04 AM
To: Zhang, Xiantao
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: set_msi_affinity() vs. pci_restore_msi_state()

Isn't the fact that the former updates the MSI message data without
updating the copy of it in memory a problem for the latter, i.e. won't
the latter restore stale information? While the problem (if there is one)
existed before c/s 20073, the fact that the vector now can change
seems to make the potential effect of this much worse.

Thanks, Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>