From: "Jan Beulich" Subject: RE: set_msi_affinity() vs. pci_restore_msi_state() Date: Mon, 08 Mar 2010 08:10:45 +0000 Message-ID: <4B94BF150200007800033315@vpn.id2.novell.com> References: <4B9139780200007800033011@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xiantao Zhang Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> "Zhang, Xiantao" 08.03.10 03:14 >>> >Jan,=20 > Have you met any issue ? Yes, but not in the resume code path. Instead, I got a log including output from the new 'M' debug key, which showed that entry->msg.data must have been all zero. That lead me to look at the code paths where this field would get written. >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. Oh, right, I overlooked write_msi_msg() writing entry->msg - mislead by the fact that it may be called with &entry->msg (which makes the - in this case unnecessary - assignment sort of unexpected. Jan