All of lore.kernel.org
 help / color / mirror / Atom feed
From: FionaLi-oc <fionali-oc@zhaoxin.com>
To: xen-devel@lists.xenproject.org
Cc: wei.liu2@citrix.com, andrew.cooper3@citrix.com,
	cobechen@zhaoxin.com, FionaLi-oc <fionali-oc@zhaoxin.com>,
	jbeulich@suse.com, roger.pau@citrix.com
Subject: [PATCH 0/2] x86/iommu: support IOMMU for Zhaoxin CPU
Date: Tue, 9 Apr 2019 10:59:27 +0800	[thread overview]
Message-ID: <1554778767-3480-1-git-send-email-fionali-oc@zhaoxin.com> (raw)

The patchset supports some features for Zhaoxin CPU whose vendor
ID is 'Shanghai'. Zhaoxin x86 SOC supports I/O virtualization
which is compatible with Intel I/O virtulizaiton.

Indent with four spaces.

Signed-off-by: FionaLi-oc <fionali-oc@zhaoxin.com>
---
 xen/include/asm-x86/iommu.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/xen/include/asm-x86/iommu.h b/xen/include/asm-x86/iommu.h
index 8dc3924..ec5a009 100644
--- a/xen/include/asm-x86/iommu.h
+++ b/xen/include/asm-x86/iommu.h
@@ -71,10 +71,11 @@ static inline int iommu_hardware_setup(void)
 {
     switch ( boot_cpu_data.x86_vendor )
     {
-    case X86_VENDOR_INTEL:
-        return intel_vtd_setup();
-    case X86_VENDOR_AMD:
-        return amd_iov_detect();
+        case X86_VENDOR_INTEL:
+        case X86_VENDOR_SHANGHAI:
+            return intel_vtd_setup();
+        case X86_VENDOR_AMD:
+            return amd_iov_detect();
     }
 
     return -ENODEV;
-- 
1.8.3.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

WARNING: multiple messages have this Message-ID (diff)
From: FionaLi-oc <fionali-oc@zhaoxin.com>
To: <xen-devel@lists.xenproject.org>
Cc: wei.liu2@citrix.com, andrew.cooper3@citrix.com,
	cobechen@zhaoxin.com, FionaLi-oc <fionali-oc@zhaoxin.com>,
	jbeulich@suse.com, roger.pau@citrix.com
Subject: [Xen-devel] [PATCH 0/2] x86/iommu: support IOMMU for Zhaoxin CPU
Date: Tue, 9 Apr 2019 10:59:27 +0800	[thread overview]
Message-ID: <1554778767-3480-1-git-send-email-fionali-oc@zhaoxin.com> (raw)
Message-ID: <20190409025927.DW8jVglS6s3_dGgE6xRf4jPIW_w4qi0t7fb5p8B8M1A@z> (raw)

The patchset supports some features for Zhaoxin CPU whose vendor
ID is 'Shanghai'. Zhaoxin x86 SOC supports I/O virtualization
which is compatible with Intel I/O virtulizaiton.

Indent with four spaces.

Signed-off-by: FionaLi-oc <fionali-oc@zhaoxin.com>
---
 xen/include/asm-x86/iommu.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/xen/include/asm-x86/iommu.h b/xen/include/asm-x86/iommu.h
index 8dc3924..ec5a009 100644
--- a/xen/include/asm-x86/iommu.h
+++ b/xen/include/asm-x86/iommu.h
@@ -71,10 +71,11 @@ static inline int iommu_hardware_setup(void)
 {
     switch ( boot_cpu_data.x86_vendor )
     {
-    case X86_VENDOR_INTEL:
-        return intel_vtd_setup();
-    case X86_VENDOR_AMD:
-        return amd_iov_detect();
+        case X86_VENDOR_INTEL:
+        case X86_VENDOR_SHANGHAI:
+            return intel_vtd_setup();
+        case X86_VENDOR_AMD:
+            return amd_iov_detect();
     }
 
     return -ENODEV;
-- 
1.8.3.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

             reply	other threads:[~2019-04-09  2:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-09  2:59 FionaLi-oc [this message]
2019-04-09  2:59 ` [Xen-devel] [PATCH 0/2] x86/iommu: support IOMMU for Zhaoxin CPU FionaLi-oc
2019-04-09  9:02 ` Andrew Cooper
2019-04-09  9:02   ` [Xen-devel] " Andrew Cooper

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=1554778767-3480-1-git-send-email-fionali-oc@zhaoxin.com \
    --to=fionali-oc@zhaoxin.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=cobechen@zhaoxin.com \
    --cc=jbeulich@suse.com \
    --cc=roger.pau@citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /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.