From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Qing He <qing.he@intel.com>
Cc: xen-devel@lists.xensource.com, yunhong.jiang@intel.com
Subject: Re: [PATCH 0/3] xen: msi support for Xen dom0
Date: Tue, 18 Aug 2009 13:24:26 -0700 [thread overview]
Message-ID: <4A8B0DFA.1020002@goop.org> (raw)
In-Reply-To: <1250574314-19600-1-git-send-email-qing.he@intel.com>
On 08/17/09 22:45, Qing He wrote:
> This patch set adds support for msi in Xen dom0. It's based on the
> pci notifier patches of Weidong Han (on rebase/pci branch) and
> contains the following 3 patches.
>
> [PATCH 1/3] xen: make pci notifier work with booting devices
> [PATCH 2/3] xen: add msi support for dom0
> [PATCH 3/3] xen: re-enable msi (effectively revert bf89bc29)
>
Thanks, I've applied these to rebase/dom0/msi for now. I haven't
tested them (or really compiled them) yet, so please look at the branch
and see that everything's OK.
> One of the problem left is how to save/restore MSI across S3. Since
> pci_restore_msi_state() now doesn't have any arch specific hook, the
> code in arch/x86/ won't get a chance to run during S3 wakeup, so
> write_msi_msg() is called instead of xen specific functions. One of
> the possible solutions (and which I prefer) is to add something like
> arch_pci_restore_msi, but that involves slightly changing
> drivers/pci/msi.c, which probably needs more thinking and discussion.
>
> An alternative is to trap and emulate any access to pci configuration
> space. In that case, nothing in dom0 needs changing, and write_msi_msg
> can be reused, but considerable logic may need to change in Xen
> hypervisor.
>
The approach taken by 2/3 is not really going to fly upstream, and is
broadly incompatible with my intended design for interrupt handling,
which is to decouple the Xen/dom0 aspects of interrupt handling from the
apic/ioapic code entirely. I don't know what impact this will have on
MSI support. I'd appreciate it if you could look at the
rebase/dom0/new-interrupt-routing branch and comment on it.
I'm not actually sure this approach is going to work; so far it just
locks up the machine shortly after ACPI initialization. Trapping an
emulating (IO-)APIC accesses may well turn out to be simpler (on the
Linux side, at least) and more robust in the end...
J
next prev parent reply other threads:[~2009-08-18 20:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 5:45 [PATCH 0/3] xen: msi support for Xen dom0 Qing He
2009-08-18 5:45 ` [PATCH 1/3] xen: make pci notifier work with booting devices Qing He
2009-08-18 5:45 ` [PATCH 2/3] xen: add msi support for dom0 Qing He
2009-08-18 5:45 ` [PATCH 3/3] xen: re-enable msi Qing He
2009-08-18 20:24 ` Jeremy Fitzhardinge [this message]
2009-08-19 1:45 ` [PATCH 0/3] xen: msi support for Xen dom0 Qing He
2009-08-19 19:22 ` Jeremy Fitzhardinge
2009-09-01 1:54 ` Qing He
2009-09-02 22:55 ` Jeremy Fitzhardinge
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=4A8B0DFA.1020002@goop.org \
--to=jeremy@goop.org \
--cc=qing.he@intel.com \
--cc=xen-devel@lists.xensource.com \
--cc=yunhong.jiang@intel.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.