From: "Jan Beulich" <jbeulich@novell.com>
To: Haitao Shan <haitao.shan@intel.com>
Cc: xen-devel@lists.xensource.com
Subject: RE: PCI MSI questions
Date: Thu, 24 Jul 2008 10:39:34 +0100 [thread overview]
Message-ID: <488869F6.76E4.0078.0@novell.com> (raw)
In-Reply-To: <823A93EED437D048963A3697DB0E35DE0191557C@pdsmsx414.ccr.corp.intel.com>
>> 2) While pci_restore_msi_state() properly checks the success of
>> msi_map_pirq_to_vector(), pci_restore_msix_state() doesn't. Is this
>> for a reason, or just because the code would get more complex if the
>> error needs to be handled?
>Yes. I do not know what is the proper action. If one of the MSI-X pirq
>failed, should we return? Or unmap those already mapped and return? Or
>continue processing other MSI-X entries?
>Any comments on this? Jan.
I would think this should follow the logic in msix_capabilities_init(), i.e.
unmap what was mapped (and hence leave the device in a semi-
consistent [interrupts non-functional] state).
>> 3) The type parameter of xc_physdev_map_pirq{,_msi}() seems
>> superfluous, or is there any reason why these could be called with the
> respectively reversed types?
>Yes. The type is not useful in current code.
>I am not quite sure about the reason. I think at the beginning of
>submitting the patches, we do not have two seperate wrap functions for
>this hypercall (only xc_physdev_map_pirq). That's where the "type"
>parameter comes. Later, with MSI capabilities owned by Xen, we need pass
>down more information to Xen via this hypercall. Thus the second one was
>born.
>Agree that this may need to be cleaned up.
That is what I suspected. I'll prepare a patch, unless you want to.
Jan
prev parent reply other threads:[~2008-07-24 9:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-24 7:02 PCI MSI questions Jan Beulich
2008-07-24 7:20 ` Keir Fraser
2008-08-08 10:09 ` Jan Beulich
2008-08-08 10:18 ` Keir Fraser
2008-07-24 8:22 ` Jan Beulich
2008-07-24 8:39 ` Shan, Haitao
2008-07-24 9:39 ` Jan Beulich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=488869F6.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=haitao.shan@intel.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.