All of lore.kernel.org
 help / color / mirror / Atom feed
From: tip-bot for Thomas Gleixner <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org,
	tglx@linutronix.de
Subject: [tip:x86/apic] iommu: dmar: Provide helper to copy shared irte fields
Date: Fri, 12 Jun 2015 02:49:11 -0700	[thread overview]
Message-ID: <tip-bf56027ff4d9e75bf668ae990fe6204d00a23002@git.kernel.org> (raw)
In-Reply-To: <1433827237-3382-4-git-send-email-feng.wu@intel.com>

Commit-ID:  bf56027ff4d9e75bf668ae990fe6204d00a23002
Gitweb:     http://git.kernel.org/tip/bf56027ff4d9e75bf668ae990fe6204d00a23002
Author:     Thomas Gleixner <tglx@linutronix.de>
AuthorDate: Tue, 9 Jun 2015 13:20:30 +0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Fri, 12 Jun 2015 11:33:52 +0200

iommu: dmar: Provide helper to copy shared irte fields

Instead of open coding, provide a helper function to copy the shared
irte fields.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: jiang.liu@linux.intel.com
Cc: iommu@lists.linux-foundation.org
Cc: joro@8bytes.org
Cc: dwmw2@infradead.org
Link: http://lkml.kernel.org/r/1433827237-3382-4-git-send-email-feng.wu@intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 include/linux/dmar.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/include/linux/dmar.h b/include/linux/dmar.h
index 0dbcabc..e9bc929 100644
--- a/include/linux/dmar.h
+++ b/include/linux/dmar.h
@@ -249,6 +249,18 @@ struct irte {
 	};
 };
 
+static inline void dmar_copy_shared_irte(struct irte *dst, struct irte *src)
+{
+	dst->present	= src->present;
+	dst->fpd	= src->fpd;
+	dst->avail	= src->avail;
+	dst->pst	= src->pst;
+	dst->vector	= src->vector;
+	dst->sid	= src->sid;
+	dst->sq		= src->sq;
+	dst->svt	= src->svt;
+}
+
 #define PDA_LOW_BIT    26
 #define PDA_HIGH_BIT   32
 

  reply	other threads:[~2015-06-12  9:49 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09  5:20 [v10 00/10] Add VT-d Posted-Interrupts support - IOMMU part Feng Wu
2015-06-09  5:20 ` Feng Wu
2015-06-09  5:20 ` [v10 02/10] iommu: dmar: Extend struct irte for VT-d Posted-Interrupts Feng Wu
2015-06-12  9:48   ` [tip:x86/apic] " tip-bot for Thomas Gleixner
2015-06-09  5:20 ` [v10 04/10] iommu, x86: Implement irq_set_vcpu_affinity for intel_ir_chip Feng Wu
2015-06-12  9:49   ` [tip:x86/apic] " tip-bot for Feng Wu
     [not found] ` <1433827237-3382-1-git-send-email-feng.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-06-09  5:20   ` [v10 01/10] iommu: Add new member capability to struct irq_remap_ops Feng Wu
2015-06-09  5:20     ` Feng Wu
2015-06-12  9:48     ` [tip:x86/apic] " tip-bot for Feng Wu
2015-06-09  5:20   ` [v10 03/10] iommu: dmar: Provide helper to copy shared irte fields Feng Wu
2015-06-09  5:20     ` Feng Wu
2015-06-12  9:49     ` tip-bot for Thomas Gleixner [this message]
2015-06-09  5:20   ` [v10 05/10] iommu, x86: Save the mode (posted or remapped) of an IRTE Feng Wu
2015-06-09  5:20     ` Feng Wu
2015-06-12  9:49     ` [tip:x86/apic] " tip-bot for Feng Wu
2015-06-09  5:20   ` [v10 06/10] iommu, x86: Avoid migrating VT-d posted interrupts Feng Wu
2015-06-09  5:20     ` Feng Wu
2015-06-12  9:50     ` [tip:x86/apic] " tip-bot for Feng Wu
2015-06-09  5:20   ` [v10 07/10] iommu, x86: Add cap_pi_support() to detect VT-d PI capability Feng Wu
2015-06-09  5:20     ` Feng Wu
2015-06-12  9:50     ` [tip:x86/apic] " tip-bot for Feng Wu
2015-06-09  5:20   ` [v10 08/10] iommu, x86: Setup Posted-Interrupts capability for Intel iommu Feng Wu
2015-06-09  5:20     ` Feng Wu
2015-06-12  9:50     ` [tip:x86/apic] " tip-bot for Feng Wu
2015-06-09  5:20   ` [v10 09/10] iommu, x86: Provide irq_remapping_cap() interface Feng Wu
2015-06-09  5:20     ` Feng Wu
2015-06-12  9:51     ` [tip:x86/apic] " tip-bot for Feng Wu
2015-06-09  5:20   ` [v10 10/10] iommu, x86: Properly handle posted interrupts for IOMMU hotplug Feng Wu
2015-06-09  5:20     ` Feng Wu
2015-06-12  9:51     ` [tip:x86/apic] " tip-bot for Feng Wu

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=tip-bf56027ff4d9e75bf668ae990fe6204d00a23002@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    /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.