mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wesley Sheng <wesley.sheng@amd.com>
To: <joro@8bytes.org>, <iommu@lists.linux-foundation.org>,
	<linux-kernel@vger.kernel.org>
Cc: <wesleyshenggit@sina.com>, <wesley.sheng@amd.com>
Subject: [PATCH 2/2] iommu/amd: Revise ga_tag member in struct of fields_remap
Date: Fri, 4 Sep 2020 18:07:47 +0800	[thread overview]
Message-ID: <20200904100747.16463-2-wesley.sheng@amd.com> (raw)
In-Reply-To: <20200904100747.16463-1-wesley.sheng@amd.com>

Per <<AMD I/0 Virtualization Technology (IOMMU) specification>>
ga_tag member is only available when IRTE[GuestMode]=1, this field
should be reserved when IRTE[GuestMode]=0. So change the ga_tag
to rsvd_1 in struct of fields_remap.

Signed-off-by: Wesley Sheng <wesley.sheng@amd.com>
---
 drivers/iommu/amd/amd_iommu_types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h
index e5b05a97eb46..baa31cd2411c 100644
--- a/drivers/iommu/amd/amd_iommu_types.h
+++ b/drivers/iommu/amd/amd_iommu_types.h
@@ -832,7 +832,7 @@ union irte_ga_lo {
 		    /* ------ */
 		    guest_mode	: 1,
 		    destination	: 24,
-		    ga_tag	: 32;
+		    rsvd_1	: 32;
 	} fields_remap;
 
 	/* For guest vAPIC */
-- 
2.16.2


      reply	other threads:[~2020-09-04 10:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04 10:07 [PATCH 1/2] iommu/amd: Unify reserved member naming convention in struct Wesley Sheng
2020-09-04 10:07 ` Wesley Sheng [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=20200904100747.16463-2-wesley.sheng@amd.com \
    --to=wesley.sheng@amd.com \
    --cc=iommu@lists.linux-foundation.org \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wesleyshenggit@sina.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

all inboxes | Powered by JetHome®