kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sheng Yang <sheng@linux.intel.com>
To: "Zhang, Xiantao" <xiantao.zhang@intel.com>
Cc: "Avi Kivity" <avi@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH 3/4] x86: Add MSI delivery mode mask
Date: Wed, 8 Oct 2008 16:52:55 +0800	[thread overview]
Message-ID: <200810081652.55444.sheng@linux.intel.com> (raw)
In-Reply-To: <42DFA526FC41B1429CE7279EF83C6BDC01ABCD4B@pdsmsx415.ccr.corp.intel.com>

On Wednesday 08 October 2008 16:48:11 Zhang, Xiantao wrote:
> Hi, Sheng
>     Since these macros are just used by kvm, and considering cross-arch
> support, could you move these stuff to include/linux/kvm_host.h ?  So
> they can be shared for x86 and ia64.
> Thanks
> Xiantao

I don't think so... The problem is, we can't assume that IA64 and x86 use same 
MSI format, and I think we shouldn't do that. And this patch just modify x86 
host linux side. So if they can be shared, host kernel side should also share 
them, then this file(msidef.h) shouldn't put on include/asm-x86/... So for 
now, probably it's more reasonable to keep it here.

Thanks!
--
regards
Yang, Sheng
 
>
> Sheng Yang wrote:
> > Signed-off-by: Sheng Yang <sheng@linux.intel.com>
> > ---
> >  include/asm-x86/msidef.h |    3 +++
> >  1 files changed, 3 insertions(+), 0 deletions(-)
> >
> > diff --git a/include/asm-x86/msidef.h b/include/asm-x86/msidef.h
> > index 296f29c..fdeebbb 100644
> > --- a/include/asm-x86/msidef.h
> > +++ b/include/asm-x86/msidef.h
> > @@ -15,8 +15,11 @@
> >  					 MSI_DATA_VECTOR_MASK)
> >
> >  #define MSI_DATA_DELIVERY_MODE_SHIFT	8
> > +#define MSI_DATA_DELIVERY_MODE_MASK	0x700
> >  #define  MSI_DATA_DELIVERY_FIXED	(0 <<
>
> MSI_DATA_DELIVERY_MODE_SHIFT)
>
> >  #define  MSI_DATA_DELIVERY_LOWPRI	(1 <<
>
> MSI_DATA_DELIVERY_MODE_SHIFT)
>
> > +#define  MSI_DATA_DELIVERY_FIXED_VAL	0
> > +#define  MSI_DATA_DELIVERY_LOWPRI_VAL	1
> >
> >  #define MSI_DATA_LEVEL_SHIFT		14
> >  #define	 MSI_DATA_LEVEL_DEASSERT	(0 <<
>
> MSI_DATA_LEVEL_SHIFT)
>
> > --
> > 1.5.4.5



  reply	other threads:[~2008-10-08  8:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-08  8:38 [PATCH 0/4] Clean up and enable MSI support for assigned device(v2) Sheng Yang
2008-10-08  8:38 ` [PATCH 1/4] Separate update irq to a single function Sheng Yang
2008-10-08 10:27   ` Sheng Yang
2008-10-08  8:38 ` [PATCH 2/4] KVM: x86: Replace irq_requested with guest_intr_type Sheng Yang
2008-10-08  8:38 ` [PATCH 3/4] x86: Add MSI delivery mode mask Sheng Yang
2008-10-08  8:48   ` Zhang, Xiantao
2008-10-08  8:52     ` Sheng Yang [this message]
2008-10-08  9:06       ` Zhang, Xiantao
2008-10-08  8:38 ` [PATCH 4/4] KVM: Enable MSI for device assignment Sheng Yang
  -- strict thread matches above, loose matches on Subject: below --
2008-09-26  5:17 [PATCH 3/4] x86: Add MSI delivery mode mask Sheng Yang

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=200810081652.55444.sheng@linux.intel.com \
    --to=sheng@linux.intel.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=xiantao.zhang@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).